@hypercerts-org/marketplace-sdk 0.0.13 → 0.0.14

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.
Files changed (140) hide show
  1. package/dist/LooksRare.d.ts +3 -3
  2. package/dist/index.cjs.js +4 -18
  3. package/dist/index.d.ts +6 -6
  4. package/dist/index.esm.js +6 -20
  5. package/dist/types.d.ts +5 -7
  6. package/dist/utils/calls/exchange.d.ts +6 -7
  7. package/package.json +1 -1
  8. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/AffiliateManager.d.ts +0 -210
  9. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/BatchOrderTypehashRegistry.d.ts +0 -35
  10. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/CreatorFeeManagerWithRoyalties.d.ts +0 -47
  11. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/CurrencyManager.d.ts +0 -247
  12. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/ExecutionManager.d.ts +0 -616
  13. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/LooksRareProtocol.d.ts +0 -1005
  14. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/NonceManager.d.ts +0 -148
  15. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/StrategyManager.d.ts +0 -401
  16. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/TransferManager.d.ts +0 -324
  17. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/TransferSelectorNFT.d.ts +0 -620
  18. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/executionStrategies/BaseStrategy.d.ts +0 -97
  19. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/executionStrategies/StrategyCollectionOffer.d.ts +0 -176
  20. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/executionStrategies/index.d.ts +0 -2
  21. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/helpers/OrderValidatorV2A.d.ts +0 -172
  22. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/helpers/ProtocolHelpers.d.ts +0 -148
  23. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/helpers/index.d.ts +0 -2
  24. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/index.d.ts +0 -16
  25. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IAffiliateManager.d.ts +0 -65
  26. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ICreatorFeeManager.d.ts +0 -47
  27. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ICurrencyManager.d.ts +0 -37
  28. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IExecutionManager.d.ts +0 -64
  29. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ILooksRareProtocol.d.ts +0 -343
  30. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/INonceManager.d.ts +0 -72
  31. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IRoyaltyFeeRegistry.d.ts +0 -41
  32. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IStrategy.d.ts +0 -97
  33. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IStrategyManager.d.ts +0 -85
  34. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ITransferManager.d.ts +0 -80
  35. package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/index.d.ts +0 -10
  36. package/dist/typechain/@looksrare/contracts-exchange-v2/index.d.ts +0 -4
  37. package/dist/typechain/@looksrare/contracts-exchange-v2/test/index.d.ts +0 -2
  38. package/dist/typechain/@looksrare/contracts-exchange-v2/test/mock/MockRoyaltyFeeRegistry.d.ts +0 -222
  39. package/dist/typechain/@looksrare/contracts-exchange-v2/test/mock/index.d.ts +0 -1
  40. package/dist/typechain/@looksrare/contracts-libs/contracts/OwnableTwoSteps.d.ts +0 -121
  41. package/dist/typechain/@looksrare/contracts-libs/contracts/PackableReentrancyGuard.d.ts +0 -20
  42. package/dist/typechain/@looksrare/contracts-libs/contracts/index.d.ts +0 -4
  43. package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/IOwnableTwoSteps.d.ts +0 -80
  44. package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/IReentrancyGuard.d.ts +0 -20
  45. package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC1155.d.ts +0 -224
  46. package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC1271.d.ts +0 -35
  47. package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC165.d.ts +0 -29
  48. package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC20.d.ts +0 -129
  49. package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC2981.d.ts +0 -49
  50. package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC721.d.ts +0 -191
  51. package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IWETH.d.ts +0 -43
  52. package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/index.d.ts +0 -7
  53. package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/index.d.ts +0 -4
  54. package/dist/typechain/@looksrare/contracts-libs/index.d.ts +0 -2
  55. package/dist/typechain/@looksrare/index.d.ts +0 -4
  56. package/dist/typechain/common.d.ts +0 -50
  57. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/AffiliateManager__factory.d.ts +0 -264
  58. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/BatchOrderTypehashRegistry__factory.d.ts +0 -48
  59. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/CreatorFeeManagerWithRoyalties__factory.d.ts +0 -74
  60. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/CurrencyManager__factory.d.ts +0 -307
  61. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/ExecutionManager__factory.d.ts +0 -748
  62. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/LooksRareProtocol__factory.d.ts +0 -1527
  63. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/NonceManager__factory.d.ts +0 -174
  64. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/StrategyManager__factory.d.ts +0 -478
  65. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/TransferManager__factory.d.ts +0 -406
  66. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/TransferSelectorNFT__factory.d.ts +0 -766
  67. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/executionStrategies/BaseStrategy__factory.d.ts +0 -100
  68. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/executionStrategies/StrategyCollectionOffer__factory.d.ts +0 -323
  69. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/executionStrategies/index.d.ts +0 -2
  70. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/helpers/OrderValidatorV2A__factory.d.ts +0 -338
  71. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/helpers/ProtocolHelpers__factory.d.ts +0 -302
  72. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/helpers/index.d.ts +0 -2
  73. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/index.d.ts +0 -13
  74. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IAffiliateManager__factory.d.ts +0 -50
  75. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/ICreatorFeeManager__factory.d.ts +0 -51
  76. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/ICurrencyManager__factory.d.ts +0 -22
  77. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IExecutionManager__factory.d.ts +0 -61
  78. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/ILooksRareProtocol__factory.d.ts +0 -540
  79. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/INonceManager__factory.d.ts +0 -57
  80. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IRoyaltyFeeRegistry__factory.d.ts +0 -29
  81. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IStrategyManager__factory.d.ts +0 -88
  82. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IStrategy__factory.d.ts +0 -100
  83. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/ITransferManager__factory.d.ts +0 -77
  84. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/index.d.ts +0 -10
  85. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/index.d.ts +0 -2
  86. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/test/index.d.ts +0 -1
  87. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/test/mock/MockRoyaltyFeeRegistry__factory.d.ts +0 -278
  88. package/dist/typechain/factories/@looksrare/contracts-exchange-v2/test/mock/index.d.ts +0 -1
  89. package/dist/typechain/factories/@looksrare/contracts-libs/contracts/OwnableTwoSteps__factory.d.ts +0 -130
  90. package/dist/typechain/factories/@looksrare/contracts-libs/contracts/PackableReentrancyGuard__factory.d.ts +0 -11
  91. package/dist/typechain/factories/@looksrare/contracts-libs/contracts/index.d.ts +0 -3
  92. package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/IOwnableTwoSteps__factory.d.ts +0 -66
  93. package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/IReentrancyGuard__factory.d.ts +0 -11
  94. package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC1155__factory.d.ts +0 -222
  95. package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC1271__factory.d.ts +0 -25
  96. package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC165__factory.d.ts +0 -21
  97. package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC20__factory.d.ts +0 -147
  98. package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC2981__factory.d.ts +0 -43
  99. package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC721__factory.d.ts +0 -213
  100. package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IWETH__factory.d.ts +0 -41
  101. package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/index.d.ts +0 -7
  102. package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/index.d.ts +0 -3
  103. package/dist/typechain/factories/@looksrare/contracts-libs/index.d.ts +0 -1
  104. package/dist/typechain/factories/@looksrare/index.d.ts +0 -2
  105. package/dist/typechain/factories/index.d.ts +0 -3
  106. package/dist/typechain/factories/solmate/index.d.ts +0 -1
  107. package/dist/typechain/factories/solmate/src/index.d.ts +0 -1
  108. package/dist/typechain/factories/solmate/src/tokens/ERC1155.sol/ERC1155TokenReceiver__factory.d.ts +0 -67
  109. package/dist/typechain/factories/solmate/src/tokens/ERC1155.sol/ERC1155__factory.d.ts +0 -250
  110. package/dist/typechain/factories/solmate/src/tokens/ERC1155.sol/index.d.ts +0 -2
  111. package/dist/typechain/factories/solmate/src/tokens/ERC20__factory.d.ts +0 -235
  112. package/dist/typechain/factories/solmate/src/tokens/ERC721.sol/ERC721TokenReceiver__factory.d.ts +0 -33
  113. package/dist/typechain/factories/solmate/src/tokens/ERC721.sol/ERC721__factory.d.ts +0 -261
  114. package/dist/typechain/factories/solmate/src/tokens/ERC721.sol/index.d.ts +0 -2
  115. package/dist/typechain/factories/solmate/src/tokens/WETH__factory.d.ts +0 -299
  116. package/dist/typechain/factories/solmate/src/tokens/index.d.ts +0 -4
  117. package/dist/typechain/factories/src/contracts/index.d.ts +0 -1
  118. package/dist/typechain/factories/src/contracts/tests/MockERC1155__factory.d.ts +0 -283
  119. package/dist/typechain/factories/src/contracts/tests/MockERC721__factory.d.ts +0 -308
  120. package/dist/typechain/factories/src/contracts/tests/Verifier__factory.d.ts +0 -462
  121. package/dist/typechain/factories/src/contracts/tests/index.d.ts +0 -3
  122. package/dist/typechain/factories/src/index.d.ts +0 -1
  123. package/dist/typechain/index.d.ts +0 -97
  124. package/dist/typechain/solmate/index.d.ts +0 -2
  125. package/dist/typechain/solmate/src/index.d.ts +0 -2
  126. package/dist/typechain/solmate/src/tokens/ERC1155.sol/ERC1155.d.ts +0 -236
  127. package/dist/typechain/solmate/src/tokens/ERC1155.sol/ERC1155TokenReceiver.d.ts +0 -67
  128. package/dist/typechain/solmate/src/tokens/ERC1155.sol/index.d.ts +0 -2
  129. package/dist/typechain/solmate/src/tokens/ERC20.d.ts +0 -181
  130. package/dist/typechain/solmate/src/tokens/ERC721.sol/ERC721.d.ts +0 -211
  131. package/dist/typechain/solmate/src/tokens/ERC721.sol/ERC721TokenReceiver.d.ts +0 -39
  132. package/dist/typechain/solmate/src/tokens/ERC721.sol/index.d.ts +0 -2
  133. package/dist/typechain/solmate/src/tokens/WETH.d.ts +0 -219
  134. package/dist/typechain/solmate/src/tokens/index.d.ts +0 -6
  135. package/dist/typechain/src/contracts/index.d.ts +0 -2
  136. package/dist/typechain/src/contracts/tests/MockERC1155.d.ts +0 -252
  137. package/dist/typechain/src/contracts/tests/MockERC721.d.ts +0 -219
  138. package/dist/typechain/src/contracts/tests/Verifier.d.ts +0 -174
  139. package/dist/typechain/src/contracts/tests/index.d.ts +0 -3
  140. package/dist/typechain/src/index.d.ts +0 -2
@@ -135,14 +135,14 @@ export declare class LooksRare {
135
135
  signature: string;
136
136
  merkleTree?: MerkleTree;
137
137
  }[], isAtomic: boolean, overrides?: Overrides): {
138
- call: (additionalOverrides?: import("./typechain/common").PayableOverrides | undefined) => any;
138
+ call: (additionalOverrides?: any) => any;
139
139
  /**
140
140
  * Validate a timestamp format (seconds)
141
141
  * @param timestamp
142
142
  * @returns boolean
143
143
  */
144
- estimateGas: (additionalOverrides?: import("./typechain/common").PayableOverrides | undefined) => any;
145
- callStatic: (additionalOverrides?: import("./typechain/common").PayableOverrides | undefined) => any;
144
+ estimateGas: (additionalOverrides?: any) => any;
145
+ callStatic: (additionalOverrides?: any) => any;
146
146
  };
147
147
  /**
148
148
  * Cancell all maker bid and/or ask orders for the current user
package/dist/index.cjs.js CHANGED
@@ -687,9 +687,7 @@ var strategies = /*#__PURE__*/Object.freeze({
687
687
  /** List of supported chains */
688
688
  exports.ChainId = void 0;
689
689
  (function (ChainId) {
690
- ChainId[ChainId["GOERLI"] = 5] = "GOERLI";
691
690
  ChainId[ChainId["SEPOLIA"] = 11155111] = "SEPOLIA";
692
- ChainId[ChainId["HARDHAT"] = 31337] = "HARDHAT";
693
691
  })(exports.ChainId || (exports.ChainId = {}));
694
692
  /** List of collection types supported by the protocol */
695
693
  exports.CollectionType = void 0;
@@ -1094,7 +1092,7 @@ const fetchOrderNonce = async ({ address, chainId }) => {
1094
1092
  };
1095
1093
  const createOrder = async ({ order, signer, signature, quoteType, chainId, }) => {
1096
1094
  const { globalNonce, ...orderWithoutGlobalNonce } = order;
1097
- return fetch(`${HYPERCERTS_MARKETPLACE_API_URL}/marketplace/order`, {
1095
+ return fetch(`${HYPERCERTS_MARKETPLACE_API_URL}/marketplace/order/`, {
1098
1096
  method: "POST",
1099
1097
  headers: {
1100
1098
  "Content-Type": "application/json",
@@ -1127,28 +1125,16 @@ var api = /*#__PURE__*/Object.freeze({
1127
1125
  supabaseHypercerts: supabaseHypercerts
1128
1126
  });
1129
1127
 
1130
- const goerliAddresses = {
1131
- EXCHANGE_V2: contracts.deployments[5].HypercertExchange,
1132
- TRANSFER_MANAGER_V2: contracts.deployments[5].TransferManager,
1133
- WETH: "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",
1134
- ORDER_VALIDATOR_V2: contracts.deployments[5].OrderValidatorV2A,
1135
- };
1136
1128
  const sepoliaAddresses = {
1137
- // EXCHANGE_V2: deployments[11155111].HypercertExchange as string,
1138
- // EXCHANGE_V2: "0x2d7C5512bC3BBE1A12FB9EC1F8CD7Ab0C99E6de5",
1139
- EXCHANGE_V2: "0xfCC76C05867dad129f1D89a593Da8d55821084Eb",
1140
- // TRANSFER_MANAGER_V2: deployments[11155111].TransferManager as string,
1141
- TRANSFER_MANAGER_V2: "0xF0983523e44A0c1EE3a02E7F6e7E53A3FBc52aD8",
1129
+ EXCHANGE_V2: sdk.deployments[11155111].addresses?.HypercertExchange,
1130
+ TRANSFER_MANAGER_V2: sdk.deployments[11155111].addresses?.TransferManager,
1131
+ ORDER_VALIDATOR_V2: sdk.deployments[11155111].addresses?.OrderValidator,
1142
1132
  WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
1143
- // ORDER_VALIDATOR_V2: deployments[11155111].OrderValidatorV2A as string,
1144
- ORDER_VALIDATOR_V2: "0x45cae10e94d31f9d04f007fafd989d2cf7193ba6",
1145
1133
  };
1146
1134
  /**
1147
1135
  * List of useful contract addresses
1148
1136
  */
1149
1137
  const addressesByNetwork = {
1150
- [exports.ChainId.GOERLI]: goerliAddresses,
1151
- [exports.ChainId.HARDHAT]: goerliAddresses,
1152
1138
  [exports.ChainId.SEPOLIA]: sepoliaAddresses,
1153
1139
  };
1154
1140
 
package/dist/index.d.ts CHANGED
@@ -25,12 +25,12 @@ declare const utils: {
25
25
  cancelOrderNonces: (signer: import("ethers").Signer, address: string, nonces: import("ethers").BigNumberish[], overrides?: import("ethers").Overrides | undefined) => import("./types").ContractMethods;
26
26
  cancelSubsetNonces: (signer: import("ethers").Signer, address: string, nonces: import("ethers").BigNumberish[], overrides?: import("ethers").Overrides | undefined) => import("./types").ContractMethods;
27
27
  incrementBidAskNonces: (signer: import("ethers").Signer, address: string, bid: boolean, ask: boolean, overrides?: import("ethers").Overrides | undefined) => import("./types").ContractMethods;
28
- executeTakerBid: (signer: import("ethers").Signer, address: string, taker: import("./types").Taker, maker: import("./types").Maker, makerSignature: string, merkleTree: import("./types").MerkleTree, overrides?: import("./typechain/common").PayableOverrides | undefined) => import("./types").ContractMethods;
29
- executeTakerAsk: (signer: import("ethers").Signer, address: string, taker: import("./types").Taker, maker: import("./types").Maker, makerSignature: string, merkleTree: import("./types").MerkleTree, overrides?: import("./typechain/common").PayableOverrides | undefined) => import("./types").ContractMethods;
30
- executeMultipleTakerBids: (signer: import("ethers").Signer, address: string, taker: import("./types").Taker[], maker: import("./types").Maker[], makerSignature: string[], isAtomic: boolean, merkleTree: import("./types").MerkleTree[], overrides?: import("./typechain/common").PayableOverrides | undefined) => {
31
- call: (additionalOverrides?: import("./typechain/common").PayableOverrides | undefined) => any;
32
- estimateGas: (additionalOverrides?: import("./typechain/common").PayableOverrides | undefined) => any;
33
- callStatic: (additionalOverrides?: import("./typechain/common").PayableOverrides | undefined) => any;
28
+ executeTakerBid: (signer: import("ethers").Signer, address: string, taker: import("./types").Taker, maker: import("./types").Maker, makerSignature: string, merkleTree: import("./types").MerkleTree, overrides?: any) => import("./types").ContractMethods;
29
+ executeTakerAsk: (signer: import("ethers").Signer, address: string, taker: import("./types").Taker, maker: import("./types").Maker, makerSignature: string, merkleTree: import("./types").MerkleTree, overrides?: any) => import("./types").ContractMethods;
30
+ executeMultipleTakerBids: (signer: import("ethers").Signer, address: string, taker: import("./types").Taker[], maker: import("./types").Maker[], makerSignature: string[], isAtomic: boolean, merkleTree: import("./types").MerkleTree[], overrides?: any) => {
31
+ call: (additionalOverrides?: any) => any;
32
+ estimateGas: (additionalOverrides?: any) => any;
33
+ callStatic: (additionalOverrides?: any) => any;
34
34
  };
35
35
  setApprovalForAll: (signer: import("ethers").Signer, collection: string, operator: string, approved: boolean, overrides?: import("ethers").Overrides | undefined) => Promise<import("ethers").ContractTransactionResponse>;
36
36
  isApprovedForAll: (signerOrProvider: import("ethers").Signer | import("ethers").Provider, collection: string, account: string, operator: string, overrides?: import("ethers").Overrides | undefined) => Promise<boolean>;
package/dist/index.esm.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Contract, ZeroAddress, AbiCoder, TypedDataEncoder, keccak256, solidityPackedKeccak256, ethers, ZeroHash, MaxUint256 } from 'ethers';
2
- import { HypercertExchangeAbi, TransferManagerAbi, OrderValidatorV2A as OrderValidatorV2A$1, deployments } from '@hypercerts-org/contracts';
2
+ import { HypercertExchangeAbi, TransferManagerAbi, OrderValidatorV2A as OrderValidatorV2A$1 } from '@hypercerts-org/contracts';
3
3
  import { MerkleTree } from 'merkletreejs';
4
4
  import { createClient } from '@supabase/supabase-js';
5
- import { HypercertClient } from '@hypercerts-org/sdk';
5
+ import { HypercertClient, deployments } from '@hypercerts-org/sdk';
6
6
  import { keccak256 as keccak256$1 } from 'js-sha3';
7
7
 
8
8
  var abiIERC721 = [
@@ -685,9 +685,7 @@ var strategies = /*#__PURE__*/Object.freeze({
685
685
  /** List of supported chains */
686
686
  var ChainId;
687
687
  (function (ChainId) {
688
- ChainId[ChainId["GOERLI"] = 5] = "GOERLI";
689
688
  ChainId[ChainId["SEPOLIA"] = 11155111] = "SEPOLIA";
690
- ChainId[ChainId["HARDHAT"] = 31337] = "HARDHAT";
691
689
  })(ChainId || (ChainId = {}));
692
690
  /** List of collection types supported by the protocol */
693
691
  var CollectionType;
@@ -1092,7 +1090,7 @@ const fetchOrderNonce = async ({ address, chainId }) => {
1092
1090
  };
1093
1091
  const createOrder = async ({ order, signer, signature, quoteType, chainId, }) => {
1094
1092
  const { globalNonce, ...orderWithoutGlobalNonce } = order;
1095
- return fetch(`${HYPERCERTS_MARKETPLACE_API_URL}/marketplace/order`, {
1093
+ return fetch(`${HYPERCERTS_MARKETPLACE_API_URL}/marketplace/order/`, {
1096
1094
  method: "POST",
1097
1095
  headers: {
1098
1096
  "Content-Type": "application/json",
@@ -1125,28 +1123,16 @@ var api = /*#__PURE__*/Object.freeze({
1125
1123
  supabaseHypercerts: supabaseHypercerts
1126
1124
  });
1127
1125
 
1128
- const goerliAddresses = {
1129
- EXCHANGE_V2: deployments[5].HypercertExchange,
1130
- TRANSFER_MANAGER_V2: deployments[5].TransferManager,
1131
- WETH: "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",
1132
- ORDER_VALIDATOR_V2: deployments[5].OrderValidatorV2A,
1133
- };
1134
1126
  const sepoliaAddresses = {
1135
- // EXCHANGE_V2: deployments[11155111].HypercertExchange as string,
1136
- // EXCHANGE_V2: "0x2d7C5512bC3BBE1A12FB9EC1F8CD7Ab0C99E6de5",
1137
- EXCHANGE_V2: "0xfCC76C05867dad129f1D89a593Da8d55821084Eb",
1138
- // TRANSFER_MANAGER_V2: deployments[11155111].TransferManager as string,
1139
- TRANSFER_MANAGER_V2: "0xF0983523e44A0c1EE3a02E7F6e7E53A3FBc52aD8",
1127
+ EXCHANGE_V2: deployments[11155111].addresses?.HypercertExchange,
1128
+ TRANSFER_MANAGER_V2: deployments[11155111].addresses?.TransferManager,
1129
+ ORDER_VALIDATOR_V2: deployments[11155111].addresses?.OrderValidator,
1140
1130
  WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
1141
- // ORDER_VALIDATOR_V2: deployments[11155111].OrderValidatorV2A as string,
1142
- ORDER_VALIDATOR_V2: "0x45cae10e94d31f9d04f007fafd989d2cf7193ba6",
1143
1131
  };
1144
1132
  /**
1145
1133
  * List of useful contract addresses
1146
1134
  */
1147
1135
  const addressesByNetwork = {
1148
- [ChainId.GOERLI]: goerliAddresses,
1149
- [ChainId.HARDHAT]: goerliAddresses,
1150
1136
  [ChainId.SEPOLIA]: sepoliaAddresses,
1151
1137
  };
1152
1138
 
package/dist/types.d.ts CHANGED
@@ -2,16 +2,14 @@ import { BigNumberish, BytesLike, Overrides, TypedDataField, ContractTransaction
2
2
  import { Eip712MakerMerkleTree } from "./utils/Eip712MakerMerkleTree";
3
3
  /** Addresses used to create a LooksRare instance */
4
4
  export interface Addresses {
5
- EXCHANGE_V2: string;
6
- TRANSFER_MANAGER_V2: string;
7
- WETH: string;
8
- ORDER_VALIDATOR_V2: string;
5
+ EXCHANGE_V2: `0x${string}`;
6
+ TRANSFER_MANAGER_V2: `0x${string}`;
7
+ WETH: `0x${string}`;
8
+ ORDER_VALIDATOR_V2: `0x${string}`;
9
9
  }
10
10
  /** List of supported chains */
11
11
  export declare enum ChainId {
12
- GOERLI = 5,
13
- SEPOLIA = 11155111,
14
- HARDHAT = 31337
12
+ SEPOLIA = 11155111
15
13
  }
16
14
  /** ChainInfo data used to interact with LooksRare ecosystem */
17
15
  export interface ChainInfo {
@@ -1,10 +1,9 @@
1
1
  import { Signer } from "ethers";
2
2
  import { Maker, MerkleTree, Taker, ContractMethods } from "../../types";
3
- import { PayableOverrides } from "../../typechain/common";
4
- export declare const executeTakerBid: (signer: Signer, address: string, taker: Taker, maker: Maker, makerSignature: string, merkleTree: MerkleTree, overrides?: PayableOverrides) => ContractMethods;
5
- export declare const executeTakerAsk: (signer: Signer, address: string, taker: Taker, maker: Maker, makerSignature: string, merkleTree: MerkleTree, overrides?: PayableOverrides) => ContractMethods;
6
- export declare const executeMultipleTakerBids: (signer: Signer, address: string, taker: Taker[], maker: Maker[], makerSignature: string[], isAtomic: boolean, merkleTree: MerkleTree[], overrides?: PayableOverrides) => {
7
- call: (additionalOverrides?: PayableOverrides) => any;
8
- estimateGas: (additionalOverrides?: PayableOverrides) => any;
9
- callStatic: (additionalOverrides?: PayableOverrides) => any;
3
+ export declare const executeTakerBid: (signer: Signer, address: string, taker: Taker, maker: Maker, makerSignature: string, merkleTree: MerkleTree, overrides?: any) => ContractMethods;
4
+ export declare const executeTakerAsk: (signer: Signer, address: string, taker: Taker, maker: Maker, makerSignature: string, merkleTree: MerkleTree, overrides?: any) => ContractMethods;
5
+ export declare const executeMultipleTakerBids: (signer: Signer, address: string, taker: Taker[], maker: Maker[], makerSignature: string[], isAtomic: boolean, merkleTree: MerkleTree[], overrides?: any) => {
6
+ call: (additionalOverrides?: any) => any;
7
+ estimateGas: (additionalOverrides?: any) => any;
8
+ callStatic: (additionalOverrides?: any) => any;
10
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypercerts-org/marketplace-sdk",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -1,210 +0,0 @@
1
- import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
- import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../common";
3
- export interface AffiliateManagerInterface extends Interface {
4
- getFunction(nameOrSignature: "affiliateController" | "affiliateRates" | "cancelOwnershipTransfer" | "confirmOwnershipRenouncement" | "confirmOwnershipTransfer" | "initiateOwnershipRenouncement" | "initiateOwnershipTransfer" | "isAffiliateProgramActive" | "owner" | "ownershipStatus" | "potentialOwner" | "updateAffiliateController" | "updateAffiliateProgramStatus" | "updateAffiliateRate"): FunctionFragment;
5
- getEvent(nameOrSignatureOrTopic: "CancelOwnershipTransfer" | "InitiateOwnershipRenouncement" | "InitiateOwnershipTransfer" | "NewAffiliateController" | "NewAffiliateProgramStatus" | "NewAffiliateRate" | "NewOwner"): EventFragment;
6
- encodeFunctionData(functionFragment: "affiliateController", values?: undefined): string;
7
- encodeFunctionData(functionFragment: "affiliateRates", values: [AddressLike]): string;
8
- encodeFunctionData(functionFragment: "cancelOwnershipTransfer", values?: undefined): string;
9
- encodeFunctionData(functionFragment: "confirmOwnershipRenouncement", values?: undefined): string;
10
- encodeFunctionData(functionFragment: "confirmOwnershipTransfer", values?: undefined): string;
11
- encodeFunctionData(functionFragment: "initiateOwnershipRenouncement", values?: undefined): string;
12
- encodeFunctionData(functionFragment: "initiateOwnershipTransfer", values: [AddressLike]): string;
13
- encodeFunctionData(functionFragment: "isAffiliateProgramActive", values?: undefined): string;
14
- encodeFunctionData(functionFragment: "owner", values?: undefined): string;
15
- encodeFunctionData(functionFragment: "ownershipStatus", values?: undefined): string;
16
- encodeFunctionData(functionFragment: "potentialOwner", values?: undefined): string;
17
- encodeFunctionData(functionFragment: "updateAffiliateController", values: [AddressLike]): string;
18
- encodeFunctionData(functionFragment: "updateAffiliateProgramStatus", values: [boolean]): string;
19
- encodeFunctionData(functionFragment: "updateAffiliateRate", values: [AddressLike, BigNumberish]): string;
20
- decodeFunctionResult(functionFragment: "affiliateController", data: BytesLike): Result;
21
- decodeFunctionResult(functionFragment: "affiliateRates", data: BytesLike): Result;
22
- decodeFunctionResult(functionFragment: "cancelOwnershipTransfer", data: BytesLike): Result;
23
- decodeFunctionResult(functionFragment: "confirmOwnershipRenouncement", data: BytesLike): Result;
24
- decodeFunctionResult(functionFragment: "confirmOwnershipTransfer", data: BytesLike): Result;
25
- decodeFunctionResult(functionFragment: "initiateOwnershipRenouncement", data: BytesLike): Result;
26
- decodeFunctionResult(functionFragment: "initiateOwnershipTransfer", data: BytesLike): Result;
27
- decodeFunctionResult(functionFragment: "isAffiliateProgramActive", data: BytesLike): Result;
28
- decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
29
- decodeFunctionResult(functionFragment: "ownershipStatus", data: BytesLike): Result;
30
- decodeFunctionResult(functionFragment: "potentialOwner", data: BytesLike): Result;
31
- decodeFunctionResult(functionFragment: "updateAffiliateController", data: BytesLike): Result;
32
- decodeFunctionResult(functionFragment: "updateAffiliateProgramStatus", data: BytesLike): Result;
33
- decodeFunctionResult(functionFragment: "updateAffiliateRate", data: BytesLike): Result;
34
- }
35
- export declare namespace CancelOwnershipTransferEvent {
36
- type InputTuple = [];
37
- type OutputTuple = [];
38
- interface OutputObject {
39
- }
40
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
41
- type Filter = TypedDeferredTopicFilter<Event>;
42
- type Log = TypedEventLog<Event>;
43
- type LogDescription = TypedLogDescription<Event>;
44
- }
45
- export declare namespace InitiateOwnershipRenouncementEvent {
46
- type InputTuple = [];
47
- type OutputTuple = [];
48
- interface OutputObject {
49
- }
50
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
51
- type Filter = TypedDeferredTopicFilter<Event>;
52
- type Log = TypedEventLog<Event>;
53
- type LogDescription = TypedLogDescription<Event>;
54
- }
55
- export declare namespace InitiateOwnershipTransferEvent {
56
- type InputTuple = [
57
- previousOwner: AddressLike,
58
- potentialOwner: AddressLike
59
- ];
60
- type OutputTuple = [previousOwner: string, potentialOwner: string];
61
- interface OutputObject {
62
- previousOwner: string;
63
- potentialOwner: string;
64
- }
65
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
66
- type Filter = TypedDeferredTopicFilter<Event>;
67
- type Log = TypedEventLog<Event>;
68
- type LogDescription = TypedLogDescription<Event>;
69
- }
70
- export declare namespace NewAffiliateControllerEvent {
71
- type InputTuple = [affiliateController: AddressLike];
72
- type OutputTuple = [affiliateController: string];
73
- interface OutputObject {
74
- affiliateController: string;
75
- }
76
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
77
- type Filter = TypedDeferredTopicFilter<Event>;
78
- type Log = TypedEventLog<Event>;
79
- type LogDescription = TypedLogDescription<Event>;
80
- }
81
- export declare namespace NewAffiliateProgramStatusEvent {
82
- type InputTuple = [isActive: boolean];
83
- type OutputTuple = [isActive: boolean];
84
- interface OutputObject {
85
- isActive: boolean;
86
- }
87
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
88
- type Filter = TypedDeferredTopicFilter<Event>;
89
- type Log = TypedEventLog<Event>;
90
- type LogDescription = TypedLogDescription<Event>;
91
- }
92
- export declare namespace NewAffiliateRateEvent {
93
- type InputTuple = [affiliate: AddressLike, rate: BigNumberish];
94
- type OutputTuple = [affiliate: string, rate: bigint];
95
- interface OutputObject {
96
- affiliate: string;
97
- rate: bigint;
98
- }
99
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
100
- type Filter = TypedDeferredTopicFilter<Event>;
101
- type Log = TypedEventLog<Event>;
102
- type LogDescription = TypedLogDescription<Event>;
103
- }
104
- export declare namespace NewOwnerEvent {
105
- type InputTuple = [newOwner: AddressLike];
106
- type OutputTuple = [newOwner: string];
107
- interface OutputObject {
108
- newOwner: string;
109
- }
110
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
111
- type Filter = TypedDeferredTopicFilter<Event>;
112
- type Log = TypedEventLog<Event>;
113
- type LogDescription = TypedLogDescription<Event>;
114
- }
115
- export interface AffiliateManager extends BaseContract {
116
- connect(runner?: ContractRunner | null): AffiliateManager;
117
- waitForDeployment(): Promise<this>;
118
- interface: AffiliateManagerInterface;
119
- queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
120
- queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
121
- on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
122
- on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
123
- once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
124
- once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
125
- listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
126
- listeners(eventName?: string): Promise<Array<Listener>>;
127
- removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
128
- affiliateController: TypedContractMethod<[], [string], "view">;
129
- affiliateRates: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
130
- cancelOwnershipTransfer: TypedContractMethod<[], [void], "nonpayable">;
131
- confirmOwnershipRenouncement: TypedContractMethod<[], [void], "nonpayable">;
132
- confirmOwnershipTransfer: TypedContractMethod<[], [void], "nonpayable">;
133
- initiateOwnershipRenouncement: TypedContractMethod<[], [void], "nonpayable">;
134
- initiateOwnershipTransfer: TypedContractMethod<[
135
- newPotentialOwner: AddressLike
136
- ], [
137
- void
138
- ], "nonpayable">;
139
- isAffiliateProgramActive: TypedContractMethod<[], [boolean], "view">;
140
- owner: TypedContractMethod<[], [string], "view">;
141
- ownershipStatus: TypedContractMethod<[], [bigint], "view">;
142
- potentialOwner: TypedContractMethod<[], [string], "view">;
143
- updateAffiliateController: TypedContractMethod<[
144
- newAffiliateController: AddressLike
145
- ], [
146
- void
147
- ], "nonpayable">;
148
- updateAffiliateProgramStatus: TypedContractMethod<[
149
- isActive: boolean
150
- ], [
151
- void
152
- ], "nonpayable">;
153
- updateAffiliateRate: TypedContractMethod<[
154
- affiliate: AddressLike,
155
- bp: BigNumberish
156
- ], [
157
- void
158
- ], "nonpayable">;
159
- getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
160
- getFunction(nameOrSignature: "affiliateController"): TypedContractMethod<[], [string], "view">;
161
- getFunction(nameOrSignature: "affiliateRates"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
162
- getFunction(nameOrSignature: "cancelOwnershipTransfer"): TypedContractMethod<[], [void], "nonpayable">;
163
- getFunction(nameOrSignature: "confirmOwnershipRenouncement"): TypedContractMethod<[], [void], "nonpayable">;
164
- getFunction(nameOrSignature: "confirmOwnershipTransfer"): TypedContractMethod<[], [void], "nonpayable">;
165
- getFunction(nameOrSignature: "initiateOwnershipRenouncement"): TypedContractMethod<[], [void], "nonpayable">;
166
- getFunction(nameOrSignature: "initiateOwnershipTransfer"): TypedContractMethod<[
167
- newPotentialOwner: AddressLike
168
- ], [
169
- void
170
- ], "nonpayable">;
171
- getFunction(nameOrSignature: "isAffiliateProgramActive"): TypedContractMethod<[], [boolean], "view">;
172
- getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
173
- getFunction(nameOrSignature: "ownershipStatus"): TypedContractMethod<[], [bigint], "view">;
174
- getFunction(nameOrSignature: "potentialOwner"): TypedContractMethod<[], [string], "view">;
175
- getFunction(nameOrSignature: "updateAffiliateController"): TypedContractMethod<[
176
- newAffiliateController: AddressLike
177
- ], [
178
- void
179
- ], "nonpayable">;
180
- getFunction(nameOrSignature: "updateAffiliateProgramStatus"): TypedContractMethod<[isActive: boolean], [void], "nonpayable">;
181
- getFunction(nameOrSignature: "updateAffiliateRate"): TypedContractMethod<[
182
- affiliate: AddressLike,
183
- bp: BigNumberish
184
- ], [
185
- void
186
- ], "nonpayable">;
187
- getEvent(key: "CancelOwnershipTransfer"): TypedContractEvent<CancelOwnershipTransferEvent.InputTuple, CancelOwnershipTransferEvent.OutputTuple, CancelOwnershipTransferEvent.OutputObject>;
188
- getEvent(key: "InitiateOwnershipRenouncement"): TypedContractEvent<InitiateOwnershipRenouncementEvent.InputTuple, InitiateOwnershipRenouncementEvent.OutputTuple, InitiateOwnershipRenouncementEvent.OutputObject>;
189
- getEvent(key: "InitiateOwnershipTransfer"): TypedContractEvent<InitiateOwnershipTransferEvent.InputTuple, InitiateOwnershipTransferEvent.OutputTuple, InitiateOwnershipTransferEvent.OutputObject>;
190
- getEvent(key: "NewAffiliateController"): TypedContractEvent<NewAffiliateControllerEvent.InputTuple, NewAffiliateControllerEvent.OutputTuple, NewAffiliateControllerEvent.OutputObject>;
191
- getEvent(key: "NewAffiliateProgramStatus"): TypedContractEvent<NewAffiliateProgramStatusEvent.InputTuple, NewAffiliateProgramStatusEvent.OutputTuple, NewAffiliateProgramStatusEvent.OutputObject>;
192
- getEvent(key: "NewAffiliateRate"): TypedContractEvent<NewAffiliateRateEvent.InputTuple, NewAffiliateRateEvent.OutputTuple, NewAffiliateRateEvent.OutputObject>;
193
- getEvent(key: "NewOwner"): TypedContractEvent<NewOwnerEvent.InputTuple, NewOwnerEvent.OutputTuple, NewOwnerEvent.OutputObject>;
194
- filters: {
195
- "CancelOwnershipTransfer()": TypedContractEvent<CancelOwnershipTransferEvent.InputTuple, CancelOwnershipTransferEvent.OutputTuple, CancelOwnershipTransferEvent.OutputObject>;
196
- CancelOwnershipTransfer: TypedContractEvent<CancelOwnershipTransferEvent.InputTuple, CancelOwnershipTransferEvent.OutputTuple, CancelOwnershipTransferEvent.OutputObject>;
197
- "InitiateOwnershipRenouncement()": TypedContractEvent<InitiateOwnershipRenouncementEvent.InputTuple, InitiateOwnershipRenouncementEvent.OutputTuple, InitiateOwnershipRenouncementEvent.OutputObject>;
198
- InitiateOwnershipRenouncement: TypedContractEvent<InitiateOwnershipRenouncementEvent.InputTuple, InitiateOwnershipRenouncementEvent.OutputTuple, InitiateOwnershipRenouncementEvent.OutputObject>;
199
- "InitiateOwnershipTransfer(address,address)": TypedContractEvent<InitiateOwnershipTransferEvent.InputTuple, InitiateOwnershipTransferEvent.OutputTuple, InitiateOwnershipTransferEvent.OutputObject>;
200
- InitiateOwnershipTransfer: TypedContractEvent<InitiateOwnershipTransferEvent.InputTuple, InitiateOwnershipTransferEvent.OutputTuple, InitiateOwnershipTransferEvent.OutputObject>;
201
- "NewAffiliateController(address)": TypedContractEvent<NewAffiliateControllerEvent.InputTuple, NewAffiliateControllerEvent.OutputTuple, NewAffiliateControllerEvent.OutputObject>;
202
- NewAffiliateController: TypedContractEvent<NewAffiliateControllerEvent.InputTuple, NewAffiliateControllerEvent.OutputTuple, NewAffiliateControllerEvent.OutputObject>;
203
- "NewAffiliateProgramStatus(bool)": TypedContractEvent<NewAffiliateProgramStatusEvent.InputTuple, NewAffiliateProgramStatusEvent.OutputTuple, NewAffiliateProgramStatusEvent.OutputObject>;
204
- NewAffiliateProgramStatus: TypedContractEvent<NewAffiliateProgramStatusEvent.InputTuple, NewAffiliateProgramStatusEvent.OutputTuple, NewAffiliateProgramStatusEvent.OutputObject>;
205
- "NewAffiliateRate(address,uint256)": TypedContractEvent<NewAffiliateRateEvent.InputTuple, NewAffiliateRateEvent.OutputTuple, NewAffiliateRateEvent.OutputObject>;
206
- NewAffiliateRate: TypedContractEvent<NewAffiliateRateEvent.InputTuple, NewAffiliateRateEvent.OutputTuple, NewAffiliateRateEvent.OutputObject>;
207
- "NewOwner(address)": TypedContractEvent<NewOwnerEvent.InputTuple, NewOwnerEvent.OutputTuple, NewOwnerEvent.OutputObject>;
208
- NewOwner: TypedContractEvent<NewOwnerEvent.InputTuple, NewOwnerEvent.OutputTuple, NewOwnerEvent.OutputObject>;
209
- };
210
- }
@@ -1,35 +0,0 @@
1
- import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
2
- import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
3
- export interface BatchOrderTypehashRegistryInterface extends Interface {
4
- getFunction(nameOrSignature: "hashBatchOrder"): FunctionFragment;
5
- encodeFunctionData(functionFragment: "hashBatchOrder", values: [BytesLike, BigNumberish]): string;
6
- decodeFunctionResult(functionFragment: "hashBatchOrder", data: BytesLike): Result;
7
- }
8
- export interface BatchOrderTypehashRegistry extends BaseContract {
9
- connect(runner?: ContractRunner | null): BatchOrderTypehashRegistry;
10
- waitForDeployment(): Promise<this>;
11
- interface: BatchOrderTypehashRegistryInterface;
12
- queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
13
- queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
14
- on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
15
- on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
16
- once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
17
- once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
18
- listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
19
- listeners(eventName?: string): Promise<Array<Listener>>;
20
- removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
21
- hashBatchOrder: TypedContractMethod<[
22
- root: BytesLike,
23
- proofLength: BigNumberish
24
- ], [
25
- string
26
- ], "view">;
27
- getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
28
- getFunction(nameOrSignature: "hashBatchOrder"): TypedContractMethod<[
29
- root: BytesLike,
30
- proofLength: BigNumberish
31
- ], [
32
- string
33
- ], "view">;
34
- filters: {};
35
- }
@@ -1,47 +0,0 @@
1
- import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
- import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
3
- export interface CreatorFeeManagerWithRoyaltiesInterface extends Interface {
4
- getFunction(nameOrSignature: "royaltyFeeRegistry" | "viewCreatorFeeInfo"): FunctionFragment;
5
- encodeFunctionData(functionFragment: "royaltyFeeRegistry", values?: undefined): string;
6
- encodeFunctionData(functionFragment: "viewCreatorFeeInfo", values: [AddressLike, BigNumberish, BigNumberish[]]): string;
7
- decodeFunctionResult(functionFragment: "royaltyFeeRegistry", data: BytesLike): Result;
8
- decodeFunctionResult(functionFragment: "viewCreatorFeeInfo", data: BytesLike): Result;
9
- }
10
- export interface CreatorFeeManagerWithRoyalties extends BaseContract {
11
- connect(runner?: ContractRunner | null): CreatorFeeManagerWithRoyalties;
12
- waitForDeployment(): Promise<this>;
13
- interface: CreatorFeeManagerWithRoyaltiesInterface;
14
- queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
15
- queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
16
- on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
17
- on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
18
- once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
19
- once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
20
- listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
21
- listeners(eventName?: string): Promise<Array<Listener>>;
22
- removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
23
- royaltyFeeRegistry: TypedContractMethod<[], [string], "view">;
24
- viewCreatorFeeInfo: TypedContractMethod<[
25
- collection: AddressLike,
26
- price: BigNumberish,
27
- itemIds: BigNumberish[]
28
- ], [
29
- [string, bigint] & {
30
- creator: string;
31
- creatorFeeAmount: bigint;
32
- }
33
- ], "view">;
34
- getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
35
- getFunction(nameOrSignature: "royaltyFeeRegistry"): TypedContractMethod<[], [string], "view">;
36
- getFunction(nameOrSignature: "viewCreatorFeeInfo"): TypedContractMethod<[
37
- collection: AddressLike,
38
- price: BigNumberish,
39
- itemIds: BigNumberish[]
40
- ], [
41
- [string, bigint] & {
42
- creator: string;
43
- creatorFeeAmount: bigint;
44
- }
45
- ], "view">;
46
- filters: {};
47
- }