@medialane/sdk 0.42.0 → 0.43.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/index.cjs +24 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +61 -56
- package/dist/index.d.ts +61 -56
- package/dist/index.js +24 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -8,31 +8,31 @@ type Chain = (typeof CHAINS)[number];
|
|
|
8
8
|
* optional because not every service exists on every chain. */
|
|
9
9
|
interface ChainCoordinates {
|
|
10
10
|
rpcUrl: string;
|
|
11
|
-
marketplace721?: string
|
|
12
|
-
marketplace721ClassHash?: string
|
|
11
|
+
marketplace721?: `0x${string}`;
|
|
12
|
+
marketplace721ClassHash?: `0x${string}`;
|
|
13
13
|
marketplace721StartBlock?: number;
|
|
14
|
-
marketplace1155?: string
|
|
15
|
-
marketplace1155ClassHash?: string
|
|
14
|
+
marketplace1155?: `0x${string}`;
|
|
15
|
+
marketplace1155ClassHash?: `0x${string}`;
|
|
16
16
|
marketplace1155StartBlock?: number;
|
|
17
|
-
collection721?: string
|
|
17
|
+
collection721?: `0x${string}`;
|
|
18
18
|
collection721StartBlock?: number;
|
|
19
|
-
ipNftClassHash?: string
|
|
20
|
-
ipCollectionClassHash?: string
|
|
21
|
-
collection1155?: string
|
|
22
|
-
collection1155FactoryClassHash?: string
|
|
23
|
-
collection1155ClassHash?: string
|
|
19
|
+
ipNftClassHash?: `0x${string}`;
|
|
20
|
+
ipCollectionClassHash?: `0x${string}`;
|
|
21
|
+
collection1155?: `0x${string}`;
|
|
22
|
+
collection1155FactoryClassHash?: `0x${string}`;
|
|
23
|
+
collection1155ClassHash?: `0x${string}`;
|
|
24
24
|
collection1155StartBlock?: number;
|
|
25
|
-
popFactory?: string
|
|
26
|
-
popCollectionClassHash?: string
|
|
27
|
-
dropFactory?: string
|
|
28
|
-
dropCollectionClassHash?: string
|
|
29
|
-
nftComments?: string
|
|
30
|
-
creatorCoinFactory?: string
|
|
31
|
-
creatorCoinEkuboLauncher?: string
|
|
32
|
-
creatorCoinClassHash?: string
|
|
33
|
-
creatorCoinFactoryClassHash?: string
|
|
25
|
+
popFactory?: `0x${string}`;
|
|
26
|
+
popCollectionClassHash?: `0x${string}`;
|
|
27
|
+
dropFactory?: `0x${string}`;
|
|
28
|
+
dropCollectionClassHash?: `0x${string}`;
|
|
29
|
+
nftComments?: `0x${string}`;
|
|
30
|
+
creatorCoinFactory?: `0x${string}`;
|
|
31
|
+
creatorCoinEkuboLauncher?: `0x${string}`;
|
|
32
|
+
creatorCoinClassHash?: `0x${string}`;
|
|
33
|
+
creatorCoinFactoryClassHash?: `0x${string}`;
|
|
34
34
|
creatorCoinStartBlock?: number;
|
|
35
|
-
ekuboCore?: string
|
|
35
|
+
ekuboCore?: `0x${string}`;
|
|
36
36
|
}
|
|
37
37
|
declare function getCoordinates(chain: Chain): ChainCoordinates;
|
|
38
38
|
declare const DEFAULT_CHAIN: Chain;
|
|
@@ -287,6 +287,8 @@ interface OrderDetails {
|
|
|
287
287
|
start_time: bigint;
|
|
288
288
|
end_time: bigint;
|
|
289
289
|
order_status: string;
|
|
290
|
+
/** The offerer's bulk-cancel epoch at registration; re-checked at fulfilment. */
|
|
291
|
+
counter: string;
|
|
290
292
|
/** ERC-1155 only — units still available. */
|
|
291
293
|
remaining_amount?: string;
|
|
292
294
|
}
|
|
@@ -1857,31 +1859,31 @@ interface ParsedAdminHeaders {
|
|
|
1857
1859
|
/** Parse + shape-check the headers on the backend. Returns null if malformed. */
|
|
1858
1860
|
declare function parseAdminHeaders(get: (name: string) => string | null | undefined): ParsedAdminHeaders | null;
|
|
1859
1861
|
|
|
1860
|
-
declare const STARKNET_MARKETPLACE_721_CONTRACT: string
|
|
1861
|
-
declare const STARKNET_MARKETPLACE_721_CLASS_HASH: string
|
|
1862
|
+
declare const STARKNET_MARKETPLACE_721_CONTRACT: `0x${string}`;
|
|
1863
|
+
declare const STARKNET_MARKETPLACE_721_CLASS_HASH: `0x${string}`;
|
|
1862
1864
|
declare const STARKNET_MARKETPLACE_721_START_BLOCK: number;
|
|
1863
|
-
declare const STARKNET_MARKETPLACE_1155_CONTRACT: string
|
|
1864
|
-
declare const STARKNET_MARKETPLACE_1155_CLASS_HASH: string
|
|
1865
|
+
declare const STARKNET_MARKETPLACE_1155_CONTRACT: `0x${string}`;
|
|
1866
|
+
declare const STARKNET_MARKETPLACE_1155_CLASS_HASH: `0x${string}`;
|
|
1865
1867
|
declare const STARKNET_MARKETPLACE_1155_START_BLOCK: number;
|
|
1866
|
-
declare const STARKNET_COLLECTION_721_CONTRACT: string
|
|
1868
|
+
declare const STARKNET_COLLECTION_721_CONTRACT: `0x${string}`;
|
|
1867
1869
|
declare const STARKNET_COLLECTION_721_START_BLOCK: number;
|
|
1868
|
-
declare const STARKNET_IPNFT_CLASS_HASH: string
|
|
1869
|
-
declare const STARKNET_IPCOLLECTION_CLASS_HASH: string
|
|
1870
|
-
declare const STARKNET_COLLECTION_1155_CONTRACT: string
|
|
1871
|
-
declare const STARKNET_COLLECTION_1155_FACTORY_CLASS_HASH: string
|
|
1872
|
-
declare const STARKNET_COLLECTION_1155_CLASS_HASH: string
|
|
1870
|
+
declare const STARKNET_IPNFT_CLASS_HASH: `0x${string}`;
|
|
1871
|
+
declare const STARKNET_IPCOLLECTION_CLASS_HASH: `0x${string}`;
|
|
1872
|
+
declare const STARKNET_COLLECTION_1155_CONTRACT: `0x${string}`;
|
|
1873
|
+
declare const STARKNET_COLLECTION_1155_FACTORY_CLASS_HASH: `0x${string}`;
|
|
1874
|
+
declare const STARKNET_COLLECTION_1155_CLASS_HASH: `0x${string}`;
|
|
1873
1875
|
declare const STARKNET_COLLECTION_1155_START_BLOCK: number;
|
|
1874
|
-
declare const STARKNET_POP_FACTORY_CONTRACT: string
|
|
1875
|
-
declare const STARKNET_POP_COLLECTION_CLASS_HASH: string
|
|
1876
|
-
declare const STARKNET_DROP_FACTORY_CONTRACT: string
|
|
1877
|
-
declare const STARKNET_DROP_COLLECTION_CLASS_HASH: string
|
|
1878
|
-
declare const STARKNET_NFTCOMMENTS_CONTRACT: string
|
|
1879
|
-
declare const STARKNET_CREATOR_COIN_FACTORY_CONTRACT: string
|
|
1880
|
-
declare const STARKNET_CREATOR_COIN_EKUBO_LAUNCHER: string
|
|
1881
|
-
declare const STARKNET_CREATOR_COIN_CLASS_HASH: string
|
|
1882
|
-
declare const STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH: string
|
|
1876
|
+
declare const STARKNET_POP_FACTORY_CONTRACT: `0x${string}`;
|
|
1877
|
+
declare const STARKNET_POP_COLLECTION_CLASS_HASH: `0x${string}`;
|
|
1878
|
+
declare const STARKNET_DROP_FACTORY_CONTRACT: `0x${string}`;
|
|
1879
|
+
declare const STARKNET_DROP_COLLECTION_CLASS_HASH: `0x${string}`;
|
|
1880
|
+
declare const STARKNET_NFTCOMMENTS_CONTRACT: `0x${string}`;
|
|
1881
|
+
declare const STARKNET_CREATOR_COIN_FACTORY_CONTRACT: `0x${string}`;
|
|
1882
|
+
declare const STARKNET_CREATOR_COIN_EKUBO_LAUNCHER: `0x${string}`;
|
|
1883
|
+
declare const STARKNET_CREATOR_COIN_CLASS_HASH: `0x${string}`;
|
|
1884
|
+
declare const STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH: `0x${string}`;
|
|
1883
1885
|
declare const STARKNET_CREATOR_COIN_START_BLOCK: number;
|
|
1884
|
-
declare const STARKNET_EKUBO_CORE: string
|
|
1886
|
+
declare const STARKNET_EKUBO_CORE: `0x${string}`;
|
|
1885
1887
|
declare const SUPPORTED_TOKENS: readonly [{
|
|
1886
1888
|
readonly symbol: "USDC";
|
|
1887
1889
|
readonly address: "0x033068f6539f8e6e6b131e6b2b814e6c34a5224bc66947c47dab9dfee93b35fb";
|
|
@@ -2052,6 +2054,9 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
2052
2054
|
}, {
|
|
2053
2055
|
readonly name: "order_status";
|
|
2054
2056
|
readonly type: "medialane_marketplace_erc721::core::types::OrderStatus";
|
|
2057
|
+
}, {
|
|
2058
|
+
readonly name: "counter";
|
|
2059
|
+
readonly type: "core::felt252";
|
|
2055
2060
|
}];
|
|
2056
2061
|
}, {
|
|
2057
2062
|
readonly type: "interface";
|
|
@@ -2942,6 +2947,9 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2942
2947
|
}, {
|
|
2943
2948
|
readonly name: "remaining_amount";
|
|
2944
2949
|
readonly type: "core::felt252";
|
|
2950
|
+
}, {
|
|
2951
|
+
readonly name: "counter";
|
|
2952
|
+
readonly type: "core::felt252";
|
|
2945
2953
|
}];
|
|
2946
2954
|
}, {
|
|
2947
2955
|
readonly type: "interface";
|
|
@@ -4308,9 +4316,6 @@ declare const IPCollectionABI: readonly [{
|
|
|
4308
4316
|
readonly type: "function";
|
|
4309
4317
|
readonly name: "batch_transfer";
|
|
4310
4318
|
readonly inputs: readonly [{
|
|
4311
|
-
readonly name: "from";
|
|
4312
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
4313
|
-
}, {
|
|
4314
4319
|
readonly name: "to";
|
|
4315
4320
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
4316
4321
|
}, {
|
|
@@ -5799,7 +5804,7 @@ declare const SERVICES: {
|
|
|
5799
5804
|
readonly provenance: "MEDIALANE";
|
|
5800
5805
|
readonly onchain: {
|
|
5801
5806
|
readonly STARKNET: {
|
|
5802
|
-
readonly factoryAddress: string
|
|
5807
|
+
readonly factoryAddress: `0x${string}`;
|
|
5803
5808
|
readonly startBlock: number;
|
|
5804
5809
|
};
|
|
5805
5810
|
};
|
|
@@ -5833,8 +5838,8 @@ declare const SERVICES: {
|
|
|
5833
5838
|
readonly provenance: "MEDIALANE";
|
|
5834
5839
|
readonly onchain: {
|
|
5835
5840
|
readonly STARKNET: {
|
|
5836
|
-
readonly factoryAddress: string
|
|
5837
|
-
readonly classHash: string
|
|
5841
|
+
readonly factoryAddress: `0x${string}`;
|
|
5842
|
+
readonly classHash: `0x${string}`;
|
|
5838
5843
|
readonly startBlock: number;
|
|
5839
5844
|
};
|
|
5840
5845
|
};
|
|
@@ -5856,8 +5861,8 @@ declare const SERVICES: {
|
|
|
5856
5861
|
readonly provenance: "MEDIALANE";
|
|
5857
5862
|
readonly onchain: {
|
|
5858
5863
|
readonly STARKNET: {
|
|
5859
|
-
readonly factoryAddress: string
|
|
5860
|
-
readonly classHash: string
|
|
5864
|
+
readonly factoryAddress: `0x${string}`;
|
|
5865
|
+
readonly classHash: `0x${string}`;
|
|
5861
5866
|
};
|
|
5862
5867
|
};
|
|
5863
5868
|
readonly uiVariant: "pop";
|
|
@@ -5882,8 +5887,8 @@ declare const SERVICES: {
|
|
|
5882
5887
|
readonly provenance: "MEDIALANE";
|
|
5883
5888
|
readonly onchain: {
|
|
5884
5889
|
readonly STARKNET: {
|
|
5885
|
-
readonly factoryAddress: string
|
|
5886
|
-
readonly classHash: string
|
|
5890
|
+
readonly factoryAddress: `0x${string}`;
|
|
5891
|
+
readonly classHash: `0x${string}`;
|
|
5887
5892
|
};
|
|
5888
5893
|
};
|
|
5889
5894
|
readonly uiVariant: "drop";
|
|
@@ -5908,8 +5913,8 @@ declare const SERVICES: {
|
|
|
5908
5913
|
readonly provenance: "MEDIALANE";
|
|
5909
5914
|
readonly onchain: {
|
|
5910
5915
|
readonly STARKNET: {
|
|
5911
|
-
readonly factoryAddress: string
|
|
5912
|
-
readonly classHash: string
|
|
5916
|
+
readonly factoryAddress: `0x${string}`;
|
|
5917
|
+
readonly classHash: `0x${string}`;
|
|
5913
5918
|
readonly startBlock: number;
|
|
5914
5919
|
};
|
|
5915
5920
|
};
|
|
@@ -5931,8 +5936,8 @@ declare const SERVICES: {
|
|
|
5931
5936
|
readonly provenance: "MEDIALANE";
|
|
5932
5937
|
readonly onchain: {
|
|
5933
5938
|
readonly STARKNET: {
|
|
5934
|
-
readonly factoryAddress: string
|
|
5935
|
-
readonly classHash: string
|
|
5939
|
+
readonly factoryAddress: `0x${string}`;
|
|
5940
|
+
readonly classHash: `0x${string}`;
|
|
5936
5941
|
readonly startBlock: number;
|
|
5937
5942
|
};
|
|
5938
5943
|
};
|
|
@@ -5957,8 +5962,8 @@ declare const SERVICES: {
|
|
|
5957
5962
|
readonly provenance: "MEDIALANE";
|
|
5958
5963
|
readonly onchain: {
|
|
5959
5964
|
readonly STARKNET: {
|
|
5960
|
-
readonly factoryAddress: string
|
|
5961
|
-
readonly classHash: string
|
|
5965
|
+
readonly factoryAddress: `0x${string}`;
|
|
5966
|
+
readonly classHash: `0x${string}`;
|
|
5962
5967
|
readonly startBlock: number;
|
|
5963
5968
|
};
|
|
5964
5969
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -8,31 +8,31 @@ type Chain = (typeof CHAINS)[number];
|
|
|
8
8
|
* optional because not every service exists on every chain. */
|
|
9
9
|
interface ChainCoordinates {
|
|
10
10
|
rpcUrl: string;
|
|
11
|
-
marketplace721?: string
|
|
12
|
-
marketplace721ClassHash?: string
|
|
11
|
+
marketplace721?: `0x${string}`;
|
|
12
|
+
marketplace721ClassHash?: `0x${string}`;
|
|
13
13
|
marketplace721StartBlock?: number;
|
|
14
|
-
marketplace1155?: string
|
|
15
|
-
marketplace1155ClassHash?: string
|
|
14
|
+
marketplace1155?: `0x${string}`;
|
|
15
|
+
marketplace1155ClassHash?: `0x${string}`;
|
|
16
16
|
marketplace1155StartBlock?: number;
|
|
17
|
-
collection721?: string
|
|
17
|
+
collection721?: `0x${string}`;
|
|
18
18
|
collection721StartBlock?: number;
|
|
19
|
-
ipNftClassHash?: string
|
|
20
|
-
ipCollectionClassHash?: string
|
|
21
|
-
collection1155?: string
|
|
22
|
-
collection1155FactoryClassHash?: string
|
|
23
|
-
collection1155ClassHash?: string
|
|
19
|
+
ipNftClassHash?: `0x${string}`;
|
|
20
|
+
ipCollectionClassHash?: `0x${string}`;
|
|
21
|
+
collection1155?: `0x${string}`;
|
|
22
|
+
collection1155FactoryClassHash?: `0x${string}`;
|
|
23
|
+
collection1155ClassHash?: `0x${string}`;
|
|
24
24
|
collection1155StartBlock?: number;
|
|
25
|
-
popFactory?: string
|
|
26
|
-
popCollectionClassHash?: string
|
|
27
|
-
dropFactory?: string
|
|
28
|
-
dropCollectionClassHash?: string
|
|
29
|
-
nftComments?: string
|
|
30
|
-
creatorCoinFactory?: string
|
|
31
|
-
creatorCoinEkuboLauncher?: string
|
|
32
|
-
creatorCoinClassHash?: string
|
|
33
|
-
creatorCoinFactoryClassHash?: string
|
|
25
|
+
popFactory?: `0x${string}`;
|
|
26
|
+
popCollectionClassHash?: `0x${string}`;
|
|
27
|
+
dropFactory?: `0x${string}`;
|
|
28
|
+
dropCollectionClassHash?: `0x${string}`;
|
|
29
|
+
nftComments?: `0x${string}`;
|
|
30
|
+
creatorCoinFactory?: `0x${string}`;
|
|
31
|
+
creatorCoinEkuboLauncher?: `0x${string}`;
|
|
32
|
+
creatorCoinClassHash?: `0x${string}`;
|
|
33
|
+
creatorCoinFactoryClassHash?: `0x${string}`;
|
|
34
34
|
creatorCoinStartBlock?: number;
|
|
35
|
-
ekuboCore?: string
|
|
35
|
+
ekuboCore?: `0x${string}`;
|
|
36
36
|
}
|
|
37
37
|
declare function getCoordinates(chain: Chain): ChainCoordinates;
|
|
38
38
|
declare const DEFAULT_CHAIN: Chain;
|
|
@@ -287,6 +287,8 @@ interface OrderDetails {
|
|
|
287
287
|
start_time: bigint;
|
|
288
288
|
end_time: bigint;
|
|
289
289
|
order_status: string;
|
|
290
|
+
/** The offerer's bulk-cancel epoch at registration; re-checked at fulfilment. */
|
|
291
|
+
counter: string;
|
|
290
292
|
/** ERC-1155 only — units still available. */
|
|
291
293
|
remaining_amount?: string;
|
|
292
294
|
}
|
|
@@ -1857,31 +1859,31 @@ interface ParsedAdminHeaders {
|
|
|
1857
1859
|
/** Parse + shape-check the headers on the backend. Returns null if malformed. */
|
|
1858
1860
|
declare function parseAdminHeaders(get: (name: string) => string | null | undefined): ParsedAdminHeaders | null;
|
|
1859
1861
|
|
|
1860
|
-
declare const STARKNET_MARKETPLACE_721_CONTRACT: string
|
|
1861
|
-
declare const STARKNET_MARKETPLACE_721_CLASS_HASH: string
|
|
1862
|
+
declare const STARKNET_MARKETPLACE_721_CONTRACT: `0x${string}`;
|
|
1863
|
+
declare const STARKNET_MARKETPLACE_721_CLASS_HASH: `0x${string}`;
|
|
1862
1864
|
declare const STARKNET_MARKETPLACE_721_START_BLOCK: number;
|
|
1863
|
-
declare const STARKNET_MARKETPLACE_1155_CONTRACT: string
|
|
1864
|
-
declare const STARKNET_MARKETPLACE_1155_CLASS_HASH: string
|
|
1865
|
+
declare const STARKNET_MARKETPLACE_1155_CONTRACT: `0x${string}`;
|
|
1866
|
+
declare const STARKNET_MARKETPLACE_1155_CLASS_HASH: `0x${string}`;
|
|
1865
1867
|
declare const STARKNET_MARKETPLACE_1155_START_BLOCK: number;
|
|
1866
|
-
declare const STARKNET_COLLECTION_721_CONTRACT: string
|
|
1868
|
+
declare const STARKNET_COLLECTION_721_CONTRACT: `0x${string}`;
|
|
1867
1869
|
declare const STARKNET_COLLECTION_721_START_BLOCK: number;
|
|
1868
|
-
declare const STARKNET_IPNFT_CLASS_HASH: string
|
|
1869
|
-
declare const STARKNET_IPCOLLECTION_CLASS_HASH: string
|
|
1870
|
-
declare const STARKNET_COLLECTION_1155_CONTRACT: string
|
|
1871
|
-
declare const STARKNET_COLLECTION_1155_FACTORY_CLASS_HASH: string
|
|
1872
|
-
declare const STARKNET_COLLECTION_1155_CLASS_HASH: string
|
|
1870
|
+
declare const STARKNET_IPNFT_CLASS_HASH: `0x${string}`;
|
|
1871
|
+
declare const STARKNET_IPCOLLECTION_CLASS_HASH: `0x${string}`;
|
|
1872
|
+
declare const STARKNET_COLLECTION_1155_CONTRACT: `0x${string}`;
|
|
1873
|
+
declare const STARKNET_COLLECTION_1155_FACTORY_CLASS_HASH: `0x${string}`;
|
|
1874
|
+
declare const STARKNET_COLLECTION_1155_CLASS_HASH: `0x${string}`;
|
|
1873
1875
|
declare const STARKNET_COLLECTION_1155_START_BLOCK: number;
|
|
1874
|
-
declare const STARKNET_POP_FACTORY_CONTRACT: string
|
|
1875
|
-
declare const STARKNET_POP_COLLECTION_CLASS_HASH: string
|
|
1876
|
-
declare const STARKNET_DROP_FACTORY_CONTRACT: string
|
|
1877
|
-
declare const STARKNET_DROP_COLLECTION_CLASS_HASH: string
|
|
1878
|
-
declare const STARKNET_NFTCOMMENTS_CONTRACT: string
|
|
1879
|
-
declare const STARKNET_CREATOR_COIN_FACTORY_CONTRACT: string
|
|
1880
|
-
declare const STARKNET_CREATOR_COIN_EKUBO_LAUNCHER: string
|
|
1881
|
-
declare const STARKNET_CREATOR_COIN_CLASS_HASH: string
|
|
1882
|
-
declare const STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH: string
|
|
1876
|
+
declare const STARKNET_POP_FACTORY_CONTRACT: `0x${string}`;
|
|
1877
|
+
declare const STARKNET_POP_COLLECTION_CLASS_HASH: `0x${string}`;
|
|
1878
|
+
declare const STARKNET_DROP_FACTORY_CONTRACT: `0x${string}`;
|
|
1879
|
+
declare const STARKNET_DROP_COLLECTION_CLASS_HASH: `0x${string}`;
|
|
1880
|
+
declare const STARKNET_NFTCOMMENTS_CONTRACT: `0x${string}`;
|
|
1881
|
+
declare const STARKNET_CREATOR_COIN_FACTORY_CONTRACT: `0x${string}`;
|
|
1882
|
+
declare const STARKNET_CREATOR_COIN_EKUBO_LAUNCHER: `0x${string}`;
|
|
1883
|
+
declare const STARKNET_CREATOR_COIN_CLASS_HASH: `0x${string}`;
|
|
1884
|
+
declare const STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH: `0x${string}`;
|
|
1883
1885
|
declare const STARKNET_CREATOR_COIN_START_BLOCK: number;
|
|
1884
|
-
declare const STARKNET_EKUBO_CORE: string
|
|
1886
|
+
declare const STARKNET_EKUBO_CORE: `0x${string}`;
|
|
1885
1887
|
declare const SUPPORTED_TOKENS: readonly [{
|
|
1886
1888
|
readonly symbol: "USDC";
|
|
1887
1889
|
readonly address: "0x033068f6539f8e6e6b131e6b2b814e6c34a5224bc66947c47dab9dfee93b35fb";
|
|
@@ -2052,6 +2054,9 @@ declare const IPMarketplaceABI: readonly [{
|
|
|
2052
2054
|
}, {
|
|
2053
2055
|
readonly name: "order_status";
|
|
2054
2056
|
readonly type: "medialane_marketplace_erc721::core::types::OrderStatus";
|
|
2057
|
+
}, {
|
|
2058
|
+
readonly name: "counter";
|
|
2059
|
+
readonly type: "core::felt252";
|
|
2055
2060
|
}];
|
|
2056
2061
|
}, {
|
|
2057
2062
|
readonly type: "interface";
|
|
@@ -2942,6 +2947,9 @@ declare const Medialane1155ABI: readonly [{
|
|
|
2942
2947
|
}, {
|
|
2943
2948
|
readonly name: "remaining_amount";
|
|
2944
2949
|
readonly type: "core::felt252";
|
|
2950
|
+
}, {
|
|
2951
|
+
readonly name: "counter";
|
|
2952
|
+
readonly type: "core::felt252";
|
|
2945
2953
|
}];
|
|
2946
2954
|
}, {
|
|
2947
2955
|
readonly type: "interface";
|
|
@@ -4308,9 +4316,6 @@ declare const IPCollectionABI: readonly [{
|
|
|
4308
4316
|
readonly type: "function";
|
|
4309
4317
|
readonly name: "batch_transfer";
|
|
4310
4318
|
readonly inputs: readonly [{
|
|
4311
|
-
readonly name: "from";
|
|
4312
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
4313
|
-
}, {
|
|
4314
4319
|
readonly name: "to";
|
|
4315
4320
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
4316
4321
|
}, {
|
|
@@ -5799,7 +5804,7 @@ declare const SERVICES: {
|
|
|
5799
5804
|
readonly provenance: "MEDIALANE";
|
|
5800
5805
|
readonly onchain: {
|
|
5801
5806
|
readonly STARKNET: {
|
|
5802
|
-
readonly factoryAddress: string
|
|
5807
|
+
readonly factoryAddress: `0x${string}`;
|
|
5803
5808
|
readonly startBlock: number;
|
|
5804
5809
|
};
|
|
5805
5810
|
};
|
|
@@ -5833,8 +5838,8 @@ declare const SERVICES: {
|
|
|
5833
5838
|
readonly provenance: "MEDIALANE";
|
|
5834
5839
|
readonly onchain: {
|
|
5835
5840
|
readonly STARKNET: {
|
|
5836
|
-
readonly factoryAddress: string
|
|
5837
|
-
readonly classHash: string
|
|
5841
|
+
readonly factoryAddress: `0x${string}`;
|
|
5842
|
+
readonly classHash: `0x${string}`;
|
|
5838
5843
|
readonly startBlock: number;
|
|
5839
5844
|
};
|
|
5840
5845
|
};
|
|
@@ -5856,8 +5861,8 @@ declare const SERVICES: {
|
|
|
5856
5861
|
readonly provenance: "MEDIALANE";
|
|
5857
5862
|
readonly onchain: {
|
|
5858
5863
|
readonly STARKNET: {
|
|
5859
|
-
readonly factoryAddress: string
|
|
5860
|
-
readonly classHash: string
|
|
5864
|
+
readonly factoryAddress: `0x${string}`;
|
|
5865
|
+
readonly classHash: `0x${string}`;
|
|
5861
5866
|
};
|
|
5862
5867
|
};
|
|
5863
5868
|
readonly uiVariant: "pop";
|
|
@@ -5882,8 +5887,8 @@ declare const SERVICES: {
|
|
|
5882
5887
|
readonly provenance: "MEDIALANE";
|
|
5883
5888
|
readonly onchain: {
|
|
5884
5889
|
readonly STARKNET: {
|
|
5885
|
-
readonly factoryAddress: string
|
|
5886
|
-
readonly classHash: string
|
|
5890
|
+
readonly factoryAddress: `0x${string}`;
|
|
5891
|
+
readonly classHash: `0x${string}`;
|
|
5887
5892
|
};
|
|
5888
5893
|
};
|
|
5889
5894
|
readonly uiVariant: "drop";
|
|
@@ -5908,8 +5913,8 @@ declare const SERVICES: {
|
|
|
5908
5913
|
readonly provenance: "MEDIALANE";
|
|
5909
5914
|
readonly onchain: {
|
|
5910
5915
|
readonly STARKNET: {
|
|
5911
|
-
readonly factoryAddress: string
|
|
5912
|
-
readonly classHash: string
|
|
5916
|
+
readonly factoryAddress: `0x${string}`;
|
|
5917
|
+
readonly classHash: `0x${string}`;
|
|
5913
5918
|
readonly startBlock: number;
|
|
5914
5919
|
};
|
|
5915
5920
|
};
|
|
@@ -5931,8 +5936,8 @@ declare const SERVICES: {
|
|
|
5931
5936
|
readonly provenance: "MEDIALANE";
|
|
5932
5937
|
readonly onchain: {
|
|
5933
5938
|
readonly STARKNET: {
|
|
5934
|
-
readonly factoryAddress: string
|
|
5935
|
-
readonly classHash: string
|
|
5939
|
+
readonly factoryAddress: `0x${string}`;
|
|
5940
|
+
readonly classHash: `0x${string}`;
|
|
5936
5941
|
readonly startBlock: number;
|
|
5937
5942
|
};
|
|
5938
5943
|
};
|
|
@@ -5957,8 +5962,8 @@ declare const SERVICES: {
|
|
|
5957
5962
|
readonly provenance: "MEDIALANE";
|
|
5958
5963
|
readonly onchain: {
|
|
5959
5964
|
readonly STARKNET: {
|
|
5960
|
-
readonly factoryAddress: string
|
|
5961
|
-
readonly classHash: string
|
|
5965
|
+
readonly factoryAddress: `0x${string}`;
|
|
5966
|
+
readonly classHash: `0x${string}`;
|
|
5962
5967
|
readonly startBlock: number;
|
|
5963
5968
|
};
|
|
5964
5969
|
};
|
package/dist/index.js
CHANGED
|
@@ -10,20 +10,20 @@ var CHAINS = ["STARKNET", "ETHEREUM", "SOLANA", "BASE", "BITCOIN"];
|
|
|
10
10
|
var COORDINATES = {
|
|
11
11
|
STARKNET: {
|
|
12
12
|
rpcUrl: "https://rpc.starknet.lava.build",
|
|
13
|
-
marketplace721: "
|
|
14
|
-
marketplace721ClassHash: "
|
|
15
|
-
marketplace721StartBlock:
|
|
16
|
-
marketplace1155: "
|
|
17
|
-
marketplace1155ClassHash: "
|
|
18
|
-
marketplace1155StartBlock:
|
|
19
|
-
collection721: "
|
|
20
|
-
collection721StartBlock:
|
|
21
|
-
ipNftClassHash: "
|
|
22
|
-
ipCollectionClassHash: "
|
|
23
|
-
collection1155: "
|
|
24
|
-
collection1155FactoryClassHash: "
|
|
25
|
-
collection1155ClassHash: "
|
|
26
|
-
collection1155StartBlock:
|
|
13
|
+
marketplace721: "0x03eda9a2b6ad90845a43591bac8083ebaf677d51fdf20f503b2c01889e3131fc",
|
|
14
|
+
marketplace721ClassHash: "0x0700d9230d07e5203e27778c0dc70f9134d2b25bf319f7cf8348dc66a6923e90",
|
|
15
|
+
marketplace721StartBlock: 11198146,
|
|
16
|
+
marketplace1155: "0x07c4ce1c19ea48cc11135ed22b19ff745f5aec508c3828593002e4f76fdb1b38",
|
|
17
|
+
marketplace1155ClassHash: "0x0242f5c388da7cee2d99e2a69453c8159bf927fbec4e797a3cfdcbbcb5b68328",
|
|
18
|
+
marketplace1155StartBlock: 11198267,
|
|
19
|
+
collection721: "0x0225c3ae09506b8d97adc39649ca740dad5aac195b7f5f0441cc1852947acaea",
|
|
20
|
+
collection721StartBlock: 11198496,
|
|
21
|
+
ipNftClassHash: "0x012d3ae40ba35c7e2be0946532dac60e48932447912fdf96b674da67c029b9cc",
|
|
22
|
+
ipCollectionClassHash: "0x022155a1a130a40e57aac4b89c07fab3f616bc351b1270fc40f756b963afe8b4",
|
|
23
|
+
collection1155: "0x015368976d46fae5bfa1c58600f641d5aa5dbbf53ebc6b78aa3922194aad3551",
|
|
24
|
+
collection1155FactoryClassHash: "0x04eb6b419770f13bd191f120b9fc9ee624c0613ad4490062d293ca2016b3b1d2",
|
|
25
|
+
collection1155ClassHash: "0x06cf3f5a2322dac35e07a6064a5b8802f19fda8aa3f4726f0cb7bc05dea1bd78",
|
|
26
|
+
collection1155StartBlock: 11199527,
|
|
27
27
|
popFactory: "0x00b32c34b427d8f346b5843ada6a37bd3368d879fc752cd52b68a87287f60111",
|
|
28
28
|
popCollectionClassHash: "0x077c421686f10851872561953ea16898d933364b7f8937a5d7e2b1ba0a36263f",
|
|
29
29
|
dropFactory: "0x03587f42e29daee1b193f6cf83bf8627908ed6632d0d83fcb26225c50547d800",
|
|
@@ -149,8 +149,8 @@ var ORDER_CANCELLATION = [
|
|
|
149
149
|
{ name: "offerer", type: "ContractAddress" }
|
|
150
150
|
];
|
|
151
151
|
var DOMAIN_VERSION = {
|
|
152
|
-
erc721: "
|
|
153
|
-
erc1155: "
|
|
152
|
+
erc721: "5",
|
|
153
|
+
erc1155: "4"
|
|
154
154
|
};
|
|
155
155
|
function buildDomain(standard, chainId) {
|
|
156
156
|
return {
|
|
@@ -425,6 +425,10 @@ var IPMarketplaceABI = [
|
|
|
425
425
|
{
|
|
426
426
|
"name": "order_status",
|
|
427
427
|
"type": "medialane_marketplace_erc721::core::types::OrderStatus"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"name": "counter",
|
|
431
|
+
"type": "core::felt252"
|
|
428
432
|
}
|
|
429
433
|
]
|
|
430
434
|
},
|
|
@@ -1303,6 +1307,10 @@ var Medialane1155ABI = [
|
|
|
1303
1307
|
{
|
|
1304
1308
|
"name": "remaining_amount",
|
|
1305
1309
|
"type": "core::felt252"
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
"name": "counter",
|
|
1313
|
+
"type": "core::felt252"
|
|
1306
1314
|
}
|
|
1307
1315
|
]
|
|
1308
1316
|
},
|
|
@@ -3161,10 +3169,6 @@ var IPCollectionABI = [
|
|
|
3161
3169
|
"type": "function",
|
|
3162
3170
|
"name": "batch_transfer",
|
|
3163
3171
|
"inputs": [
|
|
3164
|
-
{
|
|
3165
|
-
"name": "from",
|
|
3166
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
3167
|
-
},
|
|
3168
3172
|
{
|
|
3169
3173
|
"name": "to",
|
|
3170
3174
|
"type": "core::starknet::contract_address::ContractAddress"
|