@0xsequence/abi 2.3.39 → 3.0.0-beta.10

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 (92) hide show
  1. package/.turbo/turbo-build.log +5 -0
  2. package/CHANGELOG.md +2145 -0
  3. package/LICENSE +0 -17
  4. package/README.md +1 -2
  5. package/dist/index.d.ts +20 -0
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.js +41 -0
  8. package/dist/{declarations/src/sale → sale}/erc1155Sale.d.ts +1 -0
  9. package/dist/sale/erc1155Sale.d.ts.map +1 -0
  10. package/dist/sale/erc1155Sale.js +355 -0
  11. package/dist/{declarations/src/sale → sale}/erc721Sale.d.ts +1 -0
  12. package/dist/sale/erc721Sale.d.ts.map +1 -0
  13. package/dist/sale/erc721Sale.js +355 -0
  14. package/dist/{declarations/src/tokens → tokens}/erc1155.d.ts +1 -0
  15. package/dist/tokens/erc1155.d.ts.map +1 -0
  16. package/dist/tokens/erc1155.js +425 -0
  17. package/dist/{declarations/src/saleItems/erc1155SaleItems.d.ts → tokens/erc1155Items.d.ts} +2 -1
  18. package/dist/tokens/erc1155Items.d.ts.map +1 -0
  19. package/dist/tokens/erc1155Items.js +381 -0
  20. package/dist/{declarations/src/tokens → tokens}/erc20.d.ts +1 -0
  21. package/dist/tokens/erc20.d.ts.map +1 -0
  22. package/dist/tokens/erc20.js +319 -0
  23. package/dist/{declarations/src/tokens → tokens}/erc6909.d.ts +1 -0
  24. package/dist/tokens/erc6909.d.ts.map +1 -0
  25. package/dist/tokens/erc6909.js +407 -0
  26. package/dist/{declarations/src/tokens → tokens}/erc721.d.ts +1 -0
  27. package/dist/tokens/erc721.d.ts.map +1 -0
  28. package/dist/tokens/erc721.js +444 -0
  29. package/dist/{declarations/src/saleItems/erc721SaleItems.d.ts → tokens/erc721Items.d.ts} +2 -1
  30. package/dist/tokens/erc721Items.d.ts.map +1 -0
  31. package/dist/tokens/erc721Items.js +444 -0
  32. package/dist/{declarations/src/wallet → wallet}/erc1271.d.ts +1 -0
  33. package/dist/wallet/erc1271.d.ts.map +1 -0
  34. package/dist/wallet/erc1271.js +28 -0
  35. package/dist/{declarations/src/wallet → wallet}/erc5719.d.ts +1 -0
  36. package/dist/wallet/erc5719.d.ts.map +1 -0
  37. package/dist/wallet/erc5719.js +22 -0
  38. package/dist/{declarations/src/wallet → wallet}/erc6492.d.ts +1 -0
  39. package/dist/wallet/erc6492.d.ts.map +1 -0
  40. package/dist/wallet/erc6492.js +64 -0
  41. package/dist/{declarations/src/wallet → wallet}/factory.d.ts +1 -0
  42. package/dist/wallet/factory.d.ts.map +1 -0
  43. package/dist/wallet/factory.js +21 -0
  44. package/dist/{declarations/src/wallet → wallet}/index.d.ts +11 -10
  45. package/dist/wallet/index.d.ts.map +1 -0
  46. package/dist/wallet/index.js +61 -0
  47. package/dist/{declarations/src/wallet → wallet}/libs/requireFreshSigners.d.ts +1 -0
  48. package/dist/wallet/libs/requireFreshSigners.d.ts.map +1 -0
  49. package/dist/wallet/libs/requireFreshSigners.js +18 -0
  50. package/dist/{declarations/src/wallet → wallet}/mainModule.d.ts +1 -0
  51. package/dist/wallet/mainModule.d.ts.map +1 -0
  52. package/dist/wallet/mainModule.js +161 -0
  53. package/dist/{declarations/src/wallet → wallet}/mainModuleUpgradable.d.ts +1 -0
  54. package/dist/wallet/mainModuleUpgradable.d.ts.map +1 -0
  55. package/dist/wallet/mainModuleUpgradable.js +31 -0
  56. package/dist/{declarations/src/wallet → wallet}/moduleHooks.d.ts +1 -0
  57. package/dist/wallet/moduleHooks.d.ts.map +1 -0
  58. package/dist/wallet/moduleHooks.js +251 -0
  59. package/dist/{declarations/src/wallet → wallet}/sequenceUtils.d.ts +1 -0
  60. package/dist/wallet/sequenceUtils.d.ts.map +1 -0
  61. package/dist/wallet/sequenceUtils.js +519 -0
  62. package/dist/{declarations/src/wallet → wallet}/walletProxyHook.d.ts +1 -0
  63. package/dist/wallet/walletProxyHook.d.ts.map +1 -0
  64. package/dist/wallet/walletProxyHook.js +12 -0
  65. package/package.json +19 -13
  66. package/src/index.ts +2 -3
  67. package/src/sale/erc1155Sale.ts +67 -67
  68. package/src/sale/erc721Sale.ts +67 -67
  69. package/src/tokens/erc1155.ts +97 -97
  70. package/src/{saleItems/erc1155SaleItems.ts → tokens/erc1155Items.ts} +69 -68
  71. package/src/tokens/erc20.ts +76 -76
  72. package/src/tokens/erc6909.ts +95 -95
  73. package/src/tokens/erc721.ts +105 -105
  74. package/src/{saleItems/erc721SaleItems.ts → tokens/erc721Items.ts} +79 -78
  75. package/src/wallet/erc1271.ts +8 -8
  76. package/src/wallet/erc5719.ts +6 -6
  77. package/src/wallet/erc6492.ts +11 -11
  78. package/src/wallet/factory.ts +5 -5
  79. package/src/wallet/index.ts +1 -1
  80. package/src/wallet/libs/requireFreshSigners.ts +4 -4
  81. package/src/wallet/mainModule.ts +41 -41
  82. package/src/wallet/mainModuleUpgradable.ts +7 -7
  83. package/src/wallet/moduleHooks.ts +60 -60
  84. package/src/wallet/sequenceUtils.ts +123 -123
  85. package/src/wallet/walletProxyHook.ts +2 -2
  86. package/tsconfig.json +10 -0
  87. package/dist/0xsequence-abi.cjs.d.ts +0 -2
  88. package/dist/0xsequence-abi.cjs.dev.js +0 -4638
  89. package/dist/0xsequence-abi.cjs.js +0 -7
  90. package/dist/0xsequence-abi.cjs.prod.js +0 -4638
  91. package/dist/0xsequence-abi.esm.js +0 -4616
  92. package/dist/declarations/src/index.d.ts +0 -19
package/LICENSE CHANGED
@@ -1,20 +1,3 @@
1
- Copyright (c) 2017-present Horizon Blockchain Games Inc.
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
14
-
15
-
16
- ------------------------------------------------------------------------
17
-
18
1
 
19
2
  Apache License
20
3
  Version 2.0, January 2004
package/README.md CHANGED
@@ -1,4 +1,3 @@
1
- @0xsequence/abi
2
- ===============
1
+ # @0xsequence/abi
3
2
 
4
3
  See [0xsequence project page](https://github.com/0xsequence/sequence.js).
@@ -0,0 +1,20 @@
1
+ export { abi as erc5719Abi } from './wallet/erc5719';
2
+ export { abi as erc1271Abi } from './wallet/erc1271';
3
+ export { abi as erc6492Abi } from './wallet/erc6492';
4
+ export { abi as factoryAbi } from './wallet/factory';
5
+ export { abi as mainModuleAbi } from './wallet/mainModule';
6
+ export { abi as mainModuleUpgradableAbi } from './wallet/mainModuleUpgradable';
7
+ export { abi as moduleHooksAbi } from './wallet/moduleHooks';
8
+ export { abi as sequenceUtilsAbi } from './wallet/sequenceUtils';
9
+ export { abi as requireFreshSignerAbi } from './wallet/libs/requireFreshSigners';
10
+ export { abi as walletProxyHookAbi } from './wallet/walletProxyHook';
11
+ export { walletContracts } from './wallet';
12
+ export { ERC1155_ABI } from './tokens/erc1155';
13
+ export { ERC1155_ITEMS_ABI } from './tokens/erc1155Items';
14
+ export { ERC20_ABI } from './tokens/erc20';
15
+ export { ERC6909_ABI } from './tokens/erc6909';
16
+ export { ERC721_ABI } from './tokens/erc721';
17
+ export { ERC721_ITEMS_ABI } from './tokens/erc721Items';
18
+ export { ERC1155_SALE_ABI } from './sale/erc1155Sale';
19
+ export { ERC721_SALE_ABI } from './sale/erc721Sale';
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,GAAG,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,GAAG,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,GAAG,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,GAAG,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC1D,OAAO,EAAE,GAAG,IAAI,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAC9E,OAAO,EAAE,GAAG,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,EAAE,GAAG,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAChE,OAAO,EAAE,GAAG,IAAI,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AAChF,OAAO,EAAE,GAAG,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ERC721_SALE_ABI = exports.ERC1155_SALE_ABI = exports.ERC721_ITEMS_ABI = exports.ERC721_ABI = exports.ERC6909_ABI = exports.ERC20_ABI = exports.ERC1155_ITEMS_ABI = exports.ERC1155_ABI = exports.walletContracts = exports.walletProxyHookAbi = exports.requireFreshSignerAbi = exports.sequenceUtilsAbi = exports.moduleHooksAbi = exports.mainModuleUpgradableAbi = exports.mainModuleAbi = exports.factoryAbi = exports.erc6492Abi = exports.erc1271Abi = exports.erc5719Abi = void 0;
4
+ var erc5719_1 = require("./wallet/erc5719");
5
+ Object.defineProperty(exports, "erc5719Abi", { enumerable: true, get: function () { return erc5719_1.abi; } });
6
+ var erc1271_1 = require("./wallet/erc1271");
7
+ Object.defineProperty(exports, "erc1271Abi", { enumerable: true, get: function () { return erc1271_1.abi; } });
8
+ var erc6492_1 = require("./wallet/erc6492");
9
+ Object.defineProperty(exports, "erc6492Abi", { enumerable: true, get: function () { return erc6492_1.abi; } });
10
+ var factory_1 = require("./wallet/factory");
11
+ Object.defineProperty(exports, "factoryAbi", { enumerable: true, get: function () { return factory_1.abi; } });
12
+ var mainModule_1 = require("./wallet/mainModule");
13
+ Object.defineProperty(exports, "mainModuleAbi", { enumerable: true, get: function () { return mainModule_1.abi; } });
14
+ var mainModuleUpgradable_1 = require("./wallet/mainModuleUpgradable");
15
+ Object.defineProperty(exports, "mainModuleUpgradableAbi", { enumerable: true, get: function () { return mainModuleUpgradable_1.abi; } });
16
+ var moduleHooks_1 = require("./wallet/moduleHooks");
17
+ Object.defineProperty(exports, "moduleHooksAbi", { enumerable: true, get: function () { return moduleHooks_1.abi; } });
18
+ var sequenceUtils_1 = require("./wallet/sequenceUtils");
19
+ Object.defineProperty(exports, "sequenceUtilsAbi", { enumerable: true, get: function () { return sequenceUtils_1.abi; } });
20
+ var requireFreshSigners_1 = require("./wallet/libs/requireFreshSigners");
21
+ Object.defineProperty(exports, "requireFreshSignerAbi", { enumerable: true, get: function () { return requireFreshSigners_1.abi; } });
22
+ var walletProxyHook_1 = require("./wallet/walletProxyHook");
23
+ Object.defineProperty(exports, "walletProxyHookAbi", { enumerable: true, get: function () { return walletProxyHook_1.abi; } });
24
+ var wallet_1 = require("./wallet");
25
+ Object.defineProperty(exports, "walletContracts", { enumerable: true, get: function () { return wallet_1.walletContracts; } });
26
+ var erc1155_1 = require("./tokens/erc1155");
27
+ Object.defineProperty(exports, "ERC1155_ABI", { enumerable: true, get: function () { return erc1155_1.ERC1155_ABI; } });
28
+ var erc1155Items_1 = require("./tokens/erc1155Items");
29
+ Object.defineProperty(exports, "ERC1155_ITEMS_ABI", { enumerable: true, get: function () { return erc1155Items_1.ERC1155_ITEMS_ABI; } });
30
+ var erc20_1 = require("./tokens/erc20");
31
+ Object.defineProperty(exports, "ERC20_ABI", { enumerable: true, get: function () { return erc20_1.ERC20_ABI; } });
32
+ var erc6909_1 = require("./tokens/erc6909");
33
+ Object.defineProperty(exports, "ERC6909_ABI", { enumerable: true, get: function () { return erc6909_1.ERC6909_ABI; } });
34
+ var erc721_1 = require("./tokens/erc721");
35
+ Object.defineProperty(exports, "ERC721_ABI", { enumerable: true, get: function () { return erc721_1.ERC721_ABI; } });
36
+ var erc721Items_1 = require("./tokens/erc721Items");
37
+ Object.defineProperty(exports, "ERC721_ITEMS_ABI", { enumerable: true, get: function () { return erc721Items_1.ERC721_ITEMS_ABI; } });
38
+ var erc1155Sale_1 = require("./sale/erc1155Sale");
39
+ Object.defineProperty(exports, "ERC1155_SALE_ABI", { enumerable: true, get: function () { return erc1155Sale_1.ERC1155_SALE_ABI; } });
40
+ var erc721Sale_1 = require("./sale/erc721Sale");
41
+ Object.defineProperty(exports, "ERC721_SALE_ABI", { enumerable: true, get: function () { return erc721Sale_1.ERC721_SALE_ABI; } });
@@ -465,3 +465,4 @@ export declare const ERC1155_SALE_ABI: readonly [{
465
465
  readonly name: "WithdrawFailed";
466
466
  readonly inputs: readonly [];
467
467
  }];
468
+ //# sourceMappingURL=erc1155Sale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"erc1155Sale.d.ts","sourceRoot":"","sources":["../../src/sale/erc1155Sale.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+VnB,CAAA"}
@@ -0,0 +1,355 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ERC1155_SALE_ABI = void 0;
4
+ exports.ERC1155_SALE_ABI = [
5
+ {
6
+ type: 'function',
7
+ name: 'DEFAULT_ADMIN_ROLE',
8
+ inputs: [],
9
+ outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
10
+ stateMutability: 'view',
11
+ },
12
+ {
13
+ type: 'function',
14
+ name: 'checkMerkleProof',
15
+ inputs: [
16
+ { name: 'root', type: 'bytes32', internalType: 'bytes32' },
17
+ { name: 'proof', type: 'bytes32[]', internalType: 'bytes32[]' },
18
+ { name: 'addr', type: 'address', internalType: 'address' },
19
+ { name: 'salt', type: 'bytes32', internalType: 'bytes32' },
20
+ ],
21
+ outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
22
+ stateMutability: 'view',
23
+ },
24
+ {
25
+ type: 'function',
26
+ name: 'getRoleAdmin',
27
+ inputs: [{ name: 'role', type: 'bytes32', internalType: 'bytes32' }],
28
+ outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
29
+ stateMutability: 'view',
30
+ },
31
+ {
32
+ type: 'function',
33
+ name: 'getRoleMember',
34
+ inputs: [
35
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
36
+ { name: 'index', type: 'uint256', internalType: 'uint256' },
37
+ ],
38
+ outputs: [{ name: '', type: 'address', internalType: 'address' }],
39
+ stateMutability: 'view',
40
+ },
41
+ {
42
+ type: 'function',
43
+ name: 'getRoleMemberCount',
44
+ inputs: [{ name: 'role', type: 'bytes32', internalType: 'bytes32' }],
45
+ outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
46
+ stateMutability: 'view',
47
+ },
48
+ {
49
+ type: 'function',
50
+ name: 'grantRole',
51
+ inputs: [
52
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
53
+ { name: 'account', type: 'address', internalType: 'address' },
54
+ ],
55
+ outputs: [],
56
+ stateMutability: 'nonpayable',
57
+ },
58
+ {
59
+ type: 'function',
60
+ name: 'hasRole',
61
+ inputs: [
62
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
63
+ { name: 'account', type: 'address', internalType: 'address' },
64
+ ],
65
+ outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
66
+ stateMutability: 'view',
67
+ },
68
+ {
69
+ type: 'function',
70
+ name: 'initialize',
71
+ inputs: [
72
+ { name: 'owner', type: 'address', internalType: 'address' },
73
+ { name: 'items', type: 'address', internalType: 'address' },
74
+ ],
75
+ outputs: [],
76
+ stateMutability: 'nonpayable',
77
+ },
78
+ {
79
+ type: 'function',
80
+ name: 'itemsContract',
81
+ inputs: [],
82
+ outputs: [{ name: '', type: 'address', internalType: 'address' }],
83
+ stateMutability: 'view',
84
+ },
85
+ {
86
+ type: 'function',
87
+ name: 'mint',
88
+ inputs: [
89
+ { name: 'to', type: 'address', internalType: 'address' },
90
+ { name: 'amount', type: 'uint256', internalType: 'uint256' },
91
+ {
92
+ name: 'paymentToken',
93
+ type: 'address',
94
+ internalType: 'address',
95
+ },
96
+ { name: 'maxTotal', type: 'uint256', internalType: 'uint256' },
97
+ { name: 'proof', type: 'bytes32[]', internalType: 'bytes32[]' },
98
+ ],
99
+ outputs: [],
100
+ stateMutability: 'payable',
101
+ },
102
+ {
103
+ type: 'function',
104
+ name: 'renounceRole',
105
+ inputs: [
106
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
107
+ { name: 'account', type: 'address', internalType: 'address' },
108
+ ],
109
+ outputs: [],
110
+ stateMutability: 'nonpayable',
111
+ },
112
+ {
113
+ type: 'function',
114
+ name: 'revokeRole',
115
+ inputs: [
116
+ { name: 'role', type: 'bytes32', internalType: 'bytes32' },
117
+ { name: 'account', type: 'address', internalType: 'address' },
118
+ ],
119
+ outputs: [],
120
+ stateMutability: 'nonpayable',
121
+ },
122
+ {
123
+ type: 'function',
124
+ name: 'saleDetails',
125
+ inputs: [],
126
+ outputs: [
127
+ {
128
+ name: '',
129
+ type: 'tuple',
130
+ internalType: 'struct IERC721SaleFunctions.SaleDetails',
131
+ components: [
132
+ {
133
+ name: 'supplyCap',
134
+ type: 'uint256',
135
+ internalType: 'uint256',
136
+ },
137
+ { name: 'cost', type: 'uint256', internalType: 'uint256' },
138
+ {
139
+ name: 'paymentToken',
140
+ type: 'address',
141
+ internalType: 'address',
142
+ },
143
+ { name: 'startTime', type: 'uint64', internalType: 'uint64' },
144
+ { name: 'endTime', type: 'uint64', internalType: 'uint64' },
145
+ {
146
+ name: 'merkleRoot',
147
+ type: 'bytes32',
148
+ internalType: 'bytes32',
149
+ },
150
+ ],
151
+ },
152
+ ],
153
+ stateMutability: 'view',
154
+ },
155
+ {
156
+ type: 'function',
157
+ name: 'setSaleDetails',
158
+ inputs: [
159
+ { name: 'supplyCap', type: 'uint256', internalType: 'uint256' },
160
+ { name: 'cost', type: 'uint256', internalType: 'uint256' },
161
+ {
162
+ name: 'paymentToken',
163
+ type: 'address',
164
+ internalType: 'address',
165
+ },
166
+ { name: 'startTime', type: 'uint64', internalType: 'uint64' },
167
+ { name: 'endTime', type: 'uint64', internalType: 'uint64' },
168
+ { name: 'merkleRoot', type: 'bytes32', internalType: 'bytes32' },
169
+ ],
170
+ outputs: [],
171
+ stateMutability: 'nonpayable',
172
+ },
173
+ {
174
+ type: 'function',
175
+ name: 'supportsInterface',
176
+ inputs: [{ name: 'interfaceId', type: 'bytes4', internalType: 'bytes4' }],
177
+ outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
178
+ stateMutability: 'view',
179
+ },
180
+ {
181
+ type: 'function',
182
+ name: 'withdrawERC20',
183
+ inputs: [
184
+ { name: 'token', type: 'address', internalType: 'address' },
185
+ { name: 'to', type: 'address', internalType: 'address' },
186
+ { name: 'value', type: 'uint256', internalType: 'uint256' },
187
+ ],
188
+ outputs: [],
189
+ stateMutability: 'nonpayable',
190
+ },
191
+ {
192
+ type: 'function',
193
+ name: 'withdrawETH',
194
+ inputs: [
195
+ { name: 'to', type: 'address', internalType: 'address' },
196
+ { name: 'value', type: 'uint256', internalType: 'uint256' },
197
+ ],
198
+ outputs: [],
199
+ stateMutability: 'nonpayable',
200
+ },
201
+ {
202
+ type: 'event',
203
+ name: 'RoleAdminChanged',
204
+ inputs: [
205
+ {
206
+ name: 'role',
207
+ type: 'bytes32',
208
+ indexed: true,
209
+ internalType: 'bytes32',
210
+ },
211
+ {
212
+ name: 'previousAdminRole',
213
+ type: 'bytes32',
214
+ indexed: true,
215
+ internalType: 'bytes32',
216
+ },
217
+ {
218
+ name: 'newAdminRole',
219
+ type: 'bytes32',
220
+ indexed: true,
221
+ internalType: 'bytes32',
222
+ },
223
+ ],
224
+ anonymous: false,
225
+ },
226
+ {
227
+ type: 'event',
228
+ name: 'RoleGranted',
229
+ inputs: [
230
+ {
231
+ name: 'role',
232
+ type: 'bytes32',
233
+ indexed: true,
234
+ internalType: 'bytes32',
235
+ },
236
+ {
237
+ name: 'account',
238
+ type: 'address',
239
+ indexed: true,
240
+ internalType: 'address',
241
+ },
242
+ {
243
+ name: 'sender',
244
+ type: 'address',
245
+ indexed: true,
246
+ internalType: 'address',
247
+ },
248
+ ],
249
+ anonymous: false,
250
+ },
251
+ {
252
+ type: 'event',
253
+ name: 'RoleRevoked',
254
+ inputs: [
255
+ {
256
+ name: 'role',
257
+ type: 'bytes32',
258
+ indexed: true,
259
+ internalType: 'bytes32',
260
+ },
261
+ {
262
+ name: 'account',
263
+ type: 'address',
264
+ indexed: true,
265
+ internalType: 'address',
266
+ },
267
+ {
268
+ name: 'sender',
269
+ type: 'address',
270
+ indexed: true,
271
+ internalType: 'address',
272
+ },
273
+ ],
274
+ anonymous: false,
275
+ },
276
+ {
277
+ type: 'event',
278
+ name: 'SaleDetailsUpdated',
279
+ inputs: [
280
+ {
281
+ name: 'supplyCap',
282
+ type: 'uint256',
283
+ indexed: false,
284
+ internalType: 'uint256',
285
+ },
286
+ {
287
+ name: 'cost',
288
+ type: 'uint256',
289
+ indexed: false,
290
+ internalType: 'uint256',
291
+ },
292
+ {
293
+ name: 'paymentToken',
294
+ type: 'address',
295
+ indexed: false,
296
+ internalType: 'address',
297
+ },
298
+ {
299
+ name: 'startTime',
300
+ type: 'uint64',
301
+ indexed: false,
302
+ internalType: 'uint64',
303
+ },
304
+ {
305
+ name: 'endTime',
306
+ type: 'uint64',
307
+ indexed: false,
308
+ internalType: 'uint64',
309
+ },
310
+ {
311
+ name: 'merkleRoot',
312
+ type: 'bytes32',
313
+ indexed: false,
314
+ internalType: 'bytes32',
315
+ },
316
+ ],
317
+ anonymous: false,
318
+ },
319
+ {
320
+ type: 'error',
321
+ name: 'InsufficientPayment',
322
+ inputs: [
323
+ { name: 'currency', type: 'address', internalType: 'address' },
324
+ { name: 'expected', type: 'uint256', internalType: 'uint256' },
325
+ { name: 'actual', type: 'uint256', internalType: 'uint256' },
326
+ ],
327
+ },
328
+ {
329
+ type: 'error',
330
+ name: 'InsufficientSupply',
331
+ inputs: [
332
+ {
333
+ name: 'currentSupply',
334
+ type: 'uint256',
335
+ internalType: 'uint256',
336
+ },
337
+ { name: 'amount', type: 'uint256', internalType: 'uint256' },
338
+ { name: 'maxSupply', type: 'uint256', internalType: 'uint256' },
339
+ ],
340
+ },
341
+ { type: 'error', name: 'InvalidInitialization', inputs: [] },
342
+ { type: 'error', name: 'InvalidSaleDetails', inputs: [] },
343
+ {
344
+ type: 'error',
345
+ name: 'MerkleProofInvalid',
346
+ inputs: [
347
+ { name: 'root', type: 'bytes32', internalType: 'bytes32' },
348
+ { name: 'proof', type: 'bytes32[]', internalType: 'bytes32[]' },
349
+ { name: 'addr', type: 'address', internalType: 'address' },
350
+ { name: 'salt', type: 'bytes32', internalType: 'bytes32' },
351
+ ],
352
+ },
353
+ { type: 'error', name: 'SaleInactive', inputs: [] },
354
+ { type: 'error', name: 'WithdrawFailed', inputs: [] },
355
+ ];
@@ -465,3 +465,4 @@ export declare const ERC721_SALE_ABI: readonly [{
465
465
  readonly name: "WithdrawFailed";
466
466
  readonly inputs: readonly [];
467
467
  }];
468
+ //# sourceMappingURL=erc721Sale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"erc721Sale.d.ts","sourceRoot":"","sources":["../../src/sale/erc721Sale.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+VlB,CAAA"}