@vaubanworks/sdk 0.0.0-stage → 0.2.0

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/abi.js ADDED
@@ -0,0 +1,938 @@
1
+ // generated by scripts/abi.py — do not edit
2
+ export const vaubanVaultAbi = [
3
+ {
4
+ "type": "constructor",
5
+ "inputs": [
6
+ {
7
+ "name": "owner_",
8
+ "type": "address",
9
+ "internalType": "address"
10
+ },
11
+ {
12
+ "name": "agent_",
13
+ "type": "address",
14
+ "internalType": "address"
15
+ },
16
+ {
17
+ "name": "gateDelay_",
18
+ "type": "uint64",
19
+ "internalType": "uint64"
20
+ }
21
+ ],
22
+ "stateMutability": "nonpayable"
23
+ },
24
+ {
25
+ "type": "receive",
26
+ "stateMutability": "payable"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "acceptOwnership",
31
+ "inputs": [],
32
+ "outputs": [],
33
+ "stateMutability": "nonpayable"
34
+ },
35
+ {
36
+ "type": "function",
37
+ "name": "agent",
38
+ "inputs": [],
39
+ "outputs": [
40
+ {
41
+ "name": "",
42
+ "type": "address",
43
+ "internalType": "address"
44
+ }
45
+ ],
46
+ "stateMutability": "view"
47
+ },
48
+ {
49
+ "type": "function",
50
+ "name": "allowed",
51
+ "inputs": [
52
+ {
53
+ "name": "target",
54
+ "type": "address",
55
+ "internalType": "address"
56
+ },
57
+ {
58
+ "name": "selector",
59
+ "type": "bytes4",
60
+ "internalType": "bytes4"
61
+ }
62
+ ],
63
+ "outputs": [
64
+ {
65
+ "name": "",
66
+ "type": "bool",
67
+ "internalType": "bool"
68
+ }
69
+ ],
70
+ "stateMutability": "view"
71
+ },
72
+ {
73
+ "type": "function",
74
+ "name": "allowedCount",
75
+ "inputs": [
76
+ {
77
+ "name": "target",
78
+ "type": "address",
79
+ "internalType": "address"
80
+ }
81
+ ],
82
+ "outputs": [
83
+ {
84
+ "name": "",
85
+ "type": "uint256",
86
+ "internalType": "uint256"
87
+ }
88
+ ],
89
+ "stateMutability": "view"
90
+ },
91
+ {
92
+ "type": "function",
93
+ "name": "cancel",
94
+ "inputs": [
95
+ {
96
+ "name": "id",
97
+ "type": "bytes32",
98
+ "internalType": "bytes32"
99
+ }
100
+ ],
101
+ "outputs": [],
102
+ "stateMutability": "nonpayable"
103
+ },
104
+ {
105
+ "type": "function",
106
+ "name": "execute",
107
+ "inputs": [
108
+ {
109
+ "name": "target",
110
+ "type": "address",
111
+ "internalType": "address"
112
+ },
113
+ {
114
+ "name": "value",
115
+ "type": "uint256",
116
+ "internalType": "uint256"
117
+ },
118
+ {
119
+ "name": "data",
120
+ "type": "bytes",
121
+ "internalType": "bytes"
122
+ }
123
+ ],
124
+ "outputs": [
125
+ {
126
+ "name": "heldId",
127
+ "type": "bytes32",
128
+ "internalType": "bytes32"
129
+ },
130
+ {
131
+ "name": "ret",
132
+ "type": "bytes",
133
+ "internalType": "bytes"
134
+ }
135
+ ],
136
+ "stateMutability": "nonpayable"
137
+ },
138
+ {
139
+ "type": "function",
140
+ "name": "freeze",
141
+ "inputs": [],
142
+ "outputs": [],
143
+ "stateMutability": "nonpayable"
144
+ },
145
+ {
146
+ "type": "function",
147
+ "name": "frozen",
148
+ "inputs": [],
149
+ "outputs": [
150
+ {
151
+ "name": "",
152
+ "type": "bool",
153
+ "internalType": "bool"
154
+ }
155
+ ],
156
+ "stateMutability": "view"
157
+ },
158
+ {
159
+ "type": "function",
160
+ "name": "gateDelay",
161
+ "inputs": [],
162
+ "outputs": [
163
+ {
164
+ "name": "",
165
+ "type": "uint64",
166
+ "internalType": "uint64"
167
+ }
168
+ ],
169
+ "stateMutability": "view"
170
+ },
171
+ {
172
+ "type": "function",
173
+ "name": "held",
174
+ "inputs": [
175
+ {
176
+ "name": "id",
177
+ "type": "bytes32",
178
+ "internalType": "bytes32"
179
+ }
180
+ ],
181
+ "outputs": [
182
+ {
183
+ "name": "callHash",
184
+ "type": "bytes32",
185
+ "internalType": "bytes32"
186
+ },
187
+ {
188
+ "name": "eta",
189
+ "type": "uint64",
190
+ "internalType": "uint64"
191
+ }
192
+ ],
193
+ "stateMutability": "view"
194
+ },
195
+ {
196
+ "type": "function",
197
+ "name": "limits",
198
+ "inputs": [
199
+ {
200
+ "name": "asset",
201
+ "type": "address",
202
+ "internalType": "address"
203
+ }
204
+ ],
205
+ "outputs": [
206
+ {
207
+ "name": "set",
208
+ "type": "bool",
209
+ "internalType": "bool"
210
+ },
211
+ {
212
+ "name": "perTx",
213
+ "type": "uint128",
214
+ "internalType": "uint128"
215
+ },
216
+ {
217
+ "name": "perHour",
218
+ "type": "uint128",
219
+ "internalType": "uint128"
220
+ },
221
+ {
222
+ "name": "perDay",
223
+ "type": "uint128",
224
+ "internalType": "uint128"
225
+ },
226
+ {
227
+ "name": "holdAbove",
228
+ "type": "uint128",
229
+ "internalType": "uint128"
230
+ }
231
+ ],
232
+ "stateMutability": "view"
233
+ },
234
+ {
235
+ "type": "function",
236
+ "name": "nonce",
237
+ "inputs": [],
238
+ "outputs": [
239
+ {
240
+ "name": "",
241
+ "type": "uint256",
242
+ "internalType": "uint256"
243
+ }
244
+ ],
245
+ "stateMutability": "view"
246
+ },
247
+ {
248
+ "type": "function",
249
+ "name": "owner",
250
+ "inputs": [],
251
+ "outputs": [
252
+ {
253
+ "name": "",
254
+ "type": "address",
255
+ "internalType": "address"
256
+ }
257
+ ],
258
+ "stateMutability": "view"
259
+ },
260
+ {
261
+ "type": "function",
262
+ "name": "ownerExecute",
263
+ "inputs": [
264
+ {
265
+ "name": "target",
266
+ "type": "address",
267
+ "internalType": "address"
268
+ },
269
+ {
270
+ "name": "value",
271
+ "type": "uint256",
272
+ "internalType": "uint256"
273
+ },
274
+ {
275
+ "name": "data",
276
+ "type": "bytes",
277
+ "internalType": "bytes"
278
+ }
279
+ ],
280
+ "outputs": [
281
+ {
282
+ "name": "ret",
283
+ "type": "bytes",
284
+ "internalType": "bytes"
285
+ }
286
+ ],
287
+ "stateMutability": "nonpayable"
288
+ },
289
+ {
290
+ "type": "function",
291
+ "name": "pendingOwner",
292
+ "inputs": [],
293
+ "outputs": [
294
+ {
295
+ "name": "",
296
+ "type": "address",
297
+ "internalType": "address"
298
+ }
299
+ ],
300
+ "stateMutability": "view"
301
+ },
302
+ {
303
+ "type": "function",
304
+ "name": "release",
305
+ "inputs": [
306
+ {
307
+ "name": "id",
308
+ "type": "bytes32",
309
+ "internalType": "bytes32"
310
+ },
311
+ {
312
+ "name": "target",
313
+ "type": "address",
314
+ "internalType": "address"
315
+ },
316
+ {
317
+ "name": "value",
318
+ "type": "uint256",
319
+ "internalType": "uint256"
320
+ },
321
+ {
322
+ "name": "data",
323
+ "type": "bytes",
324
+ "internalType": "bytes"
325
+ }
326
+ ],
327
+ "outputs": [
328
+ {
329
+ "name": "ret",
330
+ "type": "bytes",
331
+ "internalType": "bytes"
332
+ }
333
+ ],
334
+ "stateMutability": "nonpayable"
335
+ },
336
+ {
337
+ "type": "function",
338
+ "name": "revision",
339
+ "inputs": [],
340
+ "outputs": [
341
+ {
342
+ "name": "",
343
+ "type": "uint64",
344
+ "internalType": "uint64"
345
+ }
346
+ ],
347
+ "stateMutability": "view"
348
+ },
349
+ {
350
+ "type": "function",
351
+ "name": "rule",
352
+ "inputs": [
353
+ {
354
+ "name": "target",
355
+ "type": "address",
356
+ "internalType": "address"
357
+ },
358
+ {
359
+ "name": "value",
360
+ "type": "uint256",
361
+ "internalType": "uint256"
362
+ },
363
+ {
364
+ "name": "data",
365
+ "type": "bytes",
366
+ "internalType": "bytes"
367
+ }
368
+ ],
369
+ "outputs": [
370
+ {
371
+ "name": "",
372
+ "type": "uint8",
373
+ "internalType": "uint8"
374
+ }
375
+ ],
376
+ "stateMutability": "view"
377
+ },
378
+ {
379
+ "type": "function",
380
+ "name": "setAgent",
381
+ "inputs": [
382
+ {
383
+ "name": "agent_",
384
+ "type": "address",
385
+ "internalType": "address"
386
+ }
387
+ ],
388
+ "outputs": [],
389
+ "stateMutability": "nonpayable"
390
+ },
391
+ {
392
+ "type": "function",
393
+ "name": "setAllowed",
394
+ "inputs": [
395
+ {
396
+ "name": "target",
397
+ "type": "address",
398
+ "internalType": "address"
399
+ },
400
+ {
401
+ "name": "selectors",
402
+ "type": "bytes4[]",
403
+ "internalType": "bytes4[]"
404
+ },
405
+ {
406
+ "name": "ok",
407
+ "type": "bool",
408
+ "internalType": "bool"
409
+ }
410
+ ],
411
+ "outputs": [],
412
+ "stateMutability": "nonpayable"
413
+ },
414
+ {
415
+ "type": "function",
416
+ "name": "setGateDelay",
417
+ "inputs": [
418
+ {
419
+ "name": "delay",
420
+ "type": "uint64",
421
+ "internalType": "uint64"
422
+ }
423
+ ],
424
+ "outputs": [],
425
+ "stateMutability": "nonpayable"
426
+ },
427
+ {
428
+ "type": "function",
429
+ "name": "setLimits",
430
+ "inputs": [
431
+ {
432
+ "name": "asset",
433
+ "type": "address",
434
+ "internalType": "address"
435
+ },
436
+ {
437
+ "name": "l",
438
+ "type": "tuple",
439
+ "internalType": "struct VaubanVault.Limits",
440
+ "components": [
441
+ {
442
+ "name": "set",
443
+ "type": "bool",
444
+ "internalType": "bool"
445
+ },
446
+ {
447
+ "name": "perTx",
448
+ "type": "uint128",
449
+ "internalType": "uint128"
450
+ },
451
+ {
452
+ "name": "perHour",
453
+ "type": "uint128",
454
+ "internalType": "uint128"
455
+ },
456
+ {
457
+ "name": "perDay",
458
+ "type": "uint128",
459
+ "internalType": "uint128"
460
+ },
461
+ {
462
+ "name": "holdAbove",
463
+ "type": "uint128",
464
+ "internalType": "uint128"
465
+ }
466
+ ]
467
+ }
468
+ ],
469
+ "outputs": [],
470
+ "stateMutability": "nonpayable"
471
+ },
472
+ {
473
+ "type": "function",
474
+ "name": "spent",
475
+ "inputs": [
476
+ {
477
+ "name": "asset",
478
+ "type": "address",
479
+ "internalType": "address"
480
+ }
481
+ ],
482
+ "outputs": [
483
+ {
484
+ "name": "hourEpoch",
485
+ "type": "uint64",
486
+ "internalType": "uint64"
487
+ },
488
+ {
489
+ "name": "dayEpoch",
490
+ "type": "uint64",
491
+ "internalType": "uint64"
492
+ },
493
+ {
494
+ "name": "hourSpent",
495
+ "type": "uint128",
496
+ "internalType": "uint128"
497
+ },
498
+ {
499
+ "name": "daySpent",
500
+ "type": "uint128",
501
+ "internalType": "uint128"
502
+ }
503
+ ],
504
+ "stateMutability": "view"
505
+ },
506
+ {
507
+ "type": "function",
508
+ "name": "transferOwnership",
509
+ "inputs": [
510
+ {
511
+ "name": "to",
512
+ "type": "address",
513
+ "internalType": "address"
514
+ }
515
+ ],
516
+ "outputs": [],
517
+ "stateMutability": "nonpayable"
518
+ },
519
+ {
520
+ "type": "function",
521
+ "name": "unfreeze",
522
+ "inputs": [],
523
+ "outputs": [],
524
+ "stateMutability": "nonpayable"
525
+ },
526
+ {
527
+ "type": "event",
528
+ "name": "AgentSet",
529
+ "inputs": [
530
+ {
531
+ "name": "agent",
532
+ "type": "address",
533
+ "indexed": true,
534
+ "internalType": "address"
535
+ }
536
+ ],
537
+ "anonymous": false
538
+ },
539
+ {
540
+ "type": "event",
541
+ "name": "Cancelled",
542
+ "inputs": [
543
+ {
544
+ "name": "id",
545
+ "type": "bytes32",
546
+ "indexed": true,
547
+ "internalType": "bytes32"
548
+ }
549
+ ],
550
+ "anonymous": false
551
+ },
552
+ {
553
+ "type": "event",
554
+ "name": "Frozen",
555
+ "inputs": [
556
+ {
557
+ "name": "frozen",
558
+ "type": "bool",
559
+ "indexed": false,
560
+ "internalType": "bool"
561
+ }
562
+ ],
563
+ "anonymous": false
564
+ },
565
+ {
566
+ "type": "event",
567
+ "name": "HeldAtGate",
568
+ "inputs": [
569
+ {
570
+ "name": "id",
571
+ "type": "bytes32",
572
+ "indexed": true,
573
+ "internalType": "bytes32"
574
+ },
575
+ {
576
+ "name": "target",
577
+ "type": "address",
578
+ "indexed": true,
579
+ "internalType": "address"
580
+ },
581
+ {
582
+ "name": "value",
583
+ "type": "uint256",
584
+ "indexed": false,
585
+ "internalType": "uint256"
586
+ },
587
+ {
588
+ "name": "data",
589
+ "type": "bytes",
590
+ "indexed": false,
591
+ "internalType": "bytes"
592
+ },
593
+ {
594
+ "name": "eta",
595
+ "type": "uint64",
596
+ "indexed": false,
597
+ "internalType": "uint64"
598
+ }
599
+ ],
600
+ "anonymous": false
601
+ },
602
+ {
603
+ "type": "event",
604
+ "name": "LimitsSet",
605
+ "inputs": [
606
+ {
607
+ "name": "asset",
608
+ "type": "address",
609
+ "indexed": true,
610
+ "internalType": "address"
611
+ },
612
+ {
613
+ "name": "set",
614
+ "type": "bool",
615
+ "indexed": false,
616
+ "internalType": "bool"
617
+ },
618
+ {
619
+ "name": "perTx",
620
+ "type": "uint128",
621
+ "indexed": false,
622
+ "internalType": "uint128"
623
+ },
624
+ {
625
+ "name": "perHour",
626
+ "type": "uint128",
627
+ "indexed": false,
628
+ "internalType": "uint128"
629
+ },
630
+ {
631
+ "name": "perDay",
632
+ "type": "uint128",
633
+ "indexed": false,
634
+ "internalType": "uint128"
635
+ },
636
+ {
637
+ "name": "holdAbove",
638
+ "type": "uint128",
639
+ "indexed": false,
640
+ "internalType": "uint128"
641
+ }
642
+ ],
643
+ "anonymous": false
644
+ },
645
+ {
646
+ "type": "event",
647
+ "name": "Listed",
648
+ "inputs": [
649
+ {
650
+ "name": "target",
651
+ "type": "address",
652
+ "indexed": true,
653
+ "internalType": "address"
654
+ },
655
+ {
656
+ "name": "selector",
657
+ "type": "bytes4",
658
+ "indexed": true,
659
+ "internalType": "bytes4"
660
+ },
661
+ {
662
+ "name": "ok",
663
+ "type": "bool",
664
+ "indexed": false,
665
+ "internalType": "bool"
666
+ }
667
+ ],
668
+ "anonymous": false
669
+ },
670
+ {
671
+ "type": "event",
672
+ "name": "OwnershipTransferStarted",
673
+ "inputs": [
674
+ {
675
+ "name": "from",
676
+ "type": "address",
677
+ "indexed": true,
678
+ "internalType": "address"
679
+ },
680
+ {
681
+ "name": "to",
682
+ "type": "address",
683
+ "indexed": true,
684
+ "internalType": "address"
685
+ }
686
+ ],
687
+ "anonymous": false
688
+ },
689
+ {
690
+ "type": "event",
691
+ "name": "OwnershipTransferred",
692
+ "inputs": [
693
+ {
694
+ "name": "from",
695
+ "type": "address",
696
+ "indexed": true,
697
+ "internalType": "address"
698
+ },
699
+ {
700
+ "name": "to",
701
+ "type": "address",
702
+ "indexed": true,
703
+ "internalType": "address"
704
+ }
705
+ ],
706
+ "anonymous": false
707
+ },
708
+ {
709
+ "type": "event",
710
+ "name": "Passed",
711
+ "inputs": [
712
+ {
713
+ "name": "target",
714
+ "type": "address",
715
+ "indexed": true,
716
+ "internalType": "address"
717
+ },
718
+ {
719
+ "name": "selector",
720
+ "type": "bytes4",
721
+ "indexed": true,
722
+ "internalType": "bytes4"
723
+ },
724
+ {
725
+ "name": "value",
726
+ "type": "uint256",
727
+ "indexed": false,
728
+ "internalType": "uint256"
729
+ },
730
+ {
731
+ "name": "heldId",
732
+ "type": "bytes32",
733
+ "indexed": false,
734
+ "internalType": "bytes32"
735
+ }
736
+ ],
737
+ "anonymous": false
738
+ },
739
+ {
740
+ "type": "event",
741
+ "name": "PolicyRevised",
742
+ "inputs": [
743
+ {
744
+ "name": "revision",
745
+ "type": "uint64",
746
+ "indexed": true,
747
+ "internalType": "uint64"
748
+ }
749
+ ],
750
+ "anonymous": false
751
+ },
752
+ {
753
+ "type": "error",
754
+ "name": "CallFailed",
755
+ "inputs": [
756
+ {
757
+ "name": "reason",
758
+ "type": "bytes",
759
+ "internalType": "bytes"
760
+ }
761
+ ]
762
+ },
763
+ {
764
+ "type": "error",
765
+ "name": "CurtainNotListed",
766
+ "inputs": [
767
+ {
768
+ "name": "target",
769
+ "type": "address",
770
+ "internalType": "address"
771
+ },
772
+ {
773
+ "name": "selector",
774
+ "type": "bytes4",
775
+ "internalType": "bytes4"
776
+ }
777
+ ]
778
+ },
779
+ {
780
+ "type": "error",
781
+ "name": "CurtainSelfCall",
782
+ "inputs": []
783
+ },
784
+ {
785
+ "type": "error",
786
+ "name": "CurtainUnknownSpender",
787
+ "inputs": [
788
+ {
789
+ "name": "spender",
790
+ "type": "address",
791
+ "internalType": "address"
792
+ }
793
+ ]
794
+ },
795
+ {
796
+ "type": "error",
797
+ "name": "CurtainUnlimitedApproval",
798
+ "inputs": []
799
+ },
800
+ {
801
+ "type": "error",
802
+ "name": "DitchPerDay",
803
+ "inputs": [
804
+ {
805
+ "name": "asset",
806
+ "type": "address",
807
+ "internalType": "address"
808
+ },
809
+ {
810
+ "name": "wouldBe",
811
+ "type": "uint256",
812
+ "internalType": "uint256"
813
+ },
814
+ {
815
+ "name": "cap",
816
+ "type": "uint256",
817
+ "internalType": "uint256"
818
+ }
819
+ ]
820
+ },
821
+ {
822
+ "type": "error",
823
+ "name": "DitchPerHour",
824
+ "inputs": [
825
+ {
826
+ "name": "asset",
827
+ "type": "address",
828
+ "internalType": "address"
829
+ },
830
+ {
831
+ "name": "wouldBe",
832
+ "type": "uint256",
833
+ "internalType": "uint256"
834
+ },
835
+ {
836
+ "name": "cap",
837
+ "type": "uint256",
838
+ "internalType": "uint256"
839
+ }
840
+ ]
841
+ },
842
+ {
843
+ "type": "error",
844
+ "name": "DitchPerTx",
845
+ "inputs": [
846
+ {
847
+ "name": "asset",
848
+ "type": "address",
849
+ "internalType": "address"
850
+ },
851
+ {
852
+ "name": "amount",
853
+ "type": "uint256",
854
+ "internalType": "uint256"
855
+ },
856
+ {
857
+ "name": "cap",
858
+ "type": "uint256",
859
+ "internalType": "uint256"
860
+ }
861
+ ]
862
+ },
863
+ {
864
+ "type": "error",
865
+ "name": "DitchUncapped",
866
+ "inputs": [
867
+ {
868
+ "name": "asset",
869
+ "type": "address",
870
+ "internalType": "address"
871
+ }
872
+ ]
873
+ },
874
+ {
875
+ "type": "error",
876
+ "name": "GateMismatch",
877
+ "inputs": [
878
+ {
879
+ "name": "id",
880
+ "type": "bytes32",
881
+ "internalType": "bytes32"
882
+ }
883
+ ]
884
+ },
885
+ {
886
+ "type": "error",
887
+ "name": "GateNotYet",
888
+ "inputs": [
889
+ {
890
+ "name": "id",
891
+ "type": "bytes32",
892
+ "internalType": "bytes32"
893
+ },
894
+ {
895
+ "name": "eta",
896
+ "type": "uint64",
897
+ "internalType": "uint64"
898
+ }
899
+ ]
900
+ },
901
+ {
902
+ "type": "error",
903
+ "name": "GateUnknown",
904
+ "inputs": [
905
+ {
906
+ "name": "id",
907
+ "type": "bytes32",
908
+ "internalType": "bytes32"
909
+ }
910
+ ]
911
+ },
912
+ {
913
+ "type": "error",
914
+ "name": "KeepSealed",
915
+ "inputs": []
916
+ },
917
+ {
918
+ "type": "error",
919
+ "name": "NotAgent",
920
+ "inputs": []
921
+ },
922
+ {
923
+ "type": "error",
924
+ "name": "NotOwner",
925
+ "inputs": []
926
+ },
927
+ {
928
+ "type": "error",
929
+ "name": "Reentrant",
930
+ "inputs": []
931
+ },
932
+ {
933
+ "type": "error",
934
+ "name": "ZeroAddress",
935
+ "inputs": []
936
+ }
937
+ ];
938
+ //# sourceMappingURL=abi.js.map