Skip to content

Instantly share code, notes, and snippets.

@troggy
Created February 15, 2019 14:15
Show Gist options
  • Save troggy/6ab98b3a11bf85612a66348a0d0e8d0c to your computer and use it in GitHub Desktop.
Save troggy/6ab98b3a11bf85612a66348a0d0e8d0c to your computer and use it in GitHub Desktop.
troggy@graybox ξ‚° ~/projects/acebusters/parsec-contracts ξ‚° ξ‚  master ξ‚° yarn
yarn install v1.13.0
[1/4] πŸ” Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] πŸ”— Linking dependencies...
[4/4] πŸ”¨ Building fresh packages...
$ cp -n .env.template .env || true
✨ Done in 44.08s.
troggy@graybox ξ‚° ~/projects/acebusters/parsec-contracts ξ‚° ξ‚  master ξ‚° yarn deploy
yarn run v1.13.0
$ truffle migrate
Compiling ./contracts/Adminable.sol...
Compiling ./contracts/Bridge.sol...
Compiling ./contracts/DepositHandler.sol...
Compiling ./contracts/ExitHandler.sol...
Compiling ./contracts/FastExitHandler.sol...
Compiling ./contracts/Migrations.sol...
Compiling ./contracts/MinGov.sol...
Compiling ./contracts/NativeToken.sol...
Compiling ./contracts/PoaOperator.sol...
Compiling ./contracts/PosOperator.sol...
Compiling ./contracts/PriorityQueue.sol...
Compiling ./contracts/SwapExchange.sol...
Compiling ./contracts/SwapRegistry.sol...
Compiling ./contracts/TransferrableToken.sol...
Compiling ./contracts/TxLib.sol...
Compiling ./contracts/Vault.sol...
Compiling ./contracts/mocks/BridgeMock.sol...
Compiling ./contracts/mocks/OperatorMock.sol...
Compiling ./contracts/mocks/SimpleToken.sol...
Compiling ./contracts/mocks/SpaceDustNFT.sol...
Compiling ./contracts/mocks/TxMock.sol...
Compiling ./contracts/mocks/VaultMock.sol...
Compiling ./contracts/proxies/AdminableProxy.sol...
Compiling ./contracts/proxies/BridgeProxy.sol...
Compiling ./contracts/proxies/ExitHandlerProxy.sol...
Compiling ./contracts/proxies/OperatorProxy.sol...
Compiling ./contracts/test/BridgeUpgradeTest.sol...
Compiling ./contracts/zos/AdminUpgradeabilityProxy.sol...
Compiling ./contracts/zos/Initializable.sol...
Compiling ./contracts/zos/Proxy.sol...
Compiling ./contracts/zos/UpgradeabilityProxy.sol...
Compiling ./node_modules/openzeppelin-solidity/contracts/access/Roles.sol...
Compiling ./node_modules/openzeppelin-solidity/contracts/access/roles/MinterRole.sol...
Compiling ./node_modules/openzeppelin-solidity/contracts/introspection/ERC165.sol...
Compiling ./node_modules/openzeppelin-solidity/contracts/introspection/IERC165.sol...
Compiling ./node_modules/openzeppelin-solidity/contracts/math/Math.sol...
Compiling ./node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol...
Compiling ./node_modules/openzeppelin-solidity/contracts/ownership/Ownable.sol...
Compiling ./node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20.sol...
Compiling ./node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20Burnable.sol...
Compiling ./node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol...
Compiling ./node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20Mintable.sol...
Compiling ./node_modules/openzeppelin-solidity/contracts/token/ERC20/IERC20.sol...
Compiling ./node_modules/openzeppelin-solidity/contracts/token/ERC721/ERC721.sol...
Compiling ./node_modules/openzeppelin-solidity/contracts/token/ERC721/ERC721Metadata.sol...
Compiling ./node_modules/openzeppelin-solidity/contracts/token/ERC721/IERC721.sol...
Compiling ./node_modules/openzeppelin-solidity/contracts/token/ERC721/IERC721Metadata.sol...
Compiling ./node_modules/openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver.sol...
Compiling ./node_modules/openzeppelin-solidity/contracts/utils/Address.sol...
Writing artifacts to ./build/contracts
⚠️ Important ⚠️
If you're using an HDWalletProvider, it must be Web3 1.0 enabled or your migration will hang.
Starting migrations...
======================
> Network name: 'development'
> Network id: 1550239472703
> Block gas limit: 6721975
1_initial_migration.js
======================
Deploying 'Migrations'
----------------------
> transaction hash: 0x681b52dc96c6e41f6b1e61da8f67772cae33744c7905ba00fa97a51f993208ea
> Blocks: 0 Seconds: 0
> contract address: 0xae85A0B451F8fB792AF4963127575f065Df56Da9
> account: 0xCED6Cec7891276E58d9434426831709fcBdD0C49
> balance: 96.49458926
> gas used: 221107
> gas price: 20 gwei
> value sent: 0 ETH
> total cost: 0.00442214 ETH
> Saving migration to chain.
> Saving artifacts
-------------------------------------
> Total cost: 0.00442214 ETH
2_deploy_token.js
=================
Deploying 'NativeToken'
-----------------------
> transaction hash: 0x677d444fd4b211667d0c9c57c1f18e68db8d7ab41ba441db5f64f48132287d04
> Blocks: 0 Seconds: 0
> contract address: 0xc888d4764feE7A41b55a2b3FA441c64B0611dDe0
> account: 0xCED6Cec7891276E58d9434426831709fcBdD0C49
> balance: 96.47292504
> gas used: 1041282
> gas price: 20 gwei
> value sent: 0 ETH
> total cost: 0.02082564 ETH
Deployed LEAP Token at 0xc888d4764feE7A41b55a2b3FA441c64B0611dDe0
> Saving migration to chain.
> Saving artifacts
-------------------------------------
> Total cost: 0.02082564 ETH
3_deploy_plasma.js
==================
♻️ Reusing existing Native Token: 0xc888d4764feE7A41b55a2b3FA441c64B0611dDe0
Deploying 'Bridge'
------------------
> transaction hash: 0x72993ea6fd8676f98beaf29609166ab7285d9ea98ff3f4d3373fdf7c5bb032cc
> Blocks: 0 Seconds: 0
> contract address: 0xD37B258b5E8e422F1F80117C4398D9890b6212Bd
> account: 0xCED6Cec7891276E58d9434426831709fcBdD0C49
> balance: 96.46086922
> gas used: 575862
> gas price: 20 gwei
> value sent: 0 ETH
> total cost: 0.01151724 ETH
Deploying 'BridgeProxy'
-----------------------
> transaction hash: 0x0bcd79cbe390dc28fd5570b5d548e9684eac0bc139f3e985a1e5316b14d96efe
> Blocks: 0 Seconds: 0
> contract address: 0x173588B10446A8Cf3a56769b3bE9909CFA47b013
> account: 0x89C368C9bff1Cb5e374e76dE3c5b744DBc1d23Fc
> balance: 99.84822268
> gas used: 796019
> gas price: 20 gwei
> value sent: 0 ETH
> total cost: 0.01592038 ETH
Deploying 'PriorityQueue'
-------------------------
> transaction hash: 0x506de0e1c872439b428e9fd593b683ed222f5e5cde1d29c978090fffb2892a8a
> Blocks: 0 Seconds: 0
> contract address: 0x49D4A04941eE7B7C3E87D98FFc2E94D50d7a84dF
> account: 0xCED6Cec7891276E58d9434426831709fcBdD0C49
> balance: 96.45180126
> gas used: 453398
> gas price: 20 gwei
> value sent: 0 ETH
> total cost: 0.00906796 ETH
πŸ• Exit duration: 7 days
πŸ’° Exit stake: 0x016345785D8A0000
Deploying 'FastExitHandler'
---------------------------
> transaction hash: 0xfb5817dd4137eb6409c19740c4bcc0db02c7ac3ea9fcb62f7b0949f18f02a4e0
> Blocks: 0 Seconds: 0
> contract address: 0xec1259C945dd67f1bC5cb70173480E152aA748e6
> account: 0xCED6Cec7891276E58d9434426831709fcBdD0C49
> balance: 96.3488692
> gas used: 5146603
> gas price: 20 gwei
> value sent: 0 ETH
> total cost: 0.10293206 ETH
Deploying 'ExitHandlerProxy'
----------------------------
> transaction hash: 0x400434d039a06d24f8640acb5e26761a8b6b0420177ee8badc8140d2fde8499e
> Blocks: 0 Seconds: 0
> contract address: 0xD482AE46f154a9d7577b05E6e22EE23EBb003ffe
> account: 0x89C368C9bff1Cb5e374e76dE3c5b744DBc1d23Fc
> balance: 99.83293024
> gas used: 764622
> gas price: 20 gwei
> value sent: 0 ETH
> total cost: 0.01529244 ETH
Deploying 'PoaOperator'
-----------------------
> transaction hash: 0x23fe1243f13417cca5744711a2382b4008e48582e3b9b53f9219c83074c89dba
> Blocks: 0 Seconds: 0
> contract address: 0x8131d0b7345e32ddd6ed8F456eaBf445273078d3
> account: 0xCED6Cec7891276E58d9434426831709fcBdD0C49
> balance: 96.33073162
> gas used: 906879
> gas price: 20 gwei
> value sent: 0 ETH
> total cost: 0.01813758 ETH
Deploying 'OperatorProxy'
-------------------------
> transaction hash: 0x14a77581d6622344ab3adb98bebc8bdccb1d81958dc0fec0834165bbe1c974ee
> Blocks: 0 Seconds: 0
> contract address: 0x4F0EA567db20CFE0Ff65c56CD3584B827E239866
> account: 0x89C368C9bff1Cb5e374e76dE3c5b744DBc1d23Fc
> balance: 99.81773278
> gas used: 759873
> gas price: 20 gwei
> value sent: 0 ETH
> total cost: 0.01519746 ETH
Deploying 'SwapRegistry'
------------------------
> transaction hash: 0xa026f900df5a3e5bed79473fe8823487e8215fe817a3865b3378061b01db049a
> Blocks: 0 Seconds: 0
> contract address: 0xfEF3081fA5a9Cf4C7d04166c198B9526A49209eA
> account: 0xCED6Cec7891276E58d9434426831709fcBdD0C49
> balance: 96.30356662
> gas used: 1358250
> gas price: 20 gwei
> value sent: 0 ETH
> total cost: 0.027165 ETH
Deploying 'AdminableProxy'
--------------------------
> transaction hash: 0x3c9d68c1ebe8ffafd155468ec6baadee6a3d08500ffbdfab341d7e01be02e865
> Blocks: 0 Seconds: 0
> contract address: 0xf0c4291eE6d33C7CA375A9F246a4ec3d597a8659
> account: 0x89C368C9bff1Cb5e374e76dE3c5b744DBc1d23Fc
> balance: 99.80205694
> gas used: 783792
> gas price: 20 gwei
> value sent: 0 ETH
> total cost: 0.01567584 ETH
Generated node files in /build/nodeFiles
> Saving migration to chain.
> Saving artifacts
-------------------------------------
> Total cost: 0.23090596 ETH
4_deploy_governance.js
======================
πŸ• Deploying Governance with proposal time: 14 days
Deploying 'MinGov'
------------------
> transaction hash: 0xf024158fbb0f68d4d25544a261d753b477630da3ec6f5381b24e6770b04db62f
> Blocks: 0 Seconds: 0
> contract address: 0xbE9B7901fCD5B8EcBb2e017604c9FA65af097b66
> account: 0xCED6Cec7891276E58d9434426831709fcBdD0C49
> balance: 96.27487738
> gas used: 1361672
> gas price: 20 gwei
> value sent: 0 ETH
> total cost: 0.02723344 ETH
πŸ”„ Transferring ownership for Bridge: 0x173588B10446A8Cf3a56769b3bE9909CFA47b013
πŸ”„ Transferring ownership for Operator: 0x4F0EA567db20CFE0Ff65c56CD3584B827E239866
πŸ”„ Transferring ownership for ExitHandler: 0xD482AE46f154a9d7577b05E6e22EE23EBb003ffe
πŸ”„ Transferring ownership for SwapRegistry: 0xf0c4291eE6d33C7CA375A9F246a4ec3d597a8659
πŸ”„ Transferring minting right for token: 0xc888d4764feE7A41b55a2b3FA441c64B0611dDe0
> Saving migration to chain.
> Saving artifacts
-------------------------------------
> Total cost: 0.02723344 ETH
Summary
=======
> Total deployments: 12
> Final cost: 0.28338718 ETH
✨ Done in 143.12s.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment