@hypercerts-org/marketplace-sdk 0.3.33 → 0.3.35
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs.js +41 -25
- package/dist/index.esm.js +41 -25
- package/dist/types.d.ts +2 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
@@ -693,6 +693,7 @@ exports.ChainId = void 0;
|
|
693
693
|
ChainId[ChainId["OPTIMISM"] = 10] = "OPTIMISM";
|
694
694
|
ChainId[ChainId["CELO"] = 42220] = "CELO";
|
695
695
|
ChainId[ChainId["BASE"] = 8453] = "BASE";
|
696
|
+
ChainId[ChainId["ARBITRUM_SEPOLIA"] = 421614] = "ARBITRUM_SEPOLIA";
|
696
697
|
})(exports.ChainId || (exports.ChainId = {}));
|
697
698
|
/** List of collection types supported by the protocol */
|
698
699
|
exports.CollectionType = void 0;
|
@@ -1145,21 +1146,27 @@ const currencyAddressesPerChain = {
|
|
1145
1146
|
[exports.ChainId.SEPOLIA]: {
|
1146
1147
|
ETH: ethers.ZeroAddress,
|
1147
1148
|
WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
|
1148
|
-
DAI: "
|
1149
|
+
DAI: "0x779877A7B0D9E8603169DdbD7836e478b4624789",
|
1149
1150
|
USDC: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
|
1150
1151
|
},
|
1151
1152
|
[exports.ChainId.HARDHAT]: {
|
1152
1153
|
ETH: ethers.ZeroAddress,
|
1153
1154
|
WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
|
1154
|
-
DAI: "
|
1155
|
+
DAI: "0x779877A7B0D9E8603169DdbD7836e478b4624789",
|
1155
1156
|
USDC: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
|
1156
1157
|
},
|
1157
1158
|
[exports.ChainId.BASE_SEPOLIA]: {
|
1158
1159
|
ETH: ethers.ZeroAddress,
|
1159
|
-
WETH: "
|
1160
|
+
WETH: "0x4200000000000000000000000000000000000006",
|
1160
1161
|
DAI: "0xE4aB69C077896252FAFBD49EFD26B5D171A32410",
|
1161
1162
|
USDC: "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
|
1162
1163
|
},
|
1164
|
+
[exports.ChainId.ARBITRUM_SEPOLIA]: {
|
1165
|
+
ETH: ethers.ZeroAddress,
|
1166
|
+
WETH: "0x3031a6D5D9648BA5f50f656Cd4a1672E1167a34A",
|
1167
|
+
DAI: "0xb1D4538B4571d411F07960EF2838Ce337FE1E80E",
|
1168
|
+
USDC: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d",
|
1169
|
+
},
|
1163
1170
|
[exports.ChainId.OPTIMISM]: {
|
1164
1171
|
ETH: ethers.ZeroAddress,
|
1165
1172
|
WETH: "0x4200000000000000000000000000000000000006",
|
@@ -1211,16 +1218,17 @@ const currenciesByNetwork = {
|
|
1211
1218
|
[exports.ChainId.OPTIMISM]: getCurrencies(exports.ChainId.OPTIMISM),
|
1212
1219
|
[exports.ChainId.CELO]: getCurrencies(exports.ChainId.CELO),
|
1213
1220
|
[exports.ChainId.BASE]: getCurrencies(exports.ChainId.BASE),
|
1221
|
+
[exports.ChainId.ARBITRUM_SEPOLIA]: getCurrencies(exports.ChainId.ARBITRUM_SEPOLIA),
|
1214
1222
|
};
|
1215
1223
|
|
1216
1224
|
const chainInfo = {
|
1217
1225
|
[exports.ChainId.SEPOLIA]: {
|
1218
1226
|
label: "Sepolia",
|
1219
|
-
appUrl: "https://
|
1227
|
+
appUrl: "https://testnet.hypercerts.org",
|
1220
1228
|
explorer: "https://sepolia.etherscan.io",
|
1221
|
-
rpcUrl: "https://
|
1222
|
-
baseApiUrl: "https://
|
1223
|
-
osApiUrl: "https://testnets-api.opensea.io"
|
1229
|
+
rpcUrl: "https://rpc.sepolia.org",
|
1230
|
+
baseApiUrl: "https://staging-api.hypercerts.org",
|
1231
|
+
osApiUrl: "https://testnets-api.opensea.io"
|
1224
1232
|
},
|
1225
1233
|
[exports.ChainId.HARDHAT]: {
|
1226
1234
|
label: "Hardhat",
|
@@ -1228,40 +1236,48 @@ const chainInfo = {
|
|
1228
1236
|
explorer: "https://etherscan.io",
|
1229
1237
|
rpcUrl: "http://127.0.0.1:8545",
|
1230
1238
|
baseApiUrl: "http://localhost:4000",
|
1231
|
-
osApiUrl: "https://testnets-api.opensea.io"
|
1239
|
+
osApiUrl: "https://testnets-api.opensea.io"
|
1232
1240
|
},
|
1233
1241
|
[exports.ChainId.BASE_SEPOLIA]: {
|
1234
1242
|
label: "Base Sepolia",
|
1235
|
-
appUrl: "https://
|
1243
|
+
appUrl: "https://testnet.hypercerts.org",
|
1236
1244
|
explorer: "https://sepolia.basescan.org",
|
1237
1245
|
rpcUrl: "https://sepolia.base.org",
|
1238
|
-
baseApiUrl: "https://api
|
1239
|
-
osApiUrl: "https://testnets-api.opensea.io"
|
1246
|
+
baseApiUrl: "https://staging-api.hypercerts.org",
|
1247
|
+
osApiUrl: "https://testnets-api.opensea.io"
|
1248
|
+
},
|
1249
|
+
[exports.ChainId.ARBITRUM_SEPOLIA]: {
|
1250
|
+
label: "Arbitrum Sepolia",
|
1251
|
+
appUrl: "https://testnet.hypercerts.org",
|
1252
|
+
explorer: "https://sepolia.arbiscan.io",
|
1253
|
+
rpcUrl: "https://sepolia-rollup.arbitrum.io/rpc",
|
1254
|
+
baseApiUrl: "https://staging-api.hypercerts.org",
|
1255
|
+
osApiUrl: "https://testnets-api.opensea.io"
|
1240
1256
|
},
|
1241
1257
|
[exports.ChainId.OPTIMISM]: {
|
1242
1258
|
label: "Optimism",
|
1243
|
-
appUrl: "https://
|
1244
|
-
explorer: "https://
|
1245
|
-
rpcUrl: "https://
|
1246
|
-
baseApiUrl: "https://
|
1247
|
-
osApiUrl: "https://testnets-api.opensea.io"
|
1259
|
+
appUrl: "https://app.hypercerts.org",
|
1260
|
+
explorer: "https://optimistic.etherscan.io",
|
1261
|
+
rpcUrl: "https://opt-mainnet.g.alchemy.com/v2",
|
1262
|
+
baseApiUrl: "https://api.hypercerts.org",
|
1263
|
+
osApiUrl: "https://testnets-api.opensea.io"
|
1248
1264
|
},
|
1249
1265
|
[exports.ChainId.CELO]: {
|
1250
1266
|
label: "Celo",
|
1251
|
-
appUrl: "https://
|
1267
|
+
appUrl: "https://app.hypercerts.org",
|
1252
1268
|
explorer: "https://explorer.celo.org",
|
1253
1269
|
rpcUrl: "https://forno.celo.org",
|
1254
|
-
baseApiUrl: "https://api.
|
1255
|
-
osApiUrl: "https://testnets-api.opensea.io"
|
1270
|
+
baseApiUrl: "https://api.hypercerts.org",
|
1271
|
+
osApiUrl: "https://testnets-api.opensea.io"
|
1256
1272
|
},
|
1257
1273
|
[exports.ChainId.BASE]: {
|
1258
1274
|
label: "Base",
|
1259
|
-
appUrl: "https://
|
1260
|
-
explorer: "https://
|
1261
|
-
rpcUrl: "https://
|
1262
|
-
baseApiUrl: "https://
|
1263
|
-
osApiUrl: "https://testnets-api.opensea.io"
|
1264
|
-
}
|
1275
|
+
appUrl: "https://app.hypercerts.org",
|
1276
|
+
explorer: "https://basescan.io",
|
1277
|
+
rpcUrl: "https://mainnet.base.org",
|
1278
|
+
baseApiUrl: "https://api.hypercerts.org",
|
1279
|
+
osApiUrl: "https://testnets-api.opensea.io"
|
1280
|
+
}
|
1265
1281
|
};
|
1266
1282
|
|
1267
1283
|
/** Maximum amount of orders in a merkle tree
|
package/dist/index.esm.js
CHANGED
@@ -691,6 +691,7 @@ var ChainId;
|
|
691
691
|
ChainId[ChainId["OPTIMISM"] = 10] = "OPTIMISM";
|
692
692
|
ChainId[ChainId["CELO"] = 42220] = "CELO";
|
693
693
|
ChainId[ChainId["BASE"] = 8453] = "BASE";
|
694
|
+
ChainId[ChainId["ARBITRUM_SEPOLIA"] = 421614] = "ARBITRUM_SEPOLIA";
|
694
695
|
})(ChainId || (ChainId = {}));
|
695
696
|
/** List of collection types supported by the protocol */
|
696
697
|
var CollectionType;
|
@@ -1143,21 +1144,27 @@ const currencyAddressesPerChain = {
|
|
1143
1144
|
[ChainId.SEPOLIA]: {
|
1144
1145
|
ETH: ZeroAddress,
|
1145
1146
|
WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
|
1146
|
-
DAI: "
|
1147
|
+
DAI: "0x779877A7B0D9E8603169DdbD7836e478b4624789",
|
1147
1148
|
USDC: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
|
1148
1149
|
},
|
1149
1150
|
[ChainId.HARDHAT]: {
|
1150
1151
|
ETH: ZeroAddress,
|
1151
1152
|
WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
|
1152
|
-
DAI: "
|
1153
|
+
DAI: "0x779877A7B0D9E8603169DdbD7836e478b4624789",
|
1153
1154
|
USDC: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
|
1154
1155
|
},
|
1155
1156
|
[ChainId.BASE_SEPOLIA]: {
|
1156
1157
|
ETH: ZeroAddress,
|
1157
|
-
WETH: "
|
1158
|
+
WETH: "0x4200000000000000000000000000000000000006",
|
1158
1159
|
DAI: "0xE4aB69C077896252FAFBD49EFD26B5D171A32410",
|
1159
1160
|
USDC: "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
|
1160
1161
|
},
|
1162
|
+
[ChainId.ARBITRUM_SEPOLIA]: {
|
1163
|
+
ETH: ZeroAddress,
|
1164
|
+
WETH: "0x3031a6D5D9648BA5f50f656Cd4a1672E1167a34A",
|
1165
|
+
DAI: "0xb1D4538B4571d411F07960EF2838Ce337FE1E80E",
|
1166
|
+
USDC: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d",
|
1167
|
+
},
|
1161
1168
|
[ChainId.OPTIMISM]: {
|
1162
1169
|
ETH: ZeroAddress,
|
1163
1170
|
WETH: "0x4200000000000000000000000000000000000006",
|
@@ -1209,16 +1216,17 @@ const currenciesByNetwork = {
|
|
1209
1216
|
[ChainId.OPTIMISM]: getCurrencies(ChainId.OPTIMISM),
|
1210
1217
|
[ChainId.CELO]: getCurrencies(ChainId.CELO),
|
1211
1218
|
[ChainId.BASE]: getCurrencies(ChainId.BASE),
|
1219
|
+
[ChainId.ARBITRUM_SEPOLIA]: getCurrencies(ChainId.ARBITRUM_SEPOLIA),
|
1212
1220
|
};
|
1213
1221
|
|
1214
1222
|
const chainInfo = {
|
1215
1223
|
[ChainId.SEPOLIA]: {
|
1216
1224
|
label: "Sepolia",
|
1217
|
-
appUrl: "https://
|
1225
|
+
appUrl: "https://testnet.hypercerts.org",
|
1218
1226
|
explorer: "https://sepolia.etherscan.io",
|
1219
|
-
rpcUrl: "https://
|
1220
|
-
baseApiUrl: "https://
|
1221
|
-
osApiUrl: "https://testnets-api.opensea.io"
|
1227
|
+
rpcUrl: "https://rpc.sepolia.org",
|
1228
|
+
baseApiUrl: "https://staging-api.hypercerts.org",
|
1229
|
+
osApiUrl: "https://testnets-api.opensea.io"
|
1222
1230
|
},
|
1223
1231
|
[ChainId.HARDHAT]: {
|
1224
1232
|
label: "Hardhat",
|
@@ -1226,40 +1234,48 @@ const chainInfo = {
|
|
1226
1234
|
explorer: "https://etherscan.io",
|
1227
1235
|
rpcUrl: "http://127.0.0.1:8545",
|
1228
1236
|
baseApiUrl: "http://localhost:4000",
|
1229
|
-
osApiUrl: "https://testnets-api.opensea.io"
|
1237
|
+
osApiUrl: "https://testnets-api.opensea.io"
|
1230
1238
|
},
|
1231
1239
|
[ChainId.BASE_SEPOLIA]: {
|
1232
1240
|
label: "Base Sepolia",
|
1233
|
-
appUrl: "https://
|
1241
|
+
appUrl: "https://testnet.hypercerts.org",
|
1234
1242
|
explorer: "https://sepolia.basescan.org",
|
1235
1243
|
rpcUrl: "https://sepolia.base.org",
|
1236
|
-
baseApiUrl: "https://api
|
1237
|
-
osApiUrl: "https://testnets-api.opensea.io"
|
1244
|
+
baseApiUrl: "https://staging-api.hypercerts.org",
|
1245
|
+
osApiUrl: "https://testnets-api.opensea.io"
|
1246
|
+
},
|
1247
|
+
[ChainId.ARBITRUM_SEPOLIA]: {
|
1248
|
+
label: "Arbitrum Sepolia",
|
1249
|
+
appUrl: "https://testnet.hypercerts.org",
|
1250
|
+
explorer: "https://sepolia.arbiscan.io",
|
1251
|
+
rpcUrl: "https://sepolia-rollup.arbitrum.io/rpc",
|
1252
|
+
baseApiUrl: "https://staging-api.hypercerts.org",
|
1253
|
+
osApiUrl: "https://testnets-api.opensea.io"
|
1238
1254
|
},
|
1239
1255
|
[ChainId.OPTIMISM]: {
|
1240
1256
|
label: "Optimism",
|
1241
|
-
appUrl: "https://
|
1242
|
-
explorer: "https://
|
1243
|
-
rpcUrl: "https://
|
1244
|
-
baseApiUrl: "https://
|
1245
|
-
osApiUrl: "https://testnets-api.opensea.io"
|
1257
|
+
appUrl: "https://app.hypercerts.org",
|
1258
|
+
explorer: "https://optimistic.etherscan.io",
|
1259
|
+
rpcUrl: "https://opt-mainnet.g.alchemy.com/v2",
|
1260
|
+
baseApiUrl: "https://api.hypercerts.org",
|
1261
|
+
osApiUrl: "https://testnets-api.opensea.io"
|
1246
1262
|
},
|
1247
1263
|
[ChainId.CELO]: {
|
1248
1264
|
label: "Celo",
|
1249
|
-
appUrl: "https://
|
1265
|
+
appUrl: "https://app.hypercerts.org",
|
1250
1266
|
explorer: "https://explorer.celo.org",
|
1251
1267
|
rpcUrl: "https://forno.celo.org",
|
1252
|
-
baseApiUrl: "https://api.
|
1253
|
-
osApiUrl: "https://testnets-api.opensea.io"
|
1268
|
+
baseApiUrl: "https://api.hypercerts.org",
|
1269
|
+
osApiUrl: "https://testnets-api.opensea.io"
|
1254
1270
|
},
|
1255
1271
|
[ChainId.BASE]: {
|
1256
1272
|
label: "Base",
|
1257
|
-
appUrl: "https://
|
1258
|
-
explorer: "https://
|
1259
|
-
rpcUrl: "https://
|
1260
|
-
baseApiUrl: "https://
|
1261
|
-
osApiUrl: "https://testnets-api.opensea.io"
|
1262
|
-
}
|
1273
|
+
appUrl: "https://app.hypercerts.org",
|
1274
|
+
explorer: "https://basescan.io",
|
1275
|
+
rpcUrl: "https://mainnet.base.org",
|
1276
|
+
baseApiUrl: "https://api.hypercerts.org",
|
1277
|
+
osApiUrl: "https://testnets-api.opensea.io"
|
1278
|
+
}
|
1263
1279
|
};
|
1264
1280
|
|
1265
1281
|
/** Maximum amount of orders in a merkle tree
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hypercerts-org/marketplace-sdk",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.35",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.esm.js",
|
@@ -34,7 +34,7 @@
|
|
34
34
|
"@0no-co/graphqlsp": "^1.12.8",
|
35
35
|
"@commitlint/cli": "^17.0.2",
|
36
36
|
"@commitlint/config-conventional": "^17.0.2",
|
37
|
-
"@hypercerts-org/contracts": "2.0.0-alpha.
|
37
|
+
"@hypercerts-org/contracts": "2.0.0-alpha.8",
|
38
38
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
39
39
|
"@looksrare/contracts-exchange-v1": "^1.2.0",
|
40
40
|
"@looksrare/contracts-exchange-v2": "^0.1.2",
|