@kasarlabs/ask-starknet-core 0.1.1 → 0.1.3
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/build/constants/abis/erc20-new.d.ts +3 -0
- package/build/constants/abis/erc20-new.js +703 -0
- package/build/constants/abis/erc20-new.js.map +1 -0
- package/build/constants/abis/erc20-old.d.ts +122 -0
- package/build/constants/abis/erc20-old.js +1030 -0
- package/build/constants/abis/erc20-old.js.map +1 -0
- package/build/constants/abis/ethereum/index.d.ts +6 -0
- package/build/constants/abis/ethereum/index.js +7 -0
- package/build/constants/abis/ethereum/index.js.map +1 -0
- package/build/constants/abis/ethereum/strk-token-ethereum-abi.d.ts +55 -0
- package/build/constants/abis/ethereum/strk-token-ethereum-abi.js +436 -0
- package/build/constants/abis/ethereum/strk-token-ethereum-abi.js.map +1 -0
- package/build/constants/abis/ethereum/swss-token-ethereum-abi.d.ts +46 -0
- package/build/constants/abis/ethereum/swss-token-ethereum-abi.js +233 -0
- package/build/constants/abis/ethereum/swss-token-ethereum-abi.js.map +1 -0
- package/build/constants/abis/ethereum/token-abi-map.d.ts +3 -0
- package/build/constants/abis/ethereum/token-abi-map.js +20 -0
- package/build/constants/abis/ethereum/token-abi-map.js.map +1 -0
- package/build/constants/abis/ethereum/usdc-token-ethereum-abi.d.ts +28 -0
- package/build/constants/abis/ethereum/usdc-token-ethereum-abi.js +754 -0
- package/build/constants/abis/ethereum/usdc-token-ethereum-abi.js.map +1 -0
- package/build/constants/abis/ethereum/usdt-token-ethereum-abi.d.ts +41 -0
- package/build/constants/abis/ethereum/usdt-token-ethereum-abi.js +391 -0
- package/build/constants/abis/ethereum/usdt-token-ethereum-abi.js.map +1 -0
- package/build/constants/abis/ethereum/wbtc-token-ethereum-abi.d.ts +29 -0
- package/build/constants/abis/ethereum/wbtc-token-ethereum-abi.js +297 -0
- package/build/constants/abis/ethereum/wbtc-token-ethereum-abi.js.map +1 -0
- package/build/constants/abis/index.d.ts +4 -0
- package/build/constants/abis/index.js +5 -0
- package/build/constants/abis/index.js.map +1 -0
- package/build/constants/abis/starknet/eth-token-starknet-abi.d.ts +122 -0
- package/build/constants/abis/starknet/eth-token-starknet-abi.js +1030 -0
- package/build/constants/abis/starknet/eth-token-starknet-abi.js.map +1 -0
- package/build/constants/abis/starknet/index.d.ts +7 -0
- package/build/constants/abis/starknet/index.js +8 -0
- package/build/constants/abis/starknet/index.js.map +1 -0
- package/build/constants/abis/starknet/strk-token-starknet-abi.d.ts +122 -0
- package/build/constants/abis/starknet/strk-token-starknet-abi.js +1123 -0
- package/build/constants/abis/starknet/strk-token-starknet-abi.js.map +1 -0
- package/build/constants/abis/starknet/swss-token-starknet-abi.d.ts +122 -0
- package/build/constants/abis/starknet/swss-token-starknet-abi.js +1030 -0
- package/build/constants/abis/starknet/swss-token-starknet-abi.js.map +1 -0
- package/build/constants/abis/starknet/token-abi-map.d.ts +3 -0
- package/build/constants/abis/starknet/token-abi-map.js +22 -0
- package/build/constants/abis/starknet/token-abi-map.js.map +1 -0
- package/build/constants/abis/starknet/usdc-token-starknet-abi.d.ts +122 -0
- package/build/constants/abis/starknet/usdc-token-starknet-abi.js +1030 -0
- package/build/constants/abis/starknet/usdc-token-starknet-abi.js.map +1 -0
- package/build/constants/abis/starknet/usdt-token-starknet-abi.d.ts +122 -0
- package/build/constants/abis/starknet/usdt-token-starknet-abi.js +1030 -0
- package/build/constants/abis/starknet/usdt-token-starknet-abi.js.map +1 -0
- package/build/constants/abis/starknet/wbtc-token-starknet-abi.d.ts +122 -0
- package/build/constants/abis/starknet/wbtc-token-starknet-abi.js +1030 -0
- package/build/constants/abis/starknet/wbtc-token-starknet-abi.js.map +1 -0
- package/build/constants/contracts/erc20.classhash.d.ts +2 -0
- package/build/constants/contracts/erc20.classhash.js +3 -0
- package/build/constants/contracts/erc20.classhash.js.map +1 -0
- package/build/constants/contracts/index.d.ts +2 -0
- package/build/constants/contracts/index.js +3 -0
- package/build/constants/contracts/index.js.map +1 -0
- package/build/constants/contracts/token-addresses.d.ts +6 -0
- package/build/constants/contracts/token-addresses.js +44 -0
- package/build/constants/contracts/token-addresses.js.map +1 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +2 -0
- package/build/index.js.map +1 -1
- package/build/interfaces/index.d.ts +5 -0
- package/build/utils/index.js +19 -18
- package/build/utils/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
export const SWSS_TOKEN_ETHEREUM_ABI = [
|
|
2
|
+
{
|
|
3
|
+
inputs: [
|
|
4
|
+
{ internalType: 'contract IStETH', name: '_stETH', type: 'address' },
|
|
5
|
+
],
|
|
6
|
+
stateMutability: 'nonpayable',
|
|
7
|
+
type: 'constructor',
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
anonymous: false,
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
indexed: true,
|
|
14
|
+
internalType: 'address',
|
|
15
|
+
name: 'owner',
|
|
16
|
+
type: 'address',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
indexed: true,
|
|
20
|
+
internalType: 'address',
|
|
21
|
+
name: 'spender',
|
|
22
|
+
type: 'address',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
indexed: false,
|
|
26
|
+
internalType: 'uint256',
|
|
27
|
+
name: 'value',
|
|
28
|
+
type: 'uint256',
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
name: 'Approval',
|
|
32
|
+
type: 'event',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
anonymous: false,
|
|
36
|
+
inputs: [
|
|
37
|
+
{ indexed: true, internalType: 'address', name: 'from', type: 'address' },
|
|
38
|
+
{ indexed: true, internalType: 'address', name: 'to', type: 'address' },
|
|
39
|
+
{
|
|
40
|
+
indexed: false,
|
|
41
|
+
internalType: 'uint256',
|
|
42
|
+
name: 'value',
|
|
43
|
+
type: 'uint256',
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
name: 'Transfer',
|
|
47
|
+
type: 'event',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
inputs: [],
|
|
51
|
+
name: 'DOMAIN_SEPARATOR',
|
|
52
|
+
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
|
|
53
|
+
stateMutability: 'view',
|
|
54
|
+
type: 'function',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
inputs: [
|
|
58
|
+
{ internalType: 'address', name: 'owner', type: 'address' },
|
|
59
|
+
{ internalType: 'address', name: 'spender', type: 'address' },
|
|
60
|
+
],
|
|
61
|
+
name: 'allowance',
|
|
62
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
63
|
+
stateMutability: 'view',
|
|
64
|
+
type: 'function',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
inputs: [
|
|
68
|
+
{ internalType: 'address', name: 'spender', type: 'address' },
|
|
69
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
70
|
+
],
|
|
71
|
+
name: 'approve',
|
|
72
|
+
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
73
|
+
stateMutability: 'nonpayable',
|
|
74
|
+
type: 'function',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
|
|
78
|
+
name: 'balanceOf',
|
|
79
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
80
|
+
stateMutability: 'view',
|
|
81
|
+
type: 'function',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
inputs: [],
|
|
85
|
+
name: 'decimals',
|
|
86
|
+
outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],
|
|
87
|
+
stateMutability: 'view',
|
|
88
|
+
type: 'function',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
inputs: [
|
|
92
|
+
{ internalType: 'address', name: 'spender', type: 'address' },
|
|
93
|
+
{ internalType: 'uint256', name: 'subtractedValue', type: 'uint256' },
|
|
94
|
+
],
|
|
95
|
+
name: 'decreaseAllowance',
|
|
96
|
+
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
97
|
+
stateMutability: 'nonpayable',
|
|
98
|
+
type: 'function',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
inputs: [
|
|
102
|
+
{ internalType: 'uint256', name: '_wstETHAmount', type: 'uint256' },
|
|
103
|
+
],
|
|
104
|
+
name: 'getStETHByWstETH',
|
|
105
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
106
|
+
stateMutability: 'view',
|
|
107
|
+
type: 'function',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
inputs: [
|
|
111
|
+
{ internalType: 'uint256', name: '_stETHAmount', type: 'uint256' },
|
|
112
|
+
],
|
|
113
|
+
name: 'getWstETHByStETH',
|
|
114
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
115
|
+
stateMutability: 'view',
|
|
116
|
+
type: 'function',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
inputs: [
|
|
120
|
+
{ internalType: 'address', name: 'spender', type: 'address' },
|
|
121
|
+
{ internalType: 'uint256', name: 'addedValue', type: 'uint256' },
|
|
122
|
+
],
|
|
123
|
+
name: 'increaseAllowance',
|
|
124
|
+
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
125
|
+
stateMutability: 'nonpayable',
|
|
126
|
+
type: 'function',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
inputs: [],
|
|
130
|
+
name: 'name',
|
|
131
|
+
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
132
|
+
stateMutability: 'view',
|
|
133
|
+
type: 'function',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
inputs: [{ internalType: 'address', name: 'owner', type: 'address' }],
|
|
137
|
+
name: 'nonces',
|
|
138
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
139
|
+
stateMutability: 'view',
|
|
140
|
+
type: 'function',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
inputs: [
|
|
144
|
+
{ internalType: 'address', name: 'owner', type: 'address' },
|
|
145
|
+
{ internalType: 'address', name: 'spender', type: 'address' },
|
|
146
|
+
{ internalType: 'uint256', name: 'value', type: 'uint256' },
|
|
147
|
+
{ internalType: 'uint256', name: 'deadline', type: 'uint256' },
|
|
148
|
+
{ internalType: 'uint8', name: 'v', type: 'uint8' },
|
|
149
|
+
{ internalType: 'bytes32', name: 'r', type: 'bytes32' },
|
|
150
|
+
{ internalType: 'bytes32', name: 's', type: 'bytes32' },
|
|
151
|
+
],
|
|
152
|
+
name: 'permit',
|
|
153
|
+
outputs: [],
|
|
154
|
+
stateMutability: 'nonpayable',
|
|
155
|
+
type: 'function',
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
inputs: [],
|
|
159
|
+
name: 'stETH',
|
|
160
|
+
outputs: [{ internalType: 'contract IStETH', name: '', type: 'address' }],
|
|
161
|
+
stateMutability: 'view',
|
|
162
|
+
type: 'function',
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
inputs: [],
|
|
166
|
+
name: 'stEthPerToken',
|
|
167
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
168
|
+
stateMutability: 'view',
|
|
169
|
+
type: 'function',
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
inputs: [],
|
|
173
|
+
name: 'symbol',
|
|
174
|
+
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
175
|
+
stateMutability: 'view',
|
|
176
|
+
type: 'function',
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
inputs: [],
|
|
180
|
+
name: 'tokensPerStEth',
|
|
181
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
182
|
+
stateMutability: 'view',
|
|
183
|
+
type: 'function',
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
inputs: [],
|
|
187
|
+
name: 'totalSupply',
|
|
188
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
189
|
+
stateMutability: 'view',
|
|
190
|
+
type: 'function',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
inputs: [
|
|
194
|
+
{ internalType: 'address', name: 'recipient', type: 'address' },
|
|
195
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
196
|
+
],
|
|
197
|
+
name: 'transfer',
|
|
198
|
+
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
199
|
+
stateMutability: 'nonpayable',
|
|
200
|
+
type: 'function',
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
inputs: [
|
|
204
|
+
{ internalType: 'address', name: 'sender', type: 'address' },
|
|
205
|
+
{ internalType: 'address', name: 'recipient', type: 'address' },
|
|
206
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
207
|
+
],
|
|
208
|
+
name: 'transferFrom',
|
|
209
|
+
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
210
|
+
stateMutability: 'nonpayable',
|
|
211
|
+
type: 'function',
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
inputs: [
|
|
215
|
+
{ internalType: 'uint256', name: '_wstETHAmount', type: 'uint256' },
|
|
216
|
+
],
|
|
217
|
+
name: 'unwrap',
|
|
218
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
219
|
+
stateMutability: 'nonpayable',
|
|
220
|
+
type: 'function',
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
inputs: [
|
|
224
|
+
{ internalType: 'uint256', name: '_stETHAmount', type: 'uint256' },
|
|
225
|
+
],
|
|
226
|
+
name: 'wrap',
|
|
227
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
228
|
+
stateMutability: 'nonpayable',
|
|
229
|
+
type: 'function',
|
|
230
|
+
},
|
|
231
|
+
{ stateMutability: 'payable', type: 'receive' },
|
|
232
|
+
];
|
|
233
|
+
//# sourceMappingURL=swss-token-ethereum-abi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swss-token-ethereum-abi.js","sourceRoot":"","sources":["../../../../src/constants/abis/ethereum/swss-token-ethereum-abi.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,iBAAiB,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;SACrE;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE;YACzE,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE;YACvE;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,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YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE;SACpE;QACD,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACjE,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE;SACnE;QACD,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACjE,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;IACD,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;CAChD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { STRK_TOKEN_ETHEREUM_ABI } from './strk-token-ethereum-abi.js';
|
|
2
|
+
import { USDC_TOKEN_ETHEREUM_ABI } from './usdc-token-ethereum-abi.js';
|
|
3
|
+
import { USDT_TOKEN_ETHEREUM_ABI } from './usdt-token-ethereum-abi.js';
|
|
4
|
+
import { WBTC_TOKEN_ETHEREUM_ABI } from './wbtc-token-ethereum-abi.js';
|
|
5
|
+
import { SWSS_TOKEN_ETHEREUM_ABI } from './swss-token-ethereum-abi.js';
|
|
6
|
+
export const ETHEREUM_TOKEN_ABI_MAP = {
|
|
7
|
+
STRK: STRK_TOKEN_ETHEREUM_ABI,
|
|
8
|
+
USDC: USDC_TOKEN_ETHEREUM_ABI,
|
|
9
|
+
USDT: USDT_TOKEN_ETHEREUM_ABI,
|
|
10
|
+
WBTC: WBTC_TOKEN_ETHEREUM_ABI,
|
|
11
|
+
SWSS: SWSS_TOKEN_ETHEREUM_ABI,
|
|
12
|
+
};
|
|
13
|
+
export function getEthereumTokenAbi(symbol) {
|
|
14
|
+
const abi = ETHEREUM_TOKEN_ABI_MAP[symbol];
|
|
15
|
+
if (!abi) {
|
|
16
|
+
throw new Error(`Ethereum token ABI not found for symbol: ${symbol}`);
|
|
17
|
+
}
|
|
18
|
+
return abi;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=token-abi-map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-abi-map.js","sourceRoot":"","sources":["../../../../src/constants/abis/ethereum/token-abi-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAIvE,MAAM,CAAC,MAAM,sBAAsB,GAG/B;IACF,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE,uBAAuB;CACrB,CAAC;AAQX,MAAM,UAAU,mBAAmB,CACjC,MAA2B;IAE3B,MAAM,GAAG,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAC3C,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CAAC,4CAA4C,MAAM,EAAE,CAAC,CAAC;IACxE,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const USDC_TOKEN_ETHEREUM_ABI: ({
|
|
2
|
+
anonymous: boolean;
|
|
3
|
+
inputs: {
|
|
4
|
+
indexed: boolean;
|
|
5
|
+
internalType: string;
|
|
6
|
+
name: string;
|
|
7
|
+
type: string;
|
|
8
|
+
}[];
|
|
9
|
+
name: string;
|
|
10
|
+
type: string;
|
|
11
|
+
outputs?: undefined;
|
|
12
|
+
stateMutability?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
inputs: {
|
|
15
|
+
internalType: string;
|
|
16
|
+
name: string;
|
|
17
|
+
type: string;
|
|
18
|
+
}[];
|
|
19
|
+
name: string;
|
|
20
|
+
outputs: {
|
|
21
|
+
internalType: string;
|
|
22
|
+
name: string;
|
|
23
|
+
type: string;
|
|
24
|
+
}[];
|
|
25
|
+
stateMutability: string;
|
|
26
|
+
type: string;
|
|
27
|
+
anonymous?: undefined;
|
|
28
|
+
})[];
|