@medialane/sdk 0.56.0 → 0.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -27
- package/dist/index.cjs +10720 -9763
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9600 -31
- package/dist/index.d.ts +9600 -31
- package/dist/index.js +10705 -9729
- package/dist/index.js.map +1 -1
- package/package.json +4 -44
- package/dist/evm/index.cjs +0 -357
- package/dist/evm/index.cjs.map +0 -1
- package/dist/evm/index.d.cts +0 -613
- package/dist/evm/index.d.ts +0 -613
- package/dist/evm/index.js +0 -346
- package/dist/evm/index.js.map +0 -1
- package/dist/index-BcO6oh6E.d.ts +0 -8891
- package/dist/index-CcXuxRd-.d.cts +0 -8891
- package/dist/solana/index.cjs +0 -253
- package/dist/solana/index.cjs.map +0 -1
- package/dist/solana/index.d.cts +0 -62
- package/dist/solana/index.d.ts +0 -62
- package/dist/solana/index.js +0 -241
- package/dist/solana/index.js.map +0 -1
- package/dist/starknet/index.cjs +0 -11319
- package/dist/starknet/index.cjs.map +0 -1
- package/dist/starknet/index.d.cts +0 -4
- package/dist/starknet/index.d.ts +0 -4
- package/dist/starknet/index.js +0 -11251
- package/dist/starknet/index.js.map +0 -1
- package/dist/stellar/index.cjs +0 -165
- package/dist/stellar/index.cjs.map +0 -1
- package/dist/stellar/index.d.cts +0 -49
- package/dist/stellar/index.d.ts +0 -49
- package/dist/stellar/index.js +0 -162
- package/dist/stellar/index.js.map +0 -1
- package/dist/types-D3PWgk3x.d.cts +0 -175
- package/dist/types-D3PWgk3x.d.ts +0 -175
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
/** Mirrors the backend Prisma `Chain` enum. */
|
|
2
|
-
declare const CHAINS: readonly ["STARKNET", "ETHEREUM", "SOLANA", "BASE", "STELLAR", "BITCOIN"];
|
|
3
|
-
type Chain = (typeof CHAINS)[number];
|
|
4
|
-
/** Starknet coordinates of Medialane services + venues. All fields optional
|
|
5
|
-
* because not every service exists on every chain. */
|
|
6
|
-
interface StarknetCoordinates {
|
|
7
|
-
rpcUrl: string;
|
|
8
|
-
marketplace721?: `0x${string}`;
|
|
9
|
-
marketplace721ClassHash?: `0x${string}`;
|
|
10
|
-
marketplace721StartBlock?: number;
|
|
11
|
-
marketplace1155?: `0x${string}`;
|
|
12
|
-
marketplace1155ClassHash?: `0x${string}`;
|
|
13
|
-
marketplace1155StartBlock?: number;
|
|
14
|
-
collection721?: `0x${string}`;
|
|
15
|
-
collection721StartBlock?: number;
|
|
16
|
-
ipNftClassHash?: `0x${string}`;
|
|
17
|
-
ipCollectionClassHash?: `0x${string}`;
|
|
18
|
-
collection1155?: `0x${string}`;
|
|
19
|
-
collection1155FactoryClassHash?: `0x${string}`;
|
|
20
|
-
collection1155ClassHash?: `0x${string}`;
|
|
21
|
-
collection1155StartBlock?: number;
|
|
22
|
-
popFactory?: `0x${string}`;
|
|
23
|
-
popCollectionClassHash?: `0x${string}`;
|
|
24
|
-
dropFactory?: `0x${string}`;
|
|
25
|
-
dropCollectionClassHash?: `0x${string}`;
|
|
26
|
-
nftComments?: `0x${string}`;
|
|
27
|
-
creatorCoinFactory?: `0x${string}`;
|
|
28
|
-
creatorCoinEkuboLauncher?: `0x${string}`;
|
|
29
|
-
creatorCoinClassHash?: `0x${string}`;
|
|
30
|
-
creatorCoinFactoryClassHash?: `0x${string}`;
|
|
31
|
-
creatorCoinStartBlock?: number;
|
|
32
|
-
ekuboCore?: `0x${string}`;
|
|
33
|
-
ipTicketsFactory?: `0x${string}`;
|
|
34
|
-
ipTicketCollectionClassHash?: `0x${string}`;
|
|
35
|
-
ipTicketsStartBlock?: number;
|
|
36
|
-
ipClubRegistry?: `0x${string}`;
|
|
37
|
-
ipClubNftClassHash?: `0x${string}`;
|
|
38
|
-
ipClubStartBlock?: number;
|
|
39
|
-
ipSponsorship?: `0x${string}`;
|
|
40
|
-
ipSponsorshipStartBlock?: number;
|
|
41
|
-
ipSponsorshipLicense?: `0x${string}`;
|
|
42
|
-
}
|
|
43
|
-
/** Coordinates per chain. Only STARKNET is populated today; adding a chain
|
|
44
|
-
* means adding an entry here (litmus test, spec §7). */
|
|
45
|
-
/** EVM coordinates — one shape for Ethereum and Base (same bytecode, two
|
|
46
|
-
* chains). Populated at deploy time (federation Phase 4). */
|
|
47
|
-
interface EvmCoordinates {
|
|
48
|
-
rpcUrl: string;
|
|
49
|
-
marketplace721?: `0x${string}`;
|
|
50
|
-
marketplace721StartBlock?: number;
|
|
51
|
-
marketplace1155?: `0x${string}`;
|
|
52
|
-
marketplace1155StartBlock?: number;
|
|
53
|
-
mipRegistry?: `0x${string}`;
|
|
54
|
-
mipRegistryStartBlock?: number;
|
|
55
|
-
mipEditionsRegistry?: `0x${string}`;
|
|
56
|
-
mipEditionsRegistryStartBlock?: number;
|
|
57
|
-
}
|
|
58
|
-
/** Solana coordinates — base58 program ids. Populated at deploy time. */
|
|
59
|
-
interface SolanaCoordinates {
|
|
60
|
-
rpcUrl: string;
|
|
61
|
-
mipCollectionsProgram?: string;
|
|
62
|
-
marketplaceProgram?: string;
|
|
63
|
-
startSlot?: number;
|
|
64
|
-
}
|
|
65
|
-
/** Stellar (Soroban) coordinates — strkey contract ids. Populated at deploy
|
|
66
|
-
* time; the registry takes the collection WASM hash as a constructor arg. */
|
|
67
|
-
interface StellarCoordinates {
|
|
68
|
-
rpcUrl: string;
|
|
69
|
-
mipRegistry?: string;
|
|
70
|
-
marketplace?: string;
|
|
71
|
-
collectionWasmHash?: string;
|
|
72
|
-
startLedger?: number;
|
|
73
|
-
}
|
|
74
|
-
/** Per-chain coordinate shapes. Every chain is an equal entry — no chain is
|
|
75
|
-
* privileged in core (chain-sovereignty I2/I4). */
|
|
76
|
-
interface CoordinatesByChain {
|
|
77
|
-
STARKNET?: StarknetCoordinates;
|
|
78
|
-
ETHEREUM?: EvmCoordinates;
|
|
79
|
-
BASE?: EvmCoordinates;
|
|
80
|
-
SOLANA?: SolanaCoordinates;
|
|
81
|
-
STELLAR?: StellarCoordinates;
|
|
82
|
-
BITCOIN?: never;
|
|
83
|
-
}
|
|
84
|
-
/** @deprecated Renamed — use `StarknetCoordinates` (coordinates are per-chain-shaped). */
|
|
85
|
-
type ChainCoordinates = StarknetCoordinates;
|
|
86
|
-
declare function getCoordinates(chain: "STARKNET"): StarknetCoordinates;
|
|
87
|
-
declare function getCoordinates(chain: "ETHEREUM" | "BASE"): EvmCoordinates;
|
|
88
|
-
declare function getCoordinates(chain: "SOLANA"): SolanaCoordinates;
|
|
89
|
-
declare function getCoordinates(chain: "STELLAR"): StellarCoordinates;
|
|
90
|
-
declare function getCoordinates(chain: Chain): StarknetCoordinates | EvmCoordinates | SolanaCoordinates | StellarCoordinates;
|
|
91
|
-
declare const DEFAULT_CHAIN: Chain;
|
|
92
|
-
/** Typed Starknet coordinates for Starknet-only modules; throws when the
|
|
93
|
-
* client is scoped to another chain. */
|
|
94
|
-
declare function getStarknetCoordinates(chain: Chain): StarknetCoordinates;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Chain-neutral adapter interfaces — the target surface every chain adapter
|
|
98
|
-
* (`@medialane/sdk/starknet`, `/evm`, `/solana`, `/stellar`) implements, so
|
|
99
|
-
* apps can transact against a chain-tagged asset without knowing the chain
|
|
100
|
-
* (chain-sovereignty I2/I4; platform-federation spec §2.2). `Signer` is the
|
|
101
|
-
* chain's wallet/account handle (starknet.js AccountInterface, a viem wallet
|
|
102
|
-
* client, a Solana signer, a Stellar signer) — adapters fix the type.
|
|
103
|
-
*/
|
|
104
|
-
/** A chain-tagged asset reference — the working asset identity `(chain, contract, tokenId)`. */
|
|
105
|
-
interface AssetRef {
|
|
106
|
-
chain: Chain;
|
|
107
|
-
contract: string;
|
|
108
|
-
tokenId: string;
|
|
109
|
-
}
|
|
110
|
-
/** Canonical order identity per chain (platform-federation spec §3.2b):
|
|
111
|
-
* Starknet/EVM = the typed-data digest; Solana = the order PDA address;
|
|
112
|
-
* Stellar = a stable digest of (contract, offerer, salt). */
|
|
113
|
-
type OrderRef = string;
|
|
114
|
-
interface RegisterOrderParams {
|
|
115
|
-
asset: AssetRef;
|
|
116
|
-
/** "listing" offers the asset; "bid" offers payment. */
|
|
117
|
-
side: "listing" | "bid";
|
|
118
|
-
/** Payment token in the chain's canonical address form; adapters define the
|
|
119
|
-
* native-currency sentinel where the chain has one. */
|
|
120
|
-
paymentToken: string;
|
|
121
|
-
/** Per-unit price in base units, as a decimal string. For single-item (721)
|
|
122
|
-
* orders this is the whole price; for multi-unit (1155) orders it is the price
|
|
123
|
-
* per unit and the total is `amount × quantity`. */
|
|
124
|
-
amount: string;
|
|
125
|
-
/** Units offered — 1155 only; defaults to "1" (and is inert for 721). */
|
|
126
|
-
quantity?: string;
|
|
127
|
-
royaltyMaxBps: number;
|
|
128
|
-
startTime: number;
|
|
129
|
-
/** 0 = no expiry. */
|
|
130
|
-
endTime: number;
|
|
131
|
-
salt: string;
|
|
132
|
-
}
|
|
133
|
-
interface AdapterTxResult {
|
|
134
|
-
txHash: string;
|
|
135
|
-
}
|
|
136
|
-
interface VenueAdapter<Signer> {
|
|
137
|
-
readonly chain: Chain;
|
|
138
|
-
registerOrder(signer: Signer, params: RegisterOrderParams): Promise<AdapterTxResult & {
|
|
139
|
-
orderRef: OrderRef;
|
|
140
|
-
}>;
|
|
141
|
-
fulfillOrder(signer: Signer, orderRef: OrderRef, opts?: {
|
|
142
|
-
quantity?: string;
|
|
143
|
-
} & Record<string, string | undefined>): Promise<AdapterTxResult>;
|
|
144
|
-
cancelOrder(signer: Signer, orderRef: OrderRef, opts?: Record<string, string | undefined>): Promise<AdapterTxResult>;
|
|
145
|
-
incrementCounter(signer: Signer): Promise<AdapterTxResult>;
|
|
146
|
-
getOrderDetails(orderRef: OrderRef): Promise<unknown>;
|
|
147
|
-
getCounter(address: string): Promise<bigint>;
|
|
148
|
-
}
|
|
149
|
-
interface CreateCollectionInput {
|
|
150
|
-
name: string;
|
|
151
|
-
symbol: string;
|
|
152
|
-
baseUri: string;
|
|
153
|
-
royaltyBps: number;
|
|
154
|
-
}
|
|
155
|
-
interface MintInput {
|
|
156
|
-
collection: string;
|
|
157
|
-
recipient: string;
|
|
158
|
-
tokenUri: string;
|
|
159
|
-
}
|
|
160
|
-
interface IssuanceAdapter<Signer> {
|
|
161
|
-
readonly chain: Chain;
|
|
162
|
-
createCollection(signer: Signer, params: CreateCollectionInput): Promise<AdapterTxResult & {
|
|
163
|
-
collection: string;
|
|
164
|
-
}>;
|
|
165
|
-
mint(signer: Signer, params: MintInput): Promise<AdapterTxResult & {
|
|
166
|
-
tokenId: string;
|
|
167
|
-
}>;
|
|
168
|
-
batchMint(signer: Signer, params: {
|
|
169
|
-
collection: string;
|
|
170
|
-
recipients: string[];
|
|
171
|
-
tokenUris: string[];
|
|
172
|
-
}): Promise<AdapterTxResult>;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export { type AdapterTxResult as A, type Chain as C, DEFAULT_CHAIN as D, type EvmCoordinates as E, type IssuanceAdapter as I, type MintInput as M, type OrderRef as O, type RegisterOrderParams as R, type SolanaCoordinates as S, type VenueAdapter as V, type CreateCollectionInput as a, type AssetRef as b, CHAINS as c, type ChainCoordinates as d, type CoordinatesByChain as e, type StarknetCoordinates as f, type StellarCoordinates as g, getCoordinates as h, getStarknetCoordinates as i };
|
package/dist/types-D3PWgk3x.d.ts
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
/** Mirrors the backend Prisma `Chain` enum. */
|
|
2
|
-
declare const CHAINS: readonly ["STARKNET", "ETHEREUM", "SOLANA", "BASE", "STELLAR", "BITCOIN"];
|
|
3
|
-
type Chain = (typeof CHAINS)[number];
|
|
4
|
-
/** Starknet coordinates of Medialane services + venues. All fields optional
|
|
5
|
-
* because not every service exists on every chain. */
|
|
6
|
-
interface StarknetCoordinates {
|
|
7
|
-
rpcUrl: string;
|
|
8
|
-
marketplace721?: `0x${string}`;
|
|
9
|
-
marketplace721ClassHash?: `0x${string}`;
|
|
10
|
-
marketplace721StartBlock?: number;
|
|
11
|
-
marketplace1155?: `0x${string}`;
|
|
12
|
-
marketplace1155ClassHash?: `0x${string}`;
|
|
13
|
-
marketplace1155StartBlock?: number;
|
|
14
|
-
collection721?: `0x${string}`;
|
|
15
|
-
collection721StartBlock?: number;
|
|
16
|
-
ipNftClassHash?: `0x${string}`;
|
|
17
|
-
ipCollectionClassHash?: `0x${string}`;
|
|
18
|
-
collection1155?: `0x${string}`;
|
|
19
|
-
collection1155FactoryClassHash?: `0x${string}`;
|
|
20
|
-
collection1155ClassHash?: `0x${string}`;
|
|
21
|
-
collection1155StartBlock?: number;
|
|
22
|
-
popFactory?: `0x${string}`;
|
|
23
|
-
popCollectionClassHash?: `0x${string}`;
|
|
24
|
-
dropFactory?: `0x${string}`;
|
|
25
|
-
dropCollectionClassHash?: `0x${string}`;
|
|
26
|
-
nftComments?: `0x${string}`;
|
|
27
|
-
creatorCoinFactory?: `0x${string}`;
|
|
28
|
-
creatorCoinEkuboLauncher?: `0x${string}`;
|
|
29
|
-
creatorCoinClassHash?: `0x${string}`;
|
|
30
|
-
creatorCoinFactoryClassHash?: `0x${string}`;
|
|
31
|
-
creatorCoinStartBlock?: number;
|
|
32
|
-
ekuboCore?: `0x${string}`;
|
|
33
|
-
ipTicketsFactory?: `0x${string}`;
|
|
34
|
-
ipTicketCollectionClassHash?: `0x${string}`;
|
|
35
|
-
ipTicketsStartBlock?: number;
|
|
36
|
-
ipClubRegistry?: `0x${string}`;
|
|
37
|
-
ipClubNftClassHash?: `0x${string}`;
|
|
38
|
-
ipClubStartBlock?: number;
|
|
39
|
-
ipSponsorship?: `0x${string}`;
|
|
40
|
-
ipSponsorshipStartBlock?: number;
|
|
41
|
-
ipSponsorshipLicense?: `0x${string}`;
|
|
42
|
-
}
|
|
43
|
-
/** Coordinates per chain. Only STARKNET is populated today; adding a chain
|
|
44
|
-
* means adding an entry here (litmus test, spec §7). */
|
|
45
|
-
/** EVM coordinates — one shape for Ethereum and Base (same bytecode, two
|
|
46
|
-
* chains). Populated at deploy time (federation Phase 4). */
|
|
47
|
-
interface EvmCoordinates {
|
|
48
|
-
rpcUrl: string;
|
|
49
|
-
marketplace721?: `0x${string}`;
|
|
50
|
-
marketplace721StartBlock?: number;
|
|
51
|
-
marketplace1155?: `0x${string}`;
|
|
52
|
-
marketplace1155StartBlock?: number;
|
|
53
|
-
mipRegistry?: `0x${string}`;
|
|
54
|
-
mipRegistryStartBlock?: number;
|
|
55
|
-
mipEditionsRegistry?: `0x${string}`;
|
|
56
|
-
mipEditionsRegistryStartBlock?: number;
|
|
57
|
-
}
|
|
58
|
-
/** Solana coordinates — base58 program ids. Populated at deploy time. */
|
|
59
|
-
interface SolanaCoordinates {
|
|
60
|
-
rpcUrl: string;
|
|
61
|
-
mipCollectionsProgram?: string;
|
|
62
|
-
marketplaceProgram?: string;
|
|
63
|
-
startSlot?: number;
|
|
64
|
-
}
|
|
65
|
-
/** Stellar (Soroban) coordinates — strkey contract ids. Populated at deploy
|
|
66
|
-
* time; the registry takes the collection WASM hash as a constructor arg. */
|
|
67
|
-
interface StellarCoordinates {
|
|
68
|
-
rpcUrl: string;
|
|
69
|
-
mipRegistry?: string;
|
|
70
|
-
marketplace?: string;
|
|
71
|
-
collectionWasmHash?: string;
|
|
72
|
-
startLedger?: number;
|
|
73
|
-
}
|
|
74
|
-
/** Per-chain coordinate shapes. Every chain is an equal entry — no chain is
|
|
75
|
-
* privileged in core (chain-sovereignty I2/I4). */
|
|
76
|
-
interface CoordinatesByChain {
|
|
77
|
-
STARKNET?: StarknetCoordinates;
|
|
78
|
-
ETHEREUM?: EvmCoordinates;
|
|
79
|
-
BASE?: EvmCoordinates;
|
|
80
|
-
SOLANA?: SolanaCoordinates;
|
|
81
|
-
STELLAR?: StellarCoordinates;
|
|
82
|
-
BITCOIN?: never;
|
|
83
|
-
}
|
|
84
|
-
/** @deprecated Renamed — use `StarknetCoordinates` (coordinates are per-chain-shaped). */
|
|
85
|
-
type ChainCoordinates = StarknetCoordinates;
|
|
86
|
-
declare function getCoordinates(chain: "STARKNET"): StarknetCoordinates;
|
|
87
|
-
declare function getCoordinates(chain: "ETHEREUM" | "BASE"): EvmCoordinates;
|
|
88
|
-
declare function getCoordinates(chain: "SOLANA"): SolanaCoordinates;
|
|
89
|
-
declare function getCoordinates(chain: "STELLAR"): StellarCoordinates;
|
|
90
|
-
declare function getCoordinates(chain: Chain): StarknetCoordinates | EvmCoordinates | SolanaCoordinates | StellarCoordinates;
|
|
91
|
-
declare const DEFAULT_CHAIN: Chain;
|
|
92
|
-
/** Typed Starknet coordinates for Starknet-only modules; throws when the
|
|
93
|
-
* client is scoped to another chain. */
|
|
94
|
-
declare function getStarknetCoordinates(chain: Chain): StarknetCoordinates;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Chain-neutral adapter interfaces — the target surface every chain adapter
|
|
98
|
-
* (`@medialane/sdk/starknet`, `/evm`, `/solana`, `/stellar`) implements, so
|
|
99
|
-
* apps can transact against a chain-tagged asset without knowing the chain
|
|
100
|
-
* (chain-sovereignty I2/I4; platform-federation spec §2.2). `Signer` is the
|
|
101
|
-
* chain's wallet/account handle (starknet.js AccountInterface, a viem wallet
|
|
102
|
-
* client, a Solana signer, a Stellar signer) — adapters fix the type.
|
|
103
|
-
*/
|
|
104
|
-
/** A chain-tagged asset reference — the working asset identity `(chain, contract, tokenId)`. */
|
|
105
|
-
interface AssetRef {
|
|
106
|
-
chain: Chain;
|
|
107
|
-
contract: string;
|
|
108
|
-
tokenId: string;
|
|
109
|
-
}
|
|
110
|
-
/** Canonical order identity per chain (platform-federation spec §3.2b):
|
|
111
|
-
* Starknet/EVM = the typed-data digest; Solana = the order PDA address;
|
|
112
|
-
* Stellar = a stable digest of (contract, offerer, salt). */
|
|
113
|
-
type OrderRef = string;
|
|
114
|
-
interface RegisterOrderParams {
|
|
115
|
-
asset: AssetRef;
|
|
116
|
-
/** "listing" offers the asset; "bid" offers payment. */
|
|
117
|
-
side: "listing" | "bid";
|
|
118
|
-
/** Payment token in the chain's canonical address form; adapters define the
|
|
119
|
-
* native-currency sentinel where the chain has one. */
|
|
120
|
-
paymentToken: string;
|
|
121
|
-
/** Per-unit price in base units, as a decimal string. For single-item (721)
|
|
122
|
-
* orders this is the whole price; for multi-unit (1155) orders it is the price
|
|
123
|
-
* per unit and the total is `amount × quantity`. */
|
|
124
|
-
amount: string;
|
|
125
|
-
/** Units offered — 1155 only; defaults to "1" (and is inert for 721). */
|
|
126
|
-
quantity?: string;
|
|
127
|
-
royaltyMaxBps: number;
|
|
128
|
-
startTime: number;
|
|
129
|
-
/** 0 = no expiry. */
|
|
130
|
-
endTime: number;
|
|
131
|
-
salt: string;
|
|
132
|
-
}
|
|
133
|
-
interface AdapterTxResult {
|
|
134
|
-
txHash: string;
|
|
135
|
-
}
|
|
136
|
-
interface VenueAdapter<Signer> {
|
|
137
|
-
readonly chain: Chain;
|
|
138
|
-
registerOrder(signer: Signer, params: RegisterOrderParams): Promise<AdapterTxResult & {
|
|
139
|
-
orderRef: OrderRef;
|
|
140
|
-
}>;
|
|
141
|
-
fulfillOrder(signer: Signer, orderRef: OrderRef, opts?: {
|
|
142
|
-
quantity?: string;
|
|
143
|
-
} & Record<string, string | undefined>): Promise<AdapterTxResult>;
|
|
144
|
-
cancelOrder(signer: Signer, orderRef: OrderRef, opts?: Record<string, string | undefined>): Promise<AdapterTxResult>;
|
|
145
|
-
incrementCounter(signer: Signer): Promise<AdapterTxResult>;
|
|
146
|
-
getOrderDetails(orderRef: OrderRef): Promise<unknown>;
|
|
147
|
-
getCounter(address: string): Promise<bigint>;
|
|
148
|
-
}
|
|
149
|
-
interface CreateCollectionInput {
|
|
150
|
-
name: string;
|
|
151
|
-
symbol: string;
|
|
152
|
-
baseUri: string;
|
|
153
|
-
royaltyBps: number;
|
|
154
|
-
}
|
|
155
|
-
interface MintInput {
|
|
156
|
-
collection: string;
|
|
157
|
-
recipient: string;
|
|
158
|
-
tokenUri: string;
|
|
159
|
-
}
|
|
160
|
-
interface IssuanceAdapter<Signer> {
|
|
161
|
-
readonly chain: Chain;
|
|
162
|
-
createCollection(signer: Signer, params: CreateCollectionInput): Promise<AdapterTxResult & {
|
|
163
|
-
collection: string;
|
|
164
|
-
}>;
|
|
165
|
-
mint(signer: Signer, params: MintInput): Promise<AdapterTxResult & {
|
|
166
|
-
tokenId: string;
|
|
167
|
-
}>;
|
|
168
|
-
batchMint(signer: Signer, params: {
|
|
169
|
-
collection: string;
|
|
170
|
-
recipients: string[];
|
|
171
|
-
tokenUris: string[];
|
|
172
|
-
}): Promise<AdapterTxResult>;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export { type AdapterTxResult as A, type Chain as C, DEFAULT_CHAIN as D, type EvmCoordinates as E, type IssuanceAdapter as I, type MintInput as M, type OrderRef as O, type RegisterOrderParams as R, type SolanaCoordinates as S, type VenueAdapter as V, type CreateCollectionInput as a, type AssetRef as b, CHAINS as c, type ChainCoordinates as d, type CoordinatesByChain as e, type StarknetCoordinates as f, type StellarCoordinates as g, getCoordinates as h, getStarknetCoordinates as i };
|