Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions go/mechanisms/cardano/exact/server/scheme.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (
"fmt"
"strings"

x402 "github.com/x402-foundation/x402/go"
"github.com/x402-foundation/x402/go/mechanisms/cardano"
"github.com/x402-foundation/x402/go/types"
x402 "github.com/x402-foundation/x402/go/v2"
"github.com/x402-foundation/x402/go/v2/mechanisms/cardano"
"github.com/x402-foundation/x402/go/v2/types"
)

// ExactCardanoScheme implements x402.SchemeNetworkServer for the Cardano
Expand Down
6 changes: 3 additions & 3 deletions go/mechanisms/cardano/exact/server/scheme_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"testing"

x402 "github.com/x402-foundation/x402/go"
"github.com/x402-foundation/x402/go/mechanisms/cardano"
"github.com/x402-foundation/x402/go/types"
x402 "github.com/x402-foundation/x402/go/v2"
"github.com/x402-foundation/x402/go/v2/mechanisms/cardano"
"github.com/x402-foundation/x402/go/v2/types"
)

func TestSchemeID(t *testing.T) {
Expand Down
7 changes: 4 additions & 3 deletions typescript/packages/mechanisms/cardano/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ interface CslTransactionOutputs {
}

interface CslTransactionBody {
to_bytes(): Uint8Array;
inputs(): CslTransactionInputs;
outputs(): CslTransactionOutputs;
ttl?(): unknown;
Expand Down Expand Up @@ -235,15 +236,15 @@ interface CslTransaction {
}

interface CslModule {
Transaction: { from_bytes(bytes: Uint8Array): CslTransaction };
// CSL v11/v12 only.
hash_transaction?(body: CslTransactionBody): { to_bytes(): Uint8Array };
// CSL v13+ replacement: stable body hash via FixedTransaction.
FixedTransaction?: {
new_from_body_bytes(bytes: Uint8Array): {
transaction_hash(): { to_bytes(): Uint8Array };
};
};
Transaction: { from_bytes(bytes: Uint8Array): CslTransaction };
// CSL v11/v12 only.
hash_transaction?(body: CslTransactionBody): { to_bytes(): Uint8Array };
}

/**
Expand Down
Loading