@0xsequence/marketplace-sdk 0.8.9 → 0.8.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.changeset/fluffy-jokes-lay.md +5 -0
- package/.changeset/wise-bugs-boil.md +8 -0
- package/CHANGELOG.md +43 -0
- package/dist/{chunk-FMEEJFAF.js → chunk-5C6ZZ6WX.js} +1 -1
- package/dist/{chunk-YEGD7PWE.js → chunk-5O44EPXZ.js} +2 -2
- package/dist/chunk-6CTFVBKU.js +1 -0
- package/dist/{chunk-DWTLVJAW.js → chunk-6OPMUCGX.js} +1 -1
- package/dist/chunk-6OPMUCGX.js.map +1 -0
- package/dist/{chunk-O34GCB47.js → chunk-L6KWLCER.js} +4 -4
- package/dist/chunk-L6KWLCER.js.map +1 -0
- package/dist/{chunk-4XLXOEXQ.js → chunk-LAP2CKLN.js} +78 -4
- package/dist/chunk-LAP2CKLN.js.map +1 -0
- package/dist/{chunk-Y63BOO6M.js → chunk-LECCEZAO.js} +1 -1
- package/dist/{chunk-YALXP2PW.js → chunk-N7SQWS2R.js} +3 -3
- package/dist/{chunk-KGM2WLSP.js → chunk-OAOONM4S.js} +695 -440
- package/dist/chunk-OAOONM4S.js.map +1 -0
- package/dist/chunk-Q3ECVC4F.js +811 -0
- package/dist/chunk-Q3ECVC4F.js.map +1 -0
- package/dist/chunk-QY52UADF.js +107 -0
- package/dist/chunk-QY52UADF.js.map +1 -0
- package/dist/{chunk-I2BYHDFE.js → chunk-TNAR3XEF.js} +3898 -844
- package/dist/chunk-TNAR3XEF.js.map +1 -0
- package/dist/chunk-XABYNWXO.js +549 -0
- package/dist/chunk-XABYNWXO.js.map +1 -0
- package/dist/chunk-YB5UUF2G.js +11 -0
- package/dist/chunk-YB5UUF2G.js.map +1 -0
- package/dist/{chunk-35WWD5V6.js → chunk-YWGFI4PN.js} +88 -25
- package/dist/chunk-YWGFI4PN.js.map +1 -0
- package/dist/{create-config-DwrnzwpM.d.ts → create-config-DLMvMTkZ.d.ts} +2 -2
- package/dist/index.css +7 -7
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +8 -6
- package/dist/index.js +19 -14
- package/dist/{lowestListing-BQHIuvNF.d.ts → marketCurrencies-enNVYwBk.d.ts} +95 -3
- package/dist/{marketplace.gen-DQzWciwC.d.ts → marketplace.gen-D24veUQs.d.ts} +3 -2
- package/dist/marketplaceConfig-BwNAbLPw.d.ts +21 -0
- package/dist/new-marketplace-types-BCw19X9S.d.ts +102 -0
- package/dist/react/_internal/api/index.d.ts +4 -3
- package/dist/react/_internal/api/index.js +5 -1
- package/dist/react/_internal/databeat/index.css +2764 -0
- package/dist/react/_internal/databeat/index.css.map +1 -0
- package/dist/react/_internal/databeat/index.d.ts +1 -1
- package/dist/react/_internal/databeat/index.js +15 -14
- package/dist/react/_internal/index.d.ts +62 -9
- package/dist/react/_internal/index.js +7 -3
- package/dist/react/_internal/wagmi/index.d.ts +5 -6
- package/dist/react/_internal/wagmi/index.js +1 -1
- package/dist/react/hooks/index.css +2764 -0
- package/dist/react/hooks/index.css.map +1 -0
- package/dist/react/hooks/index.d.ts +74 -222
- package/dist/react/hooks/index.js +21 -22
- package/dist/react/hooks/options/index.d.ts +5 -4
- package/dist/react/hooks/options/index.js +9 -7
- package/dist/react/index.css +7 -7
- package/dist/react/index.css.map +1 -1
- package/dist/react/index.d.ts +12 -11
- package/dist/react/index.js +34 -37
- package/dist/react/queries/index.d.ts +4 -3
- package/dist/react/queries/index.js +19 -6
- package/dist/react/ssr/index.d.ts +3 -3
- package/dist/react/ssr/index.js +6 -5
- package/dist/react/ssr/index.js.map +1 -1
- package/dist/react/ui/components/collectible-card/index.css +7 -7
- package/dist/react/ui/components/collectible-card/index.css.map +1 -1
- package/dist/react/ui/components/collectible-card/index.d.ts +9 -6
- package/dist/react/ui/components/collectible-card/index.js +19 -23
- package/dist/react/ui/components/marketplace-logos/index.js +1 -1
- package/dist/react/ui/icons/index.js +9 -8
- package/dist/react/ui/index.css +7 -7
- package/dist/react/ui/index.css.map +1 -1
- package/dist/react/ui/index.d.ts +2 -2
- package/dist/react/ui/index.js +17 -21
- package/dist/react/ui/modals/_internal/components/actionModal/index.css +2764 -0
- package/dist/react/ui/modals/_internal/components/actionModal/index.css.map +1 -0
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +15 -14
- package/dist/sdk-config-qorA0TgF.d.ts +165 -0
- package/dist/{services-BI_w8Eq4.d.ts → services-WrshxCqc.d.ts} +6 -3
- package/dist/types/index.d.ts +5 -4
- package/dist/types/index.js +7 -7
- package/dist/{index-DGsVBflk.d.ts → useCollection-YAdXfVO7.d.ts} +1 -2
- package/dist/utils/abi/index.d.ts +1 -0
- package/dist/utils/abi/index.js +7 -1
- package/dist/utils/abi/primary-sale/index.d.ts +1054 -0
- package/dist/utils/abi/primary-sale/index.js +9 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +13 -6
- package/package.json +32 -32
- package/src/react/_internal/api/__mocks__/builder.msw.ts +157 -80
- package/src/react/_internal/api/builder-api.ts +2 -2
- package/src/react/_internal/api/builder.gen.ts +667 -112
- package/src/react/_internal/api/marketplace.gen.ts +1981 -1316
- package/src/react/_internal/api/services.ts +12 -1
- package/src/react/_internal/types.ts +1 -13
- package/src/react/_internal/wagmi/__tests__/create-config.test.ts +99 -84
- package/src/react/_internal/wagmi/create-config.ts +8 -4
- package/src/react/_internal/wagmi/get-connectors.ts +24 -19
- package/src/react/hooks/__tests__/__snapshots__/useListCollections.test.tsx.snap +114 -0
- package/src/react/hooks/__tests__/__snapshots__/useMarketplaceConfig.test.tsx.snap +85 -83
- package/src/react/hooks/__tests__/useFilters.test.tsx +0 -16
- package/src/react/hooks/__tests__/useInventory.test.tsx +16 -16
- package/src/react/hooks/__tests__/useListCollections.test.tsx +23 -56
- package/src/react/hooks/__tests__/{useCurrencies.test.tsx → useMarketCurrencies.test.tsx} +21 -15
- package/src/react/hooks/__tests__/useMarketplaceConfig.test.tsx +2 -59
- package/src/react/hooks/index.ts +3 -1
- package/src/react/hooks/useBalanceOfCollectible.tsx +5 -3
- package/src/react/hooks/useConvertPriceToUSD.tsx +1 -1
- package/src/react/hooks/useFilters.tsx +14 -22
- package/src/react/hooks/useGetTokenSuppliesMap.ts +28 -0
- package/src/react/hooks/useInventory.tsx +4 -3
- package/src/react/hooks/useList1155SaleSupplies.tsx +62 -0
- package/src/react/hooks/useListBalances.tsx +5 -3
- package/src/react/hooks/useListCollectibles.tsx +5 -3
- package/src/react/hooks/useListCollections.tsx +14 -76
- package/src/react/hooks/useListTokenMetadata.ts +19 -0
- package/src/react/hooks/useMarketCurrencies.tsx +8 -0
- package/src/react/hooks/useMarketplaceConfig.tsx +0 -2
- package/src/react/queries/index.ts +2 -0
- package/src/react/queries/inventory.ts +1 -1
- package/src/react/queries/listCollections.ts +118 -0
- package/src/react/queries/listTokenMetadata.ts +38 -0
- package/src/react/queries/marketCurrencies.ts +77 -0
- package/src/react/queries/marketplaceConfig.ts +83 -55
- package/src/react/ssr/__tests__/__snapshots__/create-ssr-client.test.ts.snap +85 -83
- package/src/react/ui/components/collectible-card/CollectibleCard.tsx +2 -2
- package/src/react/ui/components/collectible-card/__tests__/{CollectibleAsset.test.tsx → Media.test.tsx} +48 -14
- package/src/react/ui/components/collectible-card/index.ts +1 -1
- package/src/react/ui/components/collectible-card/media/Media.tsx +211 -0
- package/src/react/ui/components/collectible-card/{collectible-asset/CollectibleAssetSkeleton.tsx → media/MediaSkeleton.tsx} +2 -2
- package/src/react/ui/components/collectible-card/media/types.ts +18 -0
- package/src/react/ui/components/collectible-card/{collectible-asset → media}/utils.ts +8 -3
- package/src/react/ui/index.ts +1 -1
- package/src/react/ui/modals/BuyModal/ERC1155QuantityModal.tsx +9 -3
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useFees.test.tsx +31 -21
- package/src/react/ui/modals/BuyModal/hooks/useFees.ts +3 -2
- package/src/react/ui/modals/BuyModal/hooks/usePaymentModalParams.ts +28 -3
- package/src/react/ui/modals/CreateListingModal/Modal.tsx +3 -5
- package/src/react/ui/modals/CreateListingModal/hooks/useCreateListing.tsx +5 -3
- package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +2 -2
- package/src/react/ui/modals/MakeOfferModal/Modal.tsx +2 -3
- package/src/react/ui/modals/MakeOfferModal/hooks/useMakeOffer.tsx +4 -3
- package/src/react/ui/modals/SellModal/Modal.tsx +0 -1
- package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +2 -2
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/WalletAddressInput.tsx +1 -1
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +0 -1
- package/src/react/ui/modals/TransferModal/index.tsx +0 -1
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx +2 -2
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +7 -6
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/__tests__/SelectWaasFeeOptions.test.tsx +13 -7
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/index.tsx +3 -5
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/useWaasFeeOptionManager.tsx +5 -3
- package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +2 -2
- package/src/react/ui/modals/_internal/hooks/useSelectWaasFeeOptions.ts +2 -12
- package/src/types/index.ts +1 -6
- package/src/types/new-marketplace-types.ts +119 -0
- package/src/types/sdk-config.ts +19 -2
- package/src/types/types.ts +1 -0
- package/src/utils/abi/index.ts +1 -0
- package/src/utils/abi/primary-sale/index.ts +2 -0
- package/src/utils/abi/primary-sale/sequence-1155-sales-contract.ts +450 -0
- package/src/utils/abi/primary-sale/sequence-721-sales-contract.ts +352 -0
- package/src/utils/abi/token/sequence-erc1155-items.ts +454 -0
- package/src/utils/fetchContentType.ts +5 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/chunk-35WWD5V6.js.map +0 -1
- package/dist/chunk-4XLXOEXQ.js.map +0 -1
- package/dist/chunk-D7RVSZAQ.js +0 -332
- package/dist/chunk-D7RVSZAQ.js.map +0 -1
- package/dist/chunk-DWTLVJAW.js.map +0 -1
- package/dist/chunk-EODKQL6Y.js +0 -76
- package/dist/chunk-EODKQL6Y.js.map +0 -1
- package/dist/chunk-G3447GIP.js +0 -2880
- package/dist/chunk-G3447GIP.js.map +0 -1
- package/dist/chunk-HHYNOPPI.js +0 -53
- package/dist/chunk-HHYNOPPI.js.map +0 -1
- package/dist/chunk-I2BYHDFE.js.map +0 -1
- package/dist/chunk-JKCF7HEA.js +0 -1
- package/dist/chunk-KGM2WLSP.js.map +0 -1
- package/dist/chunk-MAD64DLJ.js +0 -81
- package/dist/chunk-MAD64DLJ.js.map +0 -1
- package/dist/chunk-N7BPFK46.js +0 -1
- package/dist/chunk-O34GCB47.js.map +0 -1
- package/dist/chunk-UISBTKFF.js +0 -1
- package/dist/chunk-UISBTKFF.js.map +0 -1
- package/dist/chunk-YBOFRP65.js +0 -128
- package/dist/chunk-YBOFRP65.js.map +0 -1
- package/dist/marketplaceConfig-B4Fdsmxu.d.ts +0 -17
- package/dist/sdk-config-txlivEKe.d.ts +0 -133
- package/dist/types-isjvwapz.d.ts +0 -68
- package/src/react/hooks/useCurrencies.tsx +0 -77
- package/src/react/ui/components/collectible-card/collectible-asset/CollectibleAsset.tsx +0 -174
- /package/dist/{chunk-FMEEJFAF.js.map → chunk-5C6ZZ6WX.js.map} +0 -0
- /package/dist/{chunk-YEGD7PWE.js.map → chunk-5O44EPXZ.js.map} +0 -0
- /package/dist/{chunk-JKCF7HEA.js.map → chunk-6CTFVBKU.js.map} +0 -0
- /package/dist/{chunk-Y63BOO6M.js.map → chunk-LECCEZAO.js.map} +0 -0
- /package/dist/{chunk-YALXP2PW.js.map → chunk-N7SQWS2R.js.map} +0 -0
- /package/dist/{chunk-N7BPFK46.js.map → utils/abi/primary-sale/index.js.map} +0 -0
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
export const ERC721_SALE_ABI = [
|
|
2
|
+
{
|
|
3
|
+
type: 'function',
|
|
4
|
+
name: 'DEFAULT_ADMIN_ROLE',
|
|
5
|
+
inputs: [],
|
|
6
|
+
outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
|
|
7
|
+
stateMutability: 'view',
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
type: 'function',
|
|
11
|
+
name: 'checkMerkleProof',
|
|
12
|
+
inputs: [
|
|
13
|
+
{ name: 'root', type: 'bytes32', internalType: 'bytes32' },
|
|
14
|
+
{ name: 'proof', type: 'bytes32[]', internalType: 'bytes32[]' },
|
|
15
|
+
{ name: 'addr', type: 'address', internalType: 'address' },
|
|
16
|
+
{ name: 'salt', type: 'bytes32', internalType: 'bytes32' },
|
|
17
|
+
],
|
|
18
|
+
outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
|
|
19
|
+
stateMutability: 'view',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
type: 'function',
|
|
23
|
+
name: 'getRoleAdmin',
|
|
24
|
+
inputs: [{ name: 'role', type: 'bytes32', internalType: 'bytes32' }],
|
|
25
|
+
outputs: [{ name: '', type: 'bytes32', internalType: 'bytes32' }],
|
|
26
|
+
stateMutability: 'view',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
type: 'function',
|
|
30
|
+
name: 'getRoleMember',
|
|
31
|
+
inputs: [
|
|
32
|
+
{ name: 'role', type: 'bytes32', internalType: 'bytes32' },
|
|
33
|
+
{ name: 'index', type: 'uint256', internalType: 'uint256' },
|
|
34
|
+
],
|
|
35
|
+
outputs: [{ name: '', type: 'address', internalType: 'address' }],
|
|
36
|
+
stateMutability: 'view',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
type: 'function',
|
|
40
|
+
name: 'getRoleMemberCount',
|
|
41
|
+
inputs: [{ name: 'role', type: 'bytes32', internalType: 'bytes32' }],
|
|
42
|
+
outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
|
|
43
|
+
stateMutability: 'view',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
type: 'function',
|
|
47
|
+
name: 'grantRole',
|
|
48
|
+
inputs: [
|
|
49
|
+
{ name: 'role', type: 'bytes32', internalType: 'bytes32' },
|
|
50
|
+
{ name: 'account', type: 'address', internalType: 'address' },
|
|
51
|
+
],
|
|
52
|
+
outputs: [],
|
|
53
|
+
stateMutability: 'nonpayable',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
type: 'function',
|
|
57
|
+
name: 'hasRole',
|
|
58
|
+
inputs: [
|
|
59
|
+
{ name: 'role', type: 'bytes32', internalType: 'bytes32' },
|
|
60
|
+
{ name: 'account', type: 'address', internalType: 'address' },
|
|
61
|
+
],
|
|
62
|
+
outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
|
|
63
|
+
stateMutability: 'view',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
type: 'function',
|
|
67
|
+
name: 'initialize',
|
|
68
|
+
inputs: [
|
|
69
|
+
{ name: 'owner', type: 'address', internalType: 'address' },
|
|
70
|
+
{ name: 'items', type: 'address', internalType: 'address' },
|
|
71
|
+
],
|
|
72
|
+
outputs: [],
|
|
73
|
+
stateMutability: 'nonpayable',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
type: 'function',
|
|
77
|
+
name: 'itemsContract',
|
|
78
|
+
inputs: [],
|
|
79
|
+
outputs: [{ name: '', type: 'address', internalType: 'address' }],
|
|
80
|
+
stateMutability: 'view',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
type: 'function',
|
|
84
|
+
name: 'mint',
|
|
85
|
+
inputs: [
|
|
86
|
+
{ name: 'to', type: 'address', internalType: 'address' },
|
|
87
|
+
{ name: 'amount', type: 'uint256', internalType: 'uint256' },
|
|
88
|
+
{
|
|
89
|
+
name: 'paymentToken',
|
|
90
|
+
type: 'address',
|
|
91
|
+
internalType: 'address',
|
|
92
|
+
},
|
|
93
|
+
{ name: 'maxTotal', type: 'uint256', internalType: 'uint256' },
|
|
94
|
+
{ name: 'proof', type: 'bytes32[]', internalType: 'bytes32[]' },
|
|
95
|
+
],
|
|
96
|
+
outputs: [],
|
|
97
|
+
stateMutability: 'payable',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: 'function',
|
|
101
|
+
name: 'renounceRole',
|
|
102
|
+
inputs: [
|
|
103
|
+
{ name: 'role', type: 'bytes32', internalType: 'bytes32' },
|
|
104
|
+
{ name: 'account', type: 'address', internalType: 'address' },
|
|
105
|
+
],
|
|
106
|
+
outputs: [],
|
|
107
|
+
stateMutability: 'nonpayable',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
type: 'function',
|
|
111
|
+
name: 'revokeRole',
|
|
112
|
+
inputs: [
|
|
113
|
+
{ name: 'role', type: 'bytes32', internalType: 'bytes32' },
|
|
114
|
+
{ name: 'account', type: 'address', internalType: 'address' },
|
|
115
|
+
],
|
|
116
|
+
outputs: [],
|
|
117
|
+
stateMutability: 'nonpayable',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
type: 'function',
|
|
121
|
+
name: 'saleDetails',
|
|
122
|
+
inputs: [],
|
|
123
|
+
outputs: [
|
|
124
|
+
{
|
|
125
|
+
name: '',
|
|
126
|
+
type: 'tuple',
|
|
127
|
+
internalType: 'struct IERC721SaleFunctions.SaleDetails',
|
|
128
|
+
components: [
|
|
129
|
+
{
|
|
130
|
+
name: 'supplyCap',
|
|
131
|
+
type: 'uint256',
|
|
132
|
+
internalType: 'uint256',
|
|
133
|
+
},
|
|
134
|
+
{ name: 'cost', type: 'uint256', internalType: 'uint256' },
|
|
135
|
+
{
|
|
136
|
+
name: 'paymentToken',
|
|
137
|
+
type: 'address',
|
|
138
|
+
internalType: 'address',
|
|
139
|
+
},
|
|
140
|
+
{ name: 'startTime', type: 'uint64', internalType: 'uint64' },
|
|
141
|
+
{ name: 'endTime', type: 'uint64', internalType: 'uint64' },
|
|
142
|
+
{
|
|
143
|
+
name: 'merkleRoot',
|
|
144
|
+
type: 'bytes32',
|
|
145
|
+
internalType: 'bytes32',
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
stateMutability: 'view',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
type: 'function',
|
|
154
|
+
name: 'setSaleDetails',
|
|
155
|
+
inputs: [
|
|
156
|
+
{ name: 'supplyCap', type: 'uint256', internalType: 'uint256' },
|
|
157
|
+
{ name: 'cost', type: 'uint256', internalType: 'uint256' },
|
|
158
|
+
{
|
|
159
|
+
name: 'paymentToken',
|
|
160
|
+
type: 'address',
|
|
161
|
+
internalType: 'address',
|
|
162
|
+
},
|
|
163
|
+
{ name: 'startTime', type: 'uint64', internalType: 'uint64' },
|
|
164
|
+
{ name: 'endTime', type: 'uint64', internalType: 'uint64' },
|
|
165
|
+
{ name: 'merkleRoot', type: 'bytes32', internalType: 'bytes32' },
|
|
166
|
+
],
|
|
167
|
+
outputs: [],
|
|
168
|
+
stateMutability: 'nonpayable',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
type: 'function',
|
|
172
|
+
name: 'supportsInterface',
|
|
173
|
+
inputs: [{ name: 'interfaceId', type: 'bytes4', internalType: 'bytes4' }],
|
|
174
|
+
outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
|
|
175
|
+
stateMutability: 'view',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
type: 'function',
|
|
179
|
+
name: 'withdrawERC20',
|
|
180
|
+
inputs: [
|
|
181
|
+
{ name: 'token', type: 'address', internalType: 'address' },
|
|
182
|
+
{ name: 'to', type: 'address', internalType: 'address' },
|
|
183
|
+
{ name: 'value', type: 'uint256', internalType: 'uint256' },
|
|
184
|
+
],
|
|
185
|
+
outputs: [],
|
|
186
|
+
stateMutability: 'nonpayable',
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
type: 'function',
|
|
190
|
+
name: 'withdrawETH',
|
|
191
|
+
inputs: [
|
|
192
|
+
{ name: 'to', type: 'address', internalType: 'address' },
|
|
193
|
+
{ name: 'value', type: 'uint256', internalType: 'uint256' },
|
|
194
|
+
],
|
|
195
|
+
outputs: [],
|
|
196
|
+
stateMutability: 'nonpayable',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
type: 'event',
|
|
200
|
+
name: 'RoleAdminChanged',
|
|
201
|
+
inputs: [
|
|
202
|
+
{
|
|
203
|
+
name: 'role',
|
|
204
|
+
type: 'bytes32',
|
|
205
|
+
indexed: true,
|
|
206
|
+
internalType: 'bytes32',
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: 'previousAdminRole',
|
|
210
|
+
type: 'bytes32',
|
|
211
|
+
indexed: true,
|
|
212
|
+
internalType: 'bytes32',
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: 'newAdminRole',
|
|
216
|
+
type: 'bytes32',
|
|
217
|
+
indexed: true,
|
|
218
|
+
internalType: 'bytes32',
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
anonymous: false,
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
type: 'event',
|
|
225
|
+
name: 'RoleGranted',
|
|
226
|
+
inputs: [
|
|
227
|
+
{
|
|
228
|
+
name: 'role',
|
|
229
|
+
type: 'bytes32',
|
|
230
|
+
indexed: true,
|
|
231
|
+
internalType: 'bytes32',
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
name: 'account',
|
|
235
|
+
type: 'address',
|
|
236
|
+
indexed: true,
|
|
237
|
+
internalType: 'address',
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
name: 'sender',
|
|
241
|
+
type: 'address',
|
|
242
|
+
indexed: true,
|
|
243
|
+
internalType: 'address',
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
anonymous: false,
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
type: 'event',
|
|
250
|
+
name: 'RoleRevoked',
|
|
251
|
+
inputs: [
|
|
252
|
+
{
|
|
253
|
+
name: 'role',
|
|
254
|
+
type: 'bytes32',
|
|
255
|
+
indexed: true,
|
|
256
|
+
internalType: 'bytes32',
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
name: 'account',
|
|
260
|
+
type: 'address',
|
|
261
|
+
indexed: true,
|
|
262
|
+
internalType: 'address',
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
name: 'sender',
|
|
266
|
+
type: 'address',
|
|
267
|
+
indexed: true,
|
|
268
|
+
internalType: 'address',
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
anonymous: false,
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
type: 'event',
|
|
275
|
+
name: 'SaleDetailsUpdated',
|
|
276
|
+
inputs: [
|
|
277
|
+
{
|
|
278
|
+
name: 'supplyCap',
|
|
279
|
+
type: 'uint256',
|
|
280
|
+
indexed: false,
|
|
281
|
+
internalType: 'uint256',
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
name: 'cost',
|
|
285
|
+
type: 'uint256',
|
|
286
|
+
indexed: false,
|
|
287
|
+
internalType: 'uint256',
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
name: 'paymentToken',
|
|
291
|
+
type: 'address',
|
|
292
|
+
indexed: false,
|
|
293
|
+
internalType: 'address',
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: 'startTime',
|
|
297
|
+
type: 'uint64',
|
|
298
|
+
indexed: false,
|
|
299
|
+
internalType: 'uint64',
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
name: 'endTime',
|
|
303
|
+
type: 'uint64',
|
|
304
|
+
indexed: false,
|
|
305
|
+
internalType: 'uint64',
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
name: 'merkleRoot',
|
|
309
|
+
type: 'bytes32',
|
|
310
|
+
indexed: false,
|
|
311
|
+
internalType: 'bytes32',
|
|
312
|
+
},
|
|
313
|
+
],
|
|
314
|
+
anonymous: false,
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
type: 'error',
|
|
318
|
+
name: 'InsufficientPayment',
|
|
319
|
+
inputs: [
|
|
320
|
+
{ name: 'currency', type: 'address', internalType: 'address' },
|
|
321
|
+
{ name: 'expected', type: 'uint256', internalType: 'uint256' },
|
|
322
|
+
{ name: 'actual', type: 'uint256', internalType: 'uint256' },
|
|
323
|
+
],
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
type: 'error',
|
|
327
|
+
name: 'InsufficientSupply',
|
|
328
|
+
inputs: [
|
|
329
|
+
{
|
|
330
|
+
name: 'currentSupply',
|
|
331
|
+
type: 'uint256',
|
|
332
|
+
internalType: 'uint256',
|
|
333
|
+
},
|
|
334
|
+
{ name: 'amount', type: 'uint256', internalType: 'uint256' },
|
|
335
|
+
{ name: 'maxSupply', type: 'uint256', internalType: 'uint256' },
|
|
336
|
+
],
|
|
337
|
+
},
|
|
338
|
+
{ type: 'error', name: 'InvalidInitialization', inputs: [] },
|
|
339
|
+
{ type: 'error', name: 'InvalidSaleDetails', inputs: [] },
|
|
340
|
+
{
|
|
341
|
+
type: 'error',
|
|
342
|
+
name: 'MerkleProofInvalid',
|
|
343
|
+
inputs: [
|
|
344
|
+
{ name: 'root', type: 'bytes32', internalType: 'bytes32' },
|
|
345
|
+
{ name: 'proof', type: 'bytes32[]', internalType: 'bytes32[]' },
|
|
346
|
+
{ name: 'addr', type: 'address', internalType: 'address' },
|
|
347
|
+
{ name: 'salt', type: 'bytes32', internalType: 'bytes32' },
|
|
348
|
+
],
|
|
349
|
+
},
|
|
350
|
+
{ type: 'error', name: 'SaleInactive', inputs: [] },
|
|
351
|
+
{ type: 'error', name: 'WithdrawFailed', inputs: [] },
|
|
352
|
+
] as const;
|