Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e1d4716

Browse files
author
Kotsias, Panagiotis-Christos
committed
Added dist and build
1 parent 6fa5708 commit e1d4716

21 files changed

+1169
-0
lines changed

build/lib/configs/__init__.py

Whitespace-only changes.

build/lib/configs/stable.json

+310
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,310 @@
1+
{
2+
"get_proxy_block_number": {
3+
"module": "proxy",
4+
"kwargs": {}
5+
},
6+
"get_proxy_block_by_number": {
7+
"module": "proxy",
8+
"kwargs": {
9+
"tag": "0x10d4f"
10+
}
11+
},
12+
"get_proxy_uncle_by_block_number_and_index": {
13+
"module": "proxy",
14+
"kwargs": {
15+
"tag": "0x210A9B",
16+
"index": "0x0"
17+
}
18+
},
19+
"get_proxy_block_transaction_count_by_number": {
20+
"module": "proxy",
21+
"kwargs": {
22+
"tag": "0x10FB78"
23+
}
24+
},
25+
"get_proxy_transaction_by_hash": {
26+
"module": "proxy",
27+
"kwargs": {
28+
"txhash": "0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1"
29+
}
30+
},
31+
"get_proxy_transaction_by_block_number_and_index": {
32+
"module": "proxy",
33+
"kwargs": {
34+
"tag": "0x10d4f",
35+
"index": "0x0"
36+
}
37+
},
38+
"get_proxy_transaction_count": {
39+
"module": "proxy",
40+
"kwargs": {
41+
"address": "0x2910543af39aba0cd09dbb2d50200b3e800a63d2"
42+
}
43+
},
44+
"get_proxy_transaction_receipt": {
45+
"module": "proxy",
46+
"kwargs": {
47+
"txhash": "0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1"
48+
}
49+
},
50+
"get_proxy_call": {
51+
"module": "proxy",
52+
"kwargs": {
53+
"to": "0xAEEF46DB4855E25702F8237E8f403FddcaF931C0",
54+
"data": "0x70a08231000000000000000000000000e16359506c028e51f16be38986ec5746251e9724"
55+
}
56+
},
57+
"get_proxy_code_at": {
58+
"module": "proxy",
59+
"kwargs": {
60+
"address": "0xf75e354c5edc8efed9b59ee9f67a80845ade7d0c"
61+
}
62+
},
63+
"get_proxy_storage_position_at": {
64+
"module": "proxy",
65+
"kwargs": {
66+
"position": "0x0",
67+
"address": "0x6e03d9cce9d60f3e9f2597e13cd4c54c55330cfd"
68+
}
69+
},
70+
"get_proxy_gas_price": {
71+
"module": "proxy",
72+
"kwargs": {}
73+
},
74+
"get_proxy_est_gas": {
75+
"module": "proxy",
76+
"kwargs": {
77+
"data": "0x4e71d92d",
78+
"to": "0xf0160428a8552ac9bb7e050d90eeade4ddd52843",
79+
"value": "0xff22",
80+
"gas_price": "0x51da038cc",
81+
"gas": "0x5f5e0ff"
82+
}
83+
},
84+
"get_est_confirmation_time": {
85+
"module": "gastracker",
86+
"kwargs": {
87+
"gas_price": "2000000000"
88+
}
89+
},
90+
"get_gas_oracle": {
91+
"module": "gastracker",
92+
"kwargs": {}
93+
},
94+
"get_block_reward_by_block_number": {
95+
"module": "blocks",
96+
"kwargs": {
97+
"block_no": "2165403"
98+
}
99+
},
100+
"get_est_block_countdown_time_by_block_number": {
101+
"module": "blocks",
102+
"kwargs": {
103+
"block_no": "99999999"
104+
}
105+
},
106+
"get_block_number_by_timestamp": {
107+
"module": "blocks",
108+
"kwargs": {
109+
"timestamp": "1578638524",
110+
"closest": "before"
111+
}
112+
},
113+
"get_total_eth_supply": {
114+
"module": "stats",
115+
"kwargs": {}
116+
},
117+
"get_eth_last_price": {
118+
"module": "stats",
119+
"kwargs": {}
120+
},
121+
"get_eth_nodes_size": {
122+
"module": "stats",
123+
"kwargs": {
124+
"start_date": "2019-02-01",
125+
"end_date": "2019-02-28",
126+
"client_type": "geth",
127+
"sync_mode": "default",
128+
"sort": "asc"
129+
}
130+
},
131+
"get_total_supply_by_contract_address": {
132+
"module": "tokens",
133+
"kwargs": {
134+
"contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055"
135+
}
136+
},
137+
"get_acc_balance_by_token_and_contract_address": {
138+
"module": "tokens",
139+
"kwargs": {
140+
"contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055",
141+
"address": "0xe04f27eb70e025b78871a2ad7eabe85e61212761"
142+
}
143+
},
144+
"get_contract_abi": {
145+
"module": "contracts",
146+
"kwargs": {
147+
"address": "0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413"
148+
}
149+
},
150+
"get_contract_source_code": {
151+
"module": "contracts",
152+
"kwargs": {
153+
"address": "0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413"
154+
}
155+
},
156+
"get_contract_execution_status": {
157+
"module": "transactions",
158+
"kwargs": {
159+
"txhash": "0x15f8e5ea1079d9a0bb04a4c58ae5fe7654b5b2b4463375ff7ffb490aa0032f3a"
160+
}
161+
},
162+
"get_tx_receipt_status": {
163+
"module": "transactions",
164+
"kwargs": {
165+
"txhash": "0x513c1ba0bebf66436b5fed86ab668452b7805593c05073eb2d51d3a52f480a76"
166+
}
167+
},
168+
"get_eth_balance": {
169+
"module": "accounts",
170+
"kwargs": {
171+
"address": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a"
172+
}
173+
},
174+
"get_eth_balance_multiple": {
175+
"module": "accounts",
176+
"kwargs": {
177+
"addresses": [
178+
"0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
179+
"0x63a9975ba31b0b9626b34300f7f627147df1f526",
180+
"0x198ef1ec325a96cc354c7266a038be8b5c558f67"
181+
]
182+
}
183+
},
184+
"get_normal_txs_by_address": {
185+
"module": "accounts",
186+
"kwargs": {
187+
"address": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
188+
"startblock": 0,
189+
"endblock": 99999999,
190+
"sort": "asc"
191+
}
192+
},
193+
"get_normal_txs_by_address_paginated": {
194+
"module": "accounts",
195+
"kwargs": {
196+
"address": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
197+
"startblock": 0,
198+
"endblock": 99999999,
199+
"page": 1,
200+
"offset": 10,
201+
"sort": "asc"
202+
}
203+
},
204+
"get_internal_txs_by_address": {
205+
"module": "accounts",
206+
"kwargs": {
207+
"address": "0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3",
208+
"startblock": 0,
209+
"endblock": 2702578,
210+
"sort": "asc"
211+
}
212+
},
213+
"get_internal_txs_by_address_paginated": {
214+
"module": "accounts",
215+
"kwargs": {
216+
"address": "0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3",
217+
"startblock": 0,
218+
"endblock": 2702578,
219+
"page": 1,
220+
"offset": 10,
221+
"sort": "asc"
222+
}
223+
},
224+
"get_internal_txs_by_txhash": {
225+
"module": "accounts",
226+
"kwargs": {
227+
"txhash": "0x40eb908387324f2b575b4879cd9d7188f69c8fc9d87c901b9e2daaea4b442170"
228+
}
229+
},
230+
"get_internal_txs_by_block_range_paginated": {
231+
"module": "accounts",
232+
"kwargs": {
233+
"startblock": 0,
234+
"endblock": 2702578,
235+
"page": 1,
236+
"offset": 10,
237+
"sort": "asc"
238+
}
239+
},
240+
"get_erc20_token_transfer_events_by_address": {
241+
"module": "accounts",
242+
"kwargs": {
243+
"address": "0x4e83362442b8d1bec281594cea3050c8eb01311c",
244+
"startblock": 0,
245+
"endblock": 999999999,
246+
"sort": "asc"
247+
}
248+
},
249+
"get_erc20_token_transfer_events_by_contract_address_paginated": {
250+
"module": "accounts",
251+
"kwargs": {
252+
"contract_address": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
253+
"page": 1,
254+
"offset": 100,
255+
"sort": "asc"
256+
}
257+
},
258+
"get_erc20_token_transfer_events_by_address_and_contract_paginated": {
259+
"module": "accounts",
260+
"kwargs": {
261+
"contract_address": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
262+
"address": "0x4e83362442b8d1bec281594cea3050c8eb01311c",
263+
"page": 1,
264+
"offset": 100,
265+
"sort": "asc"
266+
}
267+
},
268+
"get_erc721_token_transfer_events_by_address": {
269+
"module": "accounts",
270+
"kwargs": {
271+
"address": "0x6975be450864c02b4613023c2152ee0743572325",
272+
"startblock": 0,
273+
"endblock": 999999999,
274+
"sort": "asc"
275+
}
276+
},
277+
"get_erc721_token_transfer_events_by_contract_address_paginated": {
278+
"module": "accounts",
279+
"kwargs": {
280+
"contract_address": "0x06012c8cf97bead5deae237070f9587f8e7a266d",
281+
"page": 1,
282+
"offset": 100,
283+
"sort": "asc"
284+
}
285+
},
286+
"get_erc721_token_transfer_events_by_address_and_contract_paginated": {
287+
"module": "accounts",
288+
"kwargs": {
289+
"contract_address": "0x06012c8cf97bead5deae237070f9587f8e7a266d",
290+
"address": "0x6975be450864c02b4613023c2152ee0743572325",
291+
"page": 1,
292+
"offset": 100,
293+
"sort": "asc"
294+
}
295+
},
296+
"get_mined_blocks_by_address": {
297+
"module": "accounts",
298+
"kwargs": {
299+
"address": "0x9dd134d14d1e65f84b706d6f205cd5b1cd03a46b"
300+
}
301+
},
302+
"get_mined_blocks_by_address_paginated": {
303+
"module": "accounts",
304+
"kwargs": {
305+
"address": "0x9dd134d14d1e65f84b706d6f205cd5b1cd03a46b",
306+
"page": 1,
307+
"offset": 100
308+
}
309+
}
310+
}

build/lib/etherscan/enums/__init__.py

Whitespace-only changes.
+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
from dataclasses import dataclass
2+
3+
4+
@dataclass(frozen=True)
5+
class ActionsEnum:
6+
BALANCE_HISTORY: str = "balancehistory"
7+
BALANCE_MULTI: str = "balancemulti"
8+
BALANCE: str = "balance"
9+
CHAIN_SIZE: str = "chainsize"
10+
ETH_BLOCK_NUMBER: str = "eth_blockNumber"
11+
ETH_CALL: str = "eth_call"
12+
ETH_ESTIMATE_GAS: str = "eth_estimateGas"
13+
ETH_GAS_PRICE: str = "eth_gasPrice"
14+
ETH_GET_BLOCK_BY_NUMBER: str = "eth_getBlockByNumber"
15+
ETH_GET_BLOCK_TRANSACTION_COUNT_BY_NUMBER: str = "eth_getBlockTransactionCountByNumber"
16+
ETH_GET_TRANSACTION_BY_BLOCK_NUMBER_AND_INDEX: str = "eth_getTransactionByBlockNumberAndIndex"
17+
ETH_GET_CODE: str = "eth_getCode"
18+
ETH_GET_STORAGE_AT: str = "eth_getStorageAt"
19+
ETH_GET_TRANSACTION_BY_HASH: str = "eth_getTransactionByHash"
20+
ETH_GET_TRANSACTION_COUNT: str = "eth_getTransactionCount"
21+
ETH_GET_TRANSACTION_RECEIPT: str = "eth_getTransactionReceipt"
22+
ETH_GET_UNCLE_BY_BLOCK_NUMBER_AND_INDEX: str = "eth_getUncleByBlockNumberAndIndex"
23+
ETH_PRICE: str = "ethprice"
24+
ETH_SUPPLY: str = "ethsupply"
25+
GAS_ESTIMATE: str = "gasestimate"
26+
GAS_ORACLE: str = "gasoracle"
27+
GET_ABI: str = "getabi"
28+
GET_BLOCK_COUNTDOWN: str = "getblockcountdown"
29+
GET_BLOCK_NUMBER_BY_TIME: str = "getblocknobytime"
30+
GET_BLOCK_REWARD: str = "getblockreward"
31+
GET_MINED_BLOCKS: str = "getminedblocks"
32+
GET_SOURCE_CODE: str = "getsourcecode"
33+
GET_STATUS: str = "getstatus"
34+
GET_TX_RECEIPT_STATUS: str = "gettxreceiptstatus"
35+
TOKEN_BALANCE: str = "tokenbalance"
36+
TOKEN_SUPPLY: str = "tokensupply"
37+
TOKENNFTTX: str = "tokennfttx"
38+
TOKENTX: str = "tokentx"
39+
TXLIST_INTERNAL: str = "txlistinternal"
40+
TXLIST: str = "txlist"
41+
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
from dataclasses import dataclass
2+
3+
4+
@dataclass(frozen=True)
5+
class FieldsEnum:
6+
ACTION: str = "&action="
7+
ADDRESS: str = "&address="
8+
API_KEY: str = "&apikey="
9+
BLOCK_TYPE: str = "&blocktype="
10+
BLOCKNO: str = "&blockno="
11+
BOOLEAN: str = "&boolean="
12+
CLIENT_TYPE: str = "&clienttype="
13+
CLOSEST: str = "&closest="
14+
CONTRACT_ADDRESS: str = "&contractaddress="
15+
DATA: str = "&data="
16+
END_BLOCK: str = "&endblock="
17+
END_DATE: str = "&enddate="
18+
GAS_PRICE: str = "&gasPrice="
19+
GAS: str = "&gas="
20+
HEX: str = "&hex="
21+
INDEX: str = "&index="
22+
MODULE: str = "module="
23+
OFFSET: str = "&offset="
24+
PAGE: str = "&page="
25+
POSITION: str = "&position="
26+
PREFIX: str = "https://api.etherscan.io/api?"
27+
SORT: str = "&sort="
28+
START_BLOCK: str = "&startblock="
29+
START_DATE: str = "&startdate="
30+
SYNC_MODE: str = "&syncmode="
31+
TAG: str = "&tag="
32+
TIMESTAMP: str = "&timestamp="
33+
TO: str = "&to="
34+
TXHASH: str = "&txhash="
35+
VALUE: str = "&value="

0 commit comments

Comments
 (0)