@opensea/sdk 9.0.0 → 10.1.0

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 (311) hide show
  1. package/README.md +35 -6
  2. package/lib/abi/abis.d.ts +301 -0
  3. package/lib/abi/abis.js +231 -0
  4. package/lib/abi/abis.js.map +1 -0
  5. package/lib/api/api.d.ts +26 -2
  6. package/lib/api/api.js +83 -51
  7. package/lib/api/api.js.map +1 -1
  8. package/lib/api/apiPaths.d.ts +2 -0
  9. package/lib/api/apiPaths.js +9 -1
  10. package/lib/api/apiPaths.js.map +1 -1
  11. package/lib/api/nfts.d.ts +13 -2
  12. package/lib/api/nfts.js +18 -0
  13. package/lib/api/nfts.js.map +1 -1
  14. package/lib/api/orders.js +2 -2
  15. package/lib/api/orders.js.map +1 -1
  16. package/lib/api/types.d.ts +7 -0
  17. package/lib/api/types.js.map +1 -1
  18. package/lib/constants.d.ts +2 -2
  19. package/lib/constants.js +7 -4
  20. package/lib/constants.js.map +1 -1
  21. package/lib/index.d.ts +2 -0
  22. package/lib/index.js +1 -0
  23. package/lib/index.js.map +1 -1
  24. package/lib/orders/privateListings.js +2 -2
  25. package/lib/orders/privateListings.js.map +1 -1
  26. package/lib/orders/utils.js +9 -1
  27. package/lib/orders/utils.js.map +1 -1
  28. package/lib/provider/ethers-adapter.d.ts +17 -0
  29. package/lib/provider/ethers-adapter.js +135 -0
  30. package/lib/provider/ethers-adapter.js.map +1 -0
  31. package/lib/provider/seaport-bridge.d.ts +11 -0
  32. package/lib/provider/seaport-bridge.js +130 -0
  33. package/lib/provider/seaport-bridge.js.map +1 -0
  34. package/lib/provider/types.d.ts +62 -0
  35. package/lib/provider/types.js +7 -0
  36. package/lib/provider/types.js.map +1 -0
  37. package/lib/provider/viem-adapter.d.ts +27 -0
  38. package/lib/provider/viem-adapter.js +122 -0
  39. package/lib/provider/viem-adapter.js.map +1 -0
  40. package/lib/sdk/assets.d.ts +7 -23
  41. package/lib/sdk/assets.js +101 -77
  42. package/lib/sdk/assets.js.map +1 -1
  43. package/lib/sdk/base.d.ts +350 -0
  44. package/lib/sdk/base.js +325 -0
  45. package/lib/sdk/base.js.map +1 -0
  46. package/lib/sdk/cancellation.d.ts +1 -2
  47. package/lib/sdk/cancellation.js +4 -4
  48. package/lib/sdk/cancellation.js.map +1 -1
  49. package/lib/sdk/context.d.ts +5 -5
  50. package/lib/sdk/fulfillment.d.ts +20 -59
  51. package/lib/sdk/fulfillment.js +18 -58
  52. package/lib/sdk/fulfillment.js.map +1 -1
  53. package/lib/sdk/orders.d.ts +25 -26
  54. package/lib/sdk/orders.js +8 -9
  55. package/lib/sdk/orders.js.map +1 -1
  56. package/lib/sdk/tokens.d.ts +3 -3
  57. package/lib/sdk/tokens.js +17 -7
  58. package/lib/sdk/tokens.js.map +1 -1
  59. package/lib/sdk.d.ts +16 -550
  60. package/lib/sdk.js +35 -663
  61. package/lib/sdk.js.map +1 -1
  62. package/lib/types.d.ts +11 -6
  63. package/lib/types.js +3 -3
  64. package/lib/types.js.map +1 -1
  65. package/lib/utils/address.d.ts +12 -0
  66. package/lib/utils/address.js +39 -0
  67. package/lib/utils/address.js.map +1 -0
  68. package/lib/utils/chain.d.ts +1 -1
  69. package/lib/utils/fees.d.ts +5 -0
  70. package/lib/utils/fees.js +24 -6
  71. package/lib/utils/fees.js.map +1 -1
  72. package/lib/utils/protocol.js +5 -5
  73. package/lib/utils/protocol.js.map +1 -1
  74. package/lib/utils/units.d.ts +12 -0
  75. package/lib/utils/units.js +43 -0
  76. package/lib/utils/units.js.map +1 -0
  77. package/lib/utils/utils.d.ts +2 -10
  78. package/lib/utils/utils.js +2 -17
  79. package/lib/utils/utils.js.map +1 -1
  80. package/lib/viem.d.ts +44 -0
  81. package/lib/viem.js +114 -0
  82. package/lib/viem.js.map +1 -0
  83. package/package.json +31 -13
  84. package/src/abi/abis.ts +236 -0
  85. package/src/api/api.ts +100 -59
  86. package/src/api/apiPaths.ts +16 -0
  87. package/src/api/nfts.ts +37 -1
  88. package/src/api/orders.ts +2 -2
  89. package/src/api/types.ts +8 -0
  90. package/src/constants.ts +7 -3
  91. package/src/index.ts +8 -0
  92. package/src/orders/privateListings.ts +2 -2
  93. package/src/orders/utils.ts +8 -1
  94. package/src/provider/ethers-adapter.ts +182 -0
  95. package/src/provider/seaport-bridge.ts +163 -0
  96. package/src/provider/types.ts +67 -0
  97. package/src/provider/viem-adapter.ts +165 -0
  98. package/src/sdk/assets.ts +128 -158
  99. package/src/sdk/base.ts +577 -0
  100. package/src/sdk/cancellation.ts +6 -9
  101. package/src/sdk/context.ts +5 -5
  102. package/src/sdk/fulfillment.ts +34 -73
  103. package/src/sdk/orders.ts +44 -44
  104. package/src/sdk/tokens.ts +18 -18
  105. package/src/sdk.ts +40 -1011
  106. package/src/types.ts +12 -6
  107. package/src/utils/address.ts +40 -0
  108. package/src/utils/fees.ts +28 -8
  109. package/src/utils/protocol.ts +5 -5
  110. package/src/utils/units.ts +47 -0
  111. package/src/utils/utils.ts +2 -22
  112. package/src/viem.ts +125 -0
  113. package/lib/src/api/accounts.d.ts +0 -18
  114. package/lib/src/api/accounts.js +0 -30
  115. package/lib/src/api/accounts.js.map +0 -1
  116. package/lib/src/api/api.d.ts +0 -429
  117. package/lib/src/api/api.js +0 -652
  118. package/lib/src/api/api.js.map +0 -1
  119. package/lib/src/api/apiPaths.d.ts +0 -37
  120. package/lib/src/api/apiPaths.js +0 -140
  121. package/lib/src/api/apiPaths.js.map +0 -1
  122. package/lib/src/api/collections.d.ts +0 -26
  123. package/lib/src/api/collections.js +0 -57
  124. package/lib/src/api/collections.js.map +0 -1
  125. package/lib/src/api/events.d.ts +0 -26
  126. package/lib/src/api/events.js +0 -42
  127. package/lib/src/api/events.js.map +0 -1
  128. package/lib/src/api/fetcher.d.ts +0 -24
  129. package/lib/src/api/fetcher.js +0 -3
  130. package/lib/src/api/fetcher.js.map +0 -1
  131. package/lib/src/api/index.d.ts +0 -2
  132. package/lib/src/api/index.js +0 -19
  133. package/lib/src/api/index.js.map +0 -1
  134. package/lib/src/api/listings.d.ts +0 -44
  135. package/lib/src/api/listings.js +0 -86
  136. package/lib/src/api/listings.js.map +0 -1
  137. package/lib/src/api/nfts.d.ts +0 -35
  138. package/lib/src/api/nfts.js +0 -66
  139. package/lib/src/api/nfts.js.map +0 -1
  140. package/lib/src/api/offers.d.ts +0 -54
  141. package/lib/src/api/offers.js +0 -122
  142. package/lib/src/api/offers.js.map +0 -1
  143. package/lib/src/api/orders.d.ts +0 -50
  144. package/lib/src/api/orders.js +0 -151
  145. package/lib/src/api/orders.js.map +0 -1
  146. package/lib/src/api/search.d.ts +0 -13
  147. package/lib/src/api/search.js +0 -21
  148. package/lib/src/api/search.js.map +0 -1
  149. package/lib/src/api/tokens.d.ts +0 -25
  150. package/lib/src/api/tokens.js +0 -42
  151. package/lib/src/api/tokens.js.map +0 -1
  152. package/lib/src/api/types.d.ts +0 -840
  153. package/lib/src/api/types.js +0 -65
  154. package/lib/src/api/types.js.map +0 -1
  155. package/lib/src/constants.d.ts +0 -22
  156. package/lib/src/constants.js +0 -52
  157. package/lib/src/constants.js.map +0 -1
  158. package/lib/src/index.d.ts +0 -18
  159. package/lib/src/index.js +0 -24
  160. package/lib/src/index.js.map +0 -1
  161. package/lib/src/orders/privateListings.d.ts +0 -12
  162. package/lib/src/orders/privateListings.js +0 -130
  163. package/lib/src/orders/privateListings.js.map +0 -1
  164. package/lib/src/orders/types.d.ts +0 -160
  165. package/lib/src/orders/types.js +0 -10
  166. package/lib/src/orders/types.js.map +0 -1
  167. package/lib/src/orders/utils.d.ts +0 -89
  168. package/lib/src/orders/utils.js +0 -177
  169. package/lib/src/orders/utils.js.map +0 -1
  170. package/lib/src/sdk/assets.d.ts +0 -104
  171. package/lib/src/sdk/assets.js +0 -397
  172. package/lib/src/sdk/assets.js.map +0 -1
  173. package/lib/src/sdk/cancellation.d.ts +0 -97
  174. package/lib/src/sdk/cancellation.js +0 -234
  175. package/lib/src/sdk/cancellation.js.map +0 -1
  176. package/lib/src/sdk/context.d.ts +0 -28
  177. package/lib/src/sdk/context.js +0 -3
  178. package/lib/src/sdk/context.js.map +0 -1
  179. package/lib/src/sdk/fulfillment.d.ts +0 -153
  180. package/lib/src/sdk/fulfillment.js +0 -296
  181. package/lib/src/sdk/fulfillment.js.map +0 -1
  182. package/lib/src/sdk/orders.d.ts +0 -253
  183. package/lib/src/sdk/orders.js +0 -677
  184. package/lib/src/sdk/orders.js.map +0 -1
  185. package/lib/src/sdk/tokens.d.ts +0 -31
  186. package/lib/src/sdk/tokens.js +0 -64
  187. package/lib/src/sdk/tokens.js.map +0 -1
  188. package/lib/src/sdk.d.ts +0 -560
  189. package/lib/src/sdk.js +0 -675
  190. package/lib/src/sdk.js.map +0 -1
  191. package/lib/src/typechain/contracts/ERC1155.d.ts +0 -236
  192. package/lib/src/typechain/contracts/ERC1155.js +0 -3
  193. package/lib/src/typechain/contracts/ERC1155.js.map +0 -1
  194. package/lib/src/typechain/contracts/ERC20.d.ts +0 -141
  195. package/lib/src/typechain/contracts/ERC20.js +0 -3
  196. package/lib/src/typechain/contracts/ERC20.js.map +0 -1
  197. package/lib/src/typechain/contracts/ERC721.d.ts +0 -213
  198. package/lib/src/typechain/contracts/ERC721.js +0 -3
  199. package/lib/src/typechain/contracts/ERC721.js.map +0 -1
  200. package/lib/src/typechain/contracts/Multicall3.d.ts +0 -57
  201. package/lib/src/typechain/contracts/Multicall3.js +0 -3
  202. package/lib/src/typechain/contracts/Multicall3.js.map +0 -1
  203. package/lib/src/typechain/contracts/TransferHelper.d.ts +0 -55
  204. package/lib/src/typechain/contracts/TransferHelper.js +0 -3
  205. package/lib/src/typechain/contracts/TransferHelper.js.map +0 -1
  206. package/lib/src/typechain/contracts/common.d.ts +0 -50
  207. package/lib/src/typechain/contracts/common.js +0 -3
  208. package/lib/src/typechain/contracts/common.js.map +0 -1
  209. package/lib/src/typechain/contracts/factories/ERC1155__factory.d.ts +0 -250
  210. package/lib/src/typechain/contracts/factories/ERC1155__factory.js +0 -332
  211. package/lib/src/typechain/contracts/factories/ERC1155__factory.js.map +0 -1
  212. package/lib/src/typechain/contracts/factories/ERC20__factory.d.ts +0 -174
  213. package/lib/src/typechain/contracts/factories/ERC20__factory.js +0 -240
  214. package/lib/src/typechain/contracts/factories/ERC20__factory.js.map +0 -1
  215. package/lib/src/typechain/contracts/factories/ERC721__factory.d.ts +0 -268
  216. package/lib/src/typechain/contracts/factories/ERC721__factory.js +0 -351
  217. package/lib/src/typechain/contracts/factories/ERC721__factory.js.map +0 -1
  218. package/lib/src/typechain/contracts/factories/Multicall3__factory.d.ts +0 -43
  219. package/lib/src/typechain/contracts/factories/Multicall3__factory.js +0 -68
  220. package/lib/src/typechain/contracts/factories/Multicall3__factory.js.map +0 -1
  221. package/lib/src/typechain/contracts/factories/TransferHelper__factory.d.ts +0 -46
  222. package/lib/src/typechain/contracts/factories/TransferHelper__factory.js +0 -71
  223. package/lib/src/typechain/contracts/factories/TransferHelper__factory.js.map +0 -1
  224. package/lib/src/typechain/contracts/factories/index.d.ts +0 -5
  225. package/lib/src/typechain/contracts/factories/index.js +0 -17
  226. package/lib/src/typechain/contracts/factories/index.js.map +0 -1
  227. package/lib/src/typechain/contracts/index.d.ts +0 -11
  228. package/lib/src/typechain/contracts/index.js +0 -48
  229. package/lib/src/typechain/contracts/index.js.map +0 -1
  230. package/lib/src/types.d.ts +0 -387
  231. package/lib/src/types.js +0 -127
  232. package/lib/src/types.js.map +0 -1
  233. package/lib/src/utils/chain.d.ts +0 -60
  234. package/lib/src/utils/chain.js +0 -248
  235. package/lib/src/utils/chain.js.map +0 -1
  236. package/lib/src/utils/converters.d.ts +0 -37
  237. package/lib/src/utils/converters.js +0 -137
  238. package/lib/src/utils/converters.js.map +0 -1
  239. package/lib/src/utils/dateHelper.d.ts +0 -38
  240. package/lib/src/utils/dateHelper.js +0 -52
  241. package/lib/src/utils/dateHelper.js.map +0 -1
  242. package/lib/src/utils/fees.d.ts +0 -13
  243. package/lib/src/utils/fees.js +0 -29
  244. package/lib/src/utils/fees.js.map +0 -1
  245. package/lib/src/utils/index.d.ts +0 -2
  246. package/lib/src/utils/index.js +0 -19
  247. package/lib/src/utils/index.js.map +0 -1
  248. package/lib/src/utils/protocol.d.ts +0 -75
  249. package/lib/src/utils/protocol.js +0 -161
  250. package/lib/src/utils/protocol.js.map +0 -1
  251. package/lib/src/utils/rateLimit.d.ts +0 -34
  252. package/lib/src/utils/rateLimit.js +0 -97
  253. package/lib/src/utils/rateLimit.js.map +0 -1
  254. package/lib/src/utils/stringHelper.d.ts +0 -18
  255. package/lib/src/utils/stringHelper.js +0 -24
  256. package/lib/src/utils/stringHelper.js.map +0 -1
  257. package/lib/src/utils/utils.d.ts +0 -18
  258. package/lib/src/utils/utils.js +0 -45
  259. package/lib/src/utils/utils.js.map +0 -1
  260. package/lib/typechain/contracts/ERC1155.d.ts +0 -236
  261. package/lib/typechain/contracts/ERC1155.js +0 -3
  262. package/lib/typechain/contracts/ERC1155.js.map +0 -1
  263. package/lib/typechain/contracts/ERC20.d.ts +0 -141
  264. package/lib/typechain/contracts/ERC20.js +0 -3
  265. package/lib/typechain/contracts/ERC20.js.map +0 -1
  266. package/lib/typechain/contracts/ERC721.d.ts +0 -213
  267. package/lib/typechain/contracts/ERC721.js +0 -3
  268. package/lib/typechain/contracts/ERC721.js.map +0 -1
  269. package/lib/typechain/contracts/Multicall3.d.ts +0 -57
  270. package/lib/typechain/contracts/Multicall3.js +0 -3
  271. package/lib/typechain/contracts/Multicall3.js.map +0 -1
  272. package/lib/typechain/contracts/TransferHelper.d.ts +0 -55
  273. package/lib/typechain/contracts/TransferHelper.js +0 -3
  274. package/lib/typechain/contracts/TransferHelper.js.map +0 -1
  275. package/lib/typechain/contracts/common.d.ts +0 -50
  276. package/lib/typechain/contracts/common.js +0 -3
  277. package/lib/typechain/contracts/common.js.map +0 -1
  278. package/lib/typechain/contracts/factories/ERC1155__factory.d.ts +0 -250
  279. package/lib/typechain/contracts/factories/ERC1155__factory.js +0 -332
  280. package/lib/typechain/contracts/factories/ERC1155__factory.js.map +0 -1
  281. package/lib/typechain/contracts/factories/ERC20__factory.d.ts +0 -174
  282. package/lib/typechain/contracts/factories/ERC20__factory.js +0 -240
  283. package/lib/typechain/contracts/factories/ERC20__factory.js.map +0 -1
  284. package/lib/typechain/contracts/factories/ERC721__factory.d.ts +0 -268
  285. package/lib/typechain/contracts/factories/ERC721__factory.js +0 -351
  286. package/lib/typechain/contracts/factories/ERC721__factory.js.map +0 -1
  287. package/lib/typechain/contracts/factories/Multicall3__factory.d.ts +0 -43
  288. package/lib/typechain/contracts/factories/Multicall3__factory.js +0 -68
  289. package/lib/typechain/contracts/factories/Multicall3__factory.js.map +0 -1
  290. package/lib/typechain/contracts/factories/TransferHelper__factory.d.ts +0 -46
  291. package/lib/typechain/contracts/factories/TransferHelper__factory.js +0 -71
  292. package/lib/typechain/contracts/factories/TransferHelper__factory.js.map +0 -1
  293. package/lib/typechain/contracts/factories/index.d.ts +0 -5
  294. package/lib/typechain/contracts/factories/index.js +0 -17
  295. package/lib/typechain/contracts/factories/index.js.map +0 -1
  296. package/lib/typechain/contracts/index.d.ts +0 -11
  297. package/lib/typechain/contracts/index.js +0 -48
  298. package/lib/typechain/contracts/index.js.map +0 -1
  299. package/src/typechain/contracts/ERC1155.ts +0 -440
  300. package/src/typechain/contracts/ERC20.ts +0 -286
  301. package/src/typechain/contracts/ERC721.ts +0 -412
  302. package/src/typechain/contracts/Multicall3.ts +0 -117
  303. package/src/typechain/contracts/TransferHelper.ts +0 -122
  304. package/src/typechain/contracts/common.ts +0 -131
  305. package/src/typechain/contracts/factories/ERC1155__factory.ts +0 -331
  306. package/src/typechain/contracts/factories/ERC20__factory.ts +0 -239
  307. package/src/typechain/contracts/factories/ERC721__factory.ts +0 -350
  308. package/src/typechain/contracts/factories/Multicall3__factory.ts +0 -67
  309. package/src/typechain/contracts/factories/TransferHelper__factory.ts +0 -76
  310. package/src/typechain/contracts/factories/index.ts +0 -8
  311. package/src/typechain/contracts/index.ts +0 -14
@@ -1,57 +0,0 @@
1
- import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
- import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "./common";
3
- export declare namespace Multicall3 {
4
- type Call3Struct = {
5
- target: AddressLike;
6
- allowFailure: boolean;
7
- callData: BytesLike;
8
- };
9
- type Call3StructOutput = [
10
- target: string,
11
- allowFailure: boolean,
12
- callData: string
13
- ] & {
14
- target: string;
15
- allowFailure: boolean;
16
- callData: string;
17
- };
18
- type ResultStruct = {
19
- success: boolean;
20
- returnData: BytesLike;
21
- };
22
- type ResultStructOutput = [success: boolean, returnData: string] & {
23
- success: boolean;
24
- returnData: string;
25
- };
26
- }
27
- export interface Multicall3Interface extends Interface {
28
- getFunction(nameOrSignature: "aggregate3"): FunctionFragment;
29
- encodeFunctionData(functionFragment: "aggregate3", values: [Multicall3.Call3Struct[]]): string;
30
- decodeFunctionResult(functionFragment: "aggregate3", data: BytesLike): Result;
31
- }
32
- export interface Multicall3 extends BaseContract {
33
- connect(runner?: ContractRunner | null): Multicall3;
34
- waitForDeployment(): Promise<this>;
35
- interface: Multicall3Interface;
36
- queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
37
- queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
38
- on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
39
- on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
40
- once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
41
- once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
42
- listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
43
- listeners(eventName?: string): Promise<Array<Listener>>;
44
- removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
45
- aggregate3: TypedContractMethod<[
46
- calls: Multicall3.Call3Struct[]
47
- ], [
48
- Multicall3.ResultStructOutput[]
49
- ], "payable">;
50
- getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
51
- getFunction(nameOrSignature: "aggregate3"): TypedContractMethod<[
52
- calls: Multicall3.Call3Struct[]
53
- ], [
54
- Multicall3.ResultStructOutput[]
55
- ], "payable">;
56
- filters: {};
57
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Multicall3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Multicall3.js","sourceRoot":"","sources":["../../../src/typechain/contracts/Multicall3.ts"],"names":[],"mappings":""}
@@ -1,55 +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 type TransferHelperItemStruct = {
4
- itemType: BigNumberish;
5
- token: AddressLike;
6
- identifier: BigNumberish;
7
- amount: BigNumberish;
8
- recipient: AddressLike;
9
- };
10
- export type TransferHelperItemStructOutput = [
11
- itemType: bigint,
12
- token: string,
13
- identifier: bigint,
14
- amount: bigint,
15
- recipient: string
16
- ] & {
17
- itemType: bigint;
18
- token: string;
19
- identifier: bigint;
20
- amount: bigint;
21
- recipient: string;
22
- };
23
- export interface TransferHelperInterface extends Interface {
24
- getFunction(nameOrSignature: "bulkTransfer"): FunctionFragment;
25
- encodeFunctionData(functionFragment: "bulkTransfer", values: [TransferHelperItemStruct[], BytesLike]): string;
26
- decodeFunctionResult(functionFragment: "bulkTransfer", data: BytesLike): Result;
27
- }
28
- export interface TransferHelper extends BaseContract {
29
- connect(runner?: ContractRunner | null): TransferHelper;
30
- waitForDeployment(): Promise<this>;
31
- interface: TransferHelperInterface;
32
- queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
33
- queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
34
- on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
35
- on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
36
- once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
37
- once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
38
- listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
39
- listeners(eventName?: string): Promise<Array<Listener>>;
40
- removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
41
- bulkTransfer: TypedContractMethod<[
42
- items: TransferHelperItemStruct[],
43
- conduitKey: BytesLike
44
- ], [
45
- string
46
- ], "nonpayable">;
47
- getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
48
- getFunction(nameOrSignature: "bulkTransfer"): TypedContractMethod<[
49
- items: TransferHelperItemStruct[],
50
- conduitKey: BytesLike
51
- ], [
52
- string
53
- ], "nonpayable">;
54
- filters: {};
55
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=TransferHelper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TransferHelper.js","sourceRoot":"","sources":["../../../src/typechain/contracts/TransferHelper.ts"],"names":[],"mappings":""}
@@ -1,50 +0,0 @@
1
- import type { FunctionFragment, Typed, EventFragment, ContractTransaction, ContractTransactionResponse, DeferredTopicFilter, EventLog, TransactionRequest, LogDescription } from "ethers";
2
- export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> extends DeferredTopicFilter {
3
- }
4
- export interface TypedContractEvent<InputTuple extends Array<any> = any, OutputTuple extends Array<any> = any, OutputObject = any> {
5
- (...args: Partial<InputTuple>): TypedDeferredTopicFilter<TypedContractEvent<InputTuple, OutputTuple, OutputObject>>;
6
- name: string;
7
- fragment: EventFragment;
8
- getFragment(...args: Partial<InputTuple>): EventFragment;
9
- }
10
- type __TypechainAOutputTuple<T> = T extends TypedContractEvent<infer _U, infer W> ? W : never;
11
- type __TypechainOutputObject<T> = T extends TypedContractEvent<infer _U, infer _W, infer V> ? V : never;
12
- export interface TypedEventLog<TCEvent extends TypedContractEvent> extends Omit<EventLog, "args"> {
13
- args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
14
- }
15
- export interface TypedLogDescription<TCEvent extends TypedContractEvent> extends Omit<LogDescription, "args"> {
16
- args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
17
- }
18
- export type TypedListener<TCEvent extends TypedContractEvent> = (...listenerArg: [
19
- ...__TypechainAOutputTuple<TCEvent>,
20
- TypedEventLog<TCEvent>,
21
- ...undefined[]
22
- ]) => void;
23
- export type MinEthersFactory<C, ARGS> = {
24
- deploy(...a: ARGS[]): Promise<C>;
25
- };
26
- export type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never;
27
- export type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never;
28
- export type StateMutability = "nonpayable" | "payable" | "view";
29
- export type BaseOverrides = Omit<TransactionRequest, "to" | "data">;
30
- export type NonPayableOverrides = Omit<BaseOverrides, "value" | "blockTag" | "enableCcipRead">;
31
- export type PayableOverrides = Omit<BaseOverrides, "blockTag" | "enableCcipRead">;
32
- export type ViewOverrides = Omit<TransactionRequest, "to" | "data">;
33
- export type Overrides<S extends StateMutability> = S extends "nonpayable" ? NonPayableOverrides : S extends "payable" ? PayableOverrides : ViewOverrides;
34
- export type PostfixOverrides<A extends Array<any>, S extends StateMutability> = A | [...A, Overrides<S>];
35
- export type ContractMethodArgs<A extends Array<any>, S extends StateMutability> = PostfixOverrides<{
36
- [I in keyof A]-?: A[I] | Typed;
37
- }, S>;
38
- export type DefaultReturnType<R> = R extends Array<any> ? R[0] : R;
39
- export interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S extends StateMutability = "payable"> {
40
- (...args: ContractMethodArgs<A, S>): S extends "view" ? Promise<DefaultReturnType<R>> : Promise<ContractTransactionResponse>;
41
- name: string;
42
- fragment: FunctionFragment;
43
- getFragment(...args: ContractMethodArgs<A, S>): FunctionFragment;
44
- populateTransaction(...args: ContractMethodArgs<A, S>): Promise<ContractTransaction>;
45
- staticCall(...args: ContractMethodArgs<A, "view">): Promise<DefaultReturnType<R>>;
46
- send(...args: ContractMethodArgs<A, S>): Promise<ContractTransactionResponse>;
47
- estimateGas(...args: ContractMethodArgs<A, S>): Promise<bigint>;
48
- staticCallResult(...args: ContractMethodArgs<A, "view">): Promise<R>;
49
- }
50
- export {};
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=common.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/typechain/contracts/common.ts"],"names":[],"mappings":""}
@@ -1,250 +0,0 @@
1
- import { type ContractRunner } from "ethers";
2
- import type { ERC1155, ERC1155Interface } from "../ERC1155";
3
- export declare class ERC1155__factory {
4
- static readonly abi: readonly [{
5
- readonly anonymous: false;
6
- readonly inputs: readonly [{
7
- readonly indexed: true;
8
- readonly internalType: "address";
9
- readonly name: "account";
10
- readonly type: "address";
11
- }, {
12
- readonly indexed: true;
13
- readonly internalType: "address";
14
- readonly name: "operator";
15
- readonly type: "address";
16
- }, {
17
- readonly indexed: false;
18
- readonly internalType: "bool";
19
- readonly name: "approved";
20
- readonly type: "bool";
21
- }];
22
- readonly name: "ApprovalForAll";
23
- readonly type: "event";
24
- }, {
25
- readonly anonymous: false;
26
- readonly inputs: readonly [{
27
- readonly indexed: true;
28
- readonly internalType: "address";
29
- readonly name: "operator";
30
- readonly type: "address";
31
- }, {
32
- readonly indexed: true;
33
- readonly internalType: "address";
34
- readonly name: "from";
35
- readonly type: "address";
36
- }, {
37
- readonly indexed: true;
38
- readonly internalType: "address";
39
- readonly name: "to";
40
- readonly type: "address";
41
- }, {
42
- readonly indexed: false;
43
- readonly internalType: "uint256[]";
44
- readonly name: "ids";
45
- readonly type: "uint256[]";
46
- }, {
47
- readonly indexed: false;
48
- readonly internalType: "uint256[]";
49
- readonly name: "values";
50
- readonly type: "uint256[]";
51
- }];
52
- readonly name: "TransferBatch";
53
- readonly type: "event";
54
- }, {
55
- readonly anonymous: false;
56
- readonly inputs: readonly [{
57
- readonly indexed: true;
58
- readonly internalType: "address";
59
- readonly name: "operator";
60
- readonly type: "address";
61
- }, {
62
- readonly indexed: true;
63
- readonly internalType: "address";
64
- readonly name: "from";
65
- readonly type: "address";
66
- }, {
67
- readonly indexed: true;
68
- readonly internalType: "address";
69
- readonly name: "to";
70
- readonly type: "address";
71
- }, {
72
- readonly indexed: false;
73
- readonly internalType: "uint256";
74
- readonly name: "id";
75
- readonly type: "uint256";
76
- }, {
77
- readonly indexed: false;
78
- readonly internalType: "uint256";
79
- readonly name: "value";
80
- readonly type: "uint256";
81
- }];
82
- readonly name: "TransferSingle";
83
- readonly type: "event";
84
- }, {
85
- readonly anonymous: false;
86
- readonly inputs: readonly [{
87
- readonly indexed: false;
88
- readonly internalType: "string";
89
- readonly name: "value";
90
- readonly type: "string";
91
- }, {
92
- readonly indexed: true;
93
- readonly internalType: "uint256";
94
- readonly name: "id";
95
- readonly type: "uint256";
96
- }];
97
- readonly name: "URI";
98
- readonly type: "event";
99
- }, {
100
- readonly inputs: readonly [{
101
- readonly internalType: "address";
102
- readonly name: "account";
103
- readonly type: "address";
104
- }, {
105
- readonly internalType: "uint256";
106
- readonly name: "id";
107
- readonly type: "uint256";
108
- }];
109
- readonly name: "balanceOf";
110
- readonly outputs: readonly [{
111
- readonly internalType: "uint256";
112
- readonly name: "";
113
- readonly type: "uint256";
114
- }];
115
- readonly stateMutability: "view";
116
- readonly type: "function";
117
- }, {
118
- readonly inputs: readonly [{
119
- readonly internalType: "address[]";
120
- readonly name: "accounts";
121
- readonly type: "address[]";
122
- }, {
123
- readonly internalType: "uint256[]";
124
- readonly name: "ids";
125
- readonly type: "uint256[]";
126
- }];
127
- readonly name: "balanceOfBatch";
128
- readonly outputs: readonly [{
129
- readonly internalType: "uint256[]";
130
- readonly name: "";
131
- readonly type: "uint256[]";
132
- }];
133
- readonly stateMutability: "view";
134
- readonly type: "function";
135
- }, {
136
- readonly inputs: readonly [{
137
- readonly internalType: "address";
138
- readonly name: "account";
139
- readonly type: "address";
140
- }, {
141
- readonly internalType: "address";
142
- readonly name: "operator";
143
- readonly type: "address";
144
- }];
145
- readonly name: "isApprovedForAll";
146
- readonly outputs: readonly [{
147
- readonly internalType: "bool";
148
- readonly name: "";
149
- readonly type: "bool";
150
- }];
151
- readonly stateMutability: "view";
152
- readonly type: "function";
153
- }, {
154
- readonly inputs: readonly [{
155
- readonly internalType: "address";
156
- readonly name: "from";
157
- readonly type: "address";
158
- }, {
159
- readonly internalType: "address";
160
- readonly name: "to";
161
- readonly type: "address";
162
- }, {
163
- readonly internalType: "uint256[]";
164
- readonly name: "ids";
165
- readonly type: "uint256[]";
166
- }, {
167
- readonly internalType: "uint256[]";
168
- readonly name: "amounts";
169
- readonly type: "uint256[]";
170
- }, {
171
- readonly internalType: "bytes";
172
- readonly name: "data";
173
- readonly type: "bytes";
174
- }];
175
- readonly name: "safeBatchTransferFrom";
176
- readonly outputs: readonly [];
177
- readonly stateMutability: "nonpayable";
178
- readonly type: "function";
179
- }, {
180
- readonly inputs: readonly [{
181
- readonly internalType: "address";
182
- readonly name: "from";
183
- readonly type: "address";
184
- }, {
185
- readonly internalType: "address";
186
- readonly name: "to";
187
- readonly type: "address";
188
- }, {
189
- readonly internalType: "uint256";
190
- readonly name: "id";
191
- readonly type: "uint256";
192
- }, {
193
- readonly internalType: "uint256";
194
- readonly name: "amount";
195
- readonly type: "uint256";
196
- }, {
197
- readonly internalType: "bytes";
198
- readonly name: "data";
199
- readonly type: "bytes";
200
- }];
201
- readonly name: "safeTransferFrom";
202
- readonly outputs: readonly [];
203
- readonly stateMutability: "nonpayable";
204
- readonly type: "function";
205
- }, {
206
- readonly inputs: readonly [{
207
- readonly internalType: "address";
208
- readonly name: "operator";
209
- readonly type: "address";
210
- }, {
211
- readonly internalType: "bool";
212
- readonly name: "approved";
213
- readonly type: "bool";
214
- }];
215
- readonly name: "setApprovalForAll";
216
- readonly outputs: readonly [];
217
- readonly stateMutability: "nonpayable";
218
- readonly type: "function";
219
- }, {
220
- readonly inputs: readonly [{
221
- readonly internalType: "bytes4";
222
- readonly name: "interfaceId";
223
- readonly type: "bytes4";
224
- }];
225
- readonly name: "supportsInterface";
226
- readonly outputs: readonly [{
227
- readonly internalType: "bool";
228
- readonly name: "";
229
- readonly type: "bool";
230
- }];
231
- readonly stateMutability: "view";
232
- readonly type: "function";
233
- }, {
234
- readonly inputs: readonly [{
235
- readonly internalType: "uint256";
236
- readonly name: "id";
237
- readonly type: "uint256";
238
- }];
239
- readonly name: "uri";
240
- readonly outputs: readonly [{
241
- readonly internalType: "string";
242
- readonly name: "";
243
- readonly type: "string";
244
- }];
245
- readonly stateMutability: "view";
246
- readonly type: "function";
247
- }];
248
- static createInterface(): ERC1155Interface;
249
- static connect(address: string, runner?: ContractRunner | null): ERC1155;
250
- }