@underscore-finance/sdk 1.2.20-next.0 → 1.2.20-next.2
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/AGENTS.md +28 -18
- package/abis.json +23476 -12295
- package/dist/contracts/Addys.d.ts +124 -0
- package/dist/contracts/Addys.d.ts.map +1 -0
- package/dist/contracts/Addys.js +134 -0
- package/dist/contracts/AgentSenderGeneric.d.ts +795 -153
- package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -1
- package/dist/contracts/AgentSenderGeneric.js +892 -97
- package/dist/contracts/AgentSenderSpecial.d.ts +127 -0
- package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -1
- package/dist/contracts/AgentSenderSpecial.js +139 -0
- package/dist/contracts/AgentSenderSpecialAdmin.d.ts +984 -0
- package/dist/contracts/AgentSenderSpecialAdmin.d.ts.map +1 -0
- package/dist/contracts/AgentSenderSpecialAdmin.js +1185 -0
- package/dist/contracts/AgentSenderSpecialSigHelper.d.ts +1010 -75
- package/dist/contracts/AgentSenderSpecialSigHelper.d.ts.map +1 -1
- package/dist/contracts/AgentSenderSpecialSigHelper.js +1240 -0
- package/dist/contracts/AgentWrapper.d.ts +164 -6
- package/dist/contracts/AgentWrapper.d.ts.map +1 -1
- package/dist/contracts/AgentWrapper.js +219 -6
- package/dist/contracts/ChequeBook.d.ts +360 -204
- package/dist/contracts/ChequeBook.d.ts.map +1 -1
- package/dist/contracts/ChequeBook.js +507 -298
- package/dist/contracts/DefaultsLocal.d.ts +320 -0
- package/dist/contracts/DefaultsLocal.d.ts.map +1 -0
- package/dist/contracts/DefaultsLocal.js +350 -0
- package/dist/contracts/ERC20.d.ts +552 -27
- package/dist/contracts/ERC20.d.ts.map +1 -1
- package/dist/contracts/ERC20.js +713 -66
- package/dist/contracts/EarnVault.d.ts +284 -255
- package/dist/contracts/EarnVault.d.ts.map +1 -1
- package/dist/contracts/EarnVault.js +488 -456
- package/dist/contracts/EarnVaultAgent.d.ts +127 -0
- package/dist/contracts/EarnVaultAgent.d.ts.map +1 -1
- package/dist/contracts/EarnVaultAgent.js +139 -0
- package/dist/contracts/EarnVaultWallet.d.ts +777 -0
- package/dist/contracts/EarnVaultWallet.d.ts.map +1 -0
- package/dist/contracts/EarnVaultWallet.js +987 -0
- package/dist/contracts/Erc20Token.d.ts +813 -0
- package/dist/contracts/Erc20Token.d.ts.map +1 -0
- package/dist/contracts/Erc20Token.js +1006 -0
- package/dist/contracts/HighCommand.d.ts +40 -0
- package/dist/contracts/HighCommand.d.ts.map +1 -1
- package/dist/contracts/HighCommand.js +45 -0
- package/dist/contracts/Kernel.d.ts +4 -0
- package/dist/contracts/Kernel.d.ts.map +1 -1
- package/dist/contracts/Kernel.js +4 -0
- package/dist/contracts/Ledger.d.ts +4 -75
- package/dist/contracts/Ledger.d.ts.map +1 -1
- package/dist/contracts/Ledger.js +4 -99
- package/dist/contracts/LevgVault.d.ts +299 -299
- package/dist/contracts/LevgVault.d.ts.map +1 -1
- package/dist/contracts/LevgVault.js +530 -530
- package/dist/contracts/LevgVaultAgent.d.ts +127 -69
- package/dist/contracts/LevgVaultAgent.d.ts.map +1 -1
- package/dist/contracts/LevgVaultAgent.js +134 -79
- package/dist/contracts/LevgVaultWallet.d.ts +1119 -0
- package/dist/contracts/LevgVaultWallet.d.ts.map +1 -0
- package/dist/contracts/LevgVaultWallet.js +1439 -0
- package/dist/contracts/LocalGov.d.ts +427 -0
- package/dist/contracts/LocalGov.d.ts.map +1 -0
- package/dist/contracts/LocalGov.js +507 -0
- package/dist/contracts/Migrator.d.ts +160 -0
- package/dist/contracts/Migrator.d.ts.map +1 -1
- package/dist/contracts/Migrator.js +187 -0
- package/dist/contracts/Ownership.d.ts +414 -0
- package/dist/contracts/Ownership.d.ts.map +1 -0
- package/dist/contracts/Ownership.js +472 -0
- package/dist/contracts/Paymaster.d.ts +119 -322
- package/dist/contracts/Paymaster.d.ts.map +1 -1
- package/dist/contracts/Paymaster.js +118 -404
- package/dist/contracts/Sentinel.d.ts +9 -6
- package/dist/contracts/Sentinel.d.ts.map +1 -1
- package/dist/contracts/Sentinel.js +8 -4
- package/dist/contracts/UndyToken.d.ts +821 -0
- package/dist/contracts/UndyToken.d.ts.map +1 -0
- package/dist/contracts/UndyToken.js +1017 -0
- package/dist/contracts/UserWalletConfig.d.ts +334 -317
- package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
- package/dist/contracts/UserWalletConfig.js +391 -371
- package/dist/contracts/UserWalletSignatureHelper.d.ts +1520 -514
- package/dist/contracts/UserWalletSignatureHelper.d.ts.map +1 -1
- package/dist/contracts/UserWalletSignatureHelper.js +1906 -549
- package/dist/contracts/VaultErc20Token.d.ts +522 -0
- package/dist/contracts/VaultErc20Token.d.ts.map +1 -0
- package/dist/contracts/VaultErc20Token.js +658 -0
- package/dist/contracts/index.d.ts +10 -0
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +10 -0
- package/dist/contracts/sdk.d.ts +20 -0
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +20 -0
- package/package.json +1 -1
|
@@ -103,6 +103,33 @@ export const abi = [
|
|
|
103
103
|
"anonymous": false,
|
|
104
104
|
"type": "event"
|
|
105
105
|
},
|
|
106
|
+
{
|
|
107
|
+
"name": "PendingOwnershipTimeLockCancelled",
|
|
108
|
+
"inputs": [
|
|
109
|
+
{
|
|
110
|
+
"name": "newTimeLock",
|
|
111
|
+
"type": "uint256",
|
|
112
|
+
"indexed": false
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "initiatedBlock",
|
|
116
|
+
"type": "uint256",
|
|
117
|
+
"indexed": false
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "confirmBlock",
|
|
121
|
+
"type": "uint256",
|
|
122
|
+
"indexed": false
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "cancelledBy",
|
|
126
|
+
"type": "address",
|
|
127
|
+
"indexed": true
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"anonymous": false,
|
|
131
|
+
"type": "event"
|
|
132
|
+
},
|
|
106
133
|
{
|
|
107
134
|
"name": "OwnershipTimeLockSet",
|
|
108
135
|
"inputs": [
|
|
@@ -115,6 +142,65 @@ export const abi = [
|
|
|
115
142
|
"anonymous": false,
|
|
116
143
|
"type": "event"
|
|
117
144
|
},
|
|
145
|
+
{
|
|
146
|
+
"name": "PendingOwnershipTimeLockSet",
|
|
147
|
+
"inputs": [
|
|
148
|
+
{
|
|
149
|
+
"name": "newTimeLock",
|
|
150
|
+
"type": "uint256",
|
|
151
|
+
"indexed": false
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "initiatedBlock",
|
|
155
|
+
"type": "uint256",
|
|
156
|
+
"indexed": false
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "confirmBlock",
|
|
160
|
+
"type": "uint256",
|
|
161
|
+
"indexed": false
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "currentOwner",
|
|
165
|
+
"type": "address",
|
|
166
|
+
"indexed": true
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"anonymous": false,
|
|
170
|
+
"type": "event"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "PendingOwnershipTimeLockConfirmed",
|
|
174
|
+
"inputs": [
|
|
175
|
+
{
|
|
176
|
+
"name": "oldTimeLock",
|
|
177
|
+
"type": "uint256",
|
|
178
|
+
"indexed": false
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "newTimeLock",
|
|
182
|
+
"type": "uint256",
|
|
183
|
+
"indexed": false
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"name": "initiatedBlock",
|
|
187
|
+
"type": "uint256",
|
|
188
|
+
"indexed": false
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "confirmBlock",
|
|
192
|
+
"type": "uint256",
|
|
193
|
+
"indexed": false
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "confirmedBy",
|
|
197
|
+
"type": "address",
|
|
198
|
+
"indexed": true
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"anonymous": false,
|
|
202
|
+
"type": "event"
|
|
203
|
+
},
|
|
118
204
|
{
|
|
119
205
|
"stateMutability": "nonpayable",
|
|
120
206
|
"type": "function",
|
|
@@ -165,6 +251,20 @@ export const abi = [
|
|
|
165
251
|
],
|
|
166
252
|
"outputs": []
|
|
167
253
|
},
|
|
254
|
+
{
|
|
255
|
+
"stateMutability": "nonpayable",
|
|
256
|
+
"type": "function",
|
|
257
|
+
"name": "confirmPendingOwnershipTimeLock",
|
|
258
|
+
"inputs": [],
|
|
259
|
+
"outputs": []
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"stateMutability": "nonpayable",
|
|
263
|
+
"type": "function",
|
|
264
|
+
"name": "cancelPendingOwnershipTimeLock",
|
|
265
|
+
"inputs": [],
|
|
266
|
+
"outputs": []
|
|
267
|
+
},
|
|
168
268
|
{
|
|
169
269
|
"stateMutability": "view",
|
|
170
270
|
"type": "function",
|
|
@@ -218,19 +318,37 @@ export const abi = [
|
|
|
218
318
|
{
|
|
219
319
|
"stateMutability": "view",
|
|
220
320
|
"type": "function",
|
|
221
|
-
"name": "
|
|
321
|
+
"name": "pendingOwnershipTimeLock",
|
|
222
322
|
"inputs": [],
|
|
223
323
|
"outputs": [
|
|
224
324
|
{
|
|
225
325
|
"name": "",
|
|
226
|
-
"type": "
|
|
326
|
+
"type": "tuple",
|
|
327
|
+
"components": [
|
|
328
|
+
{
|
|
329
|
+
"name": "newTimeLock",
|
|
330
|
+
"type": "uint256"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"name": "initiatedBlock",
|
|
334
|
+
"type": "uint256"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"name": "confirmBlock",
|
|
338
|
+
"type": "uint256"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"name": "currentOwner",
|
|
342
|
+
"type": "address"
|
|
343
|
+
}
|
|
344
|
+
]
|
|
227
345
|
}
|
|
228
346
|
]
|
|
229
347
|
},
|
|
230
348
|
{
|
|
231
349
|
"stateMutability": "view",
|
|
232
350
|
"type": "function",
|
|
233
|
-
"name": "
|
|
351
|
+
"name": "MIN_OWNERSHIP_TIMELOCK",
|
|
234
352
|
"inputs": [],
|
|
235
353
|
"outputs": [
|
|
236
354
|
{
|
|
@@ -240,28 +358,11 @@ export const abi = [
|
|
|
240
358
|
]
|
|
241
359
|
},
|
|
242
360
|
{
|
|
243
|
-
"stateMutability": "
|
|
361
|
+
"stateMutability": "view",
|
|
244
362
|
"type": "function",
|
|
245
|
-
"name": "
|
|
246
|
-
"inputs": [
|
|
247
|
-
{
|
|
248
|
-
"name": "_agentWrapper",
|
|
249
|
-
"type": "address"
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"name": "_userWallet",
|
|
253
|
-
"type": "address"
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"name": "_recipient",
|
|
257
|
-
"type": "address"
|
|
258
|
-
}
|
|
259
|
-
],
|
|
363
|
+
"name": "MAX_OWNERSHIP_TIMELOCK",
|
|
364
|
+
"inputs": [],
|
|
260
365
|
"outputs": [
|
|
261
|
-
{
|
|
262
|
-
"name": "",
|
|
263
|
-
"type": "uint256"
|
|
264
|
-
},
|
|
265
366
|
{
|
|
266
367
|
"name": "",
|
|
267
368
|
"type": "uint256"
|
|
@@ -284,10 +385,6 @@ export const abi = [
|
|
|
284
385
|
{
|
|
285
386
|
"name": "_recipient",
|
|
286
387
|
"type": "address"
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"name": "_asset",
|
|
290
|
-
"type": "address"
|
|
291
388
|
}
|
|
292
389
|
],
|
|
293
390
|
"outputs": [
|
|
@@ -321,10 +418,6 @@ export const abi = [
|
|
|
321
418
|
{
|
|
322
419
|
"name": "_asset",
|
|
323
420
|
"type": "address"
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
"name": "_amount",
|
|
327
|
-
"type": "uint256"
|
|
328
421
|
}
|
|
329
422
|
],
|
|
330
423
|
"outputs": [
|
|
@@ -362,10 +455,6 @@ export const abi = [
|
|
|
362
455
|
{
|
|
363
456
|
"name": "_amount",
|
|
364
457
|
"type": "uint256"
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
"name": "_isCheque",
|
|
368
|
-
"type": "bool"
|
|
369
458
|
}
|
|
370
459
|
],
|
|
371
460
|
"outputs": [
|
|
@@ -404,10 +493,6 @@ export const abi = [
|
|
|
404
493
|
"name": "_amount",
|
|
405
494
|
"type": "uint256"
|
|
406
495
|
},
|
|
407
|
-
{
|
|
408
|
-
"name": "_isCheque",
|
|
409
|
-
"type": "bool"
|
|
410
|
-
},
|
|
411
496
|
{
|
|
412
497
|
"name": "_sig",
|
|
413
498
|
"type": "tuple",
|
|
@@ -533,7 +618,7 @@ export const abi = [
|
|
|
533
618
|
{
|
|
534
619
|
"stateMutability": "nonpayable",
|
|
535
620
|
"type": "function",
|
|
536
|
-
"name": "
|
|
621
|
+
"name": "createCheque",
|
|
537
622
|
"inputs": [
|
|
538
623
|
{
|
|
539
624
|
"name": "_agentWrapper",
|
|
@@ -544,37 +629,45 @@ export const abi = [
|
|
|
544
629
|
"type": "address"
|
|
545
630
|
},
|
|
546
631
|
{
|
|
547
|
-
"name": "
|
|
548
|
-
"type": "
|
|
632
|
+
"name": "_recipient",
|
|
633
|
+
"type": "address"
|
|
549
634
|
},
|
|
550
635
|
{
|
|
551
636
|
"name": "_asset",
|
|
552
637
|
"type": "address"
|
|
553
|
-
}
|
|
554
|
-
],
|
|
555
|
-
"outputs": [
|
|
638
|
+
},
|
|
556
639
|
{
|
|
557
|
-
"name": "",
|
|
640
|
+
"name": "_amount",
|
|
558
641
|
"type": "uint256"
|
|
559
642
|
},
|
|
560
643
|
{
|
|
561
|
-
"name": "",
|
|
562
|
-
"type": "
|
|
644
|
+
"name": "_unlockNumBlocks",
|
|
645
|
+
"type": "uint256"
|
|
563
646
|
},
|
|
564
647
|
{
|
|
565
|
-
"name": "",
|
|
648
|
+
"name": "_expiryNumBlocks",
|
|
566
649
|
"type": "uint256"
|
|
567
650
|
},
|
|
651
|
+
{
|
|
652
|
+
"name": "_canManagerPay",
|
|
653
|
+
"type": "bool"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"name": "_canBePulled",
|
|
657
|
+
"type": "bool"
|
|
658
|
+
}
|
|
659
|
+
],
|
|
660
|
+
"outputs": [
|
|
568
661
|
{
|
|
569
662
|
"name": "",
|
|
570
|
-
"type": "
|
|
663
|
+
"type": "bool"
|
|
571
664
|
}
|
|
572
665
|
]
|
|
573
666
|
},
|
|
574
667
|
{
|
|
575
668
|
"stateMutability": "nonpayable",
|
|
576
669
|
"type": "function",
|
|
577
|
-
"name": "
|
|
670
|
+
"name": "createCheque",
|
|
578
671
|
"inputs": [
|
|
579
672
|
{
|
|
580
673
|
"name": "_agentWrapper",
|
|
@@ -585,41 +678,63 @@ export const abi = [
|
|
|
585
678
|
"type": "address"
|
|
586
679
|
},
|
|
587
680
|
{
|
|
588
|
-
"name": "
|
|
589
|
-
"type": "
|
|
681
|
+
"name": "_recipient",
|
|
682
|
+
"type": "address"
|
|
590
683
|
},
|
|
591
684
|
{
|
|
592
685
|
"name": "_asset",
|
|
593
686
|
"type": "address"
|
|
594
687
|
},
|
|
595
688
|
{
|
|
596
|
-
"name": "
|
|
597
|
-
"type": "address"
|
|
598
|
-
}
|
|
599
|
-
],
|
|
600
|
-
"outputs": [
|
|
601
|
-
{
|
|
602
|
-
"name": "",
|
|
689
|
+
"name": "_amount",
|
|
603
690
|
"type": "uint256"
|
|
604
691
|
},
|
|
605
692
|
{
|
|
606
|
-
"name": "",
|
|
607
|
-
"type": "
|
|
693
|
+
"name": "_unlockNumBlocks",
|
|
694
|
+
"type": "uint256"
|
|
608
695
|
},
|
|
609
696
|
{
|
|
610
|
-
"name": "",
|
|
697
|
+
"name": "_expiryNumBlocks",
|
|
611
698
|
"type": "uint256"
|
|
612
699
|
},
|
|
700
|
+
{
|
|
701
|
+
"name": "_canManagerPay",
|
|
702
|
+
"type": "bool"
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"name": "_canBePulled",
|
|
706
|
+
"type": "bool"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"name": "_sig",
|
|
710
|
+
"type": "tuple",
|
|
711
|
+
"components": [
|
|
712
|
+
{
|
|
713
|
+
"name": "signature",
|
|
714
|
+
"type": "bytes"
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"name": "nonce",
|
|
718
|
+
"type": "uint256"
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"name": "expiration",
|
|
722
|
+
"type": "uint256"
|
|
723
|
+
}
|
|
724
|
+
]
|
|
725
|
+
}
|
|
726
|
+
],
|
|
727
|
+
"outputs": [
|
|
613
728
|
{
|
|
614
729
|
"name": "",
|
|
615
|
-
"type": "
|
|
730
|
+
"type": "bool"
|
|
616
731
|
}
|
|
617
732
|
]
|
|
618
733
|
},
|
|
619
734
|
{
|
|
620
735
|
"stateMutability": "nonpayable",
|
|
621
736
|
"type": "function",
|
|
622
|
-
"name": "
|
|
737
|
+
"name": "payCheque",
|
|
623
738
|
"inputs": [
|
|
624
739
|
{
|
|
625
740
|
"name": "_agentWrapper",
|
|
@@ -630,31 +745,23 @@ export const abi = [
|
|
|
630
745
|
"type": "address"
|
|
631
746
|
},
|
|
632
747
|
{
|
|
633
|
-
"name": "
|
|
634
|
-
"type": "
|
|
748
|
+
"name": "_recipient",
|
|
749
|
+
"type": "address"
|
|
635
750
|
},
|
|
636
751
|
{
|
|
637
752
|
"name": "_asset",
|
|
638
753
|
"type": "address"
|
|
639
754
|
},
|
|
640
755
|
{
|
|
641
|
-
"name": "
|
|
642
|
-
"type": "
|
|
756
|
+
"name": "_amount",
|
|
757
|
+
"type": "uint256"
|
|
643
758
|
},
|
|
644
759
|
{
|
|
645
|
-
"name": "
|
|
760
|
+
"name": "_expectedCreationBlock",
|
|
646
761
|
"type": "uint256"
|
|
647
762
|
}
|
|
648
763
|
],
|
|
649
764
|
"outputs": [
|
|
650
|
-
{
|
|
651
|
-
"name": "",
|
|
652
|
-
"type": "uint256"
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
"name": "",
|
|
656
|
-
"type": "address"
|
|
657
|
-
},
|
|
658
765
|
{
|
|
659
766
|
"name": "",
|
|
660
767
|
"type": "uint256"
|
|
@@ -668,7 +775,7 @@ export const abi = [
|
|
|
668
775
|
{
|
|
669
776
|
"stateMutability": "nonpayable",
|
|
670
777
|
"type": "function",
|
|
671
|
-
"name": "
|
|
778
|
+
"name": "payCheque",
|
|
672
779
|
"inputs": [
|
|
673
780
|
{
|
|
674
781
|
"name": "_agentWrapper",
|
|
@@ -679,15 +786,11 @@ export const abi = [
|
|
|
679
786
|
"type": "address"
|
|
680
787
|
},
|
|
681
788
|
{
|
|
682
|
-
"name": "
|
|
683
|
-
"type": "uint256"
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
"name": "_asset",
|
|
789
|
+
"name": "_recipient",
|
|
687
790
|
"type": "address"
|
|
688
791
|
},
|
|
689
792
|
{
|
|
690
|
-
"name": "
|
|
793
|
+
"name": "_asset",
|
|
691
794
|
"type": "address"
|
|
692
795
|
},
|
|
693
796
|
{
|
|
@@ -695,21 +798,219 @@ export const abi = [
|
|
|
695
798
|
"type": "uint256"
|
|
696
799
|
},
|
|
697
800
|
{
|
|
698
|
-
"name": "
|
|
699
|
-
"type": "bytes32"
|
|
700
|
-
}
|
|
701
|
-
],
|
|
702
|
-
"outputs": [
|
|
703
|
-
{
|
|
704
|
-
"name": "",
|
|
801
|
+
"name": "_expectedCreationBlock",
|
|
705
802
|
"type": "uint256"
|
|
706
803
|
},
|
|
707
804
|
{
|
|
708
|
-
"name": "",
|
|
709
|
-
"type": "
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
805
|
+
"name": "_sig",
|
|
806
|
+
"type": "tuple",
|
|
807
|
+
"components": [
|
|
808
|
+
{
|
|
809
|
+
"name": "signature",
|
|
810
|
+
"type": "bytes"
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"name": "nonce",
|
|
814
|
+
"type": "uint256"
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"name": "expiration",
|
|
818
|
+
"type": "uint256"
|
|
819
|
+
}
|
|
820
|
+
]
|
|
821
|
+
}
|
|
822
|
+
],
|
|
823
|
+
"outputs": [
|
|
824
|
+
{
|
|
825
|
+
"name": "",
|
|
826
|
+
"type": "uint256"
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"name": "",
|
|
830
|
+
"type": "uint256"
|
|
831
|
+
}
|
|
832
|
+
]
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"stateMutability": "nonpayable",
|
|
836
|
+
"type": "function",
|
|
837
|
+
"name": "depositForYield",
|
|
838
|
+
"inputs": [
|
|
839
|
+
{
|
|
840
|
+
"name": "_agentWrapper",
|
|
841
|
+
"type": "address"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"name": "_userWallet",
|
|
845
|
+
"type": "address"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"name": "_legoId",
|
|
849
|
+
"type": "uint256"
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"name": "_asset",
|
|
853
|
+
"type": "address"
|
|
854
|
+
}
|
|
855
|
+
],
|
|
856
|
+
"outputs": [
|
|
857
|
+
{
|
|
858
|
+
"name": "",
|
|
859
|
+
"type": "uint256"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"name": "",
|
|
863
|
+
"type": "address"
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"name": "",
|
|
867
|
+
"type": "uint256"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"name": "",
|
|
871
|
+
"type": "uint256"
|
|
872
|
+
}
|
|
873
|
+
]
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"stateMutability": "nonpayable",
|
|
877
|
+
"type": "function",
|
|
878
|
+
"name": "depositForYield",
|
|
879
|
+
"inputs": [
|
|
880
|
+
{
|
|
881
|
+
"name": "_agentWrapper",
|
|
882
|
+
"type": "address"
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"name": "_userWallet",
|
|
886
|
+
"type": "address"
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
"name": "_legoId",
|
|
890
|
+
"type": "uint256"
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"name": "_asset",
|
|
894
|
+
"type": "address"
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"name": "_vaultAddr",
|
|
898
|
+
"type": "address"
|
|
899
|
+
}
|
|
900
|
+
],
|
|
901
|
+
"outputs": [
|
|
902
|
+
{
|
|
903
|
+
"name": "",
|
|
904
|
+
"type": "uint256"
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
"name": "",
|
|
908
|
+
"type": "address"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"name": "",
|
|
912
|
+
"type": "uint256"
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
"name": "",
|
|
916
|
+
"type": "uint256"
|
|
917
|
+
}
|
|
918
|
+
]
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"stateMutability": "nonpayable",
|
|
922
|
+
"type": "function",
|
|
923
|
+
"name": "depositForYield",
|
|
924
|
+
"inputs": [
|
|
925
|
+
{
|
|
926
|
+
"name": "_agentWrapper",
|
|
927
|
+
"type": "address"
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"name": "_userWallet",
|
|
931
|
+
"type": "address"
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"name": "_legoId",
|
|
935
|
+
"type": "uint256"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"name": "_asset",
|
|
939
|
+
"type": "address"
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"name": "_vaultAddr",
|
|
943
|
+
"type": "address"
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
"name": "_amount",
|
|
947
|
+
"type": "uint256"
|
|
948
|
+
}
|
|
949
|
+
],
|
|
950
|
+
"outputs": [
|
|
951
|
+
{
|
|
952
|
+
"name": "",
|
|
953
|
+
"type": "uint256"
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"name": "",
|
|
957
|
+
"type": "address"
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"name": "",
|
|
961
|
+
"type": "uint256"
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
"name": "",
|
|
965
|
+
"type": "uint256"
|
|
966
|
+
}
|
|
967
|
+
]
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"stateMutability": "nonpayable",
|
|
971
|
+
"type": "function",
|
|
972
|
+
"name": "depositForYield",
|
|
973
|
+
"inputs": [
|
|
974
|
+
{
|
|
975
|
+
"name": "_agentWrapper",
|
|
976
|
+
"type": "address"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"name": "_userWallet",
|
|
980
|
+
"type": "address"
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"name": "_legoId",
|
|
984
|
+
"type": "uint256"
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
"name": "_asset",
|
|
988
|
+
"type": "address"
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"name": "_vaultAddr",
|
|
992
|
+
"type": "address"
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"name": "_amount",
|
|
996
|
+
"type": "uint256"
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
"name": "_extraData",
|
|
1000
|
+
"type": "bytes32"
|
|
1001
|
+
}
|
|
1002
|
+
],
|
|
1003
|
+
"outputs": [
|
|
1004
|
+
{
|
|
1005
|
+
"name": "",
|
|
1006
|
+
"type": "uint256"
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
"name": "",
|
|
1010
|
+
"type": "address"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"name": "",
|
|
713
1014
|
"type": "uint256"
|
|
714
1015
|
},
|
|
715
1016
|
{
|
|
@@ -2709,6 +3010,471 @@ export const abi = [
|
|
|
2709
3010
|
}
|
|
2710
3011
|
]
|
|
2711
3012
|
},
|
|
3013
|
+
{
|
|
3014
|
+
"stateMutability": "nonpayable",
|
|
3015
|
+
"type": "function",
|
|
3016
|
+
"name": "confirmWhitelistAddr",
|
|
3017
|
+
"inputs": [
|
|
3018
|
+
{
|
|
3019
|
+
"name": "_agentWrapper",
|
|
3020
|
+
"type": "address"
|
|
3021
|
+
},
|
|
3022
|
+
{
|
|
3023
|
+
"name": "_userWallet",
|
|
3024
|
+
"type": "address"
|
|
3025
|
+
},
|
|
3026
|
+
{
|
|
3027
|
+
"name": "_whitelistAddr",
|
|
3028
|
+
"type": "address"
|
|
3029
|
+
}
|
|
3030
|
+
],
|
|
3031
|
+
"outputs": [
|
|
3032
|
+
{
|
|
3033
|
+
"name": "",
|
|
3034
|
+
"type": "bool"
|
|
3035
|
+
}
|
|
3036
|
+
]
|
|
3037
|
+
},
|
|
3038
|
+
{
|
|
3039
|
+
"stateMutability": "nonpayable",
|
|
3040
|
+
"type": "function",
|
|
3041
|
+
"name": "confirmWhitelistAddr",
|
|
3042
|
+
"inputs": [
|
|
3043
|
+
{
|
|
3044
|
+
"name": "_agentWrapper",
|
|
3045
|
+
"type": "address"
|
|
3046
|
+
},
|
|
3047
|
+
{
|
|
3048
|
+
"name": "_userWallet",
|
|
3049
|
+
"type": "address"
|
|
3050
|
+
},
|
|
3051
|
+
{
|
|
3052
|
+
"name": "_whitelistAddr",
|
|
3053
|
+
"type": "address"
|
|
3054
|
+
},
|
|
3055
|
+
{
|
|
3056
|
+
"name": "_sig",
|
|
3057
|
+
"type": "tuple",
|
|
3058
|
+
"components": [
|
|
3059
|
+
{
|
|
3060
|
+
"name": "signature",
|
|
3061
|
+
"type": "bytes"
|
|
3062
|
+
},
|
|
3063
|
+
{
|
|
3064
|
+
"name": "nonce",
|
|
3065
|
+
"type": "uint256"
|
|
3066
|
+
},
|
|
3067
|
+
{
|
|
3068
|
+
"name": "expiration",
|
|
3069
|
+
"type": "uint256"
|
|
3070
|
+
}
|
|
3071
|
+
]
|
|
3072
|
+
}
|
|
3073
|
+
],
|
|
3074
|
+
"outputs": [
|
|
3075
|
+
{
|
|
3076
|
+
"name": "",
|
|
3077
|
+
"type": "bool"
|
|
3078
|
+
}
|
|
3079
|
+
]
|
|
3080
|
+
},
|
|
3081
|
+
{
|
|
3082
|
+
"stateMutability": "nonpayable",
|
|
3083
|
+
"type": "function",
|
|
3084
|
+
"name": "cancelPendingWhitelistAddr",
|
|
3085
|
+
"inputs": [
|
|
3086
|
+
{
|
|
3087
|
+
"name": "_agentWrapper",
|
|
3088
|
+
"type": "address"
|
|
3089
|
+
},
|
|
3090
|
+
{
|
|
3091
|
+
"name": "_userWallet",
|
|
3092
|
+
"type": "address"
|
|
3093
|
+
},
|
|
3094
|
+
{
|
|
3095
|
+
"name": "_whitelistAddr",
|
|
3096
|
+
"type": "address"
|
|
3097
|
+
}
|
|
3098
|
+
],
|
|
3099
|
+
"outputs": [
|
|
3100
|
+
{
|
|
3101
|
+
"name": "",
|
|
3102
|
+
"type": "bool"
|
|
3103
|
+
}
|
|
3104
|
+
]
|
|
3105
|
+
},
|
|
3106
|
+
{
|
|
3107
|
+
"stateMutability": "nonpayable",
|
|
3108
|
+
"type": "function",
|
|
3109
|
+
"name": "cancelPendingWhitelistAddr",
|
|
3110
|
+
"inputs": [
|
|
3111
|
+
{
|
|
3112
|
+
"name": "_agentWrapper",
|
|
3113
|
+
"type": "address"
|
|
3114
|
+
},
|
|
3115
|
+
{
|
|
3116
|
+
"name": "_userWallet",
|
|
3117
|
+
"type": "address"
|
|
3118
|
+
},
|
|
3119
|
+
{
|
|
3120
|
+
"name": "_whitelistAddr",
|
|
3121
|
+
"type": "address"
|
|
3122
|
+
},
|
|
3123
|
+
{
|
|
3124
|
+
"name": "_sig",
|
|
3125
|
+
"type": "tuple",
|
|
3126
|
+
"components": [
|
|
3127
|
+
{
|
|
3128
|
+
"name": "signature",
|
|
3129
|
+
"type": "bytes"
|
|
3130
|
+
},
|
|
3131
|
+
{
|
|
3132
|
+
"name": "nonce",
|
|
3133
|
+
"type": "uint256"
|
|
3134
|
+
},
|
|
3135
|
+
{
|
|
3136
|
+
"name": "expiration",
|
|
3137
|
+
"type": "uint256"
|
|
3138
|
+
}
|
|
3139
|
+
]
|
|
3140
|
+
}
|
|
3141
|
+
],
|
|
3142
|
+
"outputs": [
|
|
3143
|
+
{
|
|
3144
|
+
"name": "",
|
|
3145
|
+
"type": "bool"
|
|
3146
|
+
}
|
|
3147
|
+
]
|
|
3148
|
+
},
|
|
3149
|
+
{
|
|
3150
|
+
"stateMutability": "nonpayable",
|
|
3151
|
+
"type": "function",
|
|
3152
|
+
"name": "removeWhitelistAddr",
|
|
3153
|
+
"inputs": [
|
|
3154
|
+
{
|
|
3155
|
+
"name": "_agentWrapper",
|
|
3156
|
+
"type": "address"
|
|
3157
|
+
},
|
|
3158
|
+
{
|
|
3159
|
+
"name": "_userWallet",
|
|
3160
|
+
"type": "address"
|
|
3161
|
+
},
|
|
3162
|
+
{
|
|
3163
|
+
"name": "_whitelistAddr",
|
|
3164
|
+
"type": "address"
|
|
3165
|
+
}
|
|
3166
|
+
],
|
|
3167
|
+
"outputs": [
|
|
3168
|
+
{
|
|
3169
|
+
"name": "",
|
|
3170
|
+
"type": "bool"
|
|
3171
|
+
}
|
|
3172
|
+
]
|
|
3173
|
+
},
|
|
3174
|
+
{
|
|
3175
|
+
"stateMutability": "nonpayable",
|
|
3176
|
+
"type": "function",
|
|
3177
|
+
"name": "removeWhitelistAddr",
|
|
3178
|
+
"inputs": [
|
|
3179
|
+
{
|
|
3180
|
+
"name": "_agentWrapper",
|
|
3181
|
+
"type": "address"
|
|
3182
|
+
},
|
|
3183
|
+
{
|
|
3184
|
+
"name": "_userWallet",
|
|
3185
|
+
"type": "address"
|
|
3186
|
+
},
|
|
3187
|
+
{
|
|
3188
|
+
"name": "_whitelistAddr",
|
|
3189
|
+
"type": "address"
|
|
3190
|
+
},
|
|
3191
|
+
{
|
|
3192
|
+
"name": "_sig",
|
|
3193
|
+
"type": "tuple",
|
|
3194
|
+
"components": [
|
|
3195
|
+
{
|
|
3196
|
+
"name": "signature",
|
|
3197
|
+
"type": "bytes"
|
|
3198
|
+
},
|
|
3199
|
+
{
|
|
3200
|
+
"name": "nonce",
|
|
3201
|
+
"type": "uint256"
|
|
3202
|
+
},
|
|
3203
|
+
{
|
|
3204
|
+
"name": "expiration",
|
|
3205
|
+
"type": "uint256"
|
|
3206
|
+
}
|
|
3207
|
+
]
|
|
3208
|
+
}
|
|
3209
|
+
],
|
|
3210
|
+
"outputs": [
|
|
3211
|
+
{
|
|
3212
|
+
"name": "",
|
|
3213
|
+
"type": "bool"
|
|
3214
|
+
}
|
|
3215
|
+
]
|
|
3216
|
+
},
|
|
3217
|
+
{
|
|
3218
|
+
"stateMutability": "nonpayable",
|
|
3219
|
+
"type": "function",
|
|
3220
|
+
"name": "removeSelfAsManager",
|
|
3221
|
+
"inputs": [
|
|
3222
|
+
{
|
|
3223
|
+
"name": "_agentWrapper",
|
|
3224
|
+
"type": "address"
|
|
3225
|
+
},
|
|
3226
|
+
{
|
|
3227
|
+
"name": "_userWallet",
|
|
3228
|
+
"type": "address"
|
|
3229
|
+
}
|
|
3230
|
+
],
|
|
3231
|
+
"outputs": [
|
|
3232
|
+
{
|
|
3233
|
+
"name": "",
|
|
3234
|
+
"type": "bool"
|
|
3235
|
+
}
|
|
3236
|
+
]
|
|
3237
|
+
},
|
|
3238
|
+
{
|
|
3239
|
+
"stateMutability": "nonpayable",
|
|
3240
|
+
"type": "function",
|
|
3241
|
+
"name": "removeSelfAsManager",
|
|
3242
|
+
"inputs": [
|
|
3243
|
+
{
|
|
3244
|
+
"name": "_agentWrapper",
|
|
3245
|
+
"type": "address"
|
|
3246
|
+
},
|
|
3247
|
+
{
|
|
3248
|
+
"name": "_userWallet",
|
|
3249
|
+
"type": "address"
|
|
3250
|
+
},
|
|
3251
|
+
{
|
|
3252
|
+
"name": "_sig",
|
|
3253
|
+
"type": "tuple",
|
|
3254
|
+
"components": [
|
|
3255
|
+
{
|
|
3256
|
+
"name": "signature",
|
|
3257
|
+
"type": "bytes"
|
|
3258
|
+
},
|
|
3259
|
+
{
|
|
3260
|
+
"name": "nonce",
|
|
3261
|
+
"type": "uint256"
|
|
3262
|
+
},
|
|
3263
|
+
{
|
|
3264
|
+
"name": "expiration",
|
|
3265
|
+
"type": "uint256"
|
|
3266
|
+
}
|
|
3267
|
+
]
|
|
3268
|
+
}
|
|
3269
|
+
],
|
|
3270
|
+
"outputs": [
|
|
3271
|
+
{
|
|
3272
|
+
"name": "",
|
|
3273
|
+
"type": "bool"
|
|
3274
|
+
}
|
|
3275
|
+
]
|
|
3276
|
+
},
|
|
3277
|
+
{
|
|
3278
|
+
"stateMutability": "nonpayable",
|
|
3279
|
+
"type": "function",
|
|
3280
|
+
"name": "claimAllLoot",
|
|
3281
|
+
"inputs": [
|
|
3282
|
+
{
|
|
3283
|
+
"name": "_agentWrapper",
|
|
3284
|
+
"type": "address"
|
|
3285
|
+
},
|
|
3286
|
+
{
|
|
3287
|
+
"name": "_userWallet",
|
|
3288
|
+
"type": "address"
|
|
3289
|
+
}
|
|
3290
|
+
],
|
|
3291
|
+
"outputs": [
|
|
3292
|
+
{
|
|
3293
|
+
"name": "",
|
|
3294
|
+
"type": "bool"
|
|
3295
|
+
}
|
|
3296
|
+
]
|
|
3297
|
+
},
|
|
3298
|
+
{
|
|
3299
|
+
"stateMutability": "nonpayable",
|
|
3300
|
+
"type": "function",
|
|
3301
|
+
"name": "claimAllLoot",
|
|
3302
|
+
"inputs": [
|
|
3303
|
+
{
|
|
3304
|
+
"name": "_agentWrapper",
|
|
3305
|
+
"type": "address"
|
|
3306
|
+
},
|
|
3307
|
+
{
|
|
3308
|
+
"name": "_userWallet",
|
|
3309
|
+
"type": "address"
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
"name": "_sig",
|
|
3313
|
+
"type": "tuple",
|
|
3314
|
+
"components": [
|
|
3315
|
+
{
|
|
3316
|
+
"name": "signature",
|
|
3317
|
+
"type": "bytes"
|
|
3318
|
+
},
|
|
3319
|
+
{
|
|
3320
|
+
"name": "nonce",
|
|
3321
|
+
"type": "uint256"
|
|
3322
|
+
},
|
|
3323
|
+
{
|
|
3324
|
+
"name": "expiration",
|
|
3325
|
+
"type": "uint256"
|
|
3326
|
+
}
|
|
3327
|
+
]
|
|
3328
|
+
}
|
|
3329
|
+
],
|
|
3330
|
+
"outputs": [
|
|
3331
|
+
{
|
|
3332
|
+
"name": "",
|
|
3333
|
+
"type": "bool"
|
|
3334
|
+
}
|
|
3335
|
+
]
|
|
3336
|
+
},
|
|
3337
|
+
{
|
|
3338
|
+
"stateMutability": "nonpayable",
|
|
3339
|
+
"type": "function",
|
|
3340
|
+
"name": "claimRevShareAndBonusLoot",
|
|
3341
|
+
"inputs": [
|
|
3342
|
+
{
|
|
3343
|
+
"name": "_agentWrapper",
|
|
3344
|
+
"type": "address"
|
|
3345
|
+
},
|
|
3346
|
+
{
|
|
3347
|
+
"name": "_userWallet",
|
|
3348
|
+
"type": "address"
|
|
3349
|
+
}
|
|
3350
|
+
],
|
|
3351
|
+
"outputs": [
|
|
3352
|
+
{
|
|
3353
|
+
"name": "",
|
|
3354
|
+
"type": "uint256"
|
|
3355
|
+
}
|
|
3356
|
+
]
|
|
3357
|
+
},
|
|
3358
|
+
{
|
|
3359
|
+
"stateMutability": "nonpayable",
|
|
3360
|
+
"type": "function",
|
|
3361
|
+
"name": "claimRevShareAndBonusLoot",
|
|
3362
|
+
"inputs": [
|
|
3363
|
+
{
|
|
3364
|
+
"name": "_agentWrapper",
|
|
3365
|
+
"type": "address"
|
|
3366
|
+
},
|
|
3367
|
+
{
|
|
3368
|
+
"name": "_userWallet",
|
|
3369
|
+
"type": "address"
|
|
3370
|
+
},
|
|
3371
|
+
{
|
|
3372
|
+
"name": "_sig",
|
|
3373
|
+
"type": "tuple",
|
|
3374
|
+
"components": [
|
|
3375
|
+
{
|
|
3376
|
+
"name": "signature",
|
|
3377
|
+
"type": "bytes"
|
|
3378
|
+
},
|
|
3379
|
+
{
|
|
3380
|
+
"name": "nonce",
|
|
3381
|
+
"type": "uint256"
|
|
3382
|
+
},
|
|
3383
|
+
{
|
|
3384
|
+
"name": "expiration",
|
|
3385
|
+
"type": "uint256"
|
|
3386
|
+
}
|
|
3387
|
+
]
|
|
3388
|
+
}
|
|
3389
|
+
],
|
|
3390
|
+
"outputs": [
|
|
3391
|
+
{
|
|
3392
|
+
"name": "",
|
|
3393
|
+
"type": "uint256"
|
|
3394
|
+
}
|
|
3395
|
+
]
|
|
3396
|
+
},
|
|
3397
|
+
{
|
|
3398
|
+
"stateMutability": "nonpayable",
|
|
3399
|
+
"type": "function",
|
|
3400
|
+
"name": "claimDepositRewards",
|
|
3401
|
+
"inputs": [
|
|
3402
|
+
{
|
|
3403
|
+
"name": "_agentWrapper",
|
|
3404
|
+
"type": "address"
|
|
3405
|
+
},
|
|
3406
|
+
{
|
|
3407
|
+
"name": "_userWallet",
|
|
3408
|
+
"type": "address"
|
|
3409
|
+
}
|
|
3410
|
+
],
|
|
3411
|
+
"outputs": [
|
|
3412
|
+
{
|
|
3413
|
+
"name": "",
|
|
3414
|
+
"type": "uint256"
|
|
3415
|
+
}
|
|
3416
|
+
]
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
"stateMutability": "nonpayable",
|
|
3420
|
+
"type": "function",
|
|
3421
|
+
"name": "claimDepositRewards",
|
|
3422
|
+
"inputs": [
|
|
3423
|
+
{
|
|
3424
|
+
"name": "_agentWrapper",
|
|
3425
|
+
"type": "address"
|
|
3426
|
+
},
|
|
3427
|
+
{
|
|
3428
|
+
"name": "_userWallet",
|
|
3429
|
+
"type": "address"
|
|
3430
|
+
},
|
|
3431
|
+
{
|
|
3432
|
+
"name": "_sig",
|
|
3433
|
+
"type": "tuple",
|
|
3434
|
+
"components": [
|
|
3435
|
+
{
|
|
3436
|
+
"name": "signature",
|
|
3437
|
+
"type": "bytes"
|
|
3438
|
+
},
|
|
3439
|
+
{
|
|
3440
|
+
"name": "nonce",
|
|
3441
|
+
"type": "uint256"
|
|
3442
|
+
},
|
|
3443
|
+
{
|
|
3444
|
+
"name": "expiration",
|
|
3445
|
+
"type": "uint256"
|
|
3446
|
+
}
|
|
3447
|
+
]
|
|
3448
|
+
}
|
|
3449
|
+
],
|
|
3450
|
+
"outputs": [
|
|
3451
|
+
{
|
|
3452
|
+
"name": "",
|
|
3453
|
+
"type": "uint256"
|
|
3454
|
+
}
|
|
3455
|
+
]
|
|
3456
|
+
},
|
|
3457
|
+
{
|
|
3458
|
+
"stateMutability": "view",
|
|
3459
|
+
"type": "function",
|
|
3460
|
+
"name": "canClaimLootFor",
|
|
3461
|
+
"inputs": [
|
|
3462
|
+
{
|
|
3463
|
+
"name": "_agentWrapper",
|
|
3464
|
+
"type": "address"
|
|
3465
|
+
},
|
|
3466
|
+
{
|
|
3467
|
+
"name": "_userWallet",
|
|
3468
|
+
"type": "address"
|
|
3469
|
+
}
|
|
3470
|
+
],
|
|
3471
|
+
"outputs": [
|
|
3472
|
+
{
|
|
3473
|
+
"name": "",
|
|
3474
|
+
"type": "bool"
|
|
3475
|
+
}
|
|
3476
|
+
]
|
|
3477
|
+
},
|
|
2712
3478
|
{
|
|
2713
3479
|
"stateMutability": "nonpayable",
|
|
2714
3480
|
"type": "function",
|
|
@@ -5291,8 +6057,10 @@ export const call = {
|
|
|
5291
6057
|
owner: (...args) => getRequest('owner', args),
|
|
5292
6058
|
ownershipTimeLock: (...args) => getRequest('ownershipTimeLock', args),
|
|
5293
6059
|
pendingOwner: (...args) => getRequest('pendingOwner', args),
|
|
6060
|
+
pendingOwnershipTimeLock: (...args) => getRequest('pendingOwnershipTimeLock', args),
|
|
5294
6061
|
MIN_OWNERSHIP_TIMELOCK: (...args) => getRequest('MIN_OWNERSHIP_TIMELOCK', args),
|
|
5295
6062
|
MAX_OWNERSHIP_TIMELOCK: (...args) => getRequest('MAX_OWNERSHIP_TIMELOCK', args),
|
|
6063
|
+
canClaimLootFor: (...args) => getRequest('canClaimLootFor', args),
|
|
5296
6064
|
getNonce: (...args) => getRequest('getNonce', args),
|
|
5297
6065
|
currentNonce: (...args) => getRequest('currentNonce', args),
|
|
5298
6066
|
};
|
|
@@ -5310,8 +6078,12 @@ export const mutation = {
|
|
|
5310
6078
|
confirmOwnershipChange: getMutation('confirmOwnershipChange'),
|
|
5311
6079
|
cancelOwnershipChange: getMutation('cancelOwnershipChange'),
|
|
5312
6080
|
setOwnershipTimeLock: getMutation('setOwnershipTimeLock'),
|
|
6081
|
+
confirmPendingOwnershipTimeLock: getMutation('confirmPendingOwnershipTimeLock'),
|
|
6082
|
+
cancelPendingOwnershipTimeLock: getMutation('cancelPendingOwnershipTimeLock'),
|
|
5313
6083
|
transferFunds: getMutation('transferFunds'),
|
|
5314
6084
|
createAndPayCheque: getMutation('createAndPayCheque'),
|
|
6085
|
+
createCheque: getMutation('createCheque'),
|
|
6086
|
+
payCheque: getMutation('payCheque'),
|
|
5315
6087
|
depositForYield: getMutation('depositForYield'),
|
|
5316
6088
|
withdrawFromYield: getMutation('withdrawFromYield'),
|
|
5317
6089
|
rebalanceYieldPosition: getMutation('rebalanceYieldPosition'),
|
|
@@ -5323,6 +6095,13 @@ export const mutation = {
|
|
|
5323
6095
|
borrow: getMutation('borrow'),
|
|
5324
6096
|
repayDebt: getMutation('repayDebt'),
|
|
5325
6097
|
claimIncentives: getMutation('claimIncentives'),
|
|
6098
|
+
confirmWhitelistAddr: getMutation('confirmWhitelistAddr'),
|
|
6099
|
+
cancelPendingWhitelistAddr: getMutation('cancelPendingWhitelistAddr'),
|
|
6100
|
+
removeWhitelistAddr: getMutation('removeWhitelistAddr'),
|
|
6101
|
+
removeSelfAsManager: getMutation('removeSelfAsManager'),
|
|
6102
|
+
claimAllLoot: getMutation('claimAllLoot'),
|
|
6103
|
+
claimRevShareAndBonusLoot: getMutation('claimRevShareAndBonusLoot'),
|
|
6104
|
+
claimDepositRewards: getMutation('claimDepositRewards'),
|
|
5326
6105
|
convertWethToEth: getMutation('convertWethToEth'),
|
|
5327
6106
|
convertEthToWeth: getMutation('convertEthToWeth'),
|
|
5328
6107
|
addLiquidity: getMutation('addLiquidity'),
|
|
@@ -5356,15 +6135,20 @@ export function toSdk(deployAddress, publicClient, walletClient, addressResolver
|
|
|
5356
6135
|
OwnershipChangeInitiated: { topic: getEventTopic('OwnershipChangeInitiated'), parse: (events) => parseEvents('OwnershipChangeInitiated', events) },
|
|
5357
6136
|
OwnershipChangeConfirmed: { topic: getEventTopic('OwnershipChangeConfirmed'), parse: (events) => parseEvents('OwnershipChangeConfirmed', events) },
|
|
5358
6137
|
OwnershipChangeCancelled: { topic: getEventTopic('OwnershipChangeCancelled'), parse: (events) => parseEvents('OwnershipChangeCancelled', events) },
|
|
6138
|
+
PendingOwnershipTimeLockCancelled: { topic: getEventTopic('PendingOwnershipTimeLockCancelled'), parse: (events) => parseEvents('PendingOwnershipTimeLockCancelled', events) },
|
|
5359
6139
|
OwnershipTimeLockSet: { topic: getEventTopic('OwnershipTimeLockSet'), parse: (events) => parseEvents('OwnershipTimeLockSet', events) },
|
|
6140
|
+
PendingOwnershipTimeLockSet: { topic: getEventTopic('PendingOwnershipTimeLockSet'), parse: (events) => parseEvents('PendingOwnershipTimeLockSet', events) },
|
|
6141
|
+
PendingOwnershipTimeLockConfirmed: { topic: getEventTopic('PendingOwnershipTimeLockConfirmed'), parse: (events) => parseEvents('PendingOwnershipTimeLockConfirmed', events) },
|
|
5360
6142
|
},
|
|
5361
6143
|
// Queries
|
|
5362
6144
|
hasPendingOwnerChange: (...args) => singleQuery(publicClient, call.hasPendingOwnerChange(...args).at(deployAddress), {}, addressResolver),
|
|
5363
6145
|
owner: (...args) => singleQuery(publicClient, call.owner(...args).at(deployAddress), {}, addressResolver),
|
|
5364
6146
|
ownershipTimeLock: (...args) => singleQuery(publicClient, call.ownershipTimeLock(...args).at(deployAddress), {}, addressResolver),
|
|
5365
6147
|
pendingOwner: (...args) => singleQuery(publicClient, call.pendingOwner(...args).at(deployAddress), {}, addressResolver),
|
|
6148
|
+
pendingOwnershipTimeLock: (...args) => singleQuery(publicClient, call.pendingOwnershipTimeLock(...args).at(deployAddress), {}, addressResolver),
|
|
5366
6149
|
MIN_OWNERSHIP_TIMELOCK: (...args) => singleQuery(publicClient, call.MIN_OWNERSHIP_TIMELOCK(...args).at(deployAddress), {}, addressResolver),
|
|
5367
6150
|
MAX_OWNERSHIP_TIMELOCK: (...args) => singleQuery(publicClient, call.MAX_OWNERSHIP_TIMELOCK(...args).at(deployAddress), {}, addressResolver),
|
|
6151
|
+
canClaimLootFor: (...args) => singleQuery(publicClient, call.canClaimLootFor(...args).at(deployAddress), {}, addressResolver),
|
|
5368
6152
|
getNonce: (...args) => singleQuery(publicClient, call.getNonce(...args).at(deployAddress), {}, addressResolver),
|
|
5369
6153
|
currentNonce: (...args) => singleQuery(publicClient, call.currentNonce(...args).at(deployAddress), {}, addressResolver),
|
|
5370
6154
|
// Mutations
|
|
@@ -5372,8 +6156,12 @@ export function toSdk(deployAddress, publicClient, walletClient, addressResolver
|
|
|
5372
6156
|
confirmOwnershipChange: (...args) => mutate(walletClient, mutation.confirmOwnershipChange, { address: deployAddress, addressResolver })(...args),
|
|
5373
6157
|
cancelOwnershipChange: (...args) => mutate(walletClient, mutation.cancelOwnershipChange, { address: deployAddress, addressResolver })(...args),
|
|
5374
6158
|
setOwnershipTimeLock: (...args) => mutate(walletClient, mutation.setOwnershipTimeLock, { address: deployAddress, addressResolver })(...args),
|
|
6159
|
+
confirmPendingOwnershipTimeLock: (...args) => mutate(walletClient, mutation.confirmPendingOwnershipTimeLock, { address: deployAddress, addressResolver })(...args),
|
|
6160
|
+
cancelPendingOwnershipTimeLock: (...args) => mutate(walletClient, mutation.cancelPendingOwnershipTimeLock, { address: deployAddress, addressResolver })(...args),
|
|
5375
6161
|
transferFunds: (...args) => mutate(walletClient, mutation.transferFunds, { address: deployAddress, addressResolver })(...args),
|
|
5376
6162
|
createAndPayCheque: (...args) => mutate(walletClient, mutation.createAndPayCheque, { address: deployAddress, addressResolver })(...args),
|
|
6163
|
+
createCheque: (...args) => mutate(walletClient, mutation.createCheque, { address: deployAddress, addressResolver })(...args),
|
|
6164
|
+
payCheque: (...args) => mutate(walletClient, mutation.payCheque, { address: deployAddress, addressResolver })(...args),
|
|
5377
6165
|
depositForYield: (...args) => mutate(walletClient, mutation.depositForYield, { address: deployAddress, addressResolver })(...args),
|
|
5378
6166
|
withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield, { address: deployAddress, addressResolver })(...args),
|
|
5379
6167
|
rebalanceYieldPosition: (...args) => mutate(walletClient, mutation.rebalanceYieldPosition, { address: deployAddress, addressResolver })(...args),
|
|
@@ -5385,6 +6173,13 @@ export function toSdk(deployAddress, publicClient, walletClient, addressResolver
|
|
|
5385
6173
|
borrow: (...args) => mutate(walletClient, mutation.borrow, { address: deployAddress, addressResolver })(...args),
|
|
5386
6174
|
repayDebt: (...args) => mutate(walletClient, mutation.repayDebt, { address: deployAddress, addressResolver })(...args),
|
|
5387
6175
|
claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives, { address: deployAddress, addressResolver })(...args),
|
|
6176
|
+
confirmWhitelistAddr: (...args) => mutate(walletClient, mutation.confirmWhitelistAddr, { address: deployAddress, addressResolver })(...args),
|
|
6177
|
+
cancelPendingWhitelistAddr: (...args) => mutate(walletClient, mutation.cancelPendingWhitelistAddr, { address: deployAddress, addressResolver })(...args),
|
|
6178
|
+
removeWhitelistAddr: (...args) => mutate(walletClient, mutation.removeWhitelistAddr, { address: deployAddress, addressResolver })(...args),
|
|
6179
|
+
removeSelfAsManager: (...args) => mutate(walletClient, mutation.removeSelfAsManager, { address: deployAddress, addressResolver })(...args),
|
|
6180
|
+
claimAllLoot: (...args) => mutate(walletClient, mutation.claimAllLoot, { address: deployAddress, addressResolver })(...args),
|
|
6181
|
+
claimRevShareAndBonusLoot: (...args) => mutate(walletClient, mutation.claimRevShareAndBonusLoot, { address: deployAddress, addressResolver })(...args),
|
|
6182
|
+
claimDepositRewards: (...args) => mutate(walletClient, mutation.claimDepositRewards, { address: deployAddress, addressResolver })(...args),
|
|
5388
6183
|
convertWethToEth: (...args) => mutate(walletClient, mutation.convertWethToEth, { address: deployAddress, addressResolver })(...args),
|
|
5389
6184
|
convertEthToWeth: (...args) => mutate(walletClient, mutation.convertEthToWeth, { address: deployAddress, addressResolver })(...args),
|
|
5390
6185
|
addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity, { address: deployAddress, addressResolver })(...args),
|