-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(deployment): add chain specific script placeholders (#775)
- Loading branch information
Manish
committed
Nov 9, 2022
1 parent
9843775
commit fd81cba
Showing
68 changed files
with
428 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
source ../../evm/bmc/deploy.sh | ||
|
||
function bsc_deploy_bmc() { | ||
evm_deploy_bmc $args | ||
} | ||
|
||
function bsc_extract_bmc_management_address() { | ||
bsc_extract_bmc_management_address $args | ||
} | ||
|
||
function bsc_extract_bmc_periphery_address() { | ||
evm_extract_bmc_management_address $args | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
source ../../evm/bmc/helpers/add_rm_bsh.sh | ||
|
||
function bsc_add_service() { | ||
evm_add_service $args | ||
} | ||
|
||
function bsc_remove_service() { | ||
evm_remove_service $args | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
source ../../evm/bmc/helpers/add_rm_bsh.sh | ||
|
||
function bsc_add_link() { | ||
source evm_add_link $args | ||
} | ||
|
||
function bsc_remove_link() { | ||
source evm_remove_link $args | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
source ../../evm/bmc/helpers/add_rm_relay.sh | ||
|
||
function bsc_add_relay() { | ||
evm_add_relay $args | ||
} | ||
|
||
function bsc_remove_relay() { | ||
evm_remove_relay $args | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
source ../../evm/bmc/helpers/set_link_rx_height.sh | ||
|
||
function bsc_set_link_rxheight() { | ||
bsc_set_link_rxheight $args | ||
} |
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
source ../../evm/bsh/bts/deploy.sh | ||
|
||
function bsc_deploy_bts() { | ||
evm_deploy_bts $args | ||
} | ||
|
||
function bsc_extract_btscore_address() { | ||
evm_extract_btscore_address $args | ||
} | ||
|
||
function bsc_extract_btsperiphery_address() { | ||
evm_extract_btsperiphery_address $args | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
source ../../evm/bsh/bts/helpers/deploy_token.sh | ||
|
||
function bsc_deploy_token() { | ||
evm_deploy_token $args | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
source ../../evm/bsh/bts/helpers/register_token.sh | ||
|
||
function bsc_register_native_token() { | ||
evm_register_native_token $args | ||
} | ||
|
||
function bsc_register_wrapped_coin() { | ||
evm_register_wrapped_coin $args | ||
} | ||
|
||
function bsc_get_token_address() { | ||
evm_get_token_address $args | ||
} |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
function evm_deploy_bmc() { | ||
# Input: bmc contract folder | ||
# Check: that the folder-name is bmc | ||
# clear existing artifacts (if any) | ||
# compile contracts | ||
# truffle migrate to deploy contract (catch error and retry) | ||
# return success/failure | ||
} | ||
|
||
function evm_extract_bmc_management_address() { | ||
# Input: bmc contract folder | ||
# Check: if deployment was successful | ||
# Return BMC Management from truffle deployment artifacts | ||
} | ||
|
||
function evm_extract_bmc_periphery_address() { | ||
# Input: bmc contract folder | ||
# Check: if deployment was successful | ||
# Return BMC Periphery from truffle deployment artifacts | ||
} |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
function evm_add_service() { | ||
# Input: bmc contract folder, bsh contract address and name | ||
# Call bmc addService method | ||
# Return success | ||
} | ||
|
||
function evm_remove_service() { | ||
# Input: bmc contract folder, bsh contract address and name | ||
# Call bmc removeService method | ||
# Return success | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
function evm_add_link() { | ||
# Input: source chain bmc address, soldity bmc contract folder | ||
# Do: Add link | ||
# the script will need to interact with js code to invoke addLink method | ||
# Return success | ||
} | ||
|
||
function evm_remove_link() { | ||
# Input: source chain bmc address, soldity bmc contract folder | ||
# Do: Remove link | ||
# the script will need to interact with js code to invoke removeLink method | ||
# Return success | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
function evm_add_relay() { | ||
# input source chain bmc address, relay user address | ||
# call add relay | ||
# return success | ||
} | ||
|
||
function evm_remove_relay() { | ||
# input source chain bmc address, relay user address | ||
# call remove relay | ||
# return success | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
function evm_set_link_rxheight() { | ||
# Input: source chain bmc address and height, soldity bmc contract folder | ||
# Do: Set link RxHeight | ||
# the script will need to interact with js code to invoke setLinkRxHeight method | ||
# Return success | ||
} |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
function evm_deploy_bts() { | ||
# Input bts contract folder and deployment params | ||
# truffle compile and truffle migrate | ||
# return success | ||
} | ||
|
||
function evm_extract_btscore_address() { | ||
# Input bts contract folder | ||
# If deployment was successful, extract btscore address | ||
} | ||
|
||
function evm_extract_btsperiphery_address() { | ||
# Input bts contract folder | ||
# If deployment was successful, extract bts periphery address | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
function evm_deploy_token() { | ||
# Input bts contracts folder and token args | ||
# Run truffle migrate and extract deployed contract address | ||
# return contract address | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
|
||
function evm_register_native_token() { | ||
# Input bts contracts folder and necessary token args | ||
# Check if coin has already been registered | ||
# If it hasn't, register native token | ||
# return coin address | ||
} | ||
|
||
function evm_register_wrapped_coin() { | ||
# Input bts contracts folder and necessary token args | ||
# Check if wrapped coin has already been registered | ||
# If it hasn't, register wrapped coin | ||
# return coin address | ||
} | ||
|
||
function evm_get_token_address() { | ||
# Input bts contract address | ||
# Query and return token address | ||
} |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
function icon_deploy_bmc() { | ||
# Input: bmc contract folder | ||
# Check: that the folder-name is bmc | ||
# clear existing artifacts (if any) | ||
# compile contracts | ||
# truffle migrate to deploy contract (catch error and retry) | ||
# extract and return bmc address | ||
} |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#! /bin/bash | ||
|
||
function icon_add_service() { | ||
# Input: bmc contract folder, bsh contract address and name | ||
# Call bmc addService method | ||
# Return success | ||
} | ||
|
||
function icon_remove_service() { | ||
# Input: bmc contract folder, bsh contract address and name | ||
# Call bmc removeService method | ||
# Return success | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
function icon_add_link() { | ||
# Input: source chain bmc address, bmc contract folder | ||
# Do: Add link | ||
# Return success | ||
} | ||
|
||
function icon_remove_link() { | ||
# Input: source chain bmc address, bmc contract folder | ||
# Do: Remove link | ||
# Return success | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
function icon_add_relay() { | ||
# input source chain bmc address, relay user address | ||
# call add relay | ||
# return success | ||
} | ||
|
||
function icon_remove_relay() { | ||
# input source chain bmc address, relay user address | ||
# call remove relay | ||
# return success | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
function icon_set_fee_aggregator_address() { | ||
# Get fee gathering address | ||
# Update and return success | ||
} | ||
|
||
|
||
function icon_set_fee_gathering_term() { | ||
# Input fee gathering term | ||
# Update and return success | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#! /bin/bash | ||
|
||
function icon_set_link_rxheight() { | ||
# Input: source chain bmc address and height, bmc contract folder | ||
# Do: Set link RxHeight | ||
# Return success | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
function icon_deploy_bts() { | ||
# Input bts contract folder and deployment params | ||
# truffle compile and truffle migrate | ||
# return bts contract address | ||
} |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
function icon_deploy_token() { | ||
# Input bts contracts folder and token args | ||
# Deploy token | ||
# extract and return contract address | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
|
||
function icon_register_native_token() { | ||
# Input bts contracts folder and necessary token args | ||
# Check if coin has already been registered | ||
# If it hasn't, register native token | ||
# return coin address | ||
} | ||
|
||
function icon_register_wrapped_coin() { | ||
# Input bts contracts folder and necessary token args | ||
# Check if wrapped coin has already been registered | ||
# If it hasn't, register wrapped coin | ||
# return coin address | ||
} | ||
|
||
function icon_get_token_address() { | ||
# Input bts contract address | ||
# Query and return token address | ||
} |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
source ../../evm/bmc/deploy.sh | ||
|
||
function snow_deploy_bmc() { | ||
evm_deploy_bmc $args | ||
} | ||
|
||
function snow_extract_bmc_management_address() { | ||
snow_extract_bmc_management_address $args | ||
} | ||
|
||
function snow_extract_bmc_periphery_address() { | ||
evm_extract_bmc_management_address $args | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
source ../../evm/bmc/helpers/add_rm_bsh.sh | ||
|
||
function snow_add_service() { | ||
evm_add_service $args | ||
} | ||
|
||
function snow_remove_service() { | ||
evm_remove_service $args | ||
} |
Oops, something went wrong.