@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
|
@@ -161,6 +161,125 @@ export declare const abi: readonly [{
|
|
|
161
161
|
}];
|
|
162
162
|
readonly anonymous: false;
|
|
163
163
|
readonly type: "event";
|
|
164
|
+
}, {
|
|
165
|
+
readonly name: "ChequeSettingsPending";
|
|
166
|
+
readonly inputs: readonly [{
|
|
167
|
+
readonly name: "user";
|
|
168
|
+
readonly type: "address";
|
|
169
|
+
readonly indexed: true;
|
|
170
|
+
}, {
|
|
171
|
+
readonly name: "initiatedBy";
|
|
172
|
+
readonly type: "address";
|
|
173
|
+
readonly indexed: true;
|
|
174
|
+
}, {
|
|
175
|
+
readonly name: "confirmBlock";
|
|
176
|
+
readonly type: "uint256";
|
|
177
|
+
readonly indexed: false;
|
|
178
|
+
}, {
|
|
179
|
+
readonly name: "maxNumActiveCheques";
|
|
180
|
+
readonly type: "uint256";
|
|
181
|
+
readonly indexed: false;
|
|
182
|
+
}, {
|
|
183
|
+
readonly name: "maxChequeUsdValue";
|
|
184
|
+
readonly type: "uint256";
|
|
185
|
+
readonly indexed: false;
|
|
186
|
+
}, {
|
|
187
|
+
readonly name: "instantUsdThreshold";
|
|
188
|
+
readonly type: "uint256";
|
|
189
|
+
readonly indexed: false;
|
|
190
|
+
}, {
|
|
191
|
+
readonly name: "perPeriodPaidUsdCap";
|
|
192
|
+
readonly type: "uint256";
|
|
193
|
+
readonly indexed: false;
|
|
194
|
+
}, {
|
|
195
|
+
readonly name: "maxNumChequesPaidPerPeriod";
|
|
196
|
+
readonly type: "uint256";
|
|
197
|
+
readonly indexed: false;
|
|
198
|
+
}, {
|
|
199
|
+
readonly name: "payCooldownBlocks";
|
|
200
|
+
readonly type: "uint256";
|
|
201
|
+
readonly indexed: false;
|
|
202
|
+
}, {
|
|
203
|
+
readonly name: "perPeriodCreatedUsdCap";
|
|
204
|
+
readonly type: "uint256";
|
|
205
|
+
readonly indexed: false;
|
|
206
|
+
}, {
|
|
207
|
+
readonly name: "maxNumChequesCreatedPerPeriod";
|
|
208
|
+
readonly type: "uint256";
|
|
209
|
+
readonly indexed: false;
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "createCooldownBlocks";
|
|
212
|
+
readonly type: "uint256";
|
|
213
|
+
readonly indexed: false;
|
|
214
|
+
}, {
|
|
215
|
+
readonly name: "periodLength";
|
|
216
|
+
readonly type: "uint256";
|
|
217
|
+
readonly indexed: false;
|
|
218
|
+
}, {
|
|
219
|
+
readonly name: "expensiveDelayBlocks";
|
|
220
|
+
readonly type: "uint256";
|
|
221
|
+
readonly indexed: false;
|
|
222
|
+
}, {
|
|
223
|
+
readonly name: "defaultExpiryBlocks";
|
|
224
|
+
readonly type: "uint256";
|
|
225
|
+
readonly indexed: false;
|
|
226
|
+
}, {
|
|
227
|
+
readonly name: "canManagersCreateCheques";
|
|
228
|
+
readonly type: "bool";
|
|
229
|
+
readonly indexed: false;
|
|
230
|
+
}, {
|
|
231
|
+
readonly name: "canManagerPay";
|
|
232
|
+
readonly type: "bool";
|
|
233
|
+
readonly indexed: false;
|
|
234
|
+
}, {
|
|
235
|
+
readonly name: "canBePulled";
|
|
236
|
+
readonly type: "bool";
|
|
237
|
+
readonly indexed: false;
|
|
238
|
+
}];
|
|
239
|
+
readonly anonymous: false;
|
|
240
|
+
readonly type: "event";
|
|
241
|
+
}, {
|
|
242
|
+
readonly name: "ChequeSettingsPendingConfirmed";
|
|
243
|
+
readonly inputs: readonly [{
|
|
244
|
+
readonly name: "user";
|
|
245
|
+
readonly type: "address";
|
|
246
|
+
readonly indexed: true;
|
|
247
|
+
}, {
|
|
248
|
+
readonly name: "initiatedBlock";
|
|
249
|
+
readonly type: "uint256";
|
|
250
|
+
readonly indexed: false;
|
|
251
|
+
}, {
|
|
252
|
+
readonly name: "confirmBlock";
|
|
253
|
+
readonly type: "uint256";
|
|
254
|
+
readonly indexed: false;
|
|
255
|
+
}, {
|
|
256
|
+
readonly name: "confirmedBy";
|
|
257
|
+
readonly type: "address";
|
|
258
|
+
readonly indexed: true;
|
|
259
|
+
}];
|
|
260
|
+
readonly anonymous: false;
|
|
261
|
+
readonly type: "event";
|
|
262
|
+
}, {
|
|
263
|
+
readonly name: "ChequeSettingsPendingCancelled";
|
|
264
|
+
readonly inputs: readonly [{
|
|
265
|
+
readonly name: "user";
|
|
266
|
+
readonly type: "address";
|
|
267
|
+
readonly indexed: true;
|
|
268
|
+
}, {
|
|
269
|
+
readonly name: "initiatedBlock";
|
|
270
|
+
readonly type: "uint256";
|
|
271
|
+
readonly indexed: false;
|
|
272
|
+
}, {
|
|
273
|
+
readonly name: "confirmBlock";
|
|
274
|
+
readonly type: "uint256";
|
|
275
|
+
readonly indexed: false;
|
|
276
|
+
}, {
|
|
277
|
+
readonly name: "cancelledBy";
|
|
278
|
+
readonly type: "address";
|
|
279
|
+
readonly indexed: true;
|
|
280
|
+
}];
|
|
281
|
+
readonly anonymous: false;
|
|
282
|
+
readonly type: "event";
|
|
164
283
|
}, {
|
|
165
284
|
readonly stateMutability: "nonpayable";
|
|
166
285
|
readonly type: "function";
|
|
@@ -583,6 +702,158 @@ export declare const abi: readonly [{
|
|
|
583
702
|
readonly name: "";
|
|
584
703
|
readonly type: "bool";
|
|
585
704
|
}];
|
|
705
|
+
}, {
|
|
706
|
+
readonly stateMutability: "view";
|
|
707
|
+
readonly type: "function";
|
|
708
|
+
readonly name: "isValidNewCheque";
|
|
709
|
+
readonly inputs: readonly [{
|
|
710
|
+
readonly name: "_wallet";
|
|
711
|
+
readonly type: "address";
|
|
712
|
+
}, {
|
|
713
|
+
readonly name: "_walletConfig";
|
|
714
|
+
readonly type: "address";
|
|
715
|
+
}, {
|
|
716
|
+
readonly name: "_owner";
|
|
717
|
+
readonly type: "address";
|
|
718
|
+
}, {
|
|
719
|
+
readonly name: "_isRecipientOnWhitelist";
|
|
720
|
+
readonly type: "bool";
|
|
721
|
+
}, {
|
|
722
|
+
readonly name: "_chequeSettings";
|
|
723
|
+
readonly type: "tuple";
|
|
724
|
+
readonly components: readonly [{
|
|
725
|
+
readonly name: "maxNumActiveCheques";
|
|
726
|
+
readonly type: "uint256";
|
|
727
|
+
}, {
|
|
728
|
+
readonly name: "maxChequeUsdValue";
|
|
729
|
+
readonly type: "uint256";
|
|
730
|
+
}, {
|
|
731
|
+
readonly name: "instantUsdThreshold";
|
|
732
|
+
readonly type: "uint256";
|
|
733
|
+
}, {
|
|
734
|
+
readonly name: "perPeriodPaidUsdCap";
|
|
735
|
+
readonly type: "uint256";
|
|
736
|
+
}, {
|
|
737
|
+
readonly name: "maxNumChequesPaidPerPeriod";
|
|
738
|
+
readonly type: "uint256";
|
|
739
|
+
}, {
|
|
740
|
+
readonly name: "payCooldownBlocks";
|
|
741
|
+
readonly type: "uint256";
|
|
742
|
+
}, {
|
|
743
|
+
readonly name: "perPeriodCreatedUsdCap";
|
|
744
|
+
readonly type: "uint256";
|
|
745
|
+
}, {
|
|
746
|
+
readonly name: "maxNumChequesCreatedPerPeriod";
|
|
747
|
+
readonly type: "uint256";
|
|
748
|
+
}, {
|
|
749
|
+
readonly name: "createCooldownBlocks";
|
|
750
|
+
readonly type: "uint256";
|
|
751
|
+
}, {
|
|
752
|
+
readonly name: "periodLength";
|
|
753
|
+
readonly type: "uint256";
|
|
754
|
+
}, {
|
|
755
|
+
readonly name: "expensiveDelayBlocks";
|
|
756
|
+
readonly type: "uint256";
|
|
757
|
+
}, {
|
|
758
|
+
readonly name: "defaultExpiryBlocks";
|
|
759
|
+
readonly type: "uint256";
|
|
760
|
+
}, {
|
|
761
|
+
readonly name: "allowedAssets";
|
|
762
|
+
readonly type: "address[]";
|
|
763
|
+
}, {
|
|
764
|
+
readonly name: "canManagersCreateCheques";
|
|
765
|
+
readonly type: "bool";
|
|
766
|
+
}, {
|
|
767
|
+
readonly name: "canManagerPay";
|
|
768
|
+
readonly type: "bool";
|
|
769
|
+
}, {
|
|
770
|
+
readonly name: "canBePulled";
|
|
771
|
+
readonly type: "bool";
|
|
772
|
+
}];
|
|
773
|
+
}, {
|
|
774
|
+
readonly name: "_chequeData";
|
|
775
|
+
readonly type: "tuple";
|
|
776
|
+
readonly components: readonly [{
|
|
777
|
+
readonly name: "numChequesPaidInPeriod";
|
|
778
|
+
readonly type: "uint256";
|
|
779
|
+
}, {
|
|
780
|
+
readonly name: "totalUsdValuePaidInPeriod";
|
|
781
|
+
readonly type: "uint256";
|
|
782
|
+
}, {
|
|
783
|
+
readonly name: "totalNumChequesPaid";
|
|
784
|
+
readonly type: "uint256";
|
|
785
|
+
}, {
|
|
786
|
+
readonly name: "totalUsdValuePaid";
|
|
787
|
+
readonly type: "uint256";
|
|
788
|
+
}, {
|
|
789
|
+
readonly name: "lastChequePaidBlock";
|
|
790
|
+
readonly type: "uint256";
|
|
791
|
+
}, {
|
|
792
|
+
readonly name: "numChequesCreatedInPeriod";
|
|
793
|
+
readonly type: "uint256";
|
|
794
|
+
}, {
|
|
795
|
+
readonly name: "totalUsdValueCreatedInPeriod";
|
|
796
|
+
readonly type: "uint256";
|
|
797
|
+
}, {
|
|
798
|
+
readonly name: "totalNumChequesCreated";
|
|
799
|
+
readonly type: "uint256";
|
|
800
|
+
}, {
|
|
801
|
+
readonly name: "totalUsdValueCreated";
|
|
802
|
+
readonly type: "uint256";
|
|
803
|
+
}, {
|
|
804
|
+
readonly name: "lastChequeCreatedBlock";
|
|
805
|
+
readonly type: "uint256";
|
|
806
|
+
}, {
|
|
807
|
+
readonly name: "periodStartBlock";
|
|
808
|
+
readonly type: "uint256";
|
|
809
|
+
}];
|
|
810
|
+
}, {
|
|
811
|
+
readonly name: "_isExistingCheque";
|
|
812
|
+
readonly type: "bool";
|
|
813
|
+
}, {
|
|
814
|
+
readonly name: "_numActiveCheques";
|
|
815
|
+
readonly type: "uint256";
|
|
816
|
+
}, {
|
|
817
|
+
readonly name: "_isExistingPayee";
|
|
818
|
+
readonly type: "bool";
|
|
819
|
+
}, {
|
|
820
|
+
readonly name: "_timeLock";
|
|
821
|
+
readonly type: "uint256";
|
|
822
|
+
}, {
|
|
823
|
+
readonly name: "_recipient";
|
|
824
|
+
readonly type: "address";
|
|
825
|
+
}, {
|
|
826
|
+
readonly name: "_asset";
|
|
827
|
+
readonly type: "address";
|
|
828
|
+
}, {
|
|
829
|
+
readonly name: "_amount";
|
|
830
|
+
readonly type: "uint256";
|
|
831
|
+
}, {
|
|
832
|
+
readonly name: "_unlockNumBlocks";
|
|
833
|
+
readonly type: "uint256";
|
|
834
|
+
}, {
|
|
835
|
+
readonly name: "_expiryNumBlocks";
|
|
836
|
+
readonly type: "uint256";
|
|
837
|
+
}, {
|
|
838
|
+
readonly name: "_canManagerPay";
|
|
839
|
+
readonly type: "bool";
|
|
840
|
+
}, {
|
|
841
|
+
readonly name: "_canBePulled";
|
|
842
|
+
readonly type: "bool";
|
|
843
|
+
}, {
|
|
844
|
+
readonly name: "_creator";
|
|
845
|
+
readonly type: "address";
|
|
846
|
+
}, {
|
|
847
|
+
readonly name: "_usdValue";
|
|
848
|
+
readonly type: "uint256";
|
|
849
|
+
}, {
|
|
850
|
+
readonly name: "_isRecipientManager";
|
|
851
|
+
readonly type: "bool";
|
|
852
|
+
}];
|
|
853
|
+
readonly outputs: readonly [{
|
|
854
|
+
readonly name: "";
|
|
855
|
+
readonly type: "bool";
|
|
856
|
+
}];
|
|
586
857
|
}, {
|
|
587
858
|
readonly stateMutability: "nonpayable";
|
|
588
859
|
readonly type: "function";
|
|
@@ -648,12 +919,66 @@ export declare const abi: readonly [{
|
|
|
648
919
|
readonly name: "_canManagersCreateCheques";
|
|
649
920
|
readonly type: "bool";
|
|
650
921
|
}, {
|
|
651
|
-
readonly name: "_canManagerPay";
|
|
652
|
-
readonly type: "bool";
|
|
922
|
+
readonly name: "_canManagerPay";
|
|
923
|
+
readonly type: "bool";
|
|
924
|
+
}, {
|
|
925
|
+
readonly name: "_canBePulled";
|
|
926
|
+
readonly type: "bool";
|
|
927
|
+
}];
|
|
928
|
+
readonly outputs: readonly [{
|
|
929
|
+
readonly name: "";
|
|
930
|
+
readonly type: "bool";
|
|
931
|
+
}];
|
|
932
|
+
}, {
|
|
933
|
+
readonly stateMutability: "view";
|
|
934
|
+
readonly type: "function";
|
|
935
|
+
readonly name: "hasPendingChequeSettings";
|
|
936
|
+
readonly inputs: readonly [{
|
|
937
|
+
readonly name: "_userWallet";
|
|
938
|
+
readonly type: "address";
|
|
939
|
+
}];
|
|
940
|
+
readonly outputs: readonly [{
|
|
941
|
+
readonly name: "";
|
|
942
|
+
readonly type: "bool";
|
|
943
|
+
}];
|
|
944
|
+
}, {
|
|
945
|
+
readonly stateMutability: "view";
|
|
946
|
+
readonly type: "function";
|
|
947
|
+
readonly name: "pendingChequeSettingsMeta";
|
|
948
|
+
readonly inputs: readonly [{
|
|
949
|
+
readonly name: "_userWallet";
|
|
950
|
+
readonly type: "address";
|
|
951
|
+
}];
|
|
952
|
+
readonly outputs: readonly [{
|
|
953
|
+
readonly name: "";
|
|
954
|
+
readonly type: "uint256";
|
|
955
|
+
}, {
|
|
956
|
+
readonly name: "";
|
|
957
|
+
readonly type: "uint256";
|
|
653
958
|
}, {
|
|
654
|
-
readonly name: "
|
|
959
|
+
readonly name: "";
|
|
960
|
+
readonly type: "address";
|
|
961
|
+
}];
|
|
962
|
+
}, {
|
|
963
|
+
readonly stateMutability: "nonpayable";
|
|
964
|
+
readonly type: "function";
|
|
965
|
+
readonly name: "confirmPendingChequeSettings";
|
|
966
|
+
readonly inputs: readonly [{
|
|
967
|
+
readonly name: "_userWallet";
|
|
968
|
+
readonly type: "address";
|
|
969
|
+
}];
|
|
970
|
+
readonly outputs: readonly [{
|
|
971
|
+
readonly name: "";
|
|
655
972
|
readonly type: "bool";
|
|
656
973
|
}];
|
|
974
|
+
}, {
|
|
975
|
+
readonly stateMutability: "nonpayable";
|
|
976
|
+
readonly type: "function";
|
|
977
|
+
readonly name: "cancelPendingChequeSettings";
|
|
978
|
+
readonly inputs: readonly [{
|
|
979
|
+
readonly name: "_userWallet";
|
|
980
|
+
readonly type: "address";
|
|
981
|
+
}];
|
|
657
982
|
readonly outputs: readonly [{
|
|
658
983
|
readonly name: "";
|
|
659
984
|
readonly type: "bool";
|
|
@@ -738,6 +1063,9 @@ export declare const abi: readonly [{
|
|
|
738
1063
|
}, {
|
|
739
1064
|
readonly name: "isCreatorManager";
|
|
740
1065
|
readonly type: "bool";
|
|
1066
|
+
}, {
|
|
1067
|
+
readonly name: "isRecipientManager";
|
|
1068
|
+
readonly type: "bool";
|
|
741
1069
|
}, {
|
|
742
1070
|
readonly name: "managerSettings";
|
|
743
1071
|
readonly type: "tuple";
|
|
@@ -1076,202 +1404,6 @@ export declare const abi: readonly [{
|
|
|
1076
1404
|
readonly name: "";
|
|
1077
1405
|
readonly type: "uint256";
|
|
1078
1406
|
}];
|
|
1079
|
-
}, {
|
|
1080
|
-
readonly stateMutability: "nonpayable";
|
|
1081
|
-
readonly type: "constructor";
|
|
1082
|
-
readonly inputs: readonly [{
|
|
1083
|
-
readonly name: "_undyHq";
|
|
1084
|
-
readonly type: "address";
|
|
1085
|
-
}, {
|
|
1086
|
-
readonly name: "_minChequePeriod";
|
|
1087
|
-
readonly type: "uint256";
|
|
1088
|
-
}, {
|
|
1089
|
-
readonly name: "_maxChequePeriod";
|
|
1090
|
-
readonly type: "uint256";
|
|
1091
|
-
}, {
|
|
1092
|
-
readonly name: "_minExpensiveChequeDelay";
|
|
1093
|
-
readonly type: "uint256";
|
|
1094
|
-
}, {
|
|
1095
|
-
readonly name: "_maxUnlockBlocks";
|
|
1096
|
-
readonly type: "uint256";
|
|
1097
|
-
}, {
|
|
1098
|
-
readonly name: "_maxExpiryBlocks";
|
|
1099
|
-
readonly type: "uint256";
|
|
1100
|
-
}];
|
|
1101
|
-
readonly outputs: readonly [];
|
|
1102
|
-
}, {
|
|
1103
|
-
readonly name: "ChequeSettingsPending";
|
|
1104
|
-
readonly inputs: readonly [{
|
|
1105
|
-
readonly name: "user";
|
|
1106
|
-
readonly type: "address";
|
|
1107
|
-
readonly indexed: true;
|
|
1108
|
-
}, {
|
|
1109
|
-
readonly name: "initiatedBy";
|
|
1110
|
-
readonly type: "address";
|
|
1111
|
-
readonly indexed: true;
|
|
1112
|
-
}, {
|
|
1113
|
-
readonly name: "confirmBlock";
|
|
1114
|
-
readonly type: "uint256";
|
|
1115
|
-
readonly indexed: false;
|
|
1116
|
-
}, {
|
|
1117
|
-
readonly name: "maxNumActiveCheques";
|
|
1118
|
-
readonly type: "uint256";
|
|
1119
|
-
readonly indexed: false;
|
|
1120
|
-
}, {
|
|
1121
|
-
readonly name: "maxChequeUsdValue";
|
|
1122
|
-
readonly type: "uint256";
|
|
1123
|
-
readonly indexed: false;
|
|
1124
|
-
}, {
|
|
1125
|
-
readonly name: "instantUsdThreshold";
|
|
1126
|
-
readonly type: "uint256";
|
|
1127
|
-
readonly indexed: false;
|
|
1128
|
-
}, {
|
|
1129
|
-
readonly name: "perPeriodPaidUsdCap";
|
|
1130
|
-
readonly type: "uint256";
|
|
1131
|
-
readonly indexed: false;
|
|
1132
|
-
}, {
|
|
1133
|
-
readonly name: "maxNumChequesPaidPerPeriod";
|
|
1134
|
-
readonly type: "uint256";
|
|
1135
|
-
readonly indexed: false;
|
|
1136
|
-
}, {
|
|
1137
|
-
readonly name: "payCooldownBlocks";
|
|
1138
|
-
readonly type: "uint256";
|
|
1139
|
-
readonly indexed: false;
|
|
1140
|
-
}, {
|
|
1141
|
-
readonly name: "perPeriodCreatedUsdCap";
|
|
1142
|
-
readonly type: "uint256";
|
|
1143
|
-
readonly indexed: false;
|
|
1144
|
-
}, {
|
|
1145
|
-
readonly name: "maxNumChequesCreatedPerPeriod";
|
|
1146
|
-
readonly type: "uint256";
|
|
1147
|
-
readonly indexed: false;
|
|
1148
|
-
}, {
|
|
1149
|
-
readonly name: "createCooldownBlocks";
|
|
1150
|
-
readonly type: "uint256";
|
|
1151
|
-
readonly indexed: false;
|
|
1152
|
-
}, {
|
|
1153
|
-
readonly name: "periodLength";
|
|
1154
|
-
readonly type: "uint256";
|
|
1155
|
-
readonly indexed: false;
|
|
1156
|
-
}, {
|
|
1157
|
-
readonly name: "expensiveDelayBlocks";
|
|
1158
|
-
readonly type: "uint256";
|
|
1159
|
-
readonly indexed: false;
|
|
1160
|
-
}, {
|
|
1161
|
-
readonly name: "defaultExpiryBlocks";
|
|
1162
|
-
readonly type: "uint256";
|
|
1163
|
-
readonly indexed: false;
|
|
1164
|
-
}, {
|
|
1165
|
-
readonly name: "canManagersCreateCheques";
|
|
1166
|
-
readonly type: "bool";
|
|
1167
|
-
readonly indexed: false;
|
|
1168
|
-
}, {
|
|
1169
|
-
readonly name: "canManagerPay";
|
|
1170
|
-
readonly type: "bool";
|
|
1171
|
-
readonly indexed: false;
|
|
1172
|
-
}, {
|
|
1173
|
-
readonly name: "canBePulled";
|
|
1174
|
-
readonly type: "bool";
|
|
1175
|
-
readonly indexed: false;
|
|
1176
|
-
}];
|
|
1177
|
-
readonly anonymous: false;
|
|
1178
|
-
readonly type: "event";
|
|
1179
|
-
}, {
|
|
1180
|
-
readonly name: "ChequeSettingsPendingConfirmed";
|
|
1181
|
-
readonly inputs: readonly [{
|
|
1182
|
-
readonly name: "user";
|
|
1183
|
-
readonly type: "address";
|
|
1184
|
-
readonly indexed: true;
|
|
1185
|
-
}, {
|
|
1186
|
-
readonly name: "initiatedBlock";
|
|
1187
|
-
readonly type: "uint256";
|
|
1188
|
-
readonly indexed: false;
|
|
1189
|
-
}, {
|
|
1190
|
-
readonly name: "confirmBlock";
|
|
1191
|
-
readonly type: "uint256";
|
|
1192
|
-
readonly indexed: false;
|
|
1193
|
-
}, {
|
|
1194
|
-
readonly name: "confirmedBy";
|
|
1195
|
-
readonly type: "address";
|
|
1196
|
-
readonly indexed: true;
|
|
1197
|
-
}];
|
|
1198
|
-
readonly anonymous: false;
|
|
1199
|
-
readonly type: "event";
|
|
1200
|
-
}, {
|
|
1201
|
-
readonly name: "ChequeSettingsPendingCancelled";
|
|
1202
|
-
readonly inputs: readonly [{
|
|
1203
|
-
readonly name: "user";
|
|
1204
|
-
readonly type: "address";
|
|
1205
|
-
readonly indexed: true;
|
|
1206
|
-
}, {
|
|
1207
|
-
readonly name: "initiatedBlock";
|
|
1208
|
-
readonly type: "uint256";
|
|
1209
|
-
readonly indexed: false;
|
|
1210
|
-
}, {
|
|
1211
|
-
readonly name: "confirmBlock";
|
|
1212
|
-
readonly type: "uint256";
|
|
1213
|
-
readonly indexed: false;
|
|
1214
|
-
}, {
|
|
1215
|
-
readonly name: "cancelledBy";
|
|
1216
|
-
readonly type: "address";
|
|
1217
|
-
readonly indexed: true;
|
|
1218
|
-
}];
|
|
1219
|
-
readonly anonymous: false;
|
|
1220
|
-
readonly type: "event";
|
|
1221
|
-
}, {
|
|
1222
|
-
readonly stateMutability: "view";
|
|
1223
|
-
readonly type: "function";
|
|
1224
|
-
readonly name: "hasPendingChequeSettings";
|
|
1225
|
-
readonly inputs: readonly [{
|
|
1226
|
-
readonly name: "_userWallet";
|
|
1227
|
-
readonly type: "address";
|
|
1228
|
-
}];
|
|
1229
|
-
readonly outputs: readonly [{
|
|
1230
|
-
readonly name: "";
|
|
1231
|
-
readonly type: "bool";
|
|
1232
|
-
}];
|
|
1233
|
-
}, {
|
|
1234
|
-
readonly stateMutability: "view";
|
|
1235
|
-
readonly type: "function";
|
|
1236
|
-
readonly name: "pendingChequeSettingsMeta";
|
|
1237
|
-
readonly inputs: readonly [{
|
|
1238
|
-
readonly name: "_userWallet";
|
|
1239
|
-
readonly type: "address";
|
|
1240
|
-
}];
|
|
1241
|
-
readonly outputs: readonly [{
|
|
1242
|
-
readonly name: "";
|
|
1243
|
-
readonly type: "uint256";
|
|
1244
|
-
}, {
|
|
1245
|
-
readonly name: "";
|
|
1246
|
-
readonly type: "uint256";
|
|
1247
|
-
}, {
|
|
1248
|
-
readonly name: "";
|
|
1249
|
-
readonly type: "address";
|
|
1250
|
-
}];
|
|
1251
|
-
}, {
|
|
1252
|
-
readonly stateMutability: "nonpayable";
|
|
1253
|
-
readonly type: "function";
|
|
1254
|
-
readonly name: "confirmPendingChequeSettings";
|
|
1255
|
-
readonly inputs: readonly [{
|
|
1256
|
-
readonly name: "_userWallet";
|
|
1257
|
-
readonly type: "address";
|
|
1258
|
-
}];
|
|
1259
|
-
readonly outputs: readonly [{
|
|
1260
|
-
readonly name: "";
|
|
1261
|
-
readonly type: "bool";
|
|
1262
|
-
}];
|
|
1263
|
-
}, {
|
|
1264
|
-
readonly stateMutability: "nonpayable";
|
|
1265
|
-
readonly type: "function";
|
|
1266
|
-
readonly name: "cancelPendingChequeSettings";
|
|
1267
|
-
readonly inputs: readonly [{
|
|
1268
|
-
readonly name: "_userWallet";
|
|
1269
|
-
readonly type: "address";
|
|
1270
|
-
}];
|
|
1271
|
-
readonly outputs: readonly [{
|
|
1272
|
-
readonly name: "";
|
|
1273
|
-
readonly type: "bool";
|
|
1274
|
-
}];
|
|
1275
1407
|
}, {
|
|
1276
1408
|
readonly stateMutability: "view";
|
|
1277
1409
|
readonly type: "function";
|
|
@@ -1346,6 +1478,29 @@ export declare const abi: readonly [{
|
|
|
1346
1478
|
readonly type: "address";
|
|
1347
1479
|
}];
|
|
1348
1480
|
}];
|
|
1481
|
+
}, {
|
|
1482
|
+
readonly stateMutability: "nonpayable";
|
|
1483
|
+
readonly type: "constructor";
|
|
1484
|
+
readonly inputs: readonly [{
|
|
1485
|
+
readonly name: "_undyHq";
|
|
1486
|
+
readonly type: "address";
|
|
1487
|
+
}, {
|
|
1488
|
+
readonly name: "_minChequePeriod";
|
|
1489
|
+
readonly type: "uint256";
|
|
1490
|
+
}, {
|
|
1491
|
+
readonly name: "_maxChequePeriod";
|
|
1492
|
+
readonly type: "uint256";
|
|
1493
|
+
}, {
|
|
1494
|
+
readonly name: "_minExpensiveChequeDelay";
|
|
1495
|
+
readonly type: "uint256";
|
|
1496
|
+
}, {
|
|
1497
|
+
readonly name: "_maxUnlockBlocks";
|
|
1498
|
+
readonly type: "uint256";
|
|
1499
|
+
}, {
|
|
1500
|
+
readonly name: "_maxExpiryBlocks";
|
|
1501
|
+
readonly type: "uint256";
|
|
1502
|
+
}];
|
|
1503
|
+
readonly outputs: readonly [];
|
|
1349
1504
|
}];
|
|
1350
1505
|
export declare const deployAddress: Address | undefined;
|
|
1351
1506
|
export type Contract = {
|
|
@@ -1459,7 +1614,9 @@ export type Contract = {
|
|
|
1459
1614
|
totalUsdValueCreated: bigint;
|
|
1460
1615
|
lastChequeCreatedBlock: bigint;
|
|
1461
1616
|
periodStartBlock: bigint;
|
|
1462
|
-
}, isExistingCheque: boolean, numActiveCheques: bigint, isExistingPayee: boolean, timeLock: bigint, recipient: `0x${string}`, asset: `0x${string}`, amount: bigint, unlockNumBlocks: bigint, expiryNumBlocks: bigint, canManagerPay: boolean, canBePulled: boolean, creator: `0x${string}`, usdValue: bigint) => Promise<boolean>;
|
|
1617
|
+
}, isExistingCheque: boolean, numActiveCheques: bigint, isExistingPayee: boolean, timeLock: bigint, recipient: `0x${string}`, asset: `0x${string}`, amount: bigint, unlockNumBlocks: bigint, expiryNumBlocks: bigint, canManagerPay: boolean, canBePulled: boolean, creator: `0x${string}`, usdValue: bigint, isRecipientManager?: boolean) => Promise<boolean>;
|
|
1618
|
+
hasPendingChequeSettings: (userWallet: `0x${string}`) => Promise<boolean>;
|
|
1619
|
+
pendingChequeSettingsMeta: (userWallet: `0x${string}`) => Promise<[bigint, bigint, `0x${string}`]>;
|
|
1463
1620
|
isValidChequeSettings: (maxNumActiveCheques: bigint, maxChequeUsdValue: bigint, instantUsdThreshold: bigint, perPeriodPaidUsdCap: bigint, maxNumChequesPaidPerPeriod: bigint, payCooldownBlocks: bigint, perPeriodCreatedUsdCap: bigint, maxNumChequesCreatedPerPeriod: bigint, createCooldownBlocks: bigint, periodLength: bigint, expensiveDelayBlocks: bigint, defaultExpiryBlocks: bigint, timeLock: bigint) => Promise<boolean>;
|
|
1464
1621
|
getChequeConfig: (userWallet: `0x${string}`, creator: `0x${string}`, recipient: `0x${string}`) => Promise<{
|
|
1465
1622
|
wallet: `0x${string}`;
|
|
@@ -1467,6 +1624,7 @@ export type Contract = {
|
|
|
1467
1624
|
owner: `0x${string}`;
|
|
1468
1625
|
isRecipientOnWhitelist: boolean;
|
|
1469
1626
|
isCreatorManager: boolean;
|
|
1627
|
+
isRecipientManager: boolean;
|
|
1470
1628
|
managerSettings: {
|
|
1471
1629
|
startBlock: bigint;
|
|
1472
1630
|
expiryBlock: bigint;
|
|
@@ -1567,8 +1725,6 @@ export type Contract = {
|
|
|
1567
1725
|
MIN_EXPENSIVE_CHEQUE_DELAY: () => Promise<bigint>;
|
|
1568
1726
|
MAX_UNLOCK_BLOCKS: () => Promise<bigint>;
|
|
1569
1727
|
MAX_EXPIRY_BLOCKS: () => Promise<bigint>;
|
|
1570
|
-
hasPendingChequeSettings: (userWallet: `0x${string}`) => Promise<boolean>;
|
|
1571
|
-
pendingChequeSettingsMeta: (userWallet: `0x${string}`) => Promise<[bigint, bigint, `0x${string}`]>;
|
|
1572
1728
|
pendingChequeSettings: (arg0: `0x${string}`) => Promise<{
|
|
1573
1729
|
settings: {
|
|
1574
1730
|
maxNumActiveCheques: bigint;
|
|
@@ -1681,6 +1837,8 @@ export type SDK = {
|
|
|
1681
1837
|
};
|
|
1682
1838
|
canCreateCheque: (...args: ExtractArgs<Contract['calls']['canCreateCheque']>) => Promise<CallReturn<'canCreateCheque'>>;
|
|
1683
1839
|
isValidNewCheque: (...args: ExtractArgs<Contract['calls']['isValidNewCheque']>) => Promise<CallReturn<'isValidNewCheque'>>;
|
|
1840
|
+
hasPendingChequeSettings: (...args: ExtractArgs<Contract['calls']['hasPendingChequeSettings']>) => Promise<CallReturn<'hasPendingChequeSettings'>>;
|
|
1841
|
+
pendingChequeSettingsMeta: (...args: ExtractArgs<Contract['calls']['pendingChequeSettingsMeta']>) => Promise<CallReturn<'pendingChequeSettingsMeta'>>;
|
|
1684
1842
|
isValidChequeSettings: (...args: ExtractArgs<Contract['calls']['isValidChequeSettings']>) => Promise<CallReturn<'isValidChequeSettings'>>;
|
|
1685
1843
|
getChequeConfig: (...args: ExtractArgs<Contract['calls']['getChequeConfig']>) => Promise<CallReturn<'getChequeConfig'>>;
|
|
1686
1844
|
createDefaultChequeSettings: (...args: ExtractArgs<Contract['calls']['createDefaultChequeSettings']>) => Promise<CallReturn<'createDefaultChequeSettings'>>;
|
|
@@ -1690,8 +1848,6 @@ export type SDK = {
|
|
|
1690
1848
|
MIN_EXPENSIVE_CHEQUE_DELAY: (...args: ExtractArgs<Contract['calls']['MIN_EXPENSIVE_CHEQUE_DELAY']>) => Promise<CallReturn<'MIN_EXPENSIVE_CHEQUE_DELAY'>>;
|
|
1691
1849
|
MAX_UNLOCK_BLOCKS: (...args: ExtractArgs<Contract['calls']['MAX_UNLOCK_BLOCKS']>) => Promise<CallReturn<'MAX_UNLOCK_BLOCKS'>>;
|
|
1692
1850
|
MAX_EXPIRY_BLOCKS: (...args: ExtractArgs<Contract['calls']['MAX_EXPIRY_BLOCKS']>) => Promise<CallReturn<'MAX_EXPIRY_BLOCKS'>>;
|
|
1693
|
-
hasPendingChequeSettings: (...args: ExtractArgs<Contract['calls']['hasPendingChequeSettings']>) => Promise<CallReturn<'hasPendingChequeSettings'>>;
|
|
1694
|
-
pendingChequeSettingsMeta: (...args: ExtractArgs<Contract['calls']['pendingChequeSettingsMeta']>) => Promise<CallReturn<'pendingChequeSettingsMeta'>>;
|
|
1695
1851
|
pendingChequeSettings: (...args: ExtractArgs<Contract['calls']['pendingChequeSettings']>) => Promise<CallReturn<'pendingChequeSettings'>>;
|
|
1696
1852
|
createCheque: (...args: ExtractArgs<Contract['mutations']['createCheque']>) => Promise<Address>;
|
|
1697
1853
|
cancelCheque: (...args: ExtractArgs<Contract['mutations']['cancelCheque']>) => Promise<Address>;
|