@manifoldxyz/marketplace-sdk 3.0.15 → 3.0.17

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.
@@ -1202,7 +1202,7 @@ class MarketplaceListing {
1202
1202
  }
1203
1203
  }
1204
1204
  else if (tokenURI.startsWith('data:application/json;base64,')) {
1205
- const tokenURIDecoded = atob(tokenURI.slice(29));
1205
+ const tokenURIDecoded = Buffer.from(tokenURI.slice(29), 'base64').toString('utf-8');
1206
1206
  try {
1207
1207
  tokenData = JSON.parse(tokenURIDecoded);
1208
1208
  }
@@ -1387,6 +1387,9 @@ class MarketplaceListing {
1387
1387
  else if (network === frontend_provider_types_1.EthereumNetwork.BASE) {
1388
1388
  return APIEndpoints.BASE;
1389
1389
  }
1390
+ else if (network === frontend_provider_types_1.EthereumNetwork.SEPOLIA) {
1391
+ return APIEndpoints.SEPOLIA;
1392
+ }
1390
1393
  else {
1391
1394
  throw new Error(`Network not supported: ${network}`);
1392
1395
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manifoldxyz/marketplace-sdk",
3
- "version": "3.0.15",
3
+ "version": "3.0.17",
4
4
  "typings": "dist/index.d.ts",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
@@ -21,6 +21,10 @@
21
21
  "url": "https://github.com/manifoldxyz/marketplace-sdk/issues"
22
22
  },
23
23
  "homepage": "https://github.com/manifoldxyz/marketplace-sdk#readme",
24
+ "files": [
25
+ "dist",
26
+ "README.md"
27
+ ],
24
28
  "devDependencies": {
25
29
  "@babel/preset-env": "^7.15.4",
26
30
  "@babel/preset-typescript": "^7.15.0",
package/.eslintignore DELETED
@@ -1,5 +0,0 @@
1
- .github/*
2
- infra/
3
- .vscode/
4
- node_modules/*
5
- dist/
package/.eslintrc.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "parser": "@typescript-eslint/parser",
3
- "plugins": ["@typescript-eslint"],
4
- "extends": ["@manifoldxyz/eslint-config"]
5
- }
package/.prettierrc.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require('@manifoldxyz/lint-configs/prettier');
package/babel.config.js DELETED
@@ -1,4 +0,0 @@
1
- // babel.config.js
2
- module.exports = {
3
- presets: [['@babel/preset-env', { targets: { node: 'current' } }], '@babel/preset-typescript'],
4
- };
@@ -1,76 +0,0 @@
1
- {
2
- "IdentityVerifierABIv1": [
3
- {
4
- "inputs": [
5
- {
6
- "internalType": "bytes4",
7
- "name": "interfaceId",
8
- "type": "bytes4"
9
- }
10
- ],
11
- "name": "supportsInterface",
12
- "outputs": [
13
- {
14
- "internalType": "bool",
15
- "name": "",
16
- "type": "bool"
17
- }
18
- ],
19
- "stateMutability": "view",
20
- "type": "function"
21
- },
22
- {
23
- "inputs": [
24
- {
25
- "internalType": "address",
26
- "name": "identity",
27
- "type": "address"
28
- },
29
- {
30
- "internalType": "uint256",
31
- "name": "ethAmount",
32
- "type": "uint256"
33
- }
34
- ],
35
- "name": "verify",
36
- "outputs": [
37
- {
38
- "internalType": "bool",
39
- "name": "",
40
- "type": "bool"
41
- }
42
- ],
43
- "stateMutability": "view",
44
- "type": "function"
45
- },
46
- {
47
- "inputs": [
48
- {
49
- "internalType": "address",
50
- "name": "identity",
51
- "type": "address"
52
- },
53
- {
54
- "internalType": "address",
55
- "name": "erc20Address",
56
- "type": "address"
57
- },
58
- {
59
- "internalType": "uint256",
60
- "name": "erc20Amount",
61
- "type": "uint256"
62
- }
63
- ],
64
- "name": "verify",
65
- "outputs": [
66
- {
67
- "internalType": "bool",
68
- "name": "",
69
- "type": "bool"
70
- }
71
- ],
72
- "stateMutability": "view",
73
- "type": "function"
74
- }
75
- ]
76
- }
@@ -1,77 +0,0 @@
1
- {
2
- "IdentityVerifierABIv2": [
3
- {
4
- "inputs": [
5
- {
6
- "internalType": "bytes4",
7
- "name": "interfaceId",
8
- "type": "bytes4"
9
- }
10
- ],
11
- "name": "supportsInterface",
12
- "outputs": [
13
- {
14
- "internalType": "bool",
15
- "name": "",
16
- "type": "bool"
17
- }
18
- ],
19
- "stateMutability": "view",
20
- "type": "function"
21
- },
22
- {
23
- "inputs": [
24
- {
25
- "internalType": "uint40",
26
- "name": "listingId",
27
- "type": "uint40"
28
- },
29
- {
30
- "internalType": "address",
31
- "name": "identity",
32
- "type": "address"
33
- },
34
- {
35
- "internalType": "address",
36
- "name": "tokenAddress",
37
- "type": "address"
38
- },
39
- {
40
- "internalType": "uint256",
41
- "name": "tokenId",
42
- "type": "uint256"
43
- },
44
- {
45
- "internalType": "uint24",
46
- "name": "requestCount",
47
- "type": "uint24"
48
- },
49
- {
50
- "internalType": "uint256",
51
- "name": "requestAmount",
52
- "type": "uint256"
53
- },
54
- {
55
- "internalType": "address",
56
- "name": "requestERC20",
57
- "type": "address"
58
- },
59
- {
60
- "internalType": "bytes",
61
- "name": "data",
62
- "type": "bytes"
63
- }
64
- ],
65
- "name": "verify",
66
- "outputs": [
67
- {
68
- "internalType": "bool",
69
- "name": "",
70
- "type": "bool"
71
- }
72
- ],
73
- "stateMutability": "view",
74
- "type": "function"
75
- }
76
- ]
77
- }
@@ -1,136 +0,0 @@
1
- {
2
- "IdentityVerifierViewABIv2": [
3
- {
4
- "inputs": [
5
- {
6
- "internalType": "bytes4",
7
- "name": "interfaceId",
8
- "type": "bytes4"
9
- }
10
- ],
11
- "name": "supportsInterface",
12
- "outputs": [
13
- {
14
- "internalType": "bool",
15
- "name": "",
16
- "type": "bool"
17
- }
18
- ],
19
- "stateMutability": "view",
20
- "type": "function"
21
- },
22
- {
23
- "inputs": [
24
- {
25
- "internalType": "uint40",
26
- "name": "listingId",
27
- "type": "uint40"
28
- },
29
- {
30
- "internalType": "address",
31
- "name": "identity",
32
- "type": "address"
33
- },
34
- {
35
- "internalType": "address",
36
- "name": "tokenAddress",
37
- "type": "address"
38
- },
39
- {
40
- "internalType": "uint256",
41
- "name": "tokenId",
42
- "type": "uint256"
43
- },
44
- {
45
- "internalType": "uint24",
46
- "name": "requestCount",
47
- "type": "uint24"
48
- },
49
- {
50
- "internalType": "uint256",
51
- "name": "requestAmount",
52
- "type": "uint256"
53
- },
54
- {
55
- "internalType": "address",
56
- "name": "requestERC20",
57
- "type": "address"
58
- },
59
- {
60
- "internalType": "bytes",
61
- "name": "data",
62
- "type": "bytes"
63
- }
64
- ],
65
- "name": "verifyView",
66
- "outputs": [
67
- {
68
- "internalType": "bool",
69
- "name": "",
70
- "type": "bool"
71
- }
72
- ],
73
- "stateMutability": "view",
74
- "type": "function"
75
- },
76
- {
77
- "inputs": [
78
- {
79
- "internalType": "address",
80
- "name": "marketplaceAddress",
81
- "type": "address"
82
- },
83
- {
84
- "internalType": "uint40",
85
- "name": "listingId",
86
- "type": "uint40"
87
- },
88
- {
89
- "internalType": "address",
90
- "name": "identity",
91
- "type": "address"
92
- },
93
- {
94
- "internalType": "address",
95
- "name": "tokenAddress",
96
- "type": "address"
97
- },
98
- {
99
- "internalType": "uint256",
100
- "name": "tokenId",
101
- "type": "uint256"
102
- },
103
- {
104
- "internalType": "uint24",
105
- "name": "requestCount",
106
- "type": "uint24"
107
- },
108
- {
109
- "internalType": "uint256",
110
- "name": "requestAmount",
111
- "type": "uint256"
112
- },
113
- {
114
- "internalType": "address",
115
- "name": "requestERC20",
116
- "type": "address"
117
- },
118
- {
119
- "internalType": "bytes",
120
- "name": "data",
121
- "type": "bytes"
122
- }
123
- ],
124
- "name": "checkVerify",
125
- "outputs": [
126
- {
127
- "internalType": "bool",
128
- "name": "",
129
- "type": "bool"
130
- }
131
- ],
132
- "stateMutability": "view",
133
- "type": "function"
134
- }
135
- ]
136
- }
@@ -1,23 +0,0 @@
1
- {
2
- "LazyDeliveryABI": [
3
- {
4
- "inputs": [
5
- {
6
- "internalType": "uint256",
7
- "name": "assetId",
8
- "type": "uint256"
9
- }
10
- ],
11
- "name": "assetURI",
12
- "outputs": [
13
- {
14
- "internalType": "string",
15
- "name": "",
16
- "type": "string"
17
- }
18
- ],
19
- "stateMutability": "view",
20
- "type": "function"
21
- }
22
- ]
23
- }