@medialane/sdk 0.42.0 → 0.42.1

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.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;
@@ -1857,31 +1857,31 @@ interface ParsedAdminHeaders {
1857
1857
  /** Parse + shape-check the headers on the backend. Returns null if malformed. */
1858
1858
  declare function parseAdminHeaders(get: (name: string) => string | null | undefined): ParsedAdminHeaders | null;
1859
1859
 
1860
- declare const STARKNET_MARKETPLACE_721_CONTRACT: string;
1861
- declare const STARKNET_MARKETPLACE_721_CLASS_HASH: string;
1860
+ declare const STARKNET_MARKETPLACE_721_CONTRACT: `0x${string}`;
1861
+ declare const STARKNET_MARKETPLACE_721_CLASS_HASH: `0x${string}`;
1862
1862
  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;
1863
+ declare const STARKNET_MARKETPLACE_1155_CONTRACT: `0x${string}`;
1864
+ declare const STARKNET_MARKETPLACE_1155_CLASS_HASH: `0x${string}`;
1865
1865
  declare const STARKNET_MARKETPLACE_1155_START_BLOCK: number;
1866
- declare const STARKNET_COLLECTION_721_CONTRACT: string;
1866
+ declare const STARKNET_COLLECTION_721_CONTRACT: `0x${string}`;
1867
1867
  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;
1868
+ declare const STARKNET_IPNFT_CLASS_HASH: `0x${string}`;
1869
+ declare const STARKNET_IPCOLLECTION_CLASS_HASH: `0x${string}`;
1870
+ declare const STARKNET_COLLECTION_1155_CONTRACT: `0x${string}`;
1871
+ declare const STARKNET_COLLECTION_1155_FACTORY_CLASS_HASH: `0x${string}`;
1872
+ declare const STARKNET_COLLECTION_1155_CLASS_HASH: `0x${string}`;
1873
1873
  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;
1874
+ declare const STARKNET_POP_FACTORY_CONTRACT: `0x${string}`;
1875
+ declare const STARKNET_POP_COLLECTION_CLASS_HASH: `0x${string}`;
1876
+ declare const STARKNET_DROP_FACTORY_CONTRACT: `0x${string}`;
1877
+ declare const STARKNET_DROP_COLLECTION_CLASS_HASH: `0x${string}`;
1878
+ declare const STARKNET_NFTCOMMENTS_CONTRACT: `0x${string}`;
1879
+ declare const STARKNET_CREATOR_COIN_FACTORY_CONTRACT: `0x${string}`;
1880
+ declare const STARKNET_CREATOR_COIN_EKUBO_LAUNCHER: `0x${string}`;
1881
+ declare const STARKNET_CREATOR_COIN_CLASS_HASH: `0x${string}`;
1882
+ declare const STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH: `0x${string}`;
1883
1883
  declare const STARKNET_CREATOR_COIN_START_BLOCK: number;
1884
- declare const STARKNET_EKUBO_CORE: string;
1884
+ declare const STARKNET_EKUBO_CORE: `0x${string}`;
1885
1885
  declare const SUPPORTED_TOKENS: readonly [{
1886
1886
  readonly symbol: "USDC";
1887
1887
  readonly address: "0x033068f6539f8e6e6b131e6b2b814e6c34a5224bc66947c47dab9dfee93b35fb";
@@ -5799,7 +5799,7 @@ declare const SERVICES: {
5799
5799
  readonly provenance: "MEDIALANE";
5800
5800
  readonly onchain: {
5801
5801
  readonly STARKNET: {
5802
- readonly factoryAddress: string;
5802
+ readonly factoryAddress: `0x${string}`;
5803
5803
  readonly startBlock: number;
5804
5804
  };
5805
5805
  };
@@ -5833,8 +5833,8 @@ declare const SERVICES: {
5833
5833
  readonly provenance: "MEDIALANE";
5834
5834
  readonly onchain: {
5835
5835
  readonly STARKNET: {
5836
- readonly factoryAddress: string;
5837
- readonly classHash: string;
5836
+ readonly factoryAddress: `0x${string}`;
5837
+ readonly classHash: `0x${string}`;
5838
5838
  readonly startBlock: number;
5839
5839
  };
5840
5840
  };
@@ -5856,8 +5856,8 @@ declare const SERVICES: {
5856
5856
  readonly provenance: "MEDIALANE";
5857
5857
  readonly onchain: {
5858
5858
  readonly STARKNET: {
5859
- readonly factoryAddress: string;
5860
- readonly classHash: string;
5859
+ readonly factoryAddress: `0x${string}`;
5860
+ readonly classHash: `0x${string}`;
5861
5861
  };
5862
5862
  };
5863
5863
  readonly uiVariant: "pop";
@@ -5882,8 +5882,8 @@ declare const SERVICES: {
5882
5882
  readonly provenance: "MEDIALANE";
5883
5883
  readonly onchain: {
5884
5884
  readonly STARKNET: {
5885
- readonly factoryAddress: string;
5886
- readonly classHash: string;
5885
+ readonly factoryAddress: `0x${string}`;
5886
+ readonly classHash: `0x${string}`;
5887
5887
  };
5888
5888
  };
5889
5889
  readonly uiVariant: "drop";
@@ -5908,8 +5908,8 @@ declare const SERVICES: {
5908
5908
  readonly provenance: "MEDIALANE";
5909
5909
  readonly onchain: {
5910
5910
  readonly STARKNET: {
5911
- readonly factoryAddress: string;
5912
- readonly classHash: string;
5911
+ readonly factoryAddress: `0x${string}`;
5912
+ readonly classHash: `0x${string}`;
5913
5913
  readonly startBlock: number;
5914
5914
  };
5915
5915
  };
@@ -5931,8 +5931,8 @@ declare const SERVICES: {
5931
5931
  readonly provenance: "MEDIALANE";
5932
5932
  readonly onchain: {
5933
5933
  readonly STARKNET: {
5934
- readonly factoryAddress: string;
5935
- readonly classHash: string;
5934
+ readonly factoryAddress: `0x${string}`;
5935
+ readonly classHash: `0x${string}`;
5936
5936
  readonly startBlock: number;
5937
5937
  };
5938
5938
  };
@@ -5957,8 +5957,8 @@ declare const SERVICES: {
5957
5957
  readonly provenance: "MEDIALANE";
5958
5958
  readonly onchain: {
5959
5959
  readonly STARKNET: {
5960
- readonly factoryAddress: string;
5961
- readonly classHash: string;
5960
+ readonly factoryAddress: `0x${string}`;
5961
+ readonly classHash: `0x${string}`;
5962
5962
  readonly startBlock: number;
5963
5963
  };
5964
5964
  };
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;
@@ -1857,31 +1857,31 @@ interface ParsedAdminHeaders {
1857
1857
  /** Parse + shape-check the headers on the backend. Returns null if malformed. */
1858
1858
  declare function parseAdminHeaders(get: (name: string) => string | null | undefined): ParsedAdminHeaders | null;
1859
1859
 
1860
- declare const STARKNET_MARKETPLACE_721_CONTRACT: string;
1861
- declare const STARKNET_MARKETPLACE_721_CLASS_HASH: string;
1860
+ declare const STARKNET_MARKETPLACE_721_CONTRACT: `0x${string}`;
1861
+ declare const STARKNET_MARKETPLACE_721_CLASS_HASH: `0x${string}`;
1862
1862
  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;
1863
+ declare const STARKNET_MARKETPLACE_1155_CONTRACT: `0x${string}`;
1864
+ declare const STARKNET_MARKETPLACE_1155_CLASS_HASH: `0x${string}`;
1865
1865
  declare const STARKNET_MARKETPLACE_1155_START_BLOCK: number;
1866
- declare const STARKNET_COLLECTION_721_CONTRACT: string;
1866
+ declare const STARKNET_COLLECTION_721_CONTRACT: `0x${string}`;
1867
1867
  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;
1868
+ declare const STARKNET_IPNFT_CLASS_HASH: `0x${string}`;
1869
+ declare const STARKNET_IPCOLLECTION_CLASS_HASH: `0x${string}`;
1870
+ declare const STARKNET_COLLECTION_1155_CONTRACT: `0x${string}`;
1871
+ declare const STARKNET_COLLECTION_1155_FACTORY_CLASS_HASH: `0x${string}`;
1872
+ declare const STARKNET_COLLECTION_1155_CLASS_HASH: `0x${string}`;
1873
1873
  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;
1874
+ declare const STARKNET_POP_FACTORY_CONTRACT: `0x${string}`;
1875
+ declare const STARKNET_POP_COLLECTION_CLASS_HASH: `0x${string}`;
1876
+ declare const STARKNET_DROP_FACTORY_CONTRACT: `0x${string}`;
1877
+ declare const STARKNET_DROP_COLLECTION_CLASS_HASH: `0x${string}`;
1878
+ declare const STARKNET_NFTCOMMENTS_CONTRACT: `0x${string}`;
1879
+ declare const STARKNET_CREATOR_COIN_FACTORY_CONTRACT: `0x${string}`;
1880
+ declare const STARKNET_CREATOR_COIN_EKUBO_LAUNCHER: `0x${string}`;
1881
+ declare const STARKNET_CREATOR_COIN_CLASS_HASH: `0x${string}`;
1882
+ declare const STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH: `0x${string}`;
1883
1883
  declare const STARKNET_CREATOR_COIN_START_BLOCK: number;
1884
- declare const STARKNET_EKUBO_CORE: string;
1884
+ declare const STARKNET_EKUBO_CORE: `0x${string}`;
1885
1885
  declare const SUPPORTED_TOKENS: readonly [{
1886
1886
  readonly symbol: "USDC";
1887
1887
  readonly address: "0x033068f6539f8e6e6b131e6b2b814e6c34a5224bc66947c47dab9dfee93b35fb";
@@ -5799,7 +5799,7 @@ declare const SERVICES: {
5799
5799
  readonly provenance: "MEDIALANE";
5800
5800
  readonly onchain: {
5801
5801
  readonly STARKNET: {
5802
- readonly factoryAddress: string;
5802
+ readonly factoryAddress: `0x${string}`;
5803
5803
  readonly startBlock: number;
5804
5804
  };
5805
5805
  };
@@ -5833,8 +5833,8 @@ declare const SERVICES: {
5833
5833
  readonly provenance: "MEDIALANE";
5834
5834
  readonly onchain: {
5835
5835
  readonly STARKNET: {
5836
- readonly factoryAddress: string;
5837
- readonly classHash: string;
5836
+ readonly factoryAddress: `0x${string}`;
5837
+ readonly classHash: `0x${string}`;
5838
5838
  readonly startBlock: number;
5839
5839
  };
5840
5840
  };
@@ -5856,8 +5856,8 @@ declare const SERVICES: {
5856
5856
  readonly provenance: "MEDIALANE";
5857
5857
  readonly onchain: {
5858
5858
  readonly STARKNET: {
5859
- readonly factoryAddress: string;
5860
- readonly classHash: string;
5859
+ readonly factoryAddress: `0x${string}`;
5860
+ readonly classHash: `0x${string}`;
5861
5861
  };
5862
5862
  };
5863
5863
  readonly uiVariant: "pop";
@@ -5882,8 +5882,8 @@ declare const SERVICES: {
5882
5882
  readonly provenance: "MEDIALANE";
5883
5883
  readonly onchain: {
5884
5884
  readonly STARKNET: {
5885
- readonly factoryAddress: string;
5886
- readonly classHash: string;
5885
+ readonly factoryAddress: `0x${string}`;
5886
+ readonly classHash: `0x${string}`;
5887
5887
  };
5888
5888
  };
5889
5889
  readonly uiVariant: "drop";
@@ -5908,8 +5908,8 @@ declare const SERVICES: {
5908
5908
  readonly provenance: "MEDIALANE";
5909
5909
  readonly onchain: {
5910
5910
  readonly STARKNET: {
5911
- readonly factoryAddress: string;
5912
- readonly classHash: string;
5911
+ readonly factoryAddress: `0x${string}`;
5912
+ readonly classHash: `0x${string}`;
5913
5913
  readonly startBlock: number;
5914
5914
  };
5915
5915
  };
@@ -5931,8 +5931,8 @@ declare const SERVICES: {
5931
5931
  readonly provenance: "MEDIALANE";
5932
5932
  readonly onchain: {
5933
5933
  readonly STARKNET: {
5934
- readonly factoryAddress: string;
5935
- readonly classHash: string;
5934
+ readonly factoryAddress: `0x${string}`;
5935
+ readonly classHash: `0x${string}`;
5936
5936
  readonly startBlock: number;
5937
5937
  };
5938
5938
  };
@@ -5957,8 +5957,8 @@ declare const SERVICES: {
5957
5957
  readonly provenance: "MEDIALANE";
5958
5958
  readonly onchain: {
5959
5959
  readonly STARKNET: {
5960
- readonly factoryAddress: string;
5961
- readonly classHash: string;
5960
+ readonly factoryAddress: `0x${string}`;
5961
+ readonly classHash: `0x${string}`;
5962
5962
  readonly startBlock: number;
5963
5963
  };
5964
5964
  };