-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbalancer-deployment.log
150 lines (120 loc) · 11.4 KB
/
balancer-deployment.log
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
==============================================================
============== Initializing Balancer Python API ==============
==============================================================
Network is set to polygon
Initialized account 0x59d07dc34B135B17b87840a86BFF7302039E7EDf
Connected to web3 at https://polygon-mainnet.g.alchemy.com/v2/zL9ln7YhX32ML551En80UACmBAyQmifj
[WARNING] StablePhantomPoolFactory not found for network polygon
[WARNING] [Errno 2] No such file or directory: '/Users/jakic007/Documents/work/repos/balpy/venv/lib/python3.8/site-packages/balpy/deployments/testnet-linear-phantom-stable-pools/output/polygon.json'
[WARNING] LinearPoolFactory not found for network polygon
[WARNING] [Errno 2] No such file or directory: '/Users/jakic007/Documents/work/repos/balpy/venv/lib/python3.8/site-packages/balpy/deployments/testnet-linear-phantom-stable-pools/output/polygon.json'
Available contracts on polygon
0xBA12222222228d8Ba445958a75a0704d566BF2C8 Vault
0x5aDDCCa35b7A0D07C74063c48700C8590E87864E BalancerHelpers
0x8E9aa87E45e92bad84D5F8DD1bff34Fb92637dE9 WeightedPoolFactory
0xA5bf2ddF098bb0Ef6d120C98217dD6B141c74EE0 WeightedPool2TokensFactory
0xc66Ba2B6595D3613CCab350C886aCE23866EDe24 StablePoolFactory
0x751A0bC0e3f75b38e01Cf25bFCE7fF36DE1C87DE LiquidityBootstrappingPoolFactory
0xdAE7e32ADc5d490a43cCba1f0c736033F2b4eFca MetaStablePoolFactory
0x0f7bb7ce7b6ed9366F9b6B910AdeFE72dC538193 InvestmentPoolFactory
0xA331D84eC860Bf466b4CdCcFb4aC09a1B43F3aE6 Authorizer
==============================================================
==============================================================
================ Step 1: Check Token Balances ================
==============================================================
Token: 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270
Need: 1.0
Wallet has: 1.0
Wallet has sufficient balance.
Token: 0x3A58a54C066FdC0f2D55FC9C89F0415C92eBf3C4
Need: 1.0
Wallet has: 1.0
Wallet has sufficient balance.
==============================================================
============== Step 2: Approve Token Allowance ==============
==============================================================
Token: 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270
Current Allowance: 0E-110
Current Balance: 1.000000000000000071542424055
Amount to Spend: 1
Insufficient allowance!
Will need to unlock 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270
Insufficient Allowance: Increasing to 115792089237316195423570985008687907853269984665640564039457584007913129639935
Gas Estimate: 48716
Gas Price: 45.5 Gwei
Nonce: 15
Sending transaction, view progress at:
https://polygonscan.com/tx/0x6fc18ddb65f4276c64fa58ffb2bd1add3cc56e9626a2ef27a74dc6b758c24287
Token: 0x3A58a54C066FdC0f2D55FC9C89F0415C92eBf3C4
Current Allowance: 0E-110
Current Balance: 1.000000000000000071542424055
Amount to Spend: 1
Insufficient allowance!
Will need to unlock 0x3A58a54C066FdC0f2D55FC9C89F0415C92eBf3C4
Insufficient Allowance: Increasing to 115792089237316195423570985008687907853269984665640564039457584007913129639935
Gas Estimate: 62385
Gas Price: 45.6 Gwei
Nonce: 16
Sending transaction, view progress at:
https://polygonscan.com/tx/0x955d0e4f5d6c285fc440e637faa8e4ba95f4c7d7aff57f45b4891489689ac421
Waiting for tx: 0x6fc18ddb65f4276c64fa58ffb2bd1add3cc56e9626a2ef27a74dc6b758c24287
Transaction accepted by network!
Transaction was successful!
Waiting for tx: 0x955d0e4f5d6c285fc440e637faa8e4ba95f4c7d7aff57f45b4891489689ac421
Transaction accepted by network!
Transaction was successful!
==============================================================
=============== Step 3: Create Pool in Factory ===============
==============================================================
Pool function created, generating transaction...
Gas Estimate: 5631175
Gas Price: 37.6 Gwei
Nonce: 17
Transaction Generated!
Sending transaction, view progress at:
https://polygonscan.com/tx/0xa4455a09a0e976c91172ac378dfaf7294506c7b0ce2b6b0b106510d0c97554dd
Waiting for tx: 0xa4455a09a0e976c91172ac378dfaf7294506c7b0ce2b6b0b106510d0c97554dd
Transaction accepted by network!
Transaction was successful!
Retrieved receipt!
/Users/jakic007/Documents/work/repos/balpy/venv/lib/python3.8/site-packages/web3/contract.py:1162: UserWarning: The log with transaction hash: b'\xa4EZ\t\xa0\xe9v\xc9\x11r\xac7\x8d\xfa\xf7)E\x06\xc7\xb0\xce+k\x0b\x10e\x10\xd0\xc9uT\xdd' and logIndex: 102 encountered the following error during processing: MismatchedABI(The event signature did not match the provided ABI). It has been discarded.
warnings.warn(
/Users/jakic007/Documents/work/repos/balpy/venv/lib/python3.8/site-packages/web3/contract.py:1162: UserWarning: The log with transaction hash: b'\xa4EZ\t\xa0\xe9v\xc9\x11r\xac7\x8d\xfa\xf7)E\x06\xc7\xb0\xce+k\x0b\x10e\x10\xd0\xc9uT\xdd' and logIndex: 104 encountered the following error during processing: MismatchedABI(The event signature did not match the provided ABI). It has been discarded.
warnings.warn(
/Users/jakic007/Documents/work/repos/balpy/venv/lib/python3.8/site-packages/web3/contract.py:1162: UserWarning: The log with transaction hash: b'\xa4EZ\t\xa0\xe9v\xc9\x11r\xac7\x8d\xfa\xf7)E\x06\xc7\xb0\xce+k\x0b\x10e\x10\xd0\xc9uT\xdd' and logIndex: 105 encountered the following error during processing: MismatchedABI(The event signature did not match the provided ABI). It has been discarded.
warnings.warn(
/Users/jakic007/Documents/work/repos/balpy/venv/lib/python3.8/site-packages/web3/contract.py:1162: UserWarning: The log with transaction hash: b'\xa4EZ\t\xa0\xe9v\xc9\x11r\xac7\x8d\xfa\xf7)E\x06\xc7\xb0\xce+k\x0b\x10e\x10\xd0\xc9uT\xdd' and logIndex: 106 encountered the following error during processing: MismatchedABI(The event signature did not match the provided ABI). It has been discarded.
warnings.warn(
/Users/jakic007/Documents/work/repos/balpy/venv/lib/python3.8/site-packages/web3/contract.py:1162: UserWarning: The log with transaction hash: b'\xa4EZ\t\xa0\xe9v\xc9\x11r\xac7\x8d\xfa\xf7)E\x06\xc7\xb0\xce+k\x0b\x10e\x10\xd0\xc9uT\xdd' and logIndex: 107 encountered the following error during processing: MismatchedABI(The event signature did not match the provided ABI). It has been discarded.
warnings.warn(
/Users/jakic007/Documents/work/repos/balpy/venv/lib/python3.8/site-packages/web3/contract.py:1162: UserWarning: The log with transaction hash: b'\xa4EZ\t\xa0\xe9v\xc9\x11r\xac7\x8d\xfa\xf7)E\x06\xc7\xb0\xce+k\x0b\x10e\x10\xd0\xc9uT\xdd' and logIndex: 108 encountered the following error during processing: MismatchedABI(The event signature did not match the provided ABI). It has been discarded.
warnings.warn(
/Users/jakic007/Documents/work/repos/balpy/venv/lib/python3.8/site-packages/web3/contract.py:1162: UserWarning: The log with transaction hash: b'\xa4EZ\t\xa0\xe9v\xc9\x11r\xac7\x8d\xfa\xf7)E\x06\xc7\xb0\xce+k\x0b\x10e\x10\xd0\xc9uT\xdd' and logIndex: 109 encountered the following error during processing: MismatchedABI(The event signature did not match the provided ABI). It has been discarded.
warnings.warn(
/Users/jakic007/Documents/work/repos/balpy/venv/lib/python3.8/site-packages/web3/contract.py:1162: UserWarning: The log with transaction hash: b'\xa4EZ\t\xa0\xe9v\xc9\x11r\xac7\x8d\xfa\xf7)E\x06\xc7\xb0\xce+k\x0b\x10e\x10\xd0\xc9uT\xdd' and logIndex: 110 encountered the following error during processing: MismatchedABI(The event signature did not match the provided ABI). It has been discarded.
warnings.warn(
/Users/jakic007/Documents/work/repos/balpy/venv/lib/python3.8/site-packages/web3/contract.py:1162: UserWarning: The log with transaction hash: b'\xa4EZ\t\xa0\xe9v\xc9\x11r\xac7\x8d\xfa\xf7)E\x06\xc7\xb0\xce+k\x0b\x10e\x10\xd0\xc9uT\xdd' and logIndex: 111 encountered the following error during processing: MismatchedABI(The event signature did not match the provided ABI). It has been discarded.
warnings.warn(
/Users/jakic007/Documents/work/repos/balpy/venv/lib/python3.8/site-packages/web3/contract.py:1162: UserWarning: The log with transaction hash: b'\xa4EZ\t\xa0\xe9v\xc9\x11r\xac7\x8d\xfa\xf7)E\x06\xc7\xb0\xce+k\x0b\x10e\x10\xd0\xc9uT\xdd' and logIndex: 112 encountered the following error during processing: MismatchedABI(The event signature did not match the provided ABI). It has been discarded.
warnings.warn(
Don't worry about that ^ warning, everything's fine :)
Your pool ID is:
0xaf5e0b5425de1f5a630a8cb5aa9d97b8141c908d000200000000000000000366
==================================================================
=============== Step 4: Add Initial Tokens to Pool ===============
==================================================================
Gas Estimate: 318519
Gas Price: 42 Gwei
Nonce: 18
Transaction Generated!
Sending transaction, view progress at:
https://polygonscan.com/tx/0xa48c1edbbb48c27a97563b7034498b3741e4dbd98c230f5662ec94f7b02c4ddb
Waiting for tx: 0xa48c1edbbb48c27a97563b7034498b3741e4dbd98c230f5662ec94f7b02c4ddb
Transaction accepted by network!
Transaction was successful!
==================================================================
================== Step 5: Verify Pool Contract ==================
==================================================================
yarn hardhat verify-contract --id 20210727-meta-stable-pool --name MetaStablePool --address 0xaF5E0B5425dE1F5a630A8cB5AA9D97B8141C908D --network polygon --key YN6CTM684ASIP6EXRF238XFT5RFZFGC8QJ --args 0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c8000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000002c00000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000003a352944000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000d65fa54f8df43064dfd8ddf223a446fc638800a9000000000000000000000000000000000000000000000000000000000000001c42616c616e6365722073744d4154494320537461626c6520506f6f6c000000000000000000000000000000000000000000000000000000000000000000000010422d73744d415449432d535441424c450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000003a58a54c066fdc0f2d55fc9c89f0415c92ebf3c400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ded6c522d803e35f65318a9a4d7333a22d582199000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000384
If you need more complete instructions on what to do with this command, go to:
https://dev.balancer.fi/resources/pools/verification