@medialane/sdk 0.60.0 → 0.62.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-DfgwOqxs.d.ts → index-CsiUiS0q.d.ts} +297 -393
- package/dist/{index-Dgw8Wl8U.d.cts → index-CyZH_h8o.d.cts} +297 -393
- package/dist/index.cjs +658 -874
- 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 +659 -875
- 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 +691 -899
- 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 +692 -900
- 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-Bx3ax9lW.d.cts → types-V6imkXvR.d.cts} +3 -20
- package/dist/{types-Bx3ax9lW.d.ts → types-V6imkXvR.d.ts} +3 -20
- package/package.json +2 -2
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-V6imkXvR.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-V6imkXvR.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). */
|
|
@@ -102,26 +102,9 @@ declare function getStarknetCoordinates(chain: Chain): StarknetCoordinates;
|
|
|
102
102
|
* (`@medialane/sdk/starknet`, `/evm`, `/solana`, `/stellar`) implements, so
|
|
103
103
|
* apps can transact against a chain-tagged asset without knowing the chain
|
|
104
104
|
* (chain-sovereignty I2/I4; platform-federation spec §2.2). `Signer` is the
|
|
105
|
-
* chain's
|
|
106
|
-
*
|
|
105
|
+
* chain's wallet/account handle (starknet.js AccountInterface, a viem wallet
|
|
106
|
+
* client, a Solana signer, a Stellar signer) — adapters fix the type.
|
|
107
107
|
*/
|
|
108
|
-
/**
|
|
109
|
-
* A chain-neutral capability port the app implements over its own wallet layer.
|
|
110
|
-
* The adapter orchestrates with only these three capabilities — it never holds a
|
|
111
|
-
* chain account or an execution provider. Confirmation lives behind `execute`
|
|
112
|
-
* (the app awaits + revert-detects the receipt before resolving), so there is no
|
|
113
|
-
* separate receipt method: a resolved `execute` means "on-chain, not reverted".
|
|
114
|
-
* `TypedData`/`Call` are the chain's native shapes (Starknet: SNIP-12 typed data
|
|
115
|
-
* and `{ contractAddress, entrypoint, calldata }`); the signature is `string[]`
|
|
116
|
-
* (Starknet felt array).
|
|
117
|
-
*/
|
|
118
|
-
interface VenueSigner<TypedData = unknown, Call = unknown> {
|
|
119
|
-
readonly address: string;
|
|
120
|
-
signTypedData(data: TypedData): Promise<string[]>;
|
|
121
|
-
execute(calls: Call[]): Promise<{
|
|
122
|
-
txHash: string;
|
|
123
|
-
}>;
|
|
124
|
-
}
|
|
125
108
|
/** A chain-tagged asset reference — the working asset identity `(chain, contract, tokenId)`. */
|
|
126
109
|
interface AssetRef {
|
|
127
110
|
chain: Chain;
|
|
@@ -193,4 +176,4 @@ interface IssuanceAdapter<Signer> {
|
|
|
193
176
|
}): Promise<AdapterTxResult>;
|
|
194
177
|
}
|
|
195
178
|
|
|
196
|
-
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
|
|
179
|
+
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 };
|
|
@@ -102,26 +102,9 @@ declare function getStarknetCoordinates(chain: Chain): StarknetCoordinates;
|
|
|
102
102
|
* (`@medialane/sdk/starknet`, `/evm`, `/solana`, `/stellar`) implements, so
|
|
103
103
|
* apps can transact against a chain-tagged asset without knowing the chain
|
|
104
104
|
* (chain-sovereignty I2/I4; platform-federation spec §2.2). `Signer` is the
|
|
105
|
-
* chain's
|
|
106
|
-
*
|
|
105
|
+
* chain's wallet/account handle (starknet.js AccountInterface, a viem wallet
|
|
106
|
+
* client, a Solana signer, a Stellar signer) — adapters fix the type.
|
|
107
107
|
*/
|
|
108
|
-
/**
|
|
109
|
-
* A chain-neutral capability port the app implements over its own wallet layer.
|
|
110
|
-
* The adapter orchestrates with only these three capabilities — it never holds a
|
|
111
|
-
* chain account or an execution provider. Confirmation lives behind `execute`
|
|
112
|
-
* (the app awaits + revert-detects the receipt before resolving), so there is no
|
|
113
|
-
* separate receipt method: a resolved `execute` means "on-chain, not reverted".
|
|
114
|
-
* `TypedData`/`Call` are the chain's native shapes (Starknet: SNIP-12 typed data
|
|
115
|
-
* and `{ contractAddress, entrypoint, calldata }`); the signature is `string[]`
|
|
116
|
-
* (Starknet felt array).
|
|
117
|
-
*/
|
|
118
|
-
interface VenueSigner<TypedData = unknown, Call = unknown> {
|
|
119
|
-
readonly address: string;
|
|
120
|
-
signTypedData(data: TypedData): Promise<string[]>;
|
|
121
|
-
execute(calls: Call[]): Promise<{
|
|
122
|
-
txHash: string;
|
|
123
|
-
}>;
|
|
124
|
-
}
|
|
125
108
|
/** A chain-tagged asset reference — the working asset identity `(chain, contract, tokenId)`. */
|
|
126
109
|
interface AssetRef {
|
|
127
110
|
chain: Chain;
|
|
@@ -193,4 +176,4 @@ interface IssuanceAdapter<Signer> {
|
|
|
193
176
|
}): Promise<AdapterTxResult>;
|
|
194
177
|
}
|
|
195
178
|
|
|
196
|
-
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
|
|
179
|
+
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medialane/sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Framework-agnostic TypeScript SDK for Medialane.io
|
|
3
|
+
"version": "0.62.0",
|
|
4
|
+
"description": "Framework-agnostic TypeScript SDK for Medialane.io \u2014 the IP marketplace on Starknet",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|