essential-eth 0.5.5 → 0.5.10-next.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.
Files changed (188) hide show
  1. package/{lib/esm → dist}/classes/Contract.d.ts +11 -11
  2. package/dist/classes/test/Contract/crv-abi.d.ts +2 -0
  3. package/dist/classes/test/Contract/ens-abi.d.ts +2 -0
  4. package/dist/classes/test/Contract/fei-abi.d.ts +2 -0
  5. package/dist/classes/test/Contract/foo-abi.d.ts +2 -0
  6. package/dist/classes/test/Contract/uniswap-abi.d.ts +2 -0
  7. package/dist/classes/utils/clean-block.d.ts +3 -0
  8. package/dist/classes/utils/clean-log.d.ts +2 -0
  9. package/{lib/esm → dist}/classes/utils/clean-transaction-receipt.d.ts +2 -2
  10. package/{lib/esm → dist}/classes/utils/clean-transaction.d.ts +2 -2
  11. package/{lib/cjs → dist}/classes/utils/encode-decode-transaction.d.ts +4 -4
  12. package/{lib/cjs → dist}/classes/utils/fetchers.d.ts +9 -9
  13. package/{lib/esm → dist}/classes/utils/hex-to-decimal.d.ts +1 -1
  14. package/dist/classes/utils/prepare-transaction.d.ts +2 -0
  15. package/{lib/cjs → dist}/index.d.ts +25 -24
  16. package/dist/index.js +2 -0
  17. package/dist/index.js.map +1 -0
  18. package/dist/index.modern.mjs +2 -0
  19. package/dist/index.modern.mjs.map +1 -0
  20. package/dist/index.module.js +2 -0
  21. package/dist/index.module.js.map +1 -0
  22. package/dist/index.umd.js +2 -0
  23. package/dist/index.umd.js.map +1 -0
  24. package/{lib/esm → dist}/logger/logger.d.ts +11 -11
  25. package/dist/logger/package-version.d.ts +1 -0
  26. package/{lib/esm → dist}/providers/BaseProvider.d.ts +24 -19
  27. package/{lib/esm → dist}/providers/FallthroughProvider.d.ts +11 -11
  28. package/{lib/esm → dist}/providers/JsonRpcProvider.d.ts +7 -7
  29. package/{lib/cjs → dist}/providers/test/rpc-urls.d.ts +11 -11
  30. package/{lib/esm → dist}/providers/utils/chains-info.d.ts +467 -412
  31. package/{lib/cjs → dist}/shared/tiny-big/helpers.d.ts +1 -1
  32. package/{lib/esm → dist}/shared/tiny-big/tiny-big.d.ts +10 -10
  33. package/{lib/cjs → dist}/shared/validate-type.d.ts +3 -3
  34. package/{lib/cjs → dist}/types/Block.types.d.ts +40 -37
  35. package/{lib/cjs → dist}/types/Contract.types.d.ts +24 -24
  36. package/dist/types/Filter.types.d.ts +12 -0
  37. package/{lib/esm → dist}/types/Network.types.d.ts +5 -5
  38. package/{lib/cjs → dist}/types/Transaction.types.d.ts +113 -96
  39. package/{lib/esm → dist}/utils/bytes.d.ts +40 -40
  40. package/{lib/esm → dist}/utils/compute-address.d.ts +1 -1
  41. package/{lib/esm → dist}/utils/compute-public-key.d.ts +2 -2
  42. package/{lib/esm → dist}/utils/ether-to-gwei.d.ts +3 -3
  43. package/dist/utils/ether-to-wei.d.ts +3 -0
  44. package/dist/utils/gwei-to-ether.d.ts +3 -0
  45. package/{lib/esm → dist}/utils/hash-message.d.ts +2 -2
  46. package/{lib/esm → dist}/utils/is-address.d.ts +1 -1
  47. package/dist/utils/keccak256.d.ts +2 -0
  48. package/{lib/esm → dist}/utils/solidity-keccak256.d.ts +2 -2
  49. package/{lib/esm → dist}/utils/split-signature.d.ts +2 -2
  50. package/{lib/esm → dist}/utils/to-checksum-address.d.ts +1 -1
  51. package/{lib/cjs → dist}/utils/to-utf8-bytes.d.ts +1 -1
  52. package/dist/utils/wei-to-ether.d.ts +3 -0
  53. package/package.json +45 -14
  54. package/readme.md +643 -291
  55. package/lib/cjs/classes/Contract.d.ts +0 -72
  56. package/lib/cjs/classes/Contract.js +0 -129
  57. package/lib/cjs/classes/test/Contract/crv-abi.d.ts +0 -2
  58. package/lib/cjs/classes/test/Contract/crv-abi.js +0 -488
  59. package/lib/cjs/classes/test/Contract/ens-abi.d.ts +0 -2
  60. package/lib/cjs/classes/test/Contract/ens-abi.js +0 -453
  61. package/lib/cjs/classes/test/Contract/fei-abi.d.ts +0 -2
  62. package/lib/cjs/classes/test/Contract/fei-abi.js +0 -526
  63. package/lib/cjs/classes/test/Contract/foo-abi.d.ts +0 -2
  64. package/lib/cjs/classes/test/Contract/foo-abi.js +0 -42
  65. package/lib/cjs/classes/test/Contract/uniswap-abi.d.ts +0 -2
  66. package/lib/cjs/classes/test/Contract/uniswap-abi.js +0 -121
  67. package/lib/cjs/classes/utils/clean-block.d.ts +0 -6
  68. package/lib/cjs/classes/utils/clean-block.js +0 -47
  69. package/lib/cjs/classes/utils/clean-transaction-receipt.d.ts +0 -5
  70. package/lib/cjs/classes/utils/clean-transaction-receipt.js +0 -55
  71. package/lib/cjs/classes/utils/clean-transaction.d.ts +0 -5
  72. package/lib/cjs/classes/utils/clean-transaction.js +0 -42
  73. package/lib/cjs/classes/utils/encode-decode-transaction.js +0 -113
  74. package/lib/cjs/classes/utils/fetchers.js +0 -51
  75. package/lib/cjs/classes/utils/hex-to-decimal.d.ts +0 -5
  76. package/lib/cjs/classes/utils/hex-to-decimal.js +0 -11
  77. package/lib/cjs/index.js +0 -54
  78. package/lib/cjs/logger/logger.d.ts +0 -11
  79. package/lib/cjs/logger/logger.js +0 -36
  80. package/lib/cjs/logger/package-version.d.ts +0 -1
  81. package/lib/cjs/logger/package-version.js +0 -5
  82. package/lib/cjs/providers/BaseProvider.d.ts +0 -284
  83. package/lib/cjs/providers/BaseProvider.js +0 -380
  84. package/lib/cjs/providers/FallthroughProvider.d.ts +0 -24
  85. package/lib/cjs/providers/FallthroughProvider.js +0 -65
  86. package/lib/cjs/providers/JsonRpcProvider.d.ts +0 -27
  87. package/lib/cjs/providers/JsonRpcProvider.js +0 -40
  88. package/lib/cjs/providers/test/rpc-urls.js +0 -14
  89. package/lib/cjs/providers/utils/chains-info.d.ts +0 -412
  90. package/lib/cjs/providers/utils/chains-info.js +0 -1237
  91. package/lib/cjs/shared/tiny-big/helpers.js +0 -71
  92. package/lib/cjs/shared/tiny-big/tiny-big.d.ts +0 -32
  93. package/lib/cjs/shared/tiny-big/tiny-big.js +0 -71
  94. package/lib/cjs/shared/validate-type.js +0 -9
  95. package/lib/cjs/types/Block.types.js +0 -2
  96. package/lib/cjs/types/Contract.types.js +0 -2
  97. package/lib/cjs/types/Network.types.d.ts +0 -8
  98. package/lib/cjs/types/Network.types.js +0 -2
  99. package/lib/cjs/types/Transaction.types.js +0 -2
  100. package/lib/cjs/utils/bytes.d.ts +0 -172
  101. package/lib/cjs/utils/bytes.js +0 -564
  102. package/lib/cjs/utils/compute-address.d.ts +0 -8
  103. package/lib/cjs/utils/compute-address.js +0 -24
  104. package/lib/cjs/utils/compute-public-key.d.ts +0 -9
  105. package/lib/cjs/utils/compute-public-key.js +0 -17
  106. package/lib/cjs/utils/ether-to-gwei.d.ts +0 -26
  107. package/lib/cjs/utils/ether-to-gwei.js +0 -34
  108. package/lib/cjs/utils/ether-to-wei.d.ts +0 -26
  109. package/lib/cjs/utils/ether-to-wei.js +0 -34
  110. package/lib/cjs/utils/gwei-to-ether.d.ts +0 -26
  111. package/lib/cjs/utils/gwei-to-ether.js +0 -34
  112. package/lib/cjs/utils/hash-message.d.ts +0 -12
  113. package/lib/cjs/utils/hash-message.js +0 -26
  114. package/lib/cjs/utils/is-address.d.ts +0 -24
  115. package/lib/cjs/utils/is-address.js +0 -39
  116. package/lib/cjs/utils/keccak256.d.ts +0 -2
  117. package/lib/cjs/utils/keccak256.js +0 -17
  118. package/lib/cjs/utils/solidity-keccak256.d.ts +0 -29
  119. package/lib/cjs/utils/solidity-keccak256.js +0 -118
  120. package/lib/cjs/utils/split-signature.d.ts +0 -26
  121. package/lib/cjs/utils/split-signature.js +0 -165
  122. package/lib/cjs/utils/to-checksum-address.d.ts +0 -17
  123. package/lib/cjs/utils/to-checksum-address.js +0 -46
  124. package/lib/cjs/utils/to-utf8-bytes.js +0 -7
  125. package/lib/cjs/utils/wei-to-ether.d.ts +0 -26
  126. package/lib/cjs/utils/wei-to-ether.js +0 -34
  127. package/lib/esm/classes/Contract.js +0 -65
  128. package/lib/esm/classes/test/Contract/crv-abi.d.ts +0 -2
  129. package/lib/esm/classes/test/Contract/crv-abi.js +0 -470
  130. package/lib/esm/classes/test/Contract/ens-abi.d.ts +0 -2
  131. package/lib/esm/classes/test/Contract/ens-abi.js +0 -435
  132. package/lib/esm/classes/test/Contract/fei-abi.d.ts +0 -2
  133. package/lib/esm/classes/test/Contract/fei-abi.js +0 -521
  134. package/lib/esm/classes/test/Contract/foo-abi.d.ts +0 -2
  135. package/lib/esm/classes/test/Contract/foo-abi.js +0 -33
  136. package/lib/esm/classes/test/Contract/uniswap-abi.d.ts +0 -2
  137. package/lib/esm/classes/test/Contract/uniswap-abi.js +0 -116
  138. package/lib/esm/classes/utils/clean-block.d.ts +0 -3
  139. package/lib/esm/classes/utils/clean-block.js +0 -36
  140. package/lib/esm/classes/utils/clean-transaction-receipt.js +0 -48
  141. package/lib/esm/classes/utils/clean-transaction.js +0 -33
  142. package/lib/esm/classes/utils/encode-decode-transaction.d.ts +0 -4
  143. package/lib/esm/classes/utils/encode-decode-transaction.js +0 -98
  144. package/lib/esm/classes/utils/fetchers.d.ts +0 -9
  145. package/lib/esm/classes/utils/fetchers.js +0 -43
  146. package/lib/esm/classes/utils/hex-to-decimal.js +0 -3
  147. package/lib/esm/index.d.ts +0 -24
  148. package/lib/esm/index.js +0 -20
  149. package/lib/esm/logger/logger.js +0 -33
  150. package/lib/esm/logger/package-version.d.ts +0 -1
  151. package/lib/esm/logger/package-version.js +0 -1
  152. package/lib/esm/providers/BaseProvider.js +0 -107
  153. package/lib/esm/providers/FallthroughProvider.js +0 -41
  154. package/lib/esm/providers/JsonRpcProvider.js +0 -15
  155. package/lib/esm/providers/test/rpc-urls.d.ts +0 -11
  156. package/lib/esm/providers/test/rpc-urls.js +0 -11
  157. package/lib/esm/providers/utils/chains-info.js +0 -1233
  158. package/lib/esm/shared/tiny-big/helpers.d.ts +0 -1
  159. package/lib/esm/shared/tiny-big/helpers.js +0 -58
  160. package/lib/esm/shared/tiny-big/tiny-big.js +0 -41
  161. package/lib/esm/shared/validate-type.d.ts +0 -3
  162. package/lib/esm/shared/validate-type.js +0 -5
  163. package/lib/esm/types/Block.types.d.ts +0 -36
  164. package/lib/esm/types/Block.types.js +0 -1
  165. package/lib/esm/types/Contract.types.d.ts +0 -24
  166. package/lib/esm/types/Contract.types.js +0 -1
  167. package/lib/esm/types/Network.types.js +0 -1
  168. package/lib/esm/types/Transaction.types.d.ts +0 -87
  169. package/lib/esm/types/Transaction.types.js +0 -1
  170. package/lib/esm/utils/bytes.js +0 -245
  171. package/lib/esm/utils/compute-address.js +0 -11
  172. package/lib/esm/utils/compute-public-key.js +0 -6
  173. package/lib/esm/utils/ether-to-gwei.js +0 -7
  174. package/lib/esm/utils/ether-to-wei.d.ts +0 -3
  175. package/lib/esm/utils/ether-to-wei.js +0 -7
  176. package/lib/esm/utils/gwei-to-ether.d.ts +0 -3
  177. package/lib/esm/utils/gwei-to-ether.js +0 -7
  178. package/lib/esm/utils/hash-message.js +0 -12
  179. package/lib/esm/utils/is-address.js +0 -12
  180. package/lib/esm/utils/keccak256.d.ts +0 -2
  181. package/lib/esm/utils/keccak256.js +0 -13
  182. package/lib/esm/utils/solidity-keccak256.js +0 -85
  183. package/lib/esm/utils/split-signature.js +0 -126
  184. package/lib/esm/utils/to-checksum-address.js +0 -25
  185. package/lib/esm/utils/to-utf8-bytes.d.ts +0 -1
  186. package/lib/esm/utils/to-utf8-bytes.js +0 -3
  187. package/lib/esm/utils/wei-to-ether.d.ts +0 -3
  188. package/lib/esm/utils/wei-to-ether.js +0 -7
@@ -1,26 +0,0 @@
1
- import Big from 'big.js';
2
- import { TinyBig } from '../shared/tiny-big/tiny-big';
3
- /**
4
- * Convert from Wei to Ether
5
- *
6
- * Similar to ["formatEther" in ethers.js](https://docs.ethers.io/v5/api/utils/display-logic/#utils-formatEther)
7
- *
8
- * Similar to ["fromWei" in web3.js](https://web3js.readthedocs.io/en/v1.7.1/web3-utils.html#fromwei)
9
- *
10
- * @example
11
- * ```javascript
12
- * weiToEther('1000000000000000000000').toString()
13
- * // '1000'
14
- * weiToEther(1000000000000000000000).toString()
15
- * // '1000'
16
- * ```
17
- *
18
- * @example
19
- * ```javascript
20
- * weiToEther('1000000000000000000000').toNumber()
21
- * // 1000
22
- * weiToEther(1000000000000000000000).toNumber()
23
- * // 1000
24
- * ```
25
- */
26
- export declare function weiToEther(weiQuantity: string | number | TinyBig | Big): TinyBig;
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.weiToEther = void 0;
4
- const tiny_big_1 = require("../shared/tiny-big/tiny-big");
5
- const validate_type_1 = require("../shared/validate-type");
6
- /**
7
- * Convert from Wei to Ether
8
- *
9
- * Similar to ["formatEther" in ethers.js](https://docs.ethers.io/v5/api/utils/display-logic/#utils-formatEther)
10
- *
11
- * Similar to ["fromWei" in web3.js](https://web3js.readthedocs.io/en/v1.7.1/web3-utils.html#fromwei)
12
- *
13
- * @example
14
- * ```javascript
15
- * weiToEther('1000000000000000000000').toString()
16
- * // '1000'
17
- * weiToEther(1000000000000000000000).toString()
18
- * // '1000'
19
- * ```
20
- *
21
- * @example
22
- * ```javascript
23
- * weiToEther('1000000000000000000000').toNumber()
24
- * // 1000
25
- * weiToEther(1000000000000000000000).toNumber()
26
- * // 1000
27
- * ```
28
- */
29
- function weiToEther(weiQuantity) {
30
- (0, validate_type_1.validateType)(weiQuantity, ['string', 'number', 'object']);
31
- const result = (0, tiny_big_1.tinyBig)(weiQuantity).div('1000000000000000000');
32
- return (0, tiny_big_1.tinyBig)(result);
33
- }
34
- exports.weiToEther = weiToEther;
@@ -1,65 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { decodeRPCResponse, encodeData, } from './utils/encode-decode-transaction';
11
- import { buildRPCPostBody, post } from './utils/fetchers';
12
- function estimateGas(txnData) {
13
- txnData.split('').reduce((previousValue, currentValue) => {
14
- const characterCost = currentValue === '0' ? 4 : 68;
15
- return previousValue + characterCost;
16
- }, 0);
17
- }
18
- export class BaseContract {
19
- constructor(addressOrName, contractInterface, signerOrProvider) {
20
- this._address = addressOrName;
21
- this._provider = signerOrProvider;
22
- contractInterface
23
- .filter((jsonABIArgument) => jsonABIArgument.type === 'function')
24
- .forEach((jsonABIArgument) => {
25
- if ('name' in jsonABIArgument &&
26
- typeof jsonABIArgument.name === 'string') {
27
- defineReadOnly(this, jsonABIArgument.name, (..._args) => __awaiter(this, void 0, void 0, function* () {
28
- let functionArguments = _args;
29
- let options = {};
30
- const lastArg = _args[_args.length - 1];
31
- if (!Array.isArray(lastArg) && typeof lastArg === 'object') {
32
- options = lastArg;
33
- functionArguments = _args.slice(0, _args.length - 1);
34
- }
35
- const data = encodeData(jsonABIArgument, functionArguments);
36
- const decimalGas = typeof options.gasLimit === 'number'
37
- ? options.gasLimit
38
- : typeof (jsonABIArgument === null || jsonABIArgument === void 0 ? void 0 : jsonABIArgument.gas) ===
39
- 'number'
40
- ? estimateGas(data)
41
- : null;
42
- const req = () => __awaiter(this, void 0, void 0, function* () {
43
- return yield post(this._provider.selectRpcUrl(), buildRPCPostBody('eth_call', [
44
- Object.assign({ to: this._address.toLowerCase(), data }, (decimalGas
45
- ? { gas: `0x${decimalGas.toString(16)}` }
46
- : {})),
47
- 'latest',
48
- ]));
49
- });
50
- const nodeResponse = yield req();
51
- return decodeRPCResponse(jsonABIArgument, nodeResponse);
52
- }));
53
- }
54
- });
55
- }
56
- }
57
- export function defineReadOnly(object, name, value) {
58
- Object.defineProperty(object, name, {
59
- enumerable: true,
60
- value: value,
61
- writable: false,
62
- });
63
- }
64
- export class Contract extends BaseContract {
65
- }
@@ -1,2 +0,0 @@
1
- import { JSONABI } from '../../../types/Contract.types';
2
- export declare const abi: JSONABI;
@@ -1,470 +0,0 @@
1
- export const abi = [
2
- {
3
- name: 'Fund',
4
- inputs: [
5
- {
6
- type: 'address',
7
- name: 'recipient',
8
- indexed: true,
9
- },
10
- {
11
- type: 'uint256',
12
- name: 'amount',
13
- indexed: false,
14
- },
15
- ],
16
- anonymous: false,
17
- type: 'event',
18
- },
19
- {
20
- name: 'Claim',
21
- inputs: [
22
- {
23
- type: 'address',
24
- name: 'recipient',
25
- indexed: true,
26
- },
27
- {
28
- type: 'uint256',
29
- name: 'claimed',
30
- indexed: false,
31
- },
32
- ],
33
- anonymous: false,
34
- type: 'event',
35
- },
36
- {
37
- name: 'ToggleDisable',
38
- inputs: [
39
- {
40
- type: 'address',
41
- name: 'recipient',
42
- indexed: false,
43
- },
44
- {
45
- type: 'bool',
46
- name: 'disabled',
47
- indexed: false,
48
- },
49
- ],
50
- anonymous: false,
51
- type: 'event',
52
- },
53
- {
54
- name: 'CommitOwnership',
55
- inputs: [
56
- {
57
- type: 'address',
58
- name: 'admin',
59
- indexed: false,
60
- },
61
- ],
62
- anonymous: false,
63
- type: 'event',
64
- },
65
- {
66
- name: 'ApplyOwnership',
67
- inputs: [
68
- {
69
- type: 'address',
70
- name: 'admin',
71
- indexed: false,
72
- },
73
- ],
74
- anonymous: false,
75
- type: 'event',
76
- },
77
- {
78
- outputs: [],
79
- inputs: [
80
- {
81
- type: 'address',
82
- name: '_token',
83
- },
84
- {
85
- type: 'uint256',
86
- name: '_start_time',
87
- },
88
- {
89
- type: 'uint256',
90
- name: '_end_time',
91
- },
92
- {
93
- type: 'bool',
94
- name: '_can_disable',
95
- },
96
- {
97
- type: 'address[4]',
98
- name: '_fund_admins',
99
- },
100
- ],
101
- stateMutability: 'nonpayable',
102
- type: 'constructor',
103
- },
104
- {
105
- name: 'add_tokens',
106
- outputs: [],
107
- inputs: [
108
- {
109
- type: 'uint256',
110
- name: '_amount',
111
- },
112
- ],
113
- stateMutability: 'nonpayable',
114
- type: 'function',
115
- gas: 39108,
116
- },
117
- {
118
- name: 'fund',
119
- outputs: [],
120
- inputs: [
121
- {
122
- type: 'address[100]',
123
- name: '_recipients',
124
- },
125
- {
126
- type: 'uint256[100]',
127
- name: '_amounts',
128
- },
129
- ],
130
- stateMutability: 'nonpayable',
131
- type: 'function',
132
- gas: 3962646,
133
- },
134
- {
135
- name: 'toggle_disable',
136
- outputs: [],
137
- inputs: [
138
- {
139
- type: 'address',
140
- name: '_recipient',
141
- },
142
- ],
143
- stateMutability: 'nonpayable',
144
- type: 'function',
145
- gas: 40280,
146
- },
147
- {
148
- name: 'disable_can_disable',
149
- outputs: [],
150
- inputs: [],
151
- stateMutability: 'nonpayable',
152
- type: 'function',
153
- gas: 21295,
154
- },
155
- {
156
- name: 'disable_fund_admins',
157
- outputs: [],
158
- inputs: [],
159
- stateMutability: 'nonpayable',
160
- type: 'function',
161
- gas: 21325,
162
- },
163
- {
164
- name: 'vestedSupply',
165
- outputs: [
166
- {
167
- type: 'uint256',
168
- name: '',
169
- },
170
- ],
171
- inputs: [],
172
- stateMutability: 'view',
173
- type: 'function',
174
- gas: 4468,
175
- },
176
- {
177
- name: 'lockedSupply',
178
- outputs: [
179
- {
180
- type: 'uint256',
181
- name: '',
182
- },
183
- ],
184
- inputs: [],
185
- stateMutability: 'view',
186
- type: 'function',
187
- gas: 5465,
188
- },
189
- {
190
- name: 'vestedOf',
191
- outputs: [
192
- {
193
- type: 'uint256',
194
- name: '',
195
- },
196
- ],
197
- inputs: [
198
- {
199
- type: 'address',
200
- name: '_recipient',
201
- },
202
- ],
203
- stateMutability: 'view',
204
- type: 'function',
205
- gas: 5163,
206
- },
207
- {
208
- name: 'balanceOf',
209
- outputs: [
210
- {
211
- type: 'uint256',
212
- name: '',
213
- },
214
- ],
215
- inputs: [
216
- {
217
- type: 'address',
218
- name: '_recipient',
219
- },
220
- ],
221
- stateMutability: 'view',
222
- type: 'function',
223
- gas: 6275,
224
- },
225
- {
226
- name: 'lockedOf',
227
- outputs: [
228
- {
229
- type: 'uint256',
230
- name: '',
231
- },
232
- ],
233
- inputs: [
234
- {
235
- type: 'address',
236
- name: '_recipient',
237
- },
238
- ],
239
- stateMutability: 'view',
240
- type: 'function',
241
- gas: 6305,
242
- },
243
- {
244
- name: 'claim',
245
- outputs: [],
246
- inputs: [],
247
- stateMutability: 'nonpayable',
248
- type: 'function',
249
- },
250
- {
251
- name: 'commit_transfer_ownership',
252
- outputs: [
253
- {
254
- type: 'bool',
255
- name: '',
256
- },
257
- ],
258
- inputs: [
259
- {
260
- type: 'address',
261
- name: 'addr',
262
- },
263
- ],
264
- stateMutability: 'nonpayable',
265
- type: 'function',
266
- gas: 38032,
267
- },
268
- {
269
- name: 'apply_transfer_ownership',
270
- outputs: [
271
- {
272
- type: 'bool',
273
- name: '',
274
- },
275
- ],
276
- inputs: [],
277
- stateMutability: 'nonpayable',
278
- type: 'function',
279
- gas: 38932,
280
- },
281
- {
282
- name: 'token',
283
- outputs: [
284
- {
285
- type: 'address',
286
- name: '',
287
- },
288
- ],
289
- inputs: [],
290
- stateMutability: 'view',
291
- type: 'function',
292
- gas: 1601,
293
- },
294
- {
295
- name: 'start_time',
296
- outputs: [
297
- {
298
- type: 'uint256',
299
- name: '',
300
- },
301
- ],
302
- inputs: [],
303
- stateMutability: 'view',
304
- type: 'function',
305
- gas: 1631,
306
- },
307
- {
308
- name: 'end_time',
309
- outputs: [
310
- {
311
- type: 'uint256',
312
- name: '',
313
- },
314
- ],
315
- inputs: [],
316
- stateMutability: 'view',
317
- type: 'function',
318
- gas: 1661,
319
- },
320
- {
321
- name: 'initial_locked',
322
- outputs: [
323
- {
324
- type: 'uint256',
325
- name: '',
326
- },
327
- ],
328
- inputs: [
329
- {
330
- type: 'address',
331
- name: 'arg0',
332
- },
333
- ],
334
- stateMutability: 'view',
335
- type: 'function',
336
- gas: 1845,
337
- },
338
- {
339
- name: 'total_claimed',
340
- outputs: [
341
- {
342
- type: 'uint256',
343
- name: '',
344
- },
345
- ],
346
- inputs: [
347
- {
348
- type: 'address',
349
- name: 'arg0',
350
- },
351
- ],
352
- stateMutability: 'view',
353
- type: 'function',
354
- gas: 1875,
355
- },
356
- {
357
- name: 'initial_locked_supply',
358
- outputs: [
359
- {
360
- type: 'uint256',
361
- name: '',
362
- },
363
- ],
364
- inputs: [],
365
- stateMutability: 'view',
366
- type: 'function',
367
- gas: 1751,
368
- },
369
- {
370
- name: 'unallocated_supply',
371
- outputs: [
372
- {
373
- type: 'uint256',
374
- name: '',
375
- },
376
- ],
377
- inputs: [],
378
- stateMutability: 'view',
379
- type: 'function',
380
- gas: 1781,
381
- },
382
- {
383
- name: 'can_disable',
384
- outputs: [
385
- {
386
- type: 'bool',
387
- name: '',
388
- },
389
- ],
390
- inputs: [],
391
- stateMutability: 'view',
392
- type: 'function',
393
- gas: 1811,
394
- },
395
- {
396
- name: 'disabled_at',
397
- outputs: [
398
- {
399
- type: 'uint256',
400
- name: '',
401
- },
402
- ],
403
- inputs: [
404
- {
405
- type: 'address',
406
- name: 'arg0',
407
- },
408
- ],
409
- stateMutability: 'view',
410
- type: 'function',
411
- gas: 1995,
412
- },
413
- {
414
- name: 'admin',
415
- outputs: [
416
- {
417
- type: 'address',
418
- name: '',
419
- },
420
- ],
421
- inputs: [],
422
- stateMutability: 'view',
423
- type: 'function',
424
- gas: 1871,
425
- },
426
- {
427
- name: 'future_admin',
428
- outputs: [
429
- {
430
- type: 'address',
431
- name: '',
432
- },
433
- ],
434
- inputs: [],
435
- stateMutability: 'view',
436
- type: 'function',
437
- gas: 1901,
438
- },
439
- {
440
- name: 'fund_admins_enabled',
441
- outputs: [
442
- {
443
- type: 'bool',
444
- name: '',
445
- },
446
- ],
447
- inputs: [],
448
- stateMutability: 'view',
449
- type: 'function',
450
- gas: 1931,
451
- },
452
- {
453
- name: 'fund_admins',
454
- outputs: [
455
- {
456
- type: 'bool',
457
- name: '',
458
- },
459
- ],
460
- inputs: [
461
- {
462
- type: 'address',
463
- name: 'arg0',
464
- },
465
- ],
466
- stateMutability: 'view',
467
- type: 'function',
468
- gas: 2115,
469
- },
470
- ];
@@ -1,2 +0,0 @@
1
- import { JSONABI } from '../../..';
2
- export declare const ensABI: JSONABI;