@hypercerts-org/marketplace-sdk 0.3.35 → 0.3.36
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/LICENSE-APACHE +10 -0
- package/LICENSE-MIT +21 -0
- package/dist/index.cjs.js +8 -0
- package/dist/index.esm.js +8 -0
- package/dist/types.d.ts +2 -1
- package/package.json +18 -18
package/LICENSE-APACHE
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
Copyright 2023 Hypercerts Foundation
|
2
|
+
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
|
4
|
+
License. You may obtain a copy of the License at
|
5
|
+
|
6
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
|
8
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
|
9
|
+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
+
language governing permissions and limitations under the License.
|
package/LICENSE-MIT
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2023 Hypercerts Foundation
|
4
|
+
|
5
|
+
Copyright (c) 2022 LooksRare for portions of marketplace: https://github.com/LooksRare/contracts-exchange-v2 commit:
|
6
|
+
7fca565
|
7
|
+
|
8
|
+
Copyright (c) 2022 Paul Razvan Berg for inital template: https://github.com/paulrberg/foundry-template
|
9
|
+
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
11
|
+
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
12
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
13
|
+
persons to whom the Software is furnished to do so, subject to the following conditions:
|
14
|
+
|
15
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
|
16
|
+
Software.
|
17
|
+
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
19
|
+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
20
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
21
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/dist/index.cjs.js
CHANGED
@@ -694,6 +694,7 @@ exports.ChainId = void 0;
|
|
694
694
|
ChainId[ChainId["CELO"] = 42220] = "CELO";
|
695
695
|
ChainId[ChainId["BASE"] = 8453] = "BASE";
|
696
696
|
ChainId[ChainId["ARBITRUM_SEPOLIA"] = 421614] = "ARBITRUM_SEPOLIA";
|
697
|
+
ChainId[ChainId["ARBITRUM"] = 42161] = "ARBITRUM";
|
697
698
|
})(exports.ChainId || (exports.ChainId = {}));
|
698
699
|
/** List of collection types supported by the protocol */
|
699
700
|
exports.CollectionType = void 0;
|
@@ -1185,6 +1186,12 @@ const currencyAddressesPerChain = {
|
|
1185
1186
|
DAI: "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",
|
1186
1187
|
USDC: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
1187
1188
|
},
|
1189
|
+
[exports.ChainId.ARBITRUM]: {
|
1190
|
+
ETH: ethers.ZeroAddress,
|
1191
|
+
WETH: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
|
1192
|
+
DAI: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
|
1193
|
+
USDC: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
1194
|
+
},
|
1188
1195
|
};
|
1189
1196
|
const getCurrencies = (chainId) => {
|
1190
1197
|
const currenciesForChain = currencyAddressesPerChain[chainId];
|
@@ -1219,6 +1226,7 @@ const currenciesByNetwork = {
|
|
1219
1226
|
[exports.ChainId.CELO]: getCurrencies(exports.ChainId.CELO),
|
1220
1227
|
[exports.ChainId.BASE]: getCurrencies(exports.ChainId.BASE),
|
1221
1228
|
[exports.ChainId.ARBITRUM_SEPOLIA]: getCurrencies(exports.ChainId.ARBITRUM_SEPOLIA),
|
1229
|
+
[exports.ChainId.ARBITRUM]: getCurrencies(exports.ChainId.ARBITRUM),
|
1222
1230
|
};
|
1223
1231
|
|
1224
1232
|
const chainInfo = {
|
package/dist/index.esm.js
CHANGED
@@ -692,6 +692,7 @@ var ChainId;
|
|
692
692
|
ChainId[ChainId["CELO"] = 42220] = "CELO";
|
693
693
|
ChainId[ChainId["BASE"] = 8453] = "BASE";
|
694
694
|
ChainId[ChainId["ARBITRUM_SEPOLIA"] = 421614] = "ARBITRUM_SEPOLIA";
|
695
|
+
ChainId[ChainId["ARBITRUM"] = 42161] = "ARBITRUM";
|
695
696
|
})(ChainId || (ChainId = {}));
|
696
697
|
/** List of collection types supported by the protocol */
|
697
698
|
var CollectionType;
|
@@ -1183,6 +1184,12 @@ const currencyAddressesPerChain = {
|
|
1183
1184
|
DAI: "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",
|
1184
1185
|
USDC: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
1185
1186
|
},
|
1187
|
+
[ChainId.ARBITRUM]: {
|
1188
|
+
ETH: ZeroAddress,
|
1189
|
+
WETH: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
|
1190
|
+
DAI: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
|
1191
|
+
USDC: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
1192
|
+
},
|
1186
1193
|
};
|
1187
1194
|
const getCurrencies = (chainId) => {
|
1188
1195
|
const currenciesForChain = currencyAddressesPerChain[chainId];
|
@@ -1217,6 +1224,7 @@ const currenciesByNetwork = {
|
|
1217
1224
|
[ChainId.CELO]: getCurrencies(ChainId.CELO),
|
1218
1225
|
[ChainId.BASE]: getCurrencies(ChainId.BASE),
|
1219
1226
|
[ChainId.ARBITRUM_SEPOLIA]: getCurrencies(ChainId.ARBITRUM_SEPOLIA),
|
1227
|
+
[ChainId.ARBITRUM]: getCurrencies(ChainId.ARBITRUM),
|
1220
1228
|
};
|
1221
1229
|
|
1222
1230
|
const chainInfo = {
|
package/dist/types.d.ts
CHANGED
@@ -28,7 +28,8 @@ export declare enum ChainId {
|
|
28
28
|
OPTIMISM = 10,
|
29
29
|
CELO = 42220,
|
30
30
|
BASE = 8453,
|
31
|
-
ARBITRUM_SEPOLIA = 421614
|
31
|
+
ARBITRUM_SEPOLIA = 421614,
|
32
|
+
ARBITRUM = 42161
|
32
33
|
}
|
33
34
|
/** ChainInfo data used to interact with HypercertExchange ecosystem */
|
34
35
|
export interface ChainInfo {
|
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.36",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.esm.js",
|
@@ -24,6 +24,20 @@
|
|
24
24
|
"engines": {
|
25
25
|
"node": ">= 16.15.1 <= 20.x"
|
26
26
|
},
|
27
|
+
"scripts": {
|
28
|
+
"prebuild": "rm -rf ./src/typechain ./src/artifacts cache dist",
|
29
|
+
"dev": "rollup -c --bundleConfigAsCjs -w",
|
30
|
+
"build:ts": "rollup -c --bundleConfigAsCjs",
|
31
|
+
"build:sc": "hardhat compile",
|
32
|
+
"build": "yarn build:sc && yarn build:ts",
|
33
|
+
"test": "nyc hardhat test",
|
34
|
+
"doc": "typedoc --plugin typedoc-plugin-markdown --tsconfig tsconfig.build.json",
|
35
|
+
"lint": "eslint --max-warnings 0 'src/**/*.{js,ts}'",
|
36
|
+
"format:check": "prettier --check 'src/**/*.{js,ts,json,yaml,yml,md}'",
|
37
|
+
"format:write": "prettier --write 'src/**/*.{js,ts,json,yaml,yml,md}'",
|
38
|
+
"release": "release-it --only-version --set-upstream",
|
39
|
+
"supabase:types:hypercerts": "npx supabase gen types typescript --project-id zgvoyckkistexkfdmjqc --schema public > src/utils/hypercerts-database-types.ts"
|
40
|
+
},
|
27
41
|
"lint-staged": {
|
28
42
|
"*.{js,jsx,ts,tsx,json,yaml,yml}": "yarn format:write"
|
29
43
|
},
|
@@ -34,7 +48,7 @@
|
|
34
48
|
"@0no-co/graphqlsp": "^1.12.8",
|
35
49
|
"@commitlint/cli": "^17.0.2",
|
36
50
|
"@commitlint/config-conventional": "^17.0.2",
|
37
|
-
"@hypercerts-org/contracts": "2.0.0-alpha.
|
51
|
+
"@hypercerts-org/contracts": "2.0.0-alpha.9",
|
38
52
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
39
53
|
"@looksrare/contracts-exchange-v1": "^1.2.0",
|
40
54
|
"@looksrare/contracts-exchange-v2": "^0.1.2",
|
@@ -79,25 +93,11 @@
|
|
79
93
|
"typescript": "^5.3.3"
|
80
94
|
},
|
81
95
|
"dependencies": {
|
82
|
-
"@hypercerts-org/sdk": "2.
|
96
|
+
"@hypercerts-org/sdk": "2.2.0-beta.3",
|
83
97
|
"@supabase/supabase-js": "^2.39.2",
|
84
98
|
"@urql/core": "^5.0.4",
|
85
99
|
"ethers": "^6.6.2",
|
86
100
|
"gql.tada": "^1.7.6",
|
87
101
|
"merkletreejs": "^0.3.9"
|
88
|
-
},
|
89
|
-
"scripts": {
|
90
|
-
"prebuild": "rm -rf ./src/typechain ./src/artifacts cache dist",
|
91
|
-
"dev": "rollup -c --bundleConfigAsCjs -w",
|
92
|
-
"build:ts": "rollup -c --bundleConfigAsCjs",
|
93
|
-
"build:sc": "hardhat compile",
|
94
|
-
"build": "yarn build:sc && yarn build:ts",
|
95
|
-
"test": "nyc hardhat test",
|
96
|
-
"doc": "typedoc --plugin typedoc-plugin-markdown --tsconfig tsconfig.build.json",
|
97
|
-
"lint": "eslint --max-warnings 0 'src/**/*.{js,ts}'",
|
98
|
-
"format:check": "prettier --check 'src/**/*.{js,ts,json,yaml,yml,md}'",
|
99
|
-
"format:write": "prettier --write 'src/**/*.{js,ts,json,yaml,yml,md}'",
|
100
|
-
"release": "release-it --only-version --set-upstream",
|
101
|
-
"supabase:types:hypercerts": "npx supabase gen types typescript --project-id zgvoyckkistexkfdmjqc --schema public > src/utils/hypercerts-database-types.ts"
|
102
102
|
}
|
103
|
-
}
|
103
|
+
}
|