Skip to content

Commit

Permalink
feat(deployment): add chain specific script placeholders (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manish committed Nov 9, 2022
1 parent 9843775 commit fd81cba
Show file tree
Hide file tree
Showing 68 changed files with 428 additions and 0 deletions.
15 changes: 15 additions & 0 deletions provisioning/chains/bsc/bmc/deploy.sh
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
}
11 changes: 11 additions & 0 deletions provisioning/chains/bsc/bmc/helpers/add_rm_bsh.sh
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
}
11 changes: 11 additions & 0 deletions provisioning/chains/bsc/bmc/helpers/add_rm_link.sh
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
}
11 changes: 11 additions & 0 deletions provisioning/chains/bsc/bmc/helpers/add_rm_relay.sh
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.
7 changes: 7 additions & 0 deletions provisioning/chains/bsc/bmc/helpers/set_link_rx_height.sh
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.
15 changes: 15 additions & 0 deletions provisioning/chains/bsc/bsh/bts/deploy.sh
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.
7 changes: 7 additions & 0 deletions provisioning/chains/bsc/bsh/bts/helpers/deploy_token.sh
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
}
15 changes: 15 additions & 0 deletions provisioning/chains/bsc/bsh/bts/helpers/register_token.sh
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.
22 changes: 22 additions & 0 deletions provisioning/chains/evm/bmc/deploy.sh
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.
13 changes: 13 additions & 0 deletions provisioning/chains/evm/bmc/helpers/add_rm_bsh.sh
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
}
15 changes: 15 additions & 0 deletions provisioning/chains/evm/bmc/helpers/add_rm_link.sh
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
}
13 changes: 13 additions & 0 deletions provisioning/chains/evm/bmc/helpers/add_rm_relay.sh
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.
8 changes: 8 additions & 0 deletions provisioning/chains/evm/bmc/helpers/set_link_rx_height.sh
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.
17 changes: 17 additions & 0 deletions provisioning/chains/evm/bsh/bts/deploy.sh
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.
7 changes: 7 additions & 0 deletions provisioning/chains/evm/bsh/bts/helpers/deploy_token.sh
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
}
21 changes: 21 additions & 0 deletions provisioning/chains/evm/bsh/bts/helpers/register_token.sh
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.
10 changes: 10 additions & 0 deletions provisioning/chains/icon/bmc/deploy.sh
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.
13 changes: 13 additions & 0 deletions provisioning/chains/icon/bmc/helpers/add_rm_bsh.sh
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
}
13 changes: 13 additions & 0 deletions provisioning/chains/icon/bmc/helpers/add_rm_link.sh
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
}
13 changes: 13 additions & 0 deletions provisioning/chains/icon/bmc/helpers/add_rm_relay.sh
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.
12 changes: 12 additions & 0 deletions provisioning/chains/icon/bmc/helpers/set_fee_aggregator.sh
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.
7 changes: 7 additions & 0 deletions provisioning/chains/icon/bmc/helpers/set_link_rx_height.sh
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
}
7 changes: 7 additions & 0 deletions provisioning/chains/icon/bsh/bts/deploy.sh
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.
7 changes: 7 additions & 0 deletions provisioning/chains/icon/bsh/bts/helpers/deploy_token.sh
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
}
21 changes: 21 additions & 0 deletions provisioning/chains/icon/bsh/bts/helpers/register_token.sh
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.
15 changes: 15 additions & 0 deletions provisioning/chains/snow/bmc/deploy.sh
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
}
11 changes: 11 additions & 0 deletions provisioning/chains/snow/bmc/helpers/add_rm_bsh.sh
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
}
Loading

0 comments on commit fd81cba

Please sign in to comment.