@hypercerts-org/marketplace-sdk 0.3.28 → 0.3.30

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs.js CHANGED
@@ -503,7 +503,7 @@ var tokens = /*#__PURE__*/Object.freeze({
503
503
  const executeTakerBid = (signer, address, taker, maker, makerSignature, merkleTree, overrides) => {
504
504
  const overridesWithValue = {
505
505
  ...overrides,
506
- ...(maker.currency === ethers.ZeroAddress && { value: maker.price }),
506
+ ...(maker.currency === ethers.ZeroAddress && { value: overrides?.value || maker.price }),
507
507
  };
508
508
  const contract = new ethers.Contract(address, contracts.HypercertExchangeAbi).connect(signer);
509
509
  return {
@@ -1156,8 +1156,8 @@ const currencyAddressesPerChain = {
1156
1156
  },
1157
1157
  [exports.ChainId.BASE_SEPOLIA]: {
1158
1158
  ETH: ethers.ZeroAddress,
1159
- WETH: "0x1BDD24840e119DC2602dCC587Dd182812427A5Cc",
1160
- DAI: "0xbEC8ab89b34835F6b99fFc29c088426E8e708ceA",
1159
+ WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
1160
+ DAI: "0xE4aB69C077896252FAFBD49EFD26B5D171A32410",
1161
1161
  USDC: "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
1162
1162
  },
1163
1163
  [exports.ChainId.OPTIMISM]: {
package/dist/index.esm.js CHANGED
@@ -501,7 +501,7 @@ var tokens = /*#__PURE__*/Object.freeze({
501
501
  const executeTakerBid = (signer, address, taker, maker, makerSignature, merkleTree, overrides) => {
502
502
  const overridesWithValue = {
503
503
  ...overrides,
504
- ...(maker.currency === ZeroAddress && { value: maker.price }),
504
+ ...(maker.currency === ZeroAddress && { value: overrides?.value || maker.price }),
505
505
  };
506
506
  const contract = new Contract(address, HypercertExchangeAbi).connect(signer);
507
507
  return {
@@ -1154,8 +1154,8 @@ const currencyAddressesPerChain = {
1154
1154
  },
1155
1155
  [ChainId.BASE_SEPOLIA]: {
1156
1156
  ETH: ZeroAddress,
1157
- WETH: "0x1BDD24840e119DC2602dCC587Dd182812427A5Cc",
1158
- DAI: "0xbEC8ab89b34835F6b99fFc29c088426E8e708ceA",
1157
+ WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
1158
+ DAI: "0xE4aB69C077896252FAFBD49EFD26B5D171A32410",
1159
1159
  USDC: "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
1160
1160
  },
1161
1161
  [ChainId.OPTIMISM]: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypercerts-org/marketplace-sdk",
3
- "version": "0.3.28",
3
+ "version": "0.3.30",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -24,20 +24,6 @@
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
- },
41
27
  "lint-staged": {
42
28
  "*.{js,jsx,ts,tsx,json,yaml,yml}": "yarn format:write"
43
29
  },
@@ -48,7 +34,7 @@
48
34
  "@0no-co/graphqlsp": "^1.12.8",
49
35
  "@commitlint/cli": "^17.0.2",
50
36
  "@commitlint/config-conventional": "^17.0.2",
51
- "@hypercerts-org/contracts": "2.0.0-alpha.1",
37
+ "@hypercerts-org/contracts": "2.0.0-alpha.3",
52
38
  "@istanbuljs/nyc-config-typescript": "^1.0.2",
53
39
  "@looksrare/contracts-exchange-v1": "^1.2.0",
54
40
  "@looksrare/contracts-exchange-v2": "^0.1.2",
@@ -93,11 +79,25 @@
93
79
  "typescript": "^5.3.3"
94
80
  },
95
81
  "dependencies": {
96
- "@hypercerts-org/sdk": "2.0.0-alpha.30",
82
+ "@hypercerts-org/sdk": "2.0.0-alpha.35",
97
83
  "@supabase/supabase-js": "^2.39.2",
98
84
  "@urql/core": "^5.0.4",
99
85
  "ethers": "^6.6.2",
100
86
  "gql.tada": "^1.7.6",
101
87
  "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
+ }