@gitmyabi/nounsdaoexecutor 1.0.0 → 1.0.1
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/README.md +5 -5
- package/contracts/{NounsDAOExecutorV2_json.d.ts → NounsDAOExecutor_json.d.ts} +17 -392
- package/contracts/{NounsDAOExecutorV2_json.js → NounsDAOExecutor_json.js} +21 -398
- package/contracts/{NounsDAOExecutorV2_json.ts → NounsDAOExecutor_json.ts} +25 -519
- package/contracts/index.d.ts +2 -4
- package/contracts/index.js +4 -7
- package/contracts/index.ts +2 -4
- package/package.json +3 -3
- package/contracts/NounsDAOExecutorProxy_json.d.ts +0 -169
- package/contracts/NounsDAOExecutorProxy_json.js +0 -221
- package/contracts/NounsDAOExecutorProxy_json.ts +0 -251
|
@@ -1,49 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NounsDAOExecutor_json = exports.NounsDAOExecutor_jsonAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* NounsDAOExecutor_json ABI
|
|
7
7
|
*
|
|
8
8
|
* This ABI is typed using viem's type system for full type safety.
|
|
9
9
|
*/
|
|
10
|
-
exports.
|
|
10
|
+
exports.NounsDAOExecutor_jsonAbi = [
|
|
11
11
|
{
|
|
12
|
-
"inputs": [],
|
|
13
|
-
"stateMutability": "nonpayable",
|
|
14
|
-
"type": "constructor"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"anonymous": false,
|
|
18
12
|
"inputs": [
|
|
19
13
|
{
|
|
20
|
-
"indexed": false,
|
|
21
14
|
"internalType": "address",
|
|
22
|
-
"name": "
|
|
15
|
+
"name": "admin_",
|
|
23
16
|
"type": "address"
|
|
24
17
|
},
|
|
25
18
|
{
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"type": "address"
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
"name": "AdminChanged",
|
|
33
|
-
"type": "event"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"anonymous": false,
|
|
37
|
-
"inputs": [
|
|
38
|
-
{
|
|
39
|
-
"indexed": true,
|
|
40
|
-
"internalType": "address",
|
|
41
|
-
"name": "beacon",
|
|
42
|
-
"type": "address"
|
|
19
|
+
"internalType": "uint256",
|
|
20
|
+
"name": "delay_",
|
|
21
|
+
"type": "uint256"
|
|
43
22
|
}
|
|
44
23
|
],
|
|
45
|
-
"
|
|
46
|
-
"type": "
|
|
24
|
+
"stateMutability": "nonpayable",
|
|
25
|
+
"type": "constructor"
|
|
47
26
|
},
|
|
48
27
|
{
|
|
49
28
|
"anonymous": false,
|
|
@@ -88,50 +67,6 @@ exports.NounsDAOExecutorV2_jsonAbi = [
|
|
|
88
67
|
"name": "CancelTransaction",
|
|
89
68
|
"type": "event"
|
|
90
69
|
},
|
|
91
|
-
{
|
|
92
|
-
"anonymous": false,
|
|
93
|
-
"inputs": [
|
|
94
|
-
{
|
|
95
|
-
"indexed": true,
|
|
96
|
-
"internalType": "address",
|
|
97
|
-
"name": "to",
|
|
98
|
-
"type": "address"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"indexed": true,
|
|
102
|
-
"internalType": "address",
|
|
103
|
-
"name": "erc20Token",
|
|
104
|
-
"type": "address"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"indexed": false,
|
|
108
|
-
"internalType": "uint256",
|
|
109
|
-
"name": "amount",
|
|
110
|
-
"type": "uint256"
|
|
111
|
-
}
|
|
112
|
-
],
|
|
113
|
-
"name": "ERC20Sent",
|
|
114
|
-
"type": "event"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"anonymous": false,
|
|
118
|
-
"inputs": [
|
|
119
|
-
{
|
|
120
|
-
"indexed": true,
|
|
121
|
-
"internalType": "address",
|
|
122
|
-
"name": "to",
|
|
123
|
-
"type": "address"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"indexed": false,
|
|
127
|
-
"internalType": "uint256",
|
|
128
|
-
"name": "amount",
|
|
129
|
-
"type": "uint256"
|
|
130
|
-
}
|
|
131
|
-
],
|
|
132
|
-
"name": "ETHSent",
|
|
133
|
-
"type": "event"
|
|
134
|
-
},
|
|
135
70
|
{
|
|
136
71
|
"anonymous": false,
|
|
137
72
|
"inputs": [
|
|
@@ -257,19 +192,6 @@ exports.NounsDAOExecutorV2_jsonAbi = [
|
|
|
257
192
|
"name": "QueueTransaction",
|
|
258
193
|
"type": "event"
|
|
259
194
|
},
|
|
260
|
-
{
|
|
261
|
-
"anonymous": false,
|
|
262
|
-
"inputs": [
|
|
263
|
-
{
|
|
264
|
-
"indexed": true,
|
|
265
|
-
"internalType": "address",
|
|
266
|
-
"name": "implementation",
|
|
267
|
-
"type": "address"
|
|
268
|
-
}
|
|
269
|
-
],
|
|
270
|
-
"name": "Upgraded",
|
|
271
|
-
"type": "event"
|
|
272
|
-
},
|
|
273
195
|
{
|
|
274
196
|
"stateMutability": "payable",
|
|
275
197
|
"type": "fallback"
|
|
@@ -313,19 +235,6 @@ exports.NounsDAOExecutorV2_jsonAbi = [
|
|
|
313
235
|
"stateMutability": "view",
|
|
314
236
|
"type": "function"
|
|
315
237
|
},
|
|
316
|
-
{
|
|
317
|
-
"inputs": [],
|
|
318
|
-
"name": "NAME",
|
|
319
|
-
"outputs": [
|
|
320
|
-
{
|
|
321
|
-
"internalType": "string",
|
|
322
|
-
"name": "",
|
|
323
|
-
"type": "string"
|
|
324
|
-
}
|
|
325
|
-
],
|
|
326
|
-
"stateMutability": "view",
|
|
327
|
-
"type": "function"
|
|
328
|
-
},
|
|
329
238
|
{
|
|
330
239
|
"inputs": [],
|
|
331
240
|
"name": "acceptAdmin",
|
|
@@ -431,24 +340,6 @@ exports.NounsDAOExecutorV2_jsonAbi = [
|
|
|
431
340
|
"stateMutability": "nonpayable",
|
|
432
341
|
"type": "function"
|
|
433
342
|
},
|
|
434
|
-
{
|
|
435
|
-
"inputs": [
|
|
436
|
-
{
|
|
437
|
-
"internalType": "address",
|
|
438
|
-
"name": "admin_",
|
|
439
|
-
"type": "address"
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
"internalType": "uint256",
|
|
443
|
-
"name": "delay_",
|
|
444
|
-
"type": "uint256"
|
|
445
|
-
}
|
|
446
|
-
],
|
|
447
|
-
"name": "initialize",
|
|
448
|
-
"outputs": [],
|
|
449
|
-
"stateMutability": "nonpayable",
|
|
450
|
-
"type": "function"
|
|
451
|
-
},
|
|
452
343
|
{
|
|
453
344
|
"inputs": [],
|
|
454
345
|
"name": "pendingAdmin",
|
|
@@ -520,47 +411,6 @@ exports.NounsDAOExecutorV2_jsonAbi = [
|
|
|
520
411
|
"stateMutability": "view",
|
|
521
412
|
"type": "function"
|
|
522
413
|
},
|
|
523
|
-
{
|
|
524
|
-
"inputs": [
|
|
525
|
-
{
|
|
526
|
-
"internalType": "address",
|
|
527
|
-
"name": "recipient",
|
|
528
|
-
"type": "address"
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
"internalType": "address",
|
|
532
|
-
"name": "erc20Token",
|
|
533
|
-
"type": "address"
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
"internalType": "uint256",
|
|
537
|
-
"name": "tokensToSend",
|
|
538
|
-
"type": "uint256"
|
|
539
|
-
}
|
|
540
|
-
],
|
|
541
|
-
"name": "sendERC20",
|
|
542
|
-
"outputs": [],
|
|
543
|
-
"stateMutability": "nonpayable",
|
|
544
|
-
"type": "function"
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
"inputs": [
|
|
548
|
-
{
|
|
549
|
-
"internalType": "address payable",
|
|
550
|
-
"name": "recipient",
|
|
551
|
-
"type": "address"
|
|
552
|
-
},
|
|
553
|
-
{
|
|
554
|
-
"internalType": "uint256",
|
|
555
|
-
"name": "ethToSend",
|
|
556
|
-
"type": "uint256"
|
|
557
|
-
}
|
|
558
|
-
],
|
|
559
|
-
"name": "sendETH",
|
|
560
|
-
"outputs": [],
|
|
561
|
-
"stateMutability": "nonpayable",
|
|
562
|
-
"type": "function"
|
|
563
|
-
},
|
|
564
414
|
{
|
|
565
415
|
"inputs": [
|
|
566
416
|
{
|
|
@@ -587,44 +437,13 @@ exports.NounsDAOExecutorV2_jsonAbi = [
|
|
|
587
437
|
"stateMutability": "nonpayable",
|
|
588
438
|
"type": "function"
|
|
589
439
|
},
|
|
590
|
-
{
|
|
591
|
-
"inputs": [
|
|
592
|
-
{
|
|
593
|
-
"internalType": "address",
|
|
594
|
-
"name": "newImplementation",
|
|
595
|
-
"type": "address"
|
|
596
|
-
}
|
|
597
|
-
],
|
|
598
|
-
"name": "upgradeTo",
|
|
599
|
-
"outputs": [],
|
|
600
|
-
"stateMutability": "nonpayable",
|
|
601
|
-
"type": "function"
|
|
602
|
-
},
|
|
603
|
-
{
|
|
604
|
-
"inputs": [
|
|
605
|
-
{
|
|
606
|
-
"internalType": "address",
|
|
607
|
-
"name": "newImplementation",
|
|
608
|
-
"type": "address"
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
"internalType": "bytes",
|
|
612
|
-
"name": "data",
|
|
613
|
-
"type": "bytes"
|
|
614
|
-
}
|
|
615
|
-
],
|
|
616
|
-
"name": "upgradeToAndCall",
|
|
617
|
-
"outputs": [],
|
|
618
|
-
"stateMutability": "payable",
|
|
619
|
-
"type": "function"
|
|
620
|
-
},
|
|
621
440
|
{
|
|
622
441
|
"stateMutability": "payable",
|
|
623
442
|
"type": "receive"
|
|
624
443
|
}
|
|
625
444
|
];
|
|
626
445
|
/**
|
|
627
|
-
*
|
|
446
|
+
* NounsDAOExecutor_json Contract Class
|
|
628
447
|
*
|
|
629
448
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
630
449
|
*
|
|
@@ -632,12 +451,12 @@ exports.NounsDAOExecutorV2_jsonAbi = [
|
|
|
632
451
|
* ```typescript
|
|
633
452
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
634
453
|
* import { mainnet } from 'viem/chains';
|
|
635
|
-
* import {
|
|
454
|
+
* import { NounsDAOExecutor_json } from 'NounsDAOExecutor_json';
|
|
636
455
|
*
|
|
637
456
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
638
457
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
639
458
|
*
|
|
640
|
-
* const contract = new
|
|
459
|
+
* const contract = new NounsDAOExecutor_json('0x...', { publicClient, walletClient });
|
|
641
460
|
*
|
|
642
461
|
* // Read functions
|
|
643
462
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -655,13 +474,13 @@ exports.NounsDAOExecutorV2_jsonAbi = [
|
|
|
655
474
|
* });
|
|
656
475
|
* ```
|
|
657
476
|
*/
|
|
658
|
-
class
|
|
477
|
+
class NounsDAOExecutor_json {
|
|
659
478
|
constructor(address, clients) {
|
|
660
479
|
this.contractAddress = address;
|
|
661
480
|
this.publicClient = clients.publicClient;
|
|
662
481
|
this.contract = (0, viem_1.getContract)({
|
|
663
482
|
address,
|
|
664
|
-
abi: exports.
|
|
483
|
+
abi: exports.NounsDAOExecutor_jsonAbi,
|
|
665
484
|
client: {
|
|
666
485
|
public: clients.publicClient,
|
|
667
486
|
wallet: clients.walletClient,
|
|
@@ -701,13 +520,6 @@ class NounsDAOExecutorV2_json {
|
|
|
701
520
|
async MINIMUM_DELAY() {
|
|
702
521
|
return this.contract.read.MINIMUM_DELAY();
|
|
703
522
|
}
|
|
704
|
-
/**
|
|
705
|
-
* NAME
|
|
706
|
-
* view
|
|
707
|
-
*/
|
|
708
|
-
async NAME() {
|
|
709
|
-
return this.contract.read.NAME();
|
|
710
|
-
}
|
|
711
523
|
/**
|
|
712
524
|
* admin
|
|
713
525
|
* view
|
|
@@ -769,17 +581,6 @@ class NounsDAOExecutorV2_json {
|
|
|
769
581
|
}
|
|
770
582
|
return this.contract.write.executeTransaction([target, value, signature, data, eta], options);
|
|
771
583
|
}
|
|
772
|
-
/**
|
|
773
|
-
* initialize
|
|
774
|
-
* nonpayable
|
|
775
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
776
|
-
*/
|
|
777
|
-
async initialize(admin_, delay_, options) {
|
|
778
|
-
if (!this.contract.write) {
|
|
779
|
-
throw new Error('Wallet client is required for write operations');
|
|
780
|
-
}
|
|
781
|
-
return this.contract.write.initialize([admin_, delay_], options);
|
|
782
|
-
}
|
|
783
584
|
/**
|
|
784
585
|
* queueTransaction
|
|
785
586
|
* nonpayable
|
|
@@ -791,28 +592,6 @@ class NounsDAOExecutorV2_json {
|
|
|
791
592
|
}
|
|
792
593
|
return this.contract.write.queueTransaction([target, value, signature, data, eta], options);
|
|
793
594
|
}
|
|
794
|
-
/**
|
|
795
|
-
* sendERC20
|
|
796
|
-
* nonpayable
|
|
797
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
798
|
-
*/
|
|
799
|
-
async sendERC20(recipient, erc20Token, tokensToSend, options) {
|
|
800
|
-
if (!this.contract.write) {
|
|
801
|
-
throw new Error('Wallet client is required for write operations');
|
|
802
|
-
}
|
|
803
|
-
return this.contract.write.sendERC20([recipient, erc20Token, tokensToSend], options);
|
|
804
|
-
}
|
|
805
|
-
/**
|
|
806
|
-
* sendETH
|
|
807
|
-
* nonpayable
|
|
808
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
809
|
-
*/
|
|
810
|
-
async sendETH(recipient, ethToSend, options) {
|
|
811
|
-
if (!this.contract.write) {
|
|
812
|
-
throw new Error('Wallet client is required for write operations');
|
|
813
|
-
}
|
|
814
|
-
return this.contract.write.sendETH([recipient, ethToSend], options);
|
|
815
|
-
}
|
|
816
595
|
/**
|
|
817
596
|
* setDelay
|
|
818
597
|
* nonpayable
|
|
@@ -835,28 +614,6 @@ class NounsDAOExecutorV2_json {
|
|
|
835
614
|
}
|
|
836
615
|
return this.contract.write.setPendingAdmin([pendingAdmin_], options);
|
|
837
616
|
}
|
|
838
|
-
/**
|
|
839
|
-
* upgradeTo
|
|
840
|
-
* nonpayable
|
|
841
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
842
|
-
*/
|
|
843
|
-
async upgradeTo(newImplementation, options) {
|
|
844
|
-
if (!this.contract.write) {
|
|
845
|
-
throw new Error('Wallet client is required for write operations');
|
|
846
|
-
}
|
|
847
|
-
return this.contract.write.upgradeTo([newImplementation], options);
|
|
848
|
-
}
|
|
849
|
-
/**
|
|
850
|
-
* upgradeToAndCall
|
|
851
|
-
* payable
|
|
852
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
853
|
-
*/
|
|
854
|
-
async upgradeToAndCall(newImplementation, data, options) {
|
|
855
|
-
if (!this.contract.write) {
|
|
856
|
-
throw new Error('Wallet client is required for write operations');
|
|
857
|
-
}
|
|
858
|
-
return this.contract.write.upgradeToAndCall([newImplementation, data], options);
|
|
859
|
-
}
|
|
860
617
|
/**
|
|
861
618
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
862
619
|
*
|
|
@@ -895,14 +652,6 @@ class NounsDAOExecutorV2_json {
|
|
|
895
652
|
async executeTransaction(target, value, signature, data, eta, options) {
|
|
896
653
|
return contract.simulate.executeTransaction([target, value, signature, data, eta], options);
|
|
897
654
|
},
|
|
898
|
-
/**
|
|
899
|
-
* Simulate initialize
|
|
900
|
-
* Returns gas estimate and result without sending transaction
|
|
901
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
902
|
-
*/
|
|
903
|
-
async initialize(admin_, delay_, options) {
|
|
904
|
-
return contract.simulate.initialize([admin_, delay_], options);
|
|
905
|
-
},
|
|
906
655
|
/**
|
|
907
656
|
* Simulate queueTransaction
|
|
908
657
|
* Returns gas estimate and result without sending transaction
|
|
@@ -911,22 +660,6 @@ class NounsDAOExecutorV2_json {
|
|
|
911
660
|
async queueTransaction(target, value, signature, data, eta, options) {
|
|
912
661
|
return contract.simulate.queueTransaction([target, value, signature, data, eta], options);
|
|
913
662
|
},
|
|
914
|
-
/**
|
|
915
|
-
* Simulate sendERC20
|
|
916
|
-
* Returns gas estimate and result without sending transaction
|
|
917
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
918
|
-
*/
|
|
919
|
-
async sendERC20(recipient, erc20Token, tokensToSend, options) {
|
|
920
|
-
return contract.simulate.sendERC20([recipient, erc20Token, tokensToSend], options);
|
|
921
|
-
},
|
|
922
|
-
/**
|
|
923
|
-
* Simulate sendETH
|
|
924
|
-
* Returns gas estimate and result without sending transaction
|
|
925
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
926
|
-
*/
|
|
927
|
-
async sendETH(recipient, ethToSend, options) {
|
|
928
|
-
return contract.simulate.sendETH([recipient, ethToSend], options);
|
|
929
|
-
},
|
|
930
663
|
/**
|
|
931
664
|
* Simulate setDelay
|
|
932
665
|
* Returns gas estimate and result without sending transaction
|
|
@@ -942,22 +675,6 @@ class NounsDAOExecutorV2_json {
|
|
|
942
675
|
*/
|
|
943
676
|
async setPendingAdmin(pendingAdmin_, options) {
|
|
944
677
|
return contract.simulate.setPendingAdmin([pendingAdmin_], options);
|
|
945
|
-
},
|
|
946
|
-
/**
|
|
947
|
-
* Simulate upgradeTo
|
|
948
|
-
* Returns gas estimate and result without sending transaction
|
|
949
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
950
|
-
*/
|
|
951
|
-
async upgradeTo(newImplementation, options) {
|
|
952
|
-
return contract.simulate.upgradeTo([newImplementation], options);
|
|
953
|
-
},
|
|
954
|
-
/**
|
|
955
|
-
* Simulate upgradeToAndCall
|
|
956
|
-
* Returns gas estimate and result without sending transaction
|
|
957
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
958
|
-
*/
|
|
959
|
-
async upgradeToAndCall(newImplementation, data, options) {
|
|
960
|
-
return contract.simulate.upgradeToAndCall([newImplementation, data], options);
|
|
961
678
|
}
|
|
962
679
|
};
|
|
963
680
|
}
|
|
@@ -975,43 +692,6 @@ class NounsDAOExecutorV2_json {
|
|
|
975
692
|
*/
|
|
976
693
|
get watch() {
|
|
977
694
|
return {
|
|
978
|
-
/**
|
|
979
|
-
* Watch AdminChanged events
|
|
980
|
-
* @param callback Function to call when event is emitted
|
|
981
|
-
* @param filter Optional filter for indexed parameters
|
|
982
|
-
* @returns Unwatch function to stop listening
|
|
983
|
-
*/
|
|
984
|
-
AdminChanged: (callback) => {
|
|
985
|
-
return this.publicClient.watchContractEvent({
|
|
986
|
-
address: this.contractAddress,
|
|
987
|
-
abi: exports.NounsDAOExecutorV2_jsonAbi,
|
|
988
|
-
eventName: 'AdminChanged',
|
|
989
|
-
onLogs: (logs) => {
|
|
990
|
-
logs.forEach((log) => {
|
|
991
|
-
callback(log.args);
|
|
992
|
-
});
|
|
993
|
-
},
|
|
994
|
-
});
|
|
995
|
-
},
|
|
996
|
-
/**
|
|
997
|
-
* Watch BeaconUpgraded events
|
|
998
|
-
* @param callback Function to call when event is emitted
|
|
999
|
-
* @param filter Optional filter for indexed parameters
|
|
1000
|
-
* @returns Unwatch function to stop listening
|
|
1001
|
-
*/
|
|
1002
|
-
BeaconUpgraded: (callback, filter) => {
|
|
1003
|
-
return this.publicClient.watchContractEvent({
|
|
1004
|
-
address: this.contractAddress,
|
|
1005
|
-
abi: exports.NounsDAOExecutorV2_jsonAbi,
|
|
1006
|
-
eventName: 'BeaconUpgraded',
|
|
1007
|
-
args: filter,
|
|
1008
|
-
onLogs: (logs) => {
|
|
1009
|
-
logs.forEach((log) => {
|
|
1010
|
-
callback(log.args);
|
|
1011
|
-
});
|
|
1012
|
-
},
|
|
1013
|
-
});
|
|
1014
|
-
},
|
|
1015
695
|
/**
|
|
1016
696
|
* Watch CancelTransaction events
|
|
1017
697
|
* @param callback Function to call when event is emitted
|
|
@@ -1021,7 +701,7 @@ class NounsDAOExecutorV2_json {
|
|
|
1021
701
|
CancelTransaction: (callback, filter) => {
|
|
1022
702
|
return this.publicClient.watchContractEvent({
|
|
1023
703
|
address: this.contractAddress,
|
|
1024
|
-
abi: exports.
|
|
704
|
+
abi: exports.NounsDAOExecutor_jsonAbi,
|
|
1025
705
|
eventName: 'CancelTransaction',
|
|
1026
706
|
args: filter,
|
|
1027
707
|
onLogs: (logs) => {
|
|
@@ -1031,44 +711,6 @@ class NounsDAOExecutorV2_json {
|
|
|
1031
711
|
},
|
|
1032
712
|
});
|
|
1033
713
|
},
|
|
1034
|
-
/**
|
|
1035
|
-
* Watch ERC20Sent events
|
|
1036
|
-
* @param callback Function to call when event is emitted
|
|
1037
|
-
* @param filter Optional filter for indexed parameters
|
|
1038
|
-
* @returns Unwatch function to stop listening
|
|
1039
|
-
*/
|
|
1040
|
-
ERC20Sent: (callback, filter) => {
|
|
1041
|
-
return this.publicClient.watchContractEvent({
|
|
1042
|
-
address: this.contractAddress,
|
|
1043
|
-
abi: exports.NounsDAOExecutorV2_jsonAbi,
|
|
1044
|
-
eventName: 'ERC20Sent',
|
|
1045
|
-
args: filter,
|
|
1046
|
-
onLogs: (logs) => {
|
|
1047
|
-
logs.forEach((log) => {
|
|
1048
|
-
callback(log.args);
|
|
1049
|
-
});
|
|
1050
|
-
},
|
|
1051
|
-
});
|
|
1052
|
-
},
|
|
1053
|
-
/**
|
|
1054
|
-
* Watch ETHSent events
|
|
1055
|
-
* @param callback Function to call when event is emitted
|
|
1056
|
-
* @param filter Optional filter for indexed parameters
|
|
1057
|
-
* @returns Unwatch function to stop listening
|
|
1058
|
-
*/
|
|
1059
|
-
ETHSent: (callback, filter) => {
|
|
1060
|
-
return this.publicClient.watchContractEvent({
|
|
1061
|
-
address: this.contractAddress,
|
|
1062
|
-
abi: exports.NounsDAOExecutorV2_jsonAbi,
|
|
1063
|
-
eventName: 'ETHSent',
|
|
1064
|
-
args: filter,
|
|
1065
|
-
onLogs: (logs) => {
|
|
1066
|
-
logs.forEach((log) => {
|
|
1067
|
-
callback(log.args);
|
|
1068
|
-
});
|
|
1069
|
-
},
|
|
1070
|
-
});
|
|
1071
|
-
},
|
|
1072
714
|
/**
|
|
1073
715
|
* Watch ExecuteTransaction events
|
|
1074
716
|
* @param callback Function to call when event is emitted
|
|
@@ -1078,7 +720,7 @@ class NounsDAOExecutorV2_json {
|
|
|
1078
720
|
ExecuteTransaction: (callback, filter) => {
|
|
1079
721
|
return this.publicClient.watchContractEvent({
|
|
1080
722
|
address: this.contractAddress,
|
|
1081
|
-
abi: exports.
|
|
723
|
+
abi: exports.NounsDAOExecutor_jsonAbi,
|
|
1082
724
|
eventName: 'ExecuteTransaction',
|
|
1083
725
|
args: filter,
|
|
1084
726
|
onLogs: (logs) => {
|
|
@@ -1097,7 +739,7 @@ class NounsDAOExecutorV2_json {
|
|
|
1097
739
|
NewAdmin: (callback, filter) => {
|
|
1098
740
|
return this.publicClient.watchContractEvent({
|
|
1099
741
|
address: this.contractAddress,
|
|
1100
|
-
abi: exports.
|
|
742
|
+
abi: exports.NounsDAOExecutor_jsonAbi,
|
|
1101
743
|
eventName: 'NewAdmin',
|
|
1102
744
|
args: filter,
|
|
1103
745
|
onLogs: (logs) => {
|
|
@@ -1116,7 +758,7 @@ class NounsDAOExecutorV2_json {
|
|
|
1116
758
|
NewDelay: (callback, filter) => {
|
|
1117
759
|
return this.publicClient.watchContractEvent({
|
|
1118
760
|
address: this.contractAddress,
|
|
1119
|
-
abi: exports.
|
|
761
|
+
abi: exports.NounsDAOExecutor_jsonAbi,
|
|
1120
762
|
eventName: 'NewDelay',
|
|
1121
763
|
args: filter,
|
|
1122
764
|
onLogs: (logs) => {
|
|
@@ -1135,7 +777,7 @@ class NounsDAOExecutorV2_json {
|
|
|
1135
777
|
NewPendingAdmin: (callback, filter) => {
|
|
1136
778
|
return this.publicClient.watchContractEvent({
|
|
1137
779
|
address: this.contractAddress,
|
|
1138
|
-
abi: exports.
|
|
780
|
+
abi: exports.NounsDAOExecutor_jsonAbi,
|
|
1139
781
|
eventName: 'NewPendingAdmin',
|
|
1140
782
|
args: filter,
|
|
1141
783
|
onLogs: (logs) => {
|
|
@@ -1154,7 +796,7 @@ class NounsDAOExecutorV2_json {
|
|
|
1154
796
|
QueueTransaction: (callback, filter) => {
|
|
1155
797
|
return this.publicClient.watchContractEvent({
|
|
1156
798
|
address: this.contractAddress,
|
|
1157
|
-
abi: exports.
|
|
799
|
+
abi: exports.NounsDAOExecutor_jsonAbi,
|
|
1158
800
|
eventName: 'QueueTransaction',
|
|
1159
801
|
args: filter,
|
|
1160
802
|
onLogs: (logs) => {
|
|
@@ -1163,27 +805,8 @@ class NounsDAOExecutorV2_json {
|
|
|
1163
805
|
});
|
|
1164
806
|
},
|
|
1165
807
|
});
|
|
1166
|
-
},
|
|
1167
|
-
/**
|
|
1168
|
-
* Watch Upgraded events
|
|
1169
|
-
* @param callback Function to call when event is emitted
|
|
1170
|
-
* @param filter Optional filter for indexed parameters
|
|
1171
|
-
* @returns Unwatch function to stop listening
|
|
1172
|
-
*/
|
|
1173
|
-
Upgraded: (callback, filter) => {
|
|
1174
|
-
return this.publicClient.watchContractEvent({
|
|
1175
|
-
address: this.contractAddress,
|
|
1176
|
-
abi: exports.NounsDAOExecutorV2_jsonAbi,
|
|
1177
|
-
eventName: 'Upgraded',
|
|
1178
|
-
args: filter,
|
|
1179
|
-
onLogs: (logs) => {
|
|
1180
|
-
logs.forEach((log) => {
|
|
1181
|
-
callback(log.args);
|
|
1182
|
-
});
|
|
1183
|
-
},
|
|
1184
|
-
});
|
|
1185
808
|
}
|
|
1186
809
|
};
|
|
1187
810
|
}
|
|
1188
811
|
}
|
|
1189
|
-
exports.
|
|
812
|
+
exports.NounsDAOExecutor_json = NounsDAOExecutor_json;
|