Update nitro node config with fixturenet-eth contract addresses
This commit is contained in:
parent
fe197e921e
commit
086342be67
@ -157,6 +157,7 @@
|
|||||||
|
|
||||||
# Remove the deployment dir
|
# Remove the deployment dir
|
||||||
sudo rm -rf nitro-contracts-deployment
|
sudo rm -rf nitro-contracts-deployment
|
||||||
|
```
|
||||||
|
|
||||||
### Setup
|
### Setup
|
||||||
|
|
||||||
@ -184,7 +185,7 @@
|
|||||||
# Private key for a funded L1 account, to be used for contract deployment on L1
|
# Private key for a funded L1 account, to be used for contract deployment on L1
|
||||||
# Required since this private key will be utilized by both L1 and L2 nodes of the bridge
|
# Required since this private key will be utilized by both L1 and L2 nodes of the bridge
|
||||||
|
|
||||||
geth_deployer_pk: ""
|
geth_deployer_pk: "888814df89c4358d7ddb3fa4b0213e7331239a80e1f013eaa7b2deca2a41a218"
|
||||||
|
|
||||||
# Custom token to be deployed
|
# Custom token to be deployed
|
||||||
token_name: "TestToken"
|
token_name: "TestToken"
|
||||||
@ -252,7 +253,7 @@
|
|||||||
laconic-so deployment --dir nitro-contracts-deployment logs nitro-contracts -f
|
laconic-so deployment --dir nitro-contracts-deployment logs nitro-contracts -f
|
||||||
```
|
```
|
||||||
|
|
||||||
* To deploy another token
|
* To deploy another token:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export TOKEN_NAME="TestToken2"
|
export TOKEN_NAME="TestToken2"
|
||||||
@ -261,16 +262,16 @@
|
|||||||
# Note: Token supply denotes actual number of tokens and not the supply in Wei
|
# Note: Token supply denotes actual number of tokens and not the supply in Wei
|
||||||
export INITIAL_TOKEN_SUPPLY="10000000"
|
export INITIAL_TOKEN_SUPPLY="10000000"
|
||||||
|
|
||||||
laconic-so deployment --dir nitro-contracts-deployment exec nitro-contracts "cd packages/nitro-protocol && yarn contracts:deploy-token-geth"
|
laconic-so deployment --dir nitro-contracts-deployment exec nitro-contracts "cd packages/nitro-protocol && TOKEN_NAME=$TOKEN_NAME TOKEN_SYMBOL=$TOKEN_SYMBOL INITIAL_TOKEN_SUPPLY=$INITIAL_TOKEN_SUPPLY yarn contracts:deploy-token-geth"
|
||||||
```
|
```
|
||||||
|
|
||||||
* To transfer a token to an account
|
* To transfer a token to an account:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Note: Replace `<TokenName>` with name of the token to be tranferred (e.g. TestToken2)
|
# Note: Replace `<token-name>` with name of the token to be tranferred (e.g. TestToken2)
|
||||||
export $ASSET_ADDRESS=$(laconic-so deployment --dir nitro-contracts-deployment exec nitro-contracts "jq -r '.\"{{ geth_chain_id }}\"[0].contracts.<TokenName>.address' /app/deployment/nitro-addresses.json")
|
export ASSET_ADDRESS=$(laconic-so deployment --dir nitro-contracts-deployment exec nitro-contracts "jq -r '.\"{{ geth_chain_id }}\"[0].contracts.<token-name>.address' /app/deployment/nitro-addresses.json")
|
||||||
export $ACCOUNT="<address of target account>"
|
export ACCOUNT="<target-account-address>"
|
||||||
export $AMOUNT="<Amount to be transferred>"
|
export AMOUNT="<transfer-amount>"
|
||||||
|
|
||||||
laconic-so deployment --dir nitro-contracts-deployment exec nitro-contracts "cd packages/nitro-protocol && yarn hardhat transfer --contract $ASSET_ADDRESS --to $ACCOUNT --amount 1000 --network geth"
|
laconic-so deployment --dir nitro-contracts-deployment exec nitro-contracts "cd packages/nitro-protocol && yarn hardhat transfer --contract $ASSET_ADDRESS --to $ACCOUNT --amount 1000 --network geth"
|
||||||
```
|
```
|
||||||
@ -357,7 +358,7 @@
|
|||||||
|
|
||||||
# Private key should correspond to a funded account on L1 and this account must own the Nitro contracts
|
# Private key should correspond to a funded account on L1 and this account must own the Nitro contracts
|
||||||
# It also needs to hold L1 tokens to fund Nitro channels
|
# It also needs to hold L1 tokens to fund Nitro channels
|
||||||
nitro_chain_pk: ""
|
nitro_chain_pk: "888814df89c4358d7ddb3fa4b0213e7331239a80e1f013eaa7b2deca2a41a218"
|
||||||
|
|
||||||
# Deployed Nitro contract addresses
|
# Deployed Nitro contract addresses
|
||||||
na_address: ""
|
na_address: ""
|
||||||
@ -466,7 +467,7 @@
|
|||||||
* List down L2 channels created by the bridge:
|
* List down L2 channels created by the bridge:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
laconic-so deployment --dir bridge-deployment exec nitro-rpc-client "nitro-rpc-client get-all-l2-channels -p 4006 -h nitro-bridge"
|
laconic-so deployment --dir bridge-deployment exec nitro-rpc-client "nitro-rpc-client get-all-l2-channels -p 4005 -h nitro-bridge"
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
nitro_chain_url: "wss://sepolia.laconic.com"
|
nitro_chain_url: "wss://fixturenet-eth.laconic.com"
|
||||||
na_address: "0xfD5276DDfE0E7738Af5F3dA0dE58D36560BbE544"
|
na_address: "0x2B6AFbd4F479cE4101Df722cF4E05F941523EaD9"
|
||||||
ca_address: "0xC71F47d58d521aE24FDf5e324969aCD6f83b6Ff8"
|
ca_address: "0xBca48057Da826cB2eb1258E2C679678b269dC262"
|
||||||
vpa_address: "0xEA55dEab3718CF4d084a94Fe4C0D750a80Eb1F2C"
|
vpa_address: "0xCf5207018766587b8cBad4B8B1a1a38c225ebA7A"
|
||||||
asset_address: "0xa4351114dAE1aBEb2d552d441C9733c72682a45D"
|
asset_address: "0x2b79F4a92c177B4E61F5c4AC37b1B8A623c665A4"
|
||||||
bridge_nitro_address: "0xf0E6a85C6D23AcA9ff1b83477D426ed26F218185"
|
bridge_nitro_address: "0xf0E6a85C6D23AcA9ff1b83477D426ed26F218185"
|
||||||
nitro_l1_bridge_multiaddr: "/dns4/bridge.laconic.com/tcp/3005/p2p/16Uiu2HAky2PYTfBNHpytybz4ADY9n7boiLgK5btJpTrGVbWC3diZ"
|
nitro_l1_bridge_multiaddr: "/dns4/bridge.laconic.com/tcp/3005/p2p/16Uiu2HAky2PYTfBNHpytybz4ADY9n7boiLgK5btJpTrGVbWC3diZ"
|
||||||
nitro_l2_bridge_multiaddr: "/dns4/bridge.laconic.com/tcp/3006/p2p/16Uiu2HAky2PYTfBNHpytybz4ADY9n7boiLgK5btJpTrGVbWC3diZ"
|
nitro_l2_bridge_multiaddr: "/dns4/bridge.laconic.com/tcp/3006/p2p/16Uiu2HAky2PYTfBNHpytybz4ADY9n7boiLgK5btJpTrGVbWC3diZ"
|
||||||
|
Loading…
Reference in New Issue
Block a user