@hypercerts-org/marketplace-sdk 0.3.24 → 0.3.26

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.cjs.js CHANGED
@@ -1146,37 +1146,31 @@ const currencyAddressesPerChain = {
1146
1146
  ETH: ethers.ZeroAddress,
1147
1147
  WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
1148
1148
  DAI: "0x68194a729C2450ad26072b3D33ADaCbcef39D574",
1149
- USDC: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
1150
1149
  },
1151
1150
  [exports.ChainId.HARDHAT]: {
1152
1151
  ETH: ethers.ZeroAddress,
1153
1152
  WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
1154
1153
  DAI: "0x68194a729C2450ad26072b3D33ADaCbcef39D574",
1155
- USDC: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
1156
1154
  },
1157
1155
  [exports.ChainId.BASE_SEPOLIA]: {
1158
1156
  ETH: ethers.ZeroAddress,
1159
1157
  WETH: "0x1BDD24840e119DC2602dCC587Dd182812427A5Cc",
1160
1158
  DAI: "0xbEC8ab89b34835F6b99fFc29c088426E8e708ceA",
1161
- USDC: "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
1162
1159
  },
1163
1160
  [exports.ChainId.OPTIMISM]: {
1164
1161
  ETH: ethers.ZeroAddress,
1165
1162
  WETH: "0x4200000000000000000000000000000000000006",
1166
1163
  DAI: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
1167
- USDC: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
1168
1164
  },
1169
1165
  [exports.ChainId.CELO]: {
1170
1166
  ETH: ethers.ZeroAddress,
1171
1167
  WETH: "0x66803fb87abd4aac3cbb3fad7c3aa01f6f3fb207",
1172
1168
  DAI: "0xE4fE50cdD716522A56204352f00AA110F731932d",
1173
- USDC: "0xef4229c8c3250C675F21BCefa42f58EfbfF6002a",
1174
1169
  },
1175
1170
  [exports.ChainId.BASE]: {
1176
1171
  ETH: ethers.ZeroAddress,
1177
1172
  WETH: "0x4200000000000000000000000000000000000006",
1178
1173
  DAI: "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",
1179
- USDC: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
1180
1174
  },
1181
1175
  };
1182
1176
  const getCurrencies = (chainId) => {
@@ -1197,11 +1191,6 @@ const getCurrencies = (chainId) => {
1197
1191
  address: currenciesForChain.DAI,
1198
1192
  decimals: 18,
1199
1193
  },
1200
- USDC: {
1201
- symbol: "USDC",
1202
- address: currenciesForChain.USDC,
1203
- decimals: 6,
1204
- },
1205
1194
  };
1206
1195
  };
1207
1196
  const currenciesByNetwork = {
@@ -8206,9 +8195,9 @@ class HypercertExchangeClient {
8206
8195
  async deleteOrder(orderId) {
8207
8196
  const signer = this.getSigner();
8208
8197
  if (!signer) {
8209
- throw new Error(`No signer address could be determined when deleting order ${orderId}`);
8198
+ throw new Error(`No signer address could be determined when deleting listing ${orderId}`);
8210
8199
  }
8211
- const signedMessage = await signer.signMessage(`Delete order ${orderId}`);
8200
+ const signedMessage = await signer.signMessage(`Delete listing ${orderId}`);
8212
8201
  return this.api.deleteOrder(orderId, signedMessage);
8213
8202
  }
8214
8203
  }
package/dist/index.esm.js CHANGED
@@ -1144,37 +1144,31 @@ const currencyAddressesPerChain = {
1144
1144
  ETH: ZeroAddress,
1145
1145
  WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
1146
1146
  DAI: "0x68194a729C2450ad26072b3D33ADaCbcef39D574",
1147
- USDC: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
1148
1147
  },
1149
1148
  [ChainId.HARDHAT]: {
1150
1149
  ETH: ZeroAddress,
1151
1150
  WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
1152
1151
  DAI: "0x68194a729C2450ad26072b3D33ADaCbcef39D574",
1153
- USDC: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
1154
1152
  },
1155
1153
  [ChainId.BASE_SEPOLIA]: {
1156
1154
  ETH: ZeroAddress,
1157
1155
  WETH: "0x1BDD24840e119DC2602dCC587Dd182812427A5Cc",
1158
1156
  DAI: "0xbEC8ab89b34835F6b99fFc29c088426E8e708ceA",
1159
- USDC: "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
1160
1157
  },
1161
1158
  [ChainId.OPTIMISM]: {
1162
1159
  ETH: ZeroAddress,
1163
1160
  WETH: "0x4200000000000000000000000000000000000006",
1164
1161
  DAI: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
1165
- USDC: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
1166
1162
  },
1167
1163
  [ChainId.CELO]: {
1168
1164
  ETH: ZeroAddress,
1169
1165
  WETH: "0x66803fb87abd4aac3cbb3fad7c3aa01f6f3fb207",
1170
1166
  DAI: "0xE4fE50cdD716522A56204352f00AA110F731932d",
1171
- USDC: "0xef4229c8c3250C675F21BCefa42f58EfbfF6002a",
1172
1167
  },
1173
1168
  [ChainId.BASE]: {
1174
1169
  ETH: ZeroAddress,
1175
1170
  WETH: "0x4200000000000000000000000000000000000006",
1176
1171
  DAI: "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",
1177
- USDC: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
1178
1172
  },
1179
1173
  };
1180
1174
  const getCurrencies = (chainId) => {
@@ -1195,11 +1189,6 @@ const getCurrencies = (chainId) => {
1195
1189
  address: currenciesForChain.DAI,
1196
1190
  decimals: 18,
1197
1191
  },
1198
- USDC: {
1199
- symbol: "USDC",
1200
- address: currenciesForChain.USDC,
1201
- decimals: 6,
1202
- },
1203
1192
  };
1204
1193
  };
1205
1194
  const currenciesByNetwork = {
@@ -8204,9 +8193,9 @@ class HypercertExchangeClient {
8204
8193
  async deleteOrder(orderId) {
8205
8194
  const signer = this.getSigner();
8206
8195
  if (!signer) {
8207
- throw new Error(`No signer address could be determined when deleting order ${orderId}`);
8196
+ throw new Error(`No signer address could be determined when deleting listing ${orderId}`);
8208
8197
  }
8209
- const signedMessage = await signer.signMessage(`Delete order ${orderId}`);
8198
+ const signedMessage = await signer.signMessage(`Delete listing ${orderId}`);
8210
8199
  return this.api.deleteOrder(orderId, signedMessage);
8211
8200
  }
8212
8201
  }
package/dist/types.d.ts CHANGED
@@ -11,7 +11,6 @@ export interface Addresses {
11
11
  export interface Currencies {
12
12
  ETH: Currency;
13
13
  WETH: Currency;
14
- USDC: Currency;
15
14
  DAI: Currency;
16
15
  }
17
16
  /** Available information about a currency */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypercerts-org/marketplace-sdk",
3
- "version": "0.3.24",
3
+ "version": "0.3.26",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",