Skip to content

Instantly share code, notes, and snippets.

@e00dan
Created July 19, 2021 19:33
Show Gist options
  • Save e00dan/c9cf4fd9d08f5ef792eaca40728ace62 to your computer and use it in GitHub Desktop.
Save e00dan/c9cf4fd9d08f5ef792eaca40728ace62 to your computer and use it in GitHub Desktop.
➜ hadouken-contract git:(intergration/godwoken) ✗ yarn ts-node scripts-godwoken/deploy.ts
yarn run v1.22.10
$ /home/kuzi/projects/hadouken-contract/node_modules/.bin/ts-node scripts-godwoken/deploy.ts
Deploy Polyjuice Address Translator
Deploy Address Translator Factory
Deploy Address Translator Factory {
gasPrice: 0,
gasLimit: 6000000,
data: '0x61004356600436101561000d57610039565b600035601c52600051341561002157600080fd5b63cab6f8fa811415610037573360005260206000f35b505b60006000fd5b61000461004303610004600039610004610043036000f3'
}
Deployment Transaction hash 0x925dba7a650c8954ffdc312220f084a42bf735102b0e59c92660878c5fed68a7
Deployed Contract address 0x50f336E42c42439D5b996c7f381a1E89Df764434
Polyjuice Deployer address 0x54f97aB000041b3983eF83548336878392FAa219
Deploy All Tokens
Start Tokens Deploy
Token DAI deployed: 0x7d98c16dC6759c89d11fcb0cf77019f85825DD0F
Token USDC deployed: 0x9d17fB1e28d6140715dCF1BB1128c30c9097A1CC
Token USDT deployed: 0xFfA3F9E2d58be2c86A92bEfAE82354A957fdDA08
Token BUSD deployed: 0x01f2Dffd1fF2C625Dc50D838A8762B412f4Bc8Dd
Deploy All Registries
Start Registries Deploy
Address Provider Deploy
Address Provider Admin 0xD173313A51f8fc37BcF67569b463abd89d81844f
Polyjuice Address Provider Admin 0x54f97aB000041b3983eF83548336878392FAa219
Deployment transaction 0x9ddefcf9a4da35cd021f1e374c932c8c6f9dbb84f169d5c7e62ddbcd6b3655e8
Address provider deployed: 0x8Da5A93Be671743aC4bf512ffF0d90BA77890CE2
Registry Deploy
Deployment transaction 0xc83844047060668947d6dbfabe038375520d8838498f63e0f8b599d86365f60f
Address Provider updated 0x6943819b7410be0406c96d85faacf93fd1fefd47c4395960f4bb1af3090c3624
Address Provider max id 0
Registry deployed: 0xBeD0F9b408EE05F7fDa6f5CDF1Bdcc8003453A52
Pool Info Deploy { addressProvider: '0x8Da5A93Be671743aC4bf512ffF0d90BA77890CE2' }
deployPoolInfo
Deployment transaction 0x096214886d54f444ecb1f0d16ced69ac2cb7e85c2de28244fc59f093cdb10b76
Address Provider max id 0
Address Provider new id added 0x4ffe06a01e710e11dbf559edaa436c9cef163c506d59312d27e82f414b2a6dad
Address Provider updated max id 1
Pool Info deployed: 0xE54a8bd9819899223dae3C1362CEAd11Ce12771b
Swaps Deploy
Deployment transaction 0xe8e19e62effd7f19b6f4ffd86a3ea808ab6d4fff2262cae8a18a8deda6c22451
Address Provider max id 1
Address Provider new id added 0x4688ea0725a4b83f8e53435c5067e4b2a15f2e54c07d99e5579734604b8951bf
Address Provider updated max id 2
Swaps deployed: 0x5153f327531f5579CD41f7698eaE5907c4Ecfe72
Factory Deploy
Deployment transaction 0x8891e588bb804a07266ad6115d1c230eb9d33524d8ed9524a23bd0f14e9defd2
Address Provider max id 2
Address Provider new id added 0x6c3876f07985635b306ac67ab05419272b77cb2e802d4a2f79a5be1dc71aba12
Address Provider updated max id 3
Update Registry Transaction 0xd0562586f213c0556bcf1824d490cd0127f61d4f214420837c872251c18f54c1
Metapools Factory deployed: 0xe643a26fD69eEAD8506dF7761a79ea56D9496A92
Registries Deploy Finished
Deploy All Pools
Start Deploying All Pools
Deployer 0xD173313A51f8fc37BcF67569b463abd89d81844f
Deploy Address Translator Factory
Deploy Address Translator Factory {
gasPrice: 0,
gasLimit: 6000000,
data: '0x61004356600436101561000d57610039565b600035601c52600051341561002157600080fd5b63cab6f8fa811415610037573360005260206000f35b505b60006000fd5b61000461004303610004600039610004610043036000f3'
}
Deployment Transaction hash 0x86ead9a8f17f71fc908e103434fc07b0ee68cb21fd3445e88165733d5658a737
Deployed Contract address 0x65b5676D227db13400d0F2D4e5880923bc16fff1
Polyjuice Deployer address 0x54f97aB000041b3983eF83548336878392FAa219
Deployer 0x54f97aB000041b3983eF83548336878392FAa219
Pool Contract StableSwap2Pool.json
Pool Name 2pool
Start Deploy 2pool
Start Deploy LP Token
LP Token deployed: 0x1B7d9fCad2fbeE55cfd68F273d38239c011314b9
Set Pool as Lp Token Minter
Lp Token Minter set to Pool 0x8ad9177c9fc90d1abfd041834b7cd38aa615c11c8b5cbaa01b509f46fc4d1cae
Pool Tokens
Token 0xe0Aaf4A15441D466133CDf3F2AD6fd68527fB207
Mint Token DAI
Mint Token Amount 10000000000000000000000
(node:21464) UnhandledPromiseRejectionWarning: Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":697,\"error\":{\"code\":-32099,\"message\":\"to id missing!\"}}","error":{"code":-32099},"requestBody":"{\"method\":\"eth_estimateGas\",\"params\":[{\"gasPrice\":\"0x1\",\"type\":\"0x0\",\"from\":\"0xd173313a51f8fc37bcf67569b463abd89d81844f\",\"to\":\"0xe0aaf4a15441d466133cdf3f2ad6fd68527fb207\",\"data\":\"0xca44180300000000000000000000000000000000000000000000021e19e0c9bab2400000\"}],\"id\":697,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"http://localhost:8024"}, tx={"data":"0xca44180300000000000000000000000000000000000000000000021e19e0c9bab2400000","to":{},"from":"0xD173313A51f8fc37BcF67569b463abd89d81844f","gasPrice":{"type":"BigNumber","hex":"0x01"},"type":0,"nonce":{},"gasLimit":{},"chainId":{}}, code=UNPREDICTABLE_GAS_LIMIT, version=abstract-signer/5.4.0)
at Logger.makeError (/home/kuzi/projects/hadouken-contract/node_modules/@ethersproject/logger/src.ts/index.ts:213:28)
at Logger.throwError (/home/kuzi/projects/hadouken-contract/node_modules/@ethersproject/logger/src.ts/index.ts:225:20)
at /home/kuzi/projects/hadouken-contract/node_modules/@ethersproject/abstract-signer/src.ts/index.ts:300:31
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 6)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:21464) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:21464) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Done in 753.67s.
➜ hadouken-contract git:(intergration/godwoken) ✗
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment