-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
61 lines (48 loc) · 2.1 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import asyncio
import time
from logger import logger
from Bridger import Bridger
from Minter import Minter
from IPFS import IPFS
async def run():
with open("private_keys.txt", "r") as file:
logger.info("Getting private keys")
private_keys = [private_key.strip() for private_key in file]
for pk in private_keys:
# Бридж eth -> zora
bridger = Bridger(pk)
Bridger.get_current_gwei()
time.sleep(10)
bridger.eth_zora_bridge(Bridger.choose_random_amount(0.008123, 0.008909))
time.sleep(90)
# Минты
minter = Minter(pk)
# Минт1
await minter.purchase("0x3f1201a68b513049f0f6e182f742a0dce970d8cd", value_to_send=0.000777)
time.sleep(33)
# Минт2
await minter.mint("0x5ca17551b686baf0c6bd7727e153b95be9b1ae0d", 1)
time.sleep(60)
# Минт3
await minter.mint("0x4c0c2dd31d2661e8bcec60a42e803dcc6f81baad", 7)
# Минт4
await minter.purchase("0x34573d139A15e5d3D129AD6AE20c3C8B221fD921", value_to_send=0.001007)
# Минт5
await minter.purchase("0xbc8ae1adbfb0052babae00d3211f0be30f1fbd5c", value_to_send=0.000777)
time.sleep(60)
# Минт6
await minter.purchase("0xcba60a105b5c2fdaf9dd27e733132cc4f7ac9a66", value_to_send=0.000777)
# Минт7
await minter.purchase("0xd4889d519b1ab9b2fa8634e0271118de480f6d32", value_to_send=0.000777)
# Минт8
await minter.purchase("0xcdc9c8060c7c357ee25cd80455cbe05b226d291f", value_to_send=0.000778)
# Минт9
await minter.purchase("0xf6087d1e9be8b71b339a4a80f31e8826af9d0fbb", value_to_send=0.000777)
# Создание нфт
try:
hash = await IPFS.upload("1.png")
except RuntimeError:
hash = "bafkreid65aasswl5lzt6sa6eqzcft3fbuwvtqew57hb53y6x3au2q7tq3m"
await minter.createERC721(name="Something", symbol="STH", description="Hey", mintPrice=1, mintLimitPerAddress=5, editionSize=3, royaltyBPS=2.3, imageURI=f"ipfs://{hash}")
if __name__ == "__main__":
asyncio.run(run())