|
18 | 18 | package web3ext
|
19 | 19 |
|
20 | 20 | var Modules = map[string]string{
|
21 |
| - "accounting": AccountingJs, |
22 |
| - "admin": AdminJs, |
23 |
| - "chequebook": ChequebookJs, |
24 |
| - "clique": CliqueJs, |
25 |
| - "ethash": EthashJs, |
26 |
| - "debug": DebugJs, |
27 |
| - "eth": EthJs, |
28 |
| - "miner": MinerJs, |
29 |
| - "net": NetJs, |
30 |
| - "personal": PersonalJs, |
31 |
| - "rpc": RpcJs, |
32 |
| - "shh": ShhJs, |
33 |
| - "swarmfs": SwarmfsJs, |
34 |
| - "txpool": TxpoolJs, |
35 |
| - "les": LESJs, |
36 |
| - "vflux": VfluxJs, |
| 21 | + "admin": AdminJs, |
| 22 | + "clique": CliqueJs, |
| 23 | + "ethash": EthashJs, |
| 24 | + "debug": DebugJs, |
| 25 | + "eth": EthJs, |
| 26 | + "miner": MinerJs, |
| 27 | + "net": NetJs, |
| 28 | + "personal": PersonalJs, |
| 29 | + "rpc": RpcJs, |
| 30 | + "txpool": TxpoolJs, |
| 31 | + "les": LESJs, |
| 32 | + "vflux": VfluxJs, |
37 | 33 | }
|
38 | 34 |
|
39 |
| -const ChequebookJs = ` |
40 |
| -web3._extend({ |
41 |
| - property: 'chequebook', |
42 |
| - methods: [ |
43 |
| - new web3._extend.Method({ |
44 |
| - name: 'deposit', |
45 |
| - call: 'chequebook_deposit', |
46 |
| - params: 1, |
47 |
| - inputFormatter: [null] |
48 |
| - }), |
49 |
| - new web3._extend.Property({ |
50 |
| - name: 'balance', |
51 |
| - getter: 'chequebook_balance', |
52 |
| - outputFormatter: web3._extend.utils.toDecimal |
53 |
| - }), |
54 |
| - new web3._extend.Method({ |
55 |
| - name: 'cash', |
56 |
| - call: 'chequebook_cash', |
57 |
| - params: 1, |
58 |
| - inputFormatter: [null] |
59 |
| - }), |
60 |
| - new web3._extend.Method({ |
61 |
| - name: 'issue', |
62 |
| - call: 'chequebook_issue', |
63 |
| - params: 2, |
64 |
| - inputFormatter: [null, null] |
65 |
| - }), |
66 |
| - ] |
67 |
| -}); |
68 |
| -` |
69 |
| - |
70 | 35 | const CliqueJs = `
|
71 | 36 | web3._extend({
|
72 | 37 | property: 'clique',
|
@@ -749,50 +714,6 @@ web3._extend({
|
749 | 714 | });
|
750 | 715 | `
|
751 | 716 |
|
752 |
| -const ShhJs = ` |
753 |
| -web3._extend({ |
754 |
| - property: 'shh', |
755 |
| - methods: [ |
756 |
| - ], |
757 |
| - properties: |
758 |
| - [ |
759 |
| - new web3._extend.Property({ |
760 |
| - name: 'version', |
761 |
| - getter: 'shh_version', |
762 |
| - outputFormatter: web3._extend.utils.toDecimal |
763 |
| - }), |
764 |
| - new web3._extend.Property({ |
765 |
| - name: 'info', |
766 |
| - getter: 'shh_info' |
767 |
| - }), |
768 |
| - ] |
769 |
| -}); |
770 |
| -` |
771 |
| - |
772 |
| -const SwarmfsJs = ` |
773 |
| -web3._extend({ |
774 |
| - property: 'swarmfs', |
775 |
| - methods: |
776 |
| - [ |
777 |
| - new web3._extend.Method({ |
778 |
| - name: 'mount', |
779 |
| - call: 'swarmfs_mount', |
780 |
| - params: 2 |
781 |
| - }), |
782 |
| - new web3._extend.Method({ |
783 |
| - name: 'unmount', |
784 |
| - call: 'swarmfs_unmount', |
785 |
| - params: 1 |
786 |
| - }), |
787 |
| - new web3._extend.Method({ |
788 |
| - name: 'listmounts', |
789 |
| - call: 'swarmfs_listmounts', |
790 |
| - params: 0 |
791 |
| - }), |
792 |
| - ] |
793 |
| -}); |
794 |
| -` |
795 |
| - |
796 | 717 | const TxpoolJs = `
|
797 | 718 | web3._extend({
|
798 | 719 | property: 'txpool',
|
@@ -825,50 +746,6 @@ web3._extend({
|
825 | 746 | });
|
826 | 747 | `
|
827 | 748 |
|
828 |
| -const AccountingJs = ` |
829 |
| -web3._extend({ |
830 |
| - property: 'accounting', |
831 |
| - methods: [ |
832 |
| - new web3._extend.Property({ |
833 |
| - name: 'balance', |
834 |
| - getter: 'account_balance' |
835 |
| - }), |
836 |
| - new web3._extend.Property({ |
837 |
| - name: 'balanceCredit', |
838 |
| - getter: 'account_balanceCredit' |
839 |
| - }), |
840 |
| - new web3._extend.Property({ |
841 |
| - name: 'balanceDebit', |
842 |
| - getter: 'account_balanceDebit' |
843 |
| - }), |
844 |
| - new web3._extend.Property({ |
845 |
| - name: 'bytesCredit', |
846 |
| - getter: 'account_bytesCredit' |
847 |
| - }), |
848 |
| - new web3._extend.Property({ |
849 |
| - name: 'bytesDebit', |
850 |
| - getter: 'account_bytesDebit' |
851 |
| - }), |
852 |
| - new web3._extend.Property({ |
853 |
| - name: 'msgCredit', |
854 |
| - getter: 'account_msgCredit' |
855 |
| - }), |
856 |
| - new web3._extend.Property({ |
857 |
| - name: 'msgDebit', |
858 |
| - getter: 'account_msgDebit' |
859 |
| - }), |
860 |
| - new web3._extend.Property({ |
861 |
| - name: 'peerDrops', |
862 |
| - getter: 'account_peerDrops' |
863 |
| - }), |
864 |
| - new web3._extend.Property({ |
865 |
| - name: 'selfDrops', |
866 |
| - getter: 'account_selfDrops' |
867 |
| - }), |
868 |
| - ] |
869 |
| -}); |
870 |
| -` |
871 |
| - |
872 | 749 | const LESJs = `
|
873 | 750 | web3._extend({
|
874 | 751 | property: 'les',
|
|
0 commit comments