Skip to content

Commit 0195fa8

Browse files
committed
feat: update ABI definitions and CLI commands for defi-wrapper
1 parent 1ffed71 commit 0195fa8

File tree

39 files changed

+2974
-6643
lines changed

39 files changed

+2974
-6643
lines changed

abi/defi-wrapper/Distributor.ts

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ export const DistributorAbi = [
77
type: 'address',
88
internalType: 'address',
99
},
10+
{
11+
name: '_manager',
12+
type: 'address',
13+
internalType: 'address',
14+
},
1015
],
1116
stateMutability: 'nonpayable',
1217
},
@@ -77,7 +82,7 @@ export const DistributorAbi = [
7782
internalType: 'address',
7883
},
7984
{
80-
name: '_amount',
85+
name: '_cumulativeAmount',
8186
type: 'uint256',
8287
internalType: 'uint256',
8388
},
@@ -269,6 +274,40 @@ export const DistributorAbi = [
269274
],
270275
stateMutability: 'view',
271276
},
277+
{
278+
type: 'function',
279+
name: 'previewClaim',
280+
inputs: [
281+
{
282+
name: '_recipient',
283+
type: 'address',
284+
internalType: 'address',
285+
},
286+
{
287+
name: '_token',
288+
type: 'address',
289+
internalType: 'address',
290+
},
291+
{
292+
name: '_cumulativeAmount',
293+
type: 'uint256',
294+
internalType: 'uint256',
295+
},
296+
{
297+
name: '_proof',
298+
type: 'bytes32[]',
299+
internalType: 'bytes32[]',
300+
},
301+
],
302+
outputs: [
303+
{
304+
name: 'claimable',
305+
type: 'uint256',
306+
internalType: 'uint256',
307+
},
308+
],
309+
stateMutability: 'view',
310+
},
272311
{
273312
type: 'function',
274313
name: 'renounceRole',
@@ -393,7 +432,7 @@ export const DistributorAbi = [
393432
{
394433
name: 'newRoot',
395434
type: 'bytes32',
396-
indexed: false,
435+
indexed: true,
397436
internalType: 'bytes32',
398437
},
399438
{
@@ -574,6 +613,17 @@ export const DistributorAbi = [
574613
},
575614
],
576615
},
616+
{
617+
type: 'error',
618+
name: 'TokenNotSupported',
619+
inputs: [
620+
{
621+
name: 'token',
622+
type: 'address',
623+
internalType: 'address',
624+
},
625+
],
626+
},
577627
{
578628
type: 'error',
579629
name: 'ZeroAddress',

0 commit comments

Comments
 (0)