Ganache based development blockchain pre-initialized with XBR smart contracts and test accounts.
5.5K
This Docker image is a toolchain image for Crossbar.io FX developers (not XBR application developers)
This Docker image contains a Ganache blockchain, with all XBR smart contracts already installed and Ethereum test accounts filled with both ETH and XBR tokens.
Here is what you need to configure in your environment:
XBR_HDWALLET_SEED=myth like bonus scare over problem client lizard pioneer submit female collect
XBR_DEBUG_TOKEN_ADDR=0x254dffcd3277C0b1660F6d42EFbB754edaBAbC2B
XBR_DEBUG_NETWORK_ADDR=0xC89Ce4735882C9F0f0FE26686c53074E09B0D550
To check access of XBR smart contracts and show (or top-up) balances of test accounts in ETH and XBR, you can use Python 3.5+ and this test script:
python init-blockchain.py --showonly --gateway http://localhost:1545
Using web3.py v5.2.0
Connected to provider "http://localhost:1545"
Using XBR token contract address: 0x254dffcd3277C0b1660F6d42EFbB754edaBAbC2B
Using XBR network contract address: 0xC89Ce4735882C9F0f0FE26686c53074E09B0D550
------------------------------------------------------------------------------------------------------------------------
Current balances of executing (owner) account:
0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1: 9999.915883472 ETH 999620000.0 XBR
------------------------------------------------------------------------------------------------------------------------
Current balances of test accounts:
0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1: 9999.915883472 ETH 999620000.0 XBR
0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0: 10000.0 ETH 20000.0 XBR
0x22d491Bde2303f2f43325b2108D26f1eAbA1e32b: 10000.0 ETH 20000.0 XBR
0xE11BA2b4D45Eaed5996Cd0823791E0C93114882d: 10000.0 ETH 20000.0 XBR
0xd03ea8624C8C5987235048901fB614fDcA89b117: 10000.0 ETH 20000.0 XBR
0x95cED938F7991cd0dFcb48F0a06a40FA1aF46EBC: 10000.0 ETH 20000.0 XBR
0x3E5e9111Ae8eB78Fe1CC3bb8915d5D461F3Ef9A9: 10000.0 ETH 20000.0 XBR
0x28a8746e75304c0780E011BEd21C72cD78cd535E: 10000.0 ETH 20000.0 XBR
0xACa94ef8bD5ffEE41947b4585a84BdA5a3d3DA6E: 10000.0 ETH 20000.0 XBR
0x1dF62f291b2E969fB0849d99D9Ce41e2F137006e: 10000.0 ETH 20000.0 XBR
0x610Bb1573d1046FCb8A70Bbbd395754cD57C2b60: 10000.0 ETH 20000.0 XBR
0x855FA758c77D68a04990E992aA4dcdeF899F654A: 10000.0 ETH 20000.0 XBR
0xfA2435Eacf10Ca62ae6787ba2fB044f8733Ee843: 10000.0 ETH 20000.0 XBR
0x64E078A8Aa15A41B85890265648e965De686bAE6: 10000.0 ETH 20000.0 XBR
0x2F560290FEF1B3Ada194b6aA9c40aa71f8e95598: 10000.0 ETH 20000.0 XBR
0xf408f04F9b7691f7174FA2bb73ad6d45fD5d3CBe: 10000.0 ETH 20000.0 XBR
0x66FC63C2572bF3ADD0Fe5d44b97c2E614E35e9a3: 10000.0 ETH 20000.0 XBR
0xF0D5BC18421fa04D0a2A2ef540ba5A9f04014BE3: 10000.0 ETH 20000.0 XBR
0x325A621DeA613BCFb5B1A69a7aCED0ea4AfBD73A: 10000.0 ETH 20000.0 XBR
0x3fD652C93dFA333979ad762Cf581Df89BaBa6795: 10000.0 ETH 20000.0 XBR
Apart from installation of XBR smart contracts and top-up of ETH and XBR token balances, no other transactions have been run on the blockchain in the Docker image. In particular, no XBR members, markets or channels are defined yet!
For further information, please see the resources here:
Content type
Image
Digest
Size
41.3 MB
Last updated
over 5 years ago
docker pull crossbario/crossbarfx-blockchain