viem 2.50.4 → 2.51.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.
- package/CHANGELOG.md +22 -0
- package/_cjs/actions/index.js +5 -3
- package/_cjs/actions/index.js.map +1 -1
- package/_cjs/actions/public/createAccessList.js +3 -0
- package/_cjs/actions/public/createAccessList.js.map +1 -1
- package/_cjs/actions/public/getBlockReceipts.js +19 -0
- package/_cjs/actions/public/getBlockReceipts.js.map +1 -0
- package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_cjs/chains/definitions/somnia.js +7 -0
- package/_cjs/chains/definitions/somnia.js.map +1 -1
- package/_cjs/chains/definitions/somniaTestnet.js +3 -2
- package/_cjs/chains/definitions/somniaTestnet.js.map +1 -1
- package/_cjs/clients/decorators/public.js +2 -0
- package/_cjs/clients/decorators/public.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/op-stack/actions/buildProveWithdrawal.js +10 -2
- package/_cjs/op-stack/actions/buildProveWithdrawal.js.map +1 -1
- package/_cjs/op-stack/actions/getGame.js.map +1 -1
- package/_cjs/op-stack/actions/getGames.js +3 -1
- package/_cjs/op-stack/actions/getGames.js.map +1 -1
- package/_cjs/op-stack/actions/getTimeToProve.js +3 -3
- package/_cjs/op-stack/actions/getTimeToProve.js.map +1 -1
- package/_cjs/op-stack/actions/getWithdrawalStatus.js +1 -1
- package/_cjs/op-stack/actions/getWithdrawalStatus.js.map +1 -1
- package/_cjs/op-stack/actions/waitToProve.js +4 -3
- package/_cjs/op-stack/actions/waitToProve.js.map +1 -1
- package/_cjs/op-stack/gameTypes.js +9 -0
- package/_cjs/op-stack/gameTypes.js.map +1 -0
- package/_cjs/op-stack/index.js +7 -1
- package/_cjs/op-stack/index.js.map +1 -1
- package/_cjs/op-stack/utils/getL2BlockNumberAtTimestamp.js +29 -0
- package/_cjs/op-stack/utils/getL2BlockNumberAtTimestamp.js.map +1 -0
- package/_cjs/tempo/Abis.js +477 -11
- package/_cjs/tempo/Abis.js.map +1 -1
- package/_cjs/tempo/Account.js +27 -1
- package/_cjs/tempo/Account.js.map +1 -1
- package/_cjs/tempo/Decorator.js +17 -0
- package/_cjs/tempo/Decorator.js.map +1 -1
- package/_cjs/tempo/Transaction.js +10 -2
- package/_cjs/tempo/Transaction.js.map +1 -1
- package/_cjs/tempo/actions/channel.js +377 -0
- package/_cjs/tempo/actions/channel.js.map +1 -0
- package/_cjs/tempo/actions/index.js +2 -1
- package/_cjs/tempo/actions/index.js.map +1 -1
- package/_cjs/tempo/actions/token.js +57 -27
- package/_cjs/tempo/actions/token.js.map +1 -1
- package/_cjs/tempo/index.js +2 -1
- package/_cjs/tempo/index.js.map +1 -1
- package/_cjs/utils/formatters/transactionRequest.js.map +1 -1
- package/_cjs/utils/index.js.map +1 -1
- package/_esm/actions/index.js +1 -0
- package/_esm/actions/index.js.map +1 -1
- package/_esm/actions/public/createAccessList.js +3 -0
- package/_esm/actions/public/createAccessList.js.map +1 -1
- package/_esm/actions/public/getBlockReceipts.js +39 -0
- package/_esm/actions/public/getBlockReceipts.js.map +1 -0
- package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_esm/chains/definitions/somnia.js +7 -0
- package/_esm/chains/definitions/somnia.js.map +1 -1
- package/_esm/chains/definitions/somniaTestnet.js +3 -2
- package/_esm/chains/definitions/somniaTestnet.js.map +1 -1
- package/_esm/clients/decorators/public.js +2 -0
- package/_esm/clients/decorators/public.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/op-stack/actions/buildProveWithdrawal.js +10 -2
- package/_esm/op-stack/actions/buildProveWithdrawal.js.map +1 -1
- package/_esm/op-stack/actions/getGame.js.map +1 -1
- package/_esm/op-stack/actions/getGames.js +3 -1
- package/_esm/op-stack/actions/getGames.js.map +1 -1
- package/_esm/op-stack/actions/getTimeToProve.js +3 -3
- package/_esm/op-stack/actions/getTimeToProve.js.map +1 -1
- package/_esm/op-stack/actions/getWithdrawalStatus.js +1 -1
- package/_esm/op-stack/actions/getWithdrawalStatus.js.map +1 -1
- package/_esm/op-stack/actions/waitToProve.js +4 -3
- package/_esm/op-stack/actions/waitToProve.js.map +1 -1
- package/_esm/op-stack/gameTypes.js +9 -0
- package/_esm/op-stack/gameTypes.js.map +1 -0
- package/_esm/op-stack/index.js +2 -0
- package/_esm/op-stack/index.js.map +1 -1
- package/_esm/op-stack/utils/getL2BlockNumberAtTimestamp.js +33 -0
- package/_esm/op-stack/utils/getL2BlockNumberAtTimestamp.js.map +1 -0
- package/_esm/tempo/Abis.js +476 -10
- package/_esm/tempo/Abis.js.map +1 -1
- package/_esm/tempo/Account.js +27 -2
- package/_esm/tempo/Account.js.map +1 -1
- package/_esm/tempo/Decorator.js +17 -0
- package/_esm/tempo/Decorator.js.map +1 -1
- package/_esm/tempo/Transaction.js +16 -11
- package/_esm/tempo/Transaction.js.map +1 -1
- package/_esm/tempo/actions/channel.js +736 -0
- package/_esm/tempo/actions/channel.js.map +1 -0
- package/_esm/tempo/actions/index.js +1 -0
- package/_esm/tempo/actions/index.js.map +1 -1
- package/_esm/tempo/actions/token.js +61 -28
- package/_esm/tempo/actions/token.js.map +1 -1
- package/_esm/tempo/index.js +1 -1
- package/_esm/tempo/index.js.map +1 -1
- package/_esm/utils/formatters/transactionRequest.js.map +1 -1
- package/_esm/utils/index.js.map +1 -1
- package/_types/actions/index.d.ts +1 -0
- package/_types/actions/index.d.ts.map +1 -1
- package/_types/actions/public/createAccessList.d.ts +2 -1
- package/_types/actions/public/createAccessList.d.ts.map +1 -1
- package/_types/actions/public/getBlockReceipts.d.ts +53 -0
- package/_types/actions/public/getBlockReceipts.d.ts.map +1 -0
- package/_types/actions/wallet/prepareTransactionRequest.d.ts +4 -5
- package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
- package/_types/chains/definitions/somnia.d.ts +7 -10
- package/_types/chains/definitions/somnia.d.ts.map +1 -1
- package/_types/chains/definitions/somniaTestnet.d.ts +3 -3
- package/_types/chains/definitions/somniaTestnet.d.ts.map +1 -1
- package/_types/clients/decorators/public.d.ts +23 -0
- package/_types/clients/decorators/public.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/index.d.ts +2 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/op-stack/actions/buildProveWithdrawal.d.ts +2 -1
- package/_types/op-stack/actions/buildProveWithdrawal.d.ts.map +1 -1
- package/_types/op-stack/actions/getGame.d.ts +7 -0
- package/_types/op-stack/actions/getGame.d.ts.map +1 -1
- package/_types/op-stack/actions/getGames.d.ts +7 -0
- package/_types/op-stack/actions/getGames.d.ts.map +1 -1
- package/_types/op-stack/actions/getTimeToProve.d.ts +4 -0
- package/_types/op-stack/actions/getTimeToProve.d.ts.map +1 -1
- package/_types/op-stack/actions/getWithdrawalStatus.d.ts +4 -0
- package/_types/op-stack/actions/getWithdrawalStatus.d.ts.map +1 -1
- package/_types/op-stack/actions/waitToProve.d.ts +4 -0
- package/_types/op-stack/actions/waitToProve.d.ts.map +1 -1
- package/_types/op-stack/gameTypes.d.ts +7 -0
- package/_types/op-stack/gameTypes.d.ts.map +1 -0
- package/_types/op-stack/index.d.ts +2 -0
- package/_types/op-stack/index.d.ts.map +1 -1
- package/_types/op-stack/utils/getL2BlockNumberAtTimestamp.d.ts +21 -0
- package/_types/op-stack/utils/getL2BlockNumberAtTimestamp.d.ts.map +1 -0
- package/_types/tempo/Abis.d.ts +3784 -2271
- package/_types/tempo/Abis.d.ts.map +1 -1
- package/_types/tempo/Account.d.ts +32 -1
- package/_types/tempo/Account.d.ts.map +1 -1
- package/_types/tempo/Decorator.d.ts +246 -1
- package/_types/tempo/Decorator.d.ts.map +1 -1
- package/_types/tempo/Transaction.d.ts.map +1 -1
- package/_types/tempo/actions/accessKey.d.ts +339 -0
- package/_types/tempo/actions/accessKey.d.ts.map +1 -1
- package/_types/tempo/actions/channel.d.ts +4390 -0
- package/_types/tempo/actions/channel.d.ts.map +1 -0
- package/_types/tempo/actions/dex.d.ts +140 -0
- package/_types/tempo/actions/dex.d.ts.map +1 -1
- package/_types/tempo/actions/fee.d.ts +0 -48
- package/_types/tempo/actions/fee.d.ts.map +1 -1
- package/_types/tempo/actions/index.d.ts +1 -0
- package/_types/tempo/actions/index.d.ts.map +1 -1
- package/_types/tempo/actions/reward.d.ts +74 -18
- package/_types/tempo/actions/reward.d.ts.map +1 -1
- package/_types/tempo/actions/token.d.ts +629 -141
- package/_types/tempo/actions/token.d.ts.map +1 -1
- package/_types/tempo/actions/virtualAddress.d.ts +11 -0
- package/_types/tempo/actions/virtualAddress.d.ts.map +1 -1
- package/_types/tempo/index.d.ts +1 -1
- package/_types/tempo/index.d.ts.map +1 -1
- package/_types/types/eip1193.d.ts +13 -0
- package/_types/types/eip1193.d.ts.map +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +6 -1
- package/_types/utils/formatters/transactionRequest.d.ts.map +1 -1
- package/_types/utils/index.d.ts +1 -1
- package/_types/utils/index.d.ts.map +1 -1
- package/actions/index.ts +6 -0
- package/actions/public/createAccessList.ts +4 -0
- package/actions/public/getBlockReceipts.ts +101 -0
- package/actions/wallet/prepareTransactionRequest.ts +7 -10
- package/chains/definitions/somnia.ts +7 -0
- package/chains/definitions/somniaTestnet.ts +3 -2
- package/clients/decorators/public.ts +30 -0
- package/errors/version.ts +1 -1
- package/index.ts +6 -0
- package/op-stack/actions/buildProveWithdrawal.ts +17 -2
- package/op-stack/actions/getGame.ts +7 -0
- package/op-stack/actions/getGames.ts +10 -1
- package/op-stack/actions/getTimeToProve.ts +7 -3
- package/op-stack/actions/getWithdrawalStatus.ts +6 -1
- package/op-stack/actions/waitToProve.ts +8 -3
- package/op-stack/gameTypes.ts +9 -0
- package/op-stack/index.ts +7 -1
- package/op-stack/utils/getL2BlockNumberAtTimestamp.ts +57 -0
- package/package.json +2 -2
- package/tempo/Abis.ts +477 -10
- package/tempo/Account.ts +67 -2
- package/tempo/Decorator.ts +299 -1
- package/tempo/Transaction.ts +18 -11
- package/tempo/actions/channel.ts +1197 -0
- package/tempo/actions/index.ts +1 -0
- package/tempo/actions/token.ts +85 -26
- package/tempo/index.ts +1 -0
- package/types/eip1193.ts +13 -0
- package/utils/formatters/transactionRequest.ts +13 -1
- package/utils/index.ts +1 -0
package/_esm/tempo/Abis.js
CHANGED
|
@@ -1,4 +1,339 @@
|
|
|
1
1
|
// Generated with `pnpm gen:abis`. Do not modify manually.
|
|
2
|
+
export const tip20ChannelReserve = [
|
|
3
|
+
{
|
|
4
|
+
name: 'CLOSE_GRACE_PERIOD',
|
|
5
|
+
type: 'function',
|
|
6
|
+
stateMutability: 'view',
|
|
7
|
+
inputs: [],
|
|
8
|
+
outputs: [{ type: 'uint64' }],
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: 'VOUCHER_TYPEHASH',
|
|
12
|
+
type: 'function',
|
|
13
|
+
stateMutability: 'view',
|
|
14
|
+
inputs: [],
|
|
15
|
+
outputs: [{ type: 'bytes32' }],
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: 'open',
|
|
19
|
+
type: 'function',
|
|
20
|
+
stateMutability: 'nonpayable',
|
|
21
|
+
inputs: [
|
|
22
|
+
{ type: 'address', name: 'payee' },
|
|
23
|
+
{ type: 'address', name: 'operator' },
|
|
24
|
+
{ type: 'address', name: 'token' },
|
|
25
|
+
{ type: 'uint96', name: 'deposit' },
|
|
26
|
+
{ type: 'bytes32', name: 'salt' },
|
|
27
|
+
{ type: 'address', name: 'authorizedSigner' },
|
|
28
|
+
],
|
|
29
|
+
outputs: [{ type: 'bytes32', name: 'channelId' }],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'settle',
|
|
33
|
+
type: 'function',
|
|
34
|
+
stateMutability: 'nonpayable',
|
|
35
|
+
inputs: [
|
|
36
|
+
{
|
|
37
|
+
type: 'tuple',
|
|
38
|
+
name: 'descriptor',
|
|
39
|
+
components: [
|
|
40
|
+
{ type: 'address', name: 'payer' },
|
|
41
|
+
{ type: 'address', name: 'payee' },
|
|
42
|
+
{ type: 'address', name: 'operator' },
|
|
43
|
+
{ type: 'address', name: 'token' },
|
|
44
|
+
{ type: 'bytes32', name: 'salt' },
|
|
45
|
+
{ type: 'address', name: 'authorizedSigner' },
|
|
46
|
+
{ type: 'bytes32', name: 'expiringNonceHash' },
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
{ type: 'uint96', name: 'cumulativeAmount' },
|
|
50
|
+
{ type: 'bytes', name: 'signature' },
|
|
51
|
+
],
|
|
52
|
+
outputs: [],
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'topUp',
|
|
56
|
+
type: 'function',
|
|
57
|
+
stateMutability: 'nonpayable',
|
|
58
|
+
inputs: [
|
|
59
|
+
{
|
|
60
|
+
type: 'tuple',
|
|
61
|
+
name: 'descriptor',
|
|
62
|
+
components: [
|
|
63
|
+
{ type: 'address', name: 'payer' },
|
|
64
|
+
{ type: 'address', name: 'payee' },
|
|
65
|
+
{ type: 'address', name: 'operator' },
|
|
66
|
+
{ type: 'address', name: 'token' },
|
|
67
|
+
{ type: 'bytes32', name: 'salt' },
|
|
68
|
+
{ type: 'address', name: 'authorizedSigner' },
|
|
69
|
+
{ type: 'bytes32', name: 'expiringNonceHash' },
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
{ type: 'uint96', name: 'additionalDeposit' },
|
|
73
|
+
],
|
|
74
|
+
outputs: [],
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'close',
|
|
78
|
+
type: 'function',
|
|
79
|
+
stateMutability: 'nonpayable',
|
|
80
|
+
inputs: [
|
|
81
|
+
{
|
|
82
|
+
type: 'tuple',
|
|
83
|
+
name: 'descriptor',
|
|
84
|
+
components: [
|
|
85
|
+
{ type: 'address', name: 'payer' },
|
|
86
|
+
{ type: 'address', name: 'payee' },
|
|
87
|
+
{ type: 'address', name: 'operator' },
|
|
88
|
+
{ type: 'address', name: 'token' },
|
|
89
|
+
{ type: 'bytes32', name: 'salt' },
|
|
90
|
+
{ type: 'address', name: 'authorizedSigner' },
|
|
91
|
+
{ type: 'bytes32', name: 'expiringNonceHash' },
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
{ type: 'uint96', name: 'cumulativeAmount' },
|
|
95
|
+
{ type: 'uint96', name: 'captureAmount' },
|
|
96
|
+
{ type: 'bytes', name: 'signature' },
|
|
97
|
+
],
|
|
98
|
+
outputs: [],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'requestClose',
|
|
102
|
+
type: 'function',
|
|
103
|
+
stateMutability: 'nonpayable',
|
|
104
|
+
inputs: [
|
|
105
|
+
{
|
|
106
|
+
type: 'tuple',
|
|
107
|
+
name: 'descriptor',
|
|
108
|
+
components: [
|
|
109
|
+
{ type: 'address', name: 'payer' },
|
|
110
|
+
{ type: 'address', name: 'payee' },
|
|
111
|
+
{ type: 'address', name: 'operator' },
|
|
112
|
+
{ type: 'address', name: 'token' },
|
|
113
|
+
{ type: 'bytes32', name: 'salt' },
|
|
114
|
+
{ type: 'address', name: 'authorizedSigner' },
|
|
115
|
+
{ type: 'bytes32', name: 'expiringNonceHash' },
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
outputs: [],
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: 'withdraw',
|
|
123
|
+
type: 'function',
|
|
124
|
+
stateMutability: 'nonpayable',
|
|
125
|
+
inputs: [
|
|
126
|
+
{
|
|
127
|
+
type: 'tuple',
|
|
128
|
+
name: 'descriptor',
|
|
129
|
+
components: [
|
|
130
|
+
{ type: 'address', name: 'payer' },
|
|
131
|
+
{ type: 'address', name: 'payee' },
|
|
132
|
+
{ type: 'address', name: 'operator' },
|
|
133
|
+
{ type: 'address', name: 'token' },
|
|
134
|
+
{ type: 'bytes32', name: 'salt' },
|
|
135
|
+
{ type: 'address', name: 'authorizedSigner' },
|
|
136
|
+
{ type: 'bytes32', name: 'expiringNonceHash' },
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
outputs: [],
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: 'getChannel',
|
|
144
|
+
type: 'function',
|
|
145
|
+
stateMutability: 'view',
|
|
146
|
+
inputs: [
|
|
147
|
+
{
|
|
148
|
+
type: 'tuple',
|
|
149
|
+
name: 'descriptor',
|
|
150
|
+
components: [
|
|
151
|
+
{ type: 'address', name: 'payer' },
|
|
152
|
+
{ type: 'address', name: 'payee' },
|
|
153
|
+
{ type: 'address', name: 'operator' },
|
|
154
|
+
{ type: 'address', name: 'token' },
|
|
155
|
+
{ type: 'bytes32', name: 'salt' },
|
|
156
|
+
{ type: 'address', name: 'authorizedSigner' },
|
|
157
|
+
{ type: 'bytes32', name: 'expiringNonceHash' },
|
|
158
|
+
],
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
outputs: [
|
|
162
|
+
{
|
|
163
|
+
type: 'tuple',
|
|
164
|
+
components: [
|
|
165
|
+
{
|
|
166
|
+
type: 'tuple',
|
|
167
|
+
name: 'descriptor',
|
|
168
|
+
components: [
|
|
169
|
+
{ type: 'address', name: 'payer' },
|
|
170
|
+
{ type: 'address', name: 'payee' },
|
|
171
|
+
{ type: 'address', name: 'operator' },
|
|
172
|
+
{ type: 'address', name: 'token' },
|
|
173
|
+
{ type: 'bytes32', name: 'salt' },
|
|
174
|
+
{ type: 'address', name: 'authorizedSigner' },
|
|
175
|
+
{ type: 'bytes32', name: 'expiringNonceHash' },
|
|
176
|
+
],
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
type: 'tuple',
|
|
180
|
+
name: 'state',
|
|
181
|
+
components: [
|
|
182
|
+
{ type: 'uint96', name: 'settled' },
|
|
183
|
+
{ type: 'uint96', name: 'deposit' },
|
|
184
|
+
{ type: 'uint32', name: 'closeRequestedAt' },
|
|
185
|
+
],
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
name: 'getChannelState',
|
|
193
|
+
type: 'function',
|
|
194
|
+
stateMutability: 'view',
|
|
195
|
+
inputs: [{ type: 'bytes32', name: 'channelId' }],
|
|
196
|
+
outputs: [
|
|
197
|
+
{
|
|
198
|
+
type: 'tuple',
|
|
199
|
+
components: [
|
|
200
|
+
{ type: 'uint96', name: 'settled' },
|
|
201
|
+
{ type: 'uint96', name: 'deposit' },
|
|
202
|
+
{ type: 'uint32', name: 'closeRequestedAt' },
|
|
203
|
+
],
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: 'getChannelStatesBatch',
|
|
209
|
+
type: 'function',
|
|
210
|
+
stateMutability: 'view',
|
|
211
|
+
inputs: [{ type: 'bytes32[]', name: 'channelIds' }],
|
|
212
|
+
outputs: [
|
|
213
|
+
{
|
|
214
|
+
type: 'tuple[]',
|
|
215
|
+
components: [
|
|
216
|
+
{ type: 'uint96', name: 'settled' },
|
|
217
|
+
{ type: 'uint96', name: 'deposit' },
|
|
218
|
+
{ type: 'uint32', name: 'closeRequestedAt' },
|
|
219
|
+
],
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
name: 'computeChannelId',
|
|
225
|
+
type: 'function',
|
|
226
|
+
stateMutability: 'view',
|
|
227
|
+
inputs: [
|
|
228
|
+
{ type: 'address', name: 'payer' },
|
|
229
|
+
{ type: 'address', name: 'payee' },
|
|
230
|
+
{ type: 'address', name: 'operator' },
|
|
231
|
+
{ type: 'address', name: 'token' },
|
|
232
|
+
{ type: 'bytes32', name: 'salt' },
|
|
233
|
+
{ type: 'address', name: 'authorizedSigner' },
|
|
234
|
+
{ type: 'bytes32', name: 'expiringNonceHash' },
|
|
235
|
+
],
|
|
236
|
+
outputs: [{ type: 'bytes32' }],
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
name: 'getVoucherDigest',
|
|
240
|
+
type: 'function',
|
|
241
|
+
stateMutability: 'view',
|
|
242
|
+
inputs: [
|
|
243
|
+
{ type: 'bytes32', name: 'channelId' },
|
|
244
|
+
{ type: 'uint96', name: 'cumulativeAmount' },
|
|
245
|
+
],
|
|
246
|
+
outputs: [{ type: 'bytes32' }],
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
name: 'domainSeparator',
|
|
250
|
+
type: 'function',
|
|
251
|
+
stateMutability: 'view',
|
|
252
|
+
inputs: [],
|
|
253
|
+
outputs: [{ type: 'bytes32' }],
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: 'ChannelOpened',
|
|
257
|
+
type: 'event',
|
|
258
|
+
inputs: [
|
|
259
|
+
{ type: 'bytes32', name: 'channelId', indexed: true },
|
|
260
|
+
{ type: 'address', name: 'payer', indexed: true },
|
|
261
|
+
{ type: 'address', name: 'payee', indexed: true },
|
|
262
|
+
{ type: 'address', name: 'operator' },
|
|
263
|
+
{ type: 'address', name: 'token' },
|
|
264
|
+
{ type: 'address', name: 'authorizedSigner' },
|
|
265
|
+
{ type: 'bytes32', name: 'salt' },
|
|
266
|
+
{ type: 'bytes32', name: 'expiringNonceHash' },
|
|
267
|
+
{ type: 'uint96', name: 'deposit' },
|
|
268
|
+
],
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
name: 'Settled',
|
|
272
|
+
type: 'event',
|
|
273
|
+
inputs: [
|
|
274
|
+
{ type: 'bytes32', name: 'channelId', indexed: true },
|
|
275
|
+
{ type: 'address', name: 'payer', indexed: true },
|
|
276
|
+
{ type: 'address', name: 'payee', indexed: true },
|
|
277
|
+
{ type: 'uint96', name: 'cumulativeAmount' },
|
|
278
|
+
{ type: 'uint96', name: 'deltaPaid' },
|
|
279
|
+
{ type: 'uint96', name: 'newSettled' },
|
|
280
|
+
],
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
name: 'TopUp',
|
|
284
|
+
type: 'event',
|
|
285
|
+
inputs: [
|
|
286
|
+
{ type: 'bytes32', name: 'channelId', indexed: true },
|
|
287
|
+
{ type: 'address', name: 'payer', indexed: true },
|
|
288
|
+
{ type: 'address', name: 'payee', indexed: true },
|
|
289
|
+
{ type: 'uint96', name: 'additionalDeposit' },
|
|
290
|
+
{ type: 'uint96', name: 'newDeposit' },
|
|
291
|
+
],
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
name: 'CloseRequested',
|
|
295
|
+
type: 'event',
|
|
296
|
+
inputs: [
|
|
297
|
+
{ type: 'bytes32', name: 'channelId', indexed: true },
|
|
298
|
+
{ type: 'address', name: 'payer', indexed: true },
|
|
299
|
+
{ type: 'address', name: 'payee', indexed: true },
|
|
300
|
+
{ type: 'uint256', name: 'closeGraceEnd' },
|
|
301
|
+
],
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
name: 'ChannelClosed',
|
|
305
|
+
type: 'event',
|
|
306
|
+
inputs: [
|
|
307
|
+
{ type: 'bytes32', name: 'channelId', indexed: true },
|
|
308
|
+
{ type: 'address', name: 'payer', indexed: true },
|
|
309
|
+
{ type: 'address', name: 'payee', indexed: true },
|
|
310
|
+
{ type: 'uint96', name: 'settledToPayee' },
|
|
311
|
+
{ type: 'uint96', name: 'refundedToPayer' },
|
|
312
|
+
],
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
name: 'CloseRequestCancelled',
|
|
316
|
+
type: 'event',
|
|
317
|
+
inputs: [
|
|
318
|
+
{ type: 'bytes32', name: 'channelId', indexed: true },
|
|
319
|
+
{ type: 'address', name: 'payer', indexed: true },
|
|
320
|
+
{ type: 'address', name: 'payee', indexed: true },
|
|
321
|
+
],
|
|
322
|
+
},
|
|
323
|
+
{ name: 'ChannelAlreadyExists', type: 'error', inputs: [] },
|
|
324
|
+
{ name: 'ChannelNotFound', type: 'error', inputs: [] },
|
|
325
|
+
{ name: 'NotPayer', type: 'error', inputs: [] },
|
|
326
|
+
{ name: 'NotPayeeOrOperator', type: 'error', inputs: [] },
|
|
327
|
+
{ name: 'InvalidPayee', type: 'error', inputs: [] },
|
|
328
|
+
{ name: 'ZeroDeposit', type: 'error', inputs: [] },
|
|
329
|
+
{ name: 'ExpiringNonceHashNotSet', type: 'error', inputs: [] },
|
|
330
|
+
{ name: 'InvalidSignature', type: 'error', inputs: [] },
|
|
331
|
+
{ name: 'AmountExceedsDeposit', type: 'error', inputs: [] },
|
|
332
|
+
{ name: 'AmountNotIncreasing', type: 'error', inputs: [] },
|
|
333
|
+
{ name: 'CaptureAmountInvalid', type: 'error', inputs: [] },
|
|
334
|
+
{ name: 'CloseNotReady', type: 'error', inputs: [] },
|
|
335
|
+
{ name: 'DepositOverflow', type: 'error', inputs: [] },
|
|
336
|
+
];
|
|
2
337
|
export const tip20 = [
|
|
3
338
|
{
|
|
4
339
|
name: 'name',
|
|
@@ -17,7 +352,7 @@ export const tip20 = [
|
|
|
17
352
|
{
|
|
18
353
|
name: 'decimals',
|
|
19
354
|
type: 'function',
|
|
20
|
-
stateMutability: '
|
|
355
|
+
stateMutability: 'pure',
|
|
21
356
|
inputs: [],
|
|
22
357
|
outputs: [{ type: 'uint8' }],
|
|
23
358
|
},
|
|
@@ -135,6 +470,20 @@ export const tip20 = [
|
|
|
135
470
|
inputs: [],
|
|
136
471
|
outputs: [{ type: 'uint64' }],
|
|
137
472
|
},
|
|
473
|
+
{
|
|
474
|
+
name: 'logoURI',
|
|
475
|
+
type: 'function',
|
|
476
|
+
stateMutability: 'view',
|
|
477
|
+
inputs: [],
|
|
478
|
+
outputs: [{ type: 'string' }],
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
name: 'setLogoURI',
|
|
482
|
+
type: 'function',
|
|
483
|
+
stateMutability: 'nonpayable',
|
|
484
|
+
inputs: [{ type: 'string', name: 'newLogoURI' }],
|
|
485
|
+
outputs: [],
|
|
486
|
+
},
|
|
138
487
|
{
|
|
139
488
|
name: 'burnBlocked',
|
|
140
489
|
type: 'function',
|
|
@@ -454,6 +803,14 @@ export const tip20 = [
|
|
|
454
803
|
{ type: 'address', name: 'recipient', indexed: true },
|
|
455
804
|
],
|
|
456
805
|
},
|
|
806
|
+
{
|
|
807
|
+
name: 'LogoURIUpdated',
|
|
808
|
+
type: 'event',
|
|
809
|
+
inputs: [
|
|
810
|
+
{ type: 'address', name: 'updater', indexed: true },
|
|
811
|
+
{ type: 'string', name: 'newLogoURI' },
|
|
812
|
+
],
|
|
813
|
+
},
|
|
457
814
|
{
|
|
458
815
|
name: 'InsufficientBalance',
|
|
459
816
|
type: 'error',
|
|
@@ -467,13 +824,11 @@ export const tip20 = [
|
|
|
467
824
|
{ name: 'SupplyCapExceeded', type: 'error', inputs: [] },
|
|
468
825
|
{ name: 'InvalidSupplyCap', type: 'error', inputs: [] },
|
|
469
826
|
{ name: 'InvalidPayload', type: 'error', inputs: [] },
|
|
470
|
-
{ name: 'StringTooLong', type: 'error', inputs: [] },
|
|
471
827
|
{ name: 'PolicyForbids', type: 'error', inputs: [] },
|
|
472
828
|
{ name: 'InvalidRecipient', type: 'error', inputs: [] },
|
|
473
829
|
{ name: 'ContractPaused', type: 'error', inputs: [] },
|
|
474
830
|
{ name: 'InvalidCurrency', type: 'error', inputs: [] },
|
|
475
831
|
{ name: 'InvalidQuoteToken', type: 'error', inputs: [] },
|
|
476
|
-
{ name: 'TransfersDisabled', type: 'error', inputs: [] },
|
|
477
832
|
{ name: 'InvalidAmount', type: 'error', inputs: [] },
|
|
478
833
|
{ name: 'NoOptedInSupply', type: 'error', inputs: [] },
|
|
479
834
|
{ name: 'Unauthorized', type: 'error', inputs: [] },
|
|
@@ -483,6 +838,8 @@ export const tip20 = [
|
|
|
483
838
|
{ name: 'InvalidTransferPolicyId', type: 'error', inputs: [] },
|
|
484
839
|
{ name: 'PermitExpired', type: 'error', inputs: [] },
|
|
485
840
|
{ name: 'InvalidSignature', type: 'error', inputs: [] },
|
|
841
|
+
{ name: 'LogoURITooLong', type: 'error', inputs: [] },
|
|
842
|
+
{ name: 'InvalidLogoURI', type: 'error', inputs: [] },
|
|
486
843
|
{
|
|
487
844
|
name: 'hasRole',
|
|
488
845
|
type: 'function',
|
|
@@ -1219,6 +1576,19 @@ export const stablecoinDex = [
|
|
|
1219
1576
|
{ type: 'bool', name: 'partialFill' },
|
|
1220
1577
|
],
|
|
1221
1578
|
},
|
|
1579
|
+
{
|
|
1580
|
+
name: 'OrderFlipped',
|
|
1581
|
+
type: 'event',
|
|
1582
|
+
inputs: [
|
|
1583
|
+
{ type: 'uint128', name: 'orderId', indexed: true },
|
|
1584
|
+
{ type: 'address', name: 'maker', indexed: true },
|
|
1585
|
+
{ type: 'address', name: 'token', indexed: true },
|
|
1586
|
+
{ type: 'uint128', name: 'amount' },
|
|
1587
|
+
{ type: 'bool', name: 'isBid' },
|
|
1588
|
+
{ type: 'int16', name: 'tick' },
|
|
1589
|
+
{ type: 'int16', name: 'flipTick' },
|
|
1590
|
+
],
|
|
1591
|
+
},
|
|
1222
1592
|
{
|
|
1223
1593
|
name: 'OrderCancelled',
|
|
1224
1594
|
type: 'event',
|
|
@@ -1296,6 +1666,13 @@ export const addressRegistry = [
|
|
|
1296
1666
|
{ type: 'bytes6', name: 'userTag' },
|
|
1297
1667
|
],
|
|
1298
1668
|
},
|
|
1669
|
+
{
|
|
1670
|
+
name: 'isImplicitlyApproved',
|
|
1671
|
+
type: 'function',
|
|
1672
|
+
stateMutability: 'view',
|
|
1673
|
+
inputs: [{ type: 'address', name: 'addr' }],
|
|
1674
|
+
outputs: [{ type: 'bool' }],
|
|
1675
|
+
},
|
|
1299
1676
|
{
|
|
1300
1677
|
name: 'MasterRegistered',
|
|
1301
1678
|
type: 'event',
|
|
@@ -1387,15 +1764,9 @@ export const feeManager = [
|
|
|
1387
1764
|
{ type: 'uint256', name: 'amount' },
|
|
1388
1765
|
],
|
|
1389
1766
|
},
|
|
1390
|
-
{ name: 'OnlyValidator', type: 'error', inputs: [] },
|
|
1391
|
-
{ name: 'OnlySystemContract', type: 'error', inputs: [] },
|
|
1392
1767
|
{ name: 'InvalidToken', type: 'error', inputs: [] },
|
|
1393
|
-
{ name: 'PoolDoesNotExist', type: 'error', inputs: [] },
|
|
1394
1768
|
{ name: 'InsufficientFeeTokenBalance', type: 'error', inputs: [] },
|
|
1395
|
-
{ name: 'InternalError', type: 'error', inputs: [] },
|
|
1396
1769
|
{ name: 'CannotChangeWithinBlock', type: 'error', inputs: [] },
|
|
1397
|
-
{ name: 'CannotChangeWithPendingFees', type: 'error', inputs: [] },
|
|
1398
|
-
{ name: 'TokenPolicyForbids', type: 'error', inputs: [] },
|
|
1399
1770
|
];
|
|
1400
1771
|
export const feeAmm = [
|
|
1401
1772
|
{
|
|
@@ -1633,6 +2004,57 @@ export const accountKeychain = [
|
|
|
1633
2004
|
],
|
|
1634
2005
|
outputs: [],
|
|
1635
2006
|
},
|
|
2007
|
+
{
|
|
2008
|
+
name: 'authorizeKey',
|
|
2009
|
+
type: 'function',
|
|
2010
|
+
stateMutability: 'nonpayable',
|
|
2011
|
+
inputs: [
|
|
2012
|
+
{ type: 'address', name: 'keyId' },
|
|
2013
|
+
{ type: 'uint8', name: 'signatureType' },
|
|
2014
|
+
{
|
|
2015
|
+
type: 'tuple',
|
|
2016
|
+
name: 'config',
|
|
2017
|
+
components: [
|
|
2018
|
+
{ type: 'uint64', name: 'expiry' },
|
|
2019
|
+
{ type: 'bool', name: 'enforceLimits' },
|
|
2020
|
+
{
|
|
2021
|
+
type: 'tuple[]',
|
|
2022
|
+
name: 'limits',
|
|
2023
|
+
components: [
|
|
2024
|
+
{ type: 'address', name: 'token' },
|
|
2025
|
+
{ type: 'uint256', name: 'amount' },
|
|
2026
|
+
{ type: 'uint64', name: 'period' },
|
|
2027
|
+
],
|
|
2028
|
+
},
|
|
2029
|
+
{ type: 'bool', name: 'allowAnyCalls' },
|
|
2030
|
+
{
|
|
2031
|
+
type: 'tuple[]',
|
|
2032
|
+
name: 'allowedCalls',
|
|
2033
|
+
components: [
|
|
2034
|
+
{ type: 'address', name: 'target' },
|
|
2035
|
+
{
|
|
2036
|
+
type: 'tuple[]',
|
|
2037
|
+
name: 'selectorRules',
|
|
2038
|
+
components: [
|
|
2039
|
+
{ type: 'bytes4', name: 'selector' },
|
|
2040
|
+
{ type: 'address[]', name: 'recipients' },
|
|
2041
|
+
],
|
|
2042
|
+
},
|
|
2043
|
+
],
|
|
2044
|
+
},
|
|
2045
|
+
],
|
|
2046
|
+
},
|
|
2047
|
+
{ type: 'bytes32', name: 'witness' },
|
|
2048
|
+
],
|
|
2049
|
+
outputs: [],
|
|
2050
|
+
},
|
|
2051
|
+
{
|
|
2052
|
+
name: 'burnKeyAuthorizationWitness',
|
|
2053
|
+
type: 'function',
|
|
2054
|
+
stateMutability: 'nonpayable',
|
|
2055
|
+
inputs: [{ type: 'bytes32', name: 'witness' }],
|
|
2056
|
+
outputs: [],
|
|
2057
|
+
},
|
|
1636
2058
|
{
|
|
1637
2059
|
name: 'revokeKey',
|
|
1638
2060
|
type: 'function',
|
|
@@ -1758,6 +2180,16 @@ export const accountKeychain = [
|
|
|
1758
2180
|
},
|
|
1759
2181
|
],
|
|
1760
2182
|
},
|
|
2183
|
+
{
|
|
2184
|
+
name: 'isKeyAuthorizationWitnessBurned',
|
|
2185
|
+
type: 'function',
|
|
2186
|
+
stateMutability: 'view',
|
|
2187
|
+
inputs: [
|
|
2188
|
+
{ type: 'address', name: 'account' },
|
|
2189
|
+
{ type: 'bytes32', name: 'witness' },
|
|
2190
|
+
],
|
|
2191
|
+
outputs: [{ type: 'bool' }],
|
|
2192
|
+
},
|
|
1761
2193
|
{
|
|
1762
2194
|
name: 'getTransactionKey',
|
|
1763
2195
|
type: 'function',
|
|
@@ -1804,6 +2236,22 @@ export const accountKeychain = [
|
|
|
1804
2236
|
{ type: 'uint256', name: 'remainingLimit' },
|
|
1805
2237
|
],
|
|
1806
2238
|
},
|
|
2239
|
+
{
|
|
2240
|
+
name: 'KeyAuthorizationWitness',
|
|
2241
|
+
type: 'event',
|
|
2242
|
+
inputs: [
|
|
2243
|
+
{ type: 'address', name: 'account', indexed: true },
|
|
2244
|
+
{ type: 'bytes32', name: 'witness', indexed: true },
|
|
2245
|
+
],
|
|
2246
|
+
},
|
|
2247
|
+
{
|
|
2248
|
+
name: 'KeyAuthorizationWitnessBurned',
|
|
2249
|
+
type: 'event',
|
|
2250
|
+
inputs: [
|
|
2251
|
+
{ type: 'address', name: 'account', indexed: true },
|
|
2252
|
+
{ type: 'bytes32', name: 'witness', indexed: true },
|
|
2253
|
+
],
|
|
2254
|
+
},
|
|
1807
2255
|
{ name: 'UnauthorizedCaller', type: 'error', inputs: [] },
|
|
1808
2256
|
{ name: 'KeyAlreadyExists', type: 'error', inputs: [] },
|
|
1809
2257
|
{ name: 'KeyNotFound', type: 'error', inputs: [] },
|
|
@@ -1824,6 +2272,8 @@ export const accountKeychain = [
|
|
|
1824
2272
|
},
|
|
1825
2273
|
{ name: 'CallNotAllowed', type: 'error', inputs: [] },
|
|
1826
2274
|
{ name: 'InvalidCallScope', type: 'error', inputs: [] },
|
|
2275
|
+
{ name: 'InvalidKeyAuthorizationWitness', type: 'error', inputs: [] },
|
|
2276
|
+
{ name: 'KeyAuthorizationWitnessAlreadyBurned', type: 'error', inputs: [] },
|
|
1827
2277
|
{
|
|
1828
2278
|
name: 'LegacyAuthorizeKeySelectorChanged',
|
|
1829
2279
|
type: 'error',
|
|
@@ -1872,6 +2322,21 @@ export const tip20Factory = [
|
|
|
1872
2322
|
],
|
|
1873
2323
|
outputs: [{ type: 'address' }],
|
|
1874
2324
|
},
|
|
2325
|
+
{
|
|
2326
|
+
name: 'createToken',
|
|
2327
|
+
type: 'function',
|
|
2328
|
+
stateMutability: 'nonpayable',
|
|
2329
|
+
inputs: [
|
|
2330
|
+
{ type: 'string', name: 'name' },
|
|
2331
|
+
{ type: 'string', name: 'symbol' },
|
|
2332
|
+
{ type: 'string', name: 'currency' },
|
|
2333
|
+
{ type: 'address', name: 'quoteToken' },
|
|
2334
|
+
{ type: 'address', name: 'admin' },
|
|
2335
|
+
{ type: 'bytes32', name: 'salt' },
|
|
2336
|
+
{ type: 'string', name: 'logoURI' },
|
|
2337
|
+
],
|
|
2338
|
+
outputs: [{ type: 'address' }],
|
|
2339
|
+
},
|
|
1875
2340
|
{
|
|
1876
2341
|
name: 'isTIP20',
|
|
1877
2342
|
type: 'function',
|
|
@@ -1882,7 +2347,7 @@ export const tip20Factory = [
|
|
|
1882
2347
|
{
|
|
1883
2348
|
name: 'getTokenAddress',
|
|
1884
2349
|
type: 'function',
|
|
1885
|
-
stateMutability: '
|
|
2350
|
+
stateMutability: 'pure',
|
|
1886
2351
|
inputs: [
|
|
1887
2352
|
{ type: 'address', name: 'sender' },
|
|
1888
2353
|
{ type: 'bytes32', name: 'salt' },
|
|
@@ -2258,6 +2723,7 @@ export const validatorConfig = [
|
|
|
2258
2723
|
},
|
|
2259
2724
|
];
|
|
2260
2725
|
export const abis = [
|
|
2726
|
+
...tip20ChannelReserve,
|
|
2261
2727
|
...tip20,
|
|
2262
2728
|
...validatorConfigV2,
|
|
2263
2729
|
...signatureVerifier,
|