@fatsolutions/privacy-pools-core-starknet-sdk 0.0.43 → 0.0.45
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/dist/abis/ERC20.abi.js +145 -145
- package/dist/abis/EntryPoint.abi.d.ts +44 -21
- package/dist/abis/EntryPoint.abi.js +267 -235
- package/dist/abis/EntryPoint.abi.js.map +1 -1
- package/dist/abis/PrivacyPool.abi.d.ts +72 -11
- package/dist/abis/PrivacyPool.abi.js +227 -145
- package/dist/abis/PrivacyPool.abi.js.map +1 -1
- package/dist/account.service.d.ts +16 -0
- package/dist/account.service.js +31 -0
- package/dist/account.service.js.map +1 -0
- package/dist/auditor.d.ts +31 -0
- package/dist/auditor.js +146 -0
- package/dist/auditor.js.map +1 -0
- package/dist/contracts/contracts.service.d.ts +3 -3
- package/dist/contracts/contracts.service.js +71 -19
- package/dist/contracts/contracts.service.js.map +1 -1
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/transactionHandler.d.ts +1 -1
- package/dist/contracts/transactionHandler.js +2 -4
- package/dist/contracts/transactionHandler.js.map +1 -1
- package/dist/data.service.d.ts +20 -6
- package/dist/data.service.js +50 -7
- package/dist/data.service.js.map +1 -1
- package/dist/errors/contracts.errors.js +1 -1
- package/dist/errors/index.js.map +1 -1
- package/dist/garaga.js +9 -3
- package/dist/garaga.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/sdk.js +4 -4
- package/dist/sdk.js.map +1 -1
- package/dist/types/conversions.js.map +1 -1
- package/dist/types/entrypoint.d.ts +2 -0
- package/dist/types/entrypoint.js +50 -30
- package/dist/types/entrypoint.js.map +1 -1
- package/dist/types/snarkjs.d.ts +7 -46
- package/dist/utils.d.ts +5 -2
- package/dist/utils.js +11 -2
- package/dist/utils.js.map +1 -1
- package/package.json +14 -3
- package/src/abis/ERC20.abi.ts +145 -145
- package/src/abis/EntryPoint.abi.ts +267 -235
- package/src/abis/PrivacyPool.abi.ts +227 -145
- package/src/abis/index.ts +1 -1
- package/src/account.service.ts +47 -0
- package/src/auditor.ts +219 -0
- package/src/contracts/contracts.service.ts +325 -73
- package/src/contracts/index.ts +2 -2
- package/src/contracts/transactionHandler.ts +16 -7
- package/src/data.service.ts +123 -146
- package/src/errors/contracts.errors.ts +6 -6
- package/src/errors/index.ts +18 -24
- package/src/garaga.ts +10 -4
- package/src/index.ts +17 -27
- package/src/sdk.ts +39 -26
- package/src/types/conversions.ts +11 -12
- package/src/types/entrypoint.ts +74 -41
- package/src/types/garaga.ts +32 -32
- package/src/types/index.ts +1 -1
- package/src/types/snarkjs.ts +8 -20
- package/src/utils.ts +34 -13
package/dist/abis/ERC20.abi.js
CHANGED
|
@@ -5,13 +5,13 @@ export const ERC20ABI = [
|
|
|
5
5
|
"members": [
|
|
6
6
|
{
|
|
7
7
|
"name": "low",
|
|
8
|
-
"type": "core::integer::u128"
|
|
8
|
+
"type": "core::integer::u128",
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
"name": "high",
|
|
12
|
-
"type": "core::integer::u128"
|
|
13
|
-
}
|
|
14
|
-
]
|
|
12
|
+
"type": "core::integer::u128",
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"type": "function",
|
|
@@ -19,11 +19,11 @@ export const ERC20ABI = [
|
|
|
19
19
|
"inputs": [
|
|
20
20
|
{
|
|
21
21
|
"name": "value",
|
|
22
|
-
"type": "core::integer::u256"
|
|
23
|
-
}
|
|
22
|
+
"type": "core::integer::u256",
|
|
23
|
+
},
|
|
24
24
|
],
|
|
25
25
|
"outputs": [],
|
|
26
|
-
"state_mutability": "external"
|
|
26
|
+
"state_mutability": "external",
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"type": "function",
|
|
@@ -31,20 +31,20 @@ export const ERC20ABI = [
|
|
|
31
31
|
"inputs": [
|
|
32
32
|
{
|
|
33
33
|
"name": "recipient",
|
|
34
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
34
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"name": "amount",
|
|
38
|
-
"type": "core::integer::u256"
|
|
39
|
-
}
|
|
38
|
+
"type": "core::integer::u256",
|
|
39
|
+
},
|
|
40
40
|
],
|
|
41
41
|
"outputs": [],
|
|
42
|
-
"state_mutability": "external"
|
|
42
|
+
"state_mutability": "external",
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"type": "impl",
|
|
46
46
|
"name": "UpgradeableImpl",
|
|
47
|
-
"interface_name": "openzeppelin_upgrades::interface::IUpgradeable"
|
|
47
|
+
"interface_name": "openzeppelin_upgrades::interface::IUpgradeable",
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"type": "interface",
|
|
@@ -56,18 +56,18 @@ export const ERC20ABI = [
|
|
|
56
56
|
"inputs": [
|
|
57
57
|
{
|
|
58
58
|
"name": "new_class_hash",
|
|
59
|
-
"type": "core::starknet::class_hash::ClassHash"
|
|
60
|
-
}
|
|
59
|
+
"type": "core::starknet::class_hash::ClassHash",
|
|
60
|
+
},
|
|
61
61
|
],
|
|
62
62
|
"outputs": [],
|
|
63
|
-
"state_mutability": "external"
|
|
64
|
-
}
|
|
65
|
-
]
|
|
63
|
+
"state_mutability": "external",
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
"type": "impl",
|
|
69
69
|
"name": "ERC20MixinImpl",
|
|
70
|
-
"interface_name": "openzeppelin_token::erc20::interface::IERC20Mixin"
|
|
70
|
+
"interface_name": "openzeppelin_token::erc20::interface::IERC20Mixin",
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"type": "enum",
|
|
@@ -75,13 +75,13 @@ export const ERC20ABI = [
|
|
|
75
75
|
"variants": [
|
|
76
76
|
{
|
|
77
77
|
"name": "False",
|
|
78
|
-
"type": "()"
|
|
78
|
+
"type": "()",
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"name": "True",
|
|
82
|
-
"type": "()"
|
|
83
|
-
}
|
|
84
|
-
]
|
|
82
|
+
"type": "()",
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"type": "struct",
|
|
@@ -89,17 +89,17 @@ export const ERC20ABI = [
|
|
|
89
89
|
"members": [
|
|
90
90
|
{
|
|
91
91
|
"name": "data",
|
|
92
|
-
"type": "core::array::Array::<core::bytes_31::bytes31>"
|
|
92
|
+
"type": "core::array::Array::<core::bytes_31::bytes31>",
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
"name": "pending_word",
|
|
96
|
-
"type": "core::felt252"
|
|
96
|
+
"type": "core::felt252",
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
"name": "pending_word_len",
|
|
100
|
-
"type": "core::integer::u32"
|
|
101
|
-
}
|
|
102
|
-
]
|
|
100
|
+
"type": "core::integer::u32",
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
"type": "interface",
|
|
@@ -111,10 +111,10 @@ export const ERC20ABI = [
|
|
|
111
111
|
"inputs": [],
|
|
112
112
|
"outputs": [
|
|
113
113
|
{
|
|
114
|
-
"type": "core::integer::u256"
|
|
115
|
-
}
|
|
114
|
+
"type": "core::integer::u256",
|
|
115
|
+
},
|
|
116
116
|
],
|
|
117
|
-
"state_mutability": "view"
|
|
117
|
+
"state_mutability": "view",
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"type": "function",
|
|
@@ -122,15 +122,15 @@ export const ERC20ABI = [
|
|
|
122
122
|
"inputs": [
|
|
123
123
|
{
|
|
124
124
|
"name": "account",
|
|
125
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
126
|
-
}
|
|
125
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
126
|
+
},
|
|
127
127
|
],
|
|
128
128
|
"outputs": [
|
|
129
129
|
{
|
|
130
|
-
"type": "core::integer::u256"
|
|
131
|
-
}
|
|
130
|
+
"type": "core::integer::u256",
|
|
131
|
+
},
|
|
132
132
|
],
|
|
133
|
-
"state_mutability": "view"
|
|
133
|
+
"state_mutability": "view",
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
"type": "function",
|
|
@@ -138,19 +138,19 @@ export const ERC20ABI = [
|
|
|
138
138
|
"inputs": [
|
|
139
139
|
{
|
|
140
140
|
"name": "owner",
|
|
141
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
141
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
"name": "spender",
|
|
145
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
146
|
-
}
|
|
145
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
146
|
+
},
|
|
147
147
|
],
|
|
148
148
|
"outputs": [
|
|
149
149
|
{
|
|
150
|
-
"type": "core::integer::u256"
|
|
151
|
-
}
|
|
150
|
+
"type": "core::integer::u256",
|
|
151
|
+
},
|
|
152
152
|
],
|
|
153
|
-
"state_mutability": "view"
|
|
153
|
+
"state_mutability": "view",
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
"type": "function",
|
|
@@ -158,19 +158,19 @@ export const ERC20ABI = [
|
|
|
158
158
|
"inputs": [
|
|
159
159
|
{
|
|
160
160
|
"name": "recipient",
|
|
161
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
161
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
"name": "amount",
|
|
165
|
-
"type": "core::integer::u256"
|
|
166
|
-
}
|
|
165
|
+
"type": "core::integer::u256",
|
|
166
|
+
},
|
|
167
167
|
],
|
|
168
168
|
"outputs": [
|
|
169
169
|
{
|
|
170
|
-
"type": "core::bool"
|
|
171
|
-
}
|
|
170
|
+
"type": "core::bool",
|
|
171
|
+
},
|
|
172
172
|
],
|
|
173
|
-
"state_mutability": "external"
|
|
173
|
+
"state_mutability": "external",
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
"type": "function",
|
|
@@ -178,23 +178,23 @@ export const ERC20ABI = [
|
|
|
178
178
|
"inputs": [
|
|
179
179
|
{
|
|
180
180
|
"name": "sender",
|
|
181
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
181
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
"name": "recipient",
|
|
185
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
185
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
"name": "amount",
|
|
189
|
-
"type": "core::integer::u256"
|
|
190
|
-
}
|
|
189
|
+
"type": "core::integer::u256",
|
|
190
|
+
},
|
|
191
191
|
],
|
|
192
192
|
"outputs": [
|
|
193
193
|
{
|
|
194
|
-
"type": "core::bool"
|
|
195
|
-
}
|
|
194
|
+
"type": "core::bool",
|
|
195
|
+
},
|
|
196
196
|
],
|
|
197
|
-
"state_mutability": "external"
|
|
197
|
+
"state_mutability": "external",
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
"type": "function",
|
|
@@ -202,19 +202,19 @@ export const ERC20ABI = [
|
|
|
202
202
|
"inputs": [
|
|
203
203
|
{
|
|
204
204
|
"name": "spender",
|
|
205
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
205
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
"name": "amount",
|
|
209
|
-
"type": "core::integer::u256"
|
|
210
|
-
}
|
|
209
|
+
"type": "core::integer::u256",
|
|
210
|
+
},
|
|
211
211
|
],
|
|
212
212
|
"outputs": [
|
|
213
213
|
{
|
|
214
|
-
"type": "core::bool"
|
|
215
|
-
}
|
|
214
|
+
"type": "core::bool",
|
|
215
|
+
},
|
|
216
216
|
],
|
|
217
|
-
"state_mutability": "external"
|
|
217
|
+
"state_mutability": "external",
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
220
|
"type": "function",
|
|
@@ -222,10 +222,10 @@ export const ERC20ABI = [
|
|
|
222
222
|
"inputs": [],
|
|
223
223
|
"outputs": [
|
|
224
224
|
{
|
|
225
|
-
"type": "core::byte_array::ByteArray"
|
|
226
|
-
}
|
|
225
|
+
"type": "core::byte_array::ByteArray",
|
|
226
|
+
},
|
|
227
227
|
],
|
|
228
|
-
"state_mutability": "view"
|
|
228
|
+
"state_mutability": "view",
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
"type": "function",
|
|
@@ -233,10 +233,10 @@ export const ERC20ABI = [
|
|
|
233
233
|
"inputs": [],
|
|
234
234
|
"outputs": [
|
|
235
235
|
{
|
|
236
|
-
"type": "core::byte_array::ByteArray"
|
|
237
|
-
}
|
|
236
|
+
"type": "core::byte_array::ByteArray",
|
|
237
|
+
},
|
|
238
238
|
],
|
|
239
|
-
"state_mutability": "view"
|
|
239
|
+
"state_mutability": "view",
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
"type": "function",
|
|
@@ -244,10 +244,10 @@ export const ERC20ABI = [
|
|
|
244
244
|
"inputs": [],
|
|
245
245
|
"outputs": [
|
|
246
246
|
{
|
|
247
|
-
"type": "core::integer::u8"
|
|
248
|
-
}
|
|
247
|
+
"type": "core::integer::u8",
|
|
248
|
+
},
|
|
249
249
|
],
|
|
250
|
-
"state_mutability": "view"
|
|
250
|
+
"state_mutability": "view",
|
|
251
251
|
},
|
|
252
252
|
{
|
|
253
253
|
"type": "function",
|
|
@@ -255,10 +255,10 @@ export const ERC20ABI = [
|
|
|
255
255
|
"inputs": [],
|
|
256
256
|
"outputs": [
|
|
257
257
|
{
|
|
258
|
-
"type": "core::integer::u256"
|
|
259
|
-
}
|
|
258
|
+
"type": "core::integer::u256",
|
|
259
|
+
},
|
|
260
260
|
],
|
|
261
|
-
"state_mutability": "view"
|
|
261
|
+
"state_mutability": "view",
|
|
262
262
|
},
|
|
263
263
|
{
|
|
264
264
|
"type": "function",
|
|
@@ -266,15 +266,15 @@ export const ERC20ABI = [
|
|
|
266
266
|
"inputs": [
|
|
267
267
|
{
|
|
268
268
|
"name": "account",
|
|
269
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
270
|
-
}
|
|
269
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
270
|
+
},
|
|
271
271
|
],
|
|
272
272
|
"outputs": [
|
|
273
273
|
{
|
|
274
|
-
"type": "core::integer::u256"
|
|
275
|
-
}
|
|
274
|
+
"type": "core::integer::u256",
|
|
275
|
+
},
|
|
276
276
|
],
|
|
277
|
-
"state_mutability": "view"
|
|
277
|
+
"state_mutability": "view",
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
280
|
"type": "function",
|
|
@@ -282,30 +282,30 @@ export const ERC20ABI = [
|
|
|
282
282
|
"inputs": [
|
|
283
283
|
{
|
|
284
284
|
"name": "sender",
|
|
285
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
285
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
286
286
|
},
|
|
287
287
|
{
|
|
288
288
|
"name": "recipient",
|
|
289
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
289
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
290
290
|
},
|
|
291
291
|
{
|
|
292
292
|
"name": "amount",
|
|
293
|
-
"type": "core::integer::u256"
|
|
294
|
-
}
|
|
293
|
+
"type": "core::integer::u256",
|
|
294
|
+
},
|
|
295
295
|
],
|
|
296
296
|
"outputs": [
|
|
297
297
|
{
|
|
298
|
-
"type": "core::bool"
|
|
299
|
-
}
|
|
298
|
+
"type": "core::bool",
|
|
299
|
+
},
|
|
300
300
|
],
|
|
301
|
-
"state_mutability": "external"
|
|
302
|
-
}
|
|
303
|
-
]
|
|
301
|
+
"state_mutability": "external",
|
|
302
|
+
},
|
|
303
|
+
],
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
306
|
"type": "impl",
|
|
307
307
|
"name": "OwnableMixinImpl",
|
|
308
|
-
"interface_name": "openzeppelin_access::ownable::interface::OwnableABI"
|
|
308
|
+
"interface_name": "openzeppelin_access::ownable::interface::OwnableABI",
|
|
309
309
|
},
|
|
310
310
|
{
|
|
311
311
|
"type": "interface",
|
|
@@ -317,10 +317,10 @@ export const ERC20ABI = [
|
|
|
317
317
|
"inputs": [],
|
|
318
318
|
"outputs": [
|
|
319
319
|
{
|
|
320
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
321
|
-
}
|
|
320
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
321
|
+
},
|
|
322
322
|
],
|
|
323
|
-
"state_mutability": "view"
|
|
323
|
+
"state_mutability": "view",
|
|
324
324
|
},
|
|
325
325
|
{
|
|
326
326
|
"type": "function",
|
|
@@ -328,18 +328,18 @@ export const ERC20ABI = [
|
|
|
328
328
|
"inputs": [
|
|
329
329
|
{
|
|
330
330
|
"name": "new_owner",
|
|
331
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
332
|
-
}
|
|
331
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
332
|
+
},
|
|
333
333
|
],
|
|
334
334
|
"outputs": [],
|
|
335
|
-
"state_mutability": "external"
|
|
335
|
+
"state_mutability": "external",
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
"type": "function",
|
|
339
339
|
"name": "renounce_ownership",
|
|
340
340
|
"inputs": [],
|
|
341
341
|
"outputs": [],
|
|
342
|
-
"state_mutability": "external"
|
|
342
|
+
"state_mutability": "external",
|
|
343
343
|
},
|
|
344
344
|
{
|
|
345
345
|
"type": "function",
|
|
@@ -347,20 +347,20 @@ export const ERC20ABI = [
|
|
|
347
347
|
"inputs": [
|
|
348
348
|
{
|
|
349
349
|
"name": "newOwner",
|
|
350
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
351
|
-
}
|
|
350
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
351
|
+
},
|
|
352
352
|
],
|
|
353
353
|
"outputs": [],
|
|
354
|
-
"state_mutability": "external"
|
|
354
|
+
"state_mutability": "external",
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
357
|
"type": "function",
|
|
358
358
|
"name": "renounceOwnership",
|
|
359
359
|
"inputs": [],
|
|
360
360
|
"outputs": [],
|
|
361
|
-
"state_mutability": "external"
|
|
362
|
-
}
|
|
363
|
-
]
|
|
361
|
+
"state_mutability": "external",
|
|
362
|
+
},
|
|
363
|
+
],
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
366
|
"type": "constructor",
|
|
@@ -368,25 +368,25 @@ export const ERC20ABI = [
|
|
|
368
368
|
"inputs": [
|
|
369
369
|
{
|
|
370
370
|
"name": "name",
|
|
371
|
-
"type": "core::byte_array::ByteArray"
|
|
371
|
+
"type": "core::byte_array::ByteArray",
|
|
372
372
|
},
|
|
373
373
|
{
|
|
374
374
|
"name": "symbol",
|
|
375
|
-
"type": "core::byte_array::ByteArray"
|
|
375
|
+
"type": "core::byte_array::ByteArray",
|
|
376
376
|
},
|
|
377
377
|
{
|
|
378
378
|
"name": "amount",
|
|
379
|
-
"type": "core::integer::u256"
|
|
379
|
+
"type": "core::integer::u256",
|
|
380
380
|
},
|
|
381
381
|
{
|
|
382
382
|
"name": "recipient",
|
|
383
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
383
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
384
384
|
},
|
|
385
385
|
{
|
|
386
386
|
"name": "owner",
|
|
387
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
388
|
-
}
|
|
389
|
-
]
|
|
387
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
388
|
+
},
|
|
389
|
+
],
|
|
390
390
|
},
|
|
391
391
|
{
|
|
392
392
|
"type": "event",
|
|
@@ -396,19 +396,19 @@ export const ERC20ABI = [
|
|
|
396
396
|
{
|
|
397
397
|
"name": "from",
|
|
398
398
|
"type": "core::starknet::contract_address::ContractAddress",
|
|
399
|
-
"kind": "key"
|
|
399
|
+
"kind": "key",
|
|
400
400
|
},
|
|
401
401
|
{
|
|
402
402
|
"name": "to",
|
|
403
403
|
"type": "core::starknet::contract_address::ContractAddress",
|
|
404
|
-
"kind": "key"
|
|
404
|
+
"kind": "key",
|
|
405
405
|
},
|
|
406
406
|
{
|
|
407
407
|
"name": "value",
|
|
408
408
|
"type": "core::integer::u256",
|
|
409
|
-
"kind": "data"
|
|
410
|
-
}
|
|
411
|
-
]
|
|
409
|
+
"kind": "data",
|
|
410
|
+
},
|
|
411
|
+
],
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
414
|
"type": "event",
|
|
@@ -418,19 +418,19 @@ export const ERC20ABI = [
|
|
|
418
418
|
{
|
|
419
419
|
"name": "owner",
|
|
420
420
|
"type": "core::starknet::contract_address::ContractAddress",
|
|
421
|
-
"kind": "key"
|
|
421
|
+
"kind": "key",
|
|
422
422
|
},
|
|
423
423
|
{
|
|
424
424
|
"name": "spender",
|
|
425
425
|
"type": "core::starknet::contract_address::ContractAddress",
|
|
426
|
-
"kind": "key"
|
|
426
|
+
"kind": "key",
|
|
427
427
|
},
|
|
428
428
|
{
|
|
429
429
|
"name": "value",
|
|
430
430
|
"type": "core::integer::u256",
|
|
431
|
-
"kind": "data"
|
|
432
|
-
}
|
|
433
|
-
]
|
|
431
|
+
"kind": "data",
|
|
432
|
+
},
|
|
433
|
+
],
|
|
434
434
|
},
|
|
435
435
|
{
|
|
436
436
|
"type": "event",
|
|
@@ -440,14 +440,14 @@ export const ERC20ABI = [
|
|
|
440
440
|
{
|
|
441
441
|
"name": "Transfer",
|
|
442
442
|
"type": "openzeppelin_token::erc20::erc20::ERC20Component::Transfer",
|
|
443
|
-
"kind": "nested"
|
|
443
|
+
"kind": "nested",
|
|
444
444
|
},
|
|
445
445
|
{
|
|
446
446
|
"name": "Approval",
|
|
447
447
|
"type": "openzeppelin_token::erc20::erc20::ERC20Component::Approval",
|
|
448
|
-
"kind": "nested"
|
|
449
|
-
}
|
|
450
|
-
]
|
|
448
|
+
"kind": "nested",
|
|
449
|
+
},
|
|
450
|
+
],
|
|
451
451
|
},
|
|
452
452
|
{
|
|
453
453
|
"type": "event",
|
|
@@ -457,14 +457,14 @@ export const ERC20ABI = [
|
|
|
457
457
|
{
|
|
458
458
|
"name": "previous_owner",
|
|
459
459
|
"type": "core::starknet::contract_address::ContractAddress",
|
|
460
|
-
"kind": "key"
|
|
460
|
+
"kind": "key",
|
|
461
461
|
},
|
|
462
462
|
{
|
|
463
463
|
"name": "new_owner",
|
|
464
464
|
"type": "core::starknet::contract_address::ContractAddress",
|
|
465
|
-
"kind": "key"
|
|
466
|
-
}
|
|
467
|
-
]
|
|
465
|
+
"kind": "key",
|
|
466
|
+
},
|
|
467
|
+
],
|
|
468
468
|
},
|
|
469
469
|
{
|
|
470
470
|
"type": "event",
|
|
@@ -474,14 +474,14 @@ export const ERC20ABI = [
|
|
|
474
474
|
{
|
|
475
475
|
"name": "previous_owner",
|
|
476
476
|
"type": "core::starknet::contract_address::ContractAddress",
|
|
477
|
-
"kind": "key"
|
|
477
|
+
"kind": "key",
|
|
478
478
|
},
|
|
479
479
|
{
|
|
480
480
|
"name": "new_owner",
|
|
481
481
|
"type": "core::starknet::contract_address::ContractAddress",
|
|
482
|
-
"kind": "key"
|
|
483
|
-
}
|
|
484
|
-
]
|
|
482
|
+
"kind": "key",
|
|
483
|
+
},
|
|
484
|
+
],
|
|
485
485
|
},
|
|
486
486
|
{
|
|
487
487
|
"type": "event",
|
|
@@ -491,14 +491,14 @@ export const ERC20ABI = [
|
|
|
491
491
|
{
|
|
492
492
|
"name": "OwnershipTransferred",
|
|
493
493
|
"type": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferred",
|
|
494
|
-
"kind": "nested"
|
|
494
|
+
"kind": "nested",
|
|
495
495
|
},
|
|
496
496
|
{
|
|
497
497
|
"name": "OwnershipTransferStarted",
|
|
498
498
|
"type": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferStarted",
|
|
499
|
-
"kind": "nested"
|
|
500
|
-
}
|
|
501
|
-
]
|
|
499
|
+
"kind": "nested",
|
|
500
|
+
},
|
|
501
|
+
],
|
|
502
502
|
},
|
|
503
503
|
{
|
|
504
504
|
"type": "event",
|
|
@@ -508,9 +508,9 @@ export const ERC20ABI = [
|
|
|
508
508
|
{
|
|
509
509
|
"name": "class_hash",
|
|
510
510
|
"type": "core::starknet::class_hash::ClassHash",
|
|
511
|
-
"kind": "data"
|
|
512
|
-
}
|
|
513
|
-
]
|
|
511
|
+
"kind": "data",
|
|
512
|
+
},
|
|
513
|
+
],
|
|
514
514
|
},
|
|
515
515
|
{
|
|
516
516
|
"type": "event",
|
|
@@ -520,9 +520,9 @@ export const ERC20ABI = [
|
|
|
520
520
|
{
|
|
521
521
|
"name": "Upgraded",
|
|
522
522
|
"type": "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Upgraded",
|
|
523
|
-
"kind": "nested"
|
|
524
|
-
}
|
|
525
|
-
]
|
|
523
|
+
"kind": "nested",
|
|
524
|
+
},
|
|
525
|
+
],
|
|
526
526
|
},
|
|
527
527
|
{
|
|
528
528
|
"type": "event",
|
|
@@ -532,19 +532,19 @@ export const ERC20ABI = [
|
|
|
532
532
|
{
|
|
533
533
|
"name": "ERC20Event",
|
|
534
534
|
"type": "openzeppelin_token::erc20::erc20::ERC20Component::Event",
|
|
535
|
-
"kind": "flat"
|
|
535
|
+
"kind": "flat",
|
|
536
536
|
},
|
|
537
537
|
{
|
|
538
538
|
"name": "OwnableEvent",
|
|
539
539
|
"type": "openzeppelin_access::ownable::ownable::OwnableComponent::Event",
|
|
540
|
-
"kind": "flat"
|
|
540
|
+
"kind": "flat",
|
|
541
541
|
},
|
|
542
542
|
{
|
|
543
543
|
"name": "UpgradeableEvent",
|
|
544
544
|
"type": "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Event",
|
|
545
|
-
"kind": "flat"
|
|
546
|
-
}
|
|
547
|
-
]
|
|
548
|
-
}
|
|
545
|
+
"kind": "flat",
|
|
546
|
+
},
|
|
547
|
+
],
|
|
548
|
+
},
|
|
549
549
|
];
|
|
550
550
|
//# sourceMappingURL=ERC20.abi.js.map
|