@medialane/sdk 0.55.0 → 0.57.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/dist/evm/index.d.cts +1 -1
- package/dist/evm/index.d.ts +1 -1
- package/dist/{index-Dq4AXt2m.d.ts → index-Bv81mkG7.d.ts} +28 -16
- package/dist/{index-uBEA-1JF.d.cts → index-q-f4hxV5.d.cts} +28 -16
- package/dist/index.cjs +406 -314
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +407 -315
- package/dist/index.js.map +1 -1
- package/dist/solana/index.d.cts +1 -1
- package/dist/solana/index.d.ts +1 -1
- package/dist/starknet/index.cjs +425 -341
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +3 -3
- package/dist/starknet/index.d.ts +3 -3
- package/dist/starknet/index.js +426 -342
- package/dist/starknet/index.js.map +1 -1
- package/dist/stellar/index.d.cts +1 -1
- package/dist/stellar/index.d.ts +1 -1
- package/dist/{types-D3PWgk3x.d.cts → types-DNJNR50M.d.cts} +20 -3
- package/dist/{types-D3PWgk3x.d.ts → types-DNJNR50M.d.ts} +20 -3
- package/package.json +1 -1
package/dist/stellar/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { rpc } from '@stellar/stellar-sdk';
|
|
2
|
-
import { V as VenueAdapter, C as Chain, R as RegisterOrderParams, A as AdapterTxResult, O as OrderRef } from '../types-
|
|
2
|
+
import { V as VenueAdapter, C as Chain, R as RegisterOrderParams, A as AdapterTxResult, O as OrderRef } from '../types-DNJNR50M.cjs';
|
|
3
3
|
|
|
4
4
|
/** Signer shape: the account's public key + a transaction signer (a wallet
|
|
5
5
|
* kit or a Keypair-backed callback). */
|
package/dist/stellar/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { rpc } from '@stellar/stellar-sdk';
|
|
2
|
-
import { V as VenueAdapter, C as Chain, R as RegisterOrderParams, A as AdapterTxResult, O as OrderRef } from '../types-
|
|
2
|
+
import { V as VenueAdapter, C as Chain, R as RegisterOrderParams, A as AdapterTxResult, O as OrderRef } from '../types-DNJNR50M.js';
|
|
3
3
|
|
|
4
4
|
/** Signer shape: the account's public key + a transaction signer (a wallet
|
|
5
5
|
* kit or a Keypair-backed callback). */
|
|
@@ -98,9 +98,26 @@ declare function getStarknetCoordinates(chain: Chain): StarknetCoordinates;
|
|
|
98
98
|
* (`@medialane/sdk/starknet`, `/evm`, `/solana`, `/stellar`) implements, so
|
|
99
99
|
* apps can transact against a chain-tagged asset without knowing the chain
|
|
100
100
|
* (chain-sovereignty I2/I4; platform-federation spec §2.2). `Signer` is the
|
|
101
|
-
* chain's
|
|
102
|
-
*
|
|
101
|
+
* chain's `VenueSigner` capability port (see {@link VenueSigner}), not a raw
|
|
102
|
+
* account — the app implements it over its own wallet layer.
|
|
103
103
|
*/
|
|
104
|
+
/**
|
|
105
|
+
* A chain-neutral capability port the app implements over its own wallet layer.
|
|
106
|
+
* The adapter orchestrates with only these three capabilities — it never holds a
|
|
107
|
+
* chain account or an execution provider. Confirmation lives behind `execute`
|
|
108
|
+
* (the app awaits + revert-detects the receipt before resolving), so there is no
|
|
109
|
+
* separate receipt method: a resolved `execute` means "on-chain, not reverted".
|
|
110
|
+
* `TypedData`/`Call` are the chain's native shapes (Starknet: SNIP-12 typed data
|
|
111
|
+
* and `{ contractAddress, entrypoint, calldata }`); the signature is `string[]`
|
|
112
|
+
* (Starknet felt array).
|
|
113
|
+
*/
|
|
114
|
+
interface VenueSigner<TypedData = unknown, Call = unknown> {
|
|
115
|
+
readonly address: string;
|
|
116
|
+
signTypedData(data: TypedData): Promise<string[]>;
|
|
117
|
+
execute(calls: Call[]): Promise<{
|
|
118
|
+
txHash: string;
|
|
119
|
+
}>;
|
|
120
|
+
}
|
|
104
121
|
/** A chain-tagged asset reference — the working asset identity `(chain, contract, tokenId)`. */
|
|
105
122
|
interface AssetRef {
|
|
106
123
|
chain: Chain;
|
|
@@ -172,4 +189,4 @@ interface IssuanceAdapter<Signer> {
|
|
|
172
189
|
}): Promise<AdapterTxResult>;
|
|
173
190
|
}
|
|
174
191
|
|
|
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
|
|
192
|
+
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 AssetRef as a, CHAINS as b, type ChainCoordinates as c, type CoordinatesByChain as d, type CreateCollectionInput as e, type StarknetCoordinates as f, type StellarCoordinates as g, type VenueSigner as h, getCoordinates as i, getStarknetCoordinates as j };
|
|
@@ -98,9 +98,26 @@ declare function getStarknetCoordinates(chain: Chain): StarknetCoordinates;
|
|
|
98
98
|
* (`@medialane/sdk/starknet`, `/evm`, `/solana`, `/stellar`) implements, so
|
|
99
99
|
* apps can transact against a chain-tagged asset without knowing the chain
|
|
100
100
|
* (chain-sovereignty I2/I4; platform-federation spec §2.2). `Signer` is the
|
|
101
|
-
* chain's
|
|
102
|
-
*
|
|
101
|
+
* chain's `VenueSigner` capability port (see {@link VenueSigner}), not a raw
|
|
102
|
+
* account — the app implements it over its own wallet layer.
|
|
103
103
|
*/
|
|
104
|
+
/**
|
|
105
|
+
* A chain-neutral capability port the app implements over its own wallet layer.
|
|
106
|
+
* The adapter orchestrates with only these three capabilities — it never holds a
|
|
107
|
+
* chain account or an execution provider. Confirmation lives behind `execute`
|
|
108
|
+
* (the app awaits + revert-detects the receipt before resolving), so there is no
|
|
109
|
+
* separate receipt method: a resolved `execute` means "on-chain, not reverted".
|
|
110
|
+
* `TypedData`/`Call` are the chain's native shapes (Starknet: SNIP-12 typed data
|
|
111
|
+
* and `{ contractAddress, entrypoint, calldata }`); the signature is `string[]`
|
|
112
|
+
* (Starknet felt array).
|
|
113
|
+
*/
|
|
114
|
+
interface VenueSigner<TypedData = unknown, Call = unknown> {
|
|
115
|
+
readonly address: string;
|
|
116
|
+
signTypedData(data: TypedData): Promise<string[]>;
|
|
117
|
+
execute(calls: Call[]): Promise<{
|
|
118
|
+
txHash: string;
|
|
119
|
+
}>;
|
|
120
|
+
}
|
|
104
121
|
/** A chain-tagged asset reference — the working asset identity `(chain, contract, tokenId)`. */
|
|
105
122
|
interface AssetRef {
|
|
106
123
|
chain: Chain;
|
|
@@ -172,4 +189,4 @@ interface IssuanceAdapter<Signer> {
|
|
|
172
189
|
}): Promise<AdapterTxResult>;
|
|
173
190
|
}
|
|
174
191
|
|
|
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
|
|
192
|
+
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 AssetRef as a, CHAINS as b, type ChainCoordinates as c, type CoordinatesByChain as d, type CreateCollectionInput as e, type StarknetCoordinates as f, type StellarCoordinates as g, type VenueSigner as h, getCoordinates as i, getStarknetCoordinates as j };
|