Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Feb 9, 2024
1 parent 7b04ae4 commit 32468d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions scripts/deploy_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ deploy_ekoke() {
MINTING_ACCOUNT="${10}"
ERC20_BRIDGE_ADDRESS="${11}"
ERC20_SWAP_FEE="${12}"
ERC20_NETWORK="${13}"

echo "deploying ekoke canister $EKOKE_PRINCIPAL"

Expand All @@ -49,10 +50,11 @@ deploy_ekoke() {
xrc_canister = principal \"uf6dk-hyaaa-aaaaq-qaaaq-cai\";
ckbtc_canister = principal \"mxzaz-hqaaa-aaaar-qaada-cai\";
icp_ledger_canister = principal \"ryjl3-tyaaa-aaaaa-aaaba-cai\";
cketh_minter_canister = principal \"qcg3w-tyaaa-aaaaa-aaaea-cai\";
cketh_ledger_canister = principal \"qcg3w-tyaaa-aaaaa-aaaea-cai\";
cketh_minter_canister = principal \"sv3dd-oaaaa-aaaar-qacoa-cai\";
cketh_ledger_canister = principal \"ss2fx-dyaaa-aaaar-qacoq-cai\";
erc20_bridge_address = \"$ERC20_BRIDGE_ADDRESS\";
erc20_gas_price = $ERC20_SWAP_FEE;
erc20_network = variant { $ERC20_NETWORK };
})"

dfx deploy --mode=$INSTALL_MODE --yes --network="$NETWORK" --argument="$ekoke_init_args" ekoke
Expand Down
5 changes: 3 additions & 2 deletions scripts/deploy_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@ ADMIN_PRINCIPAL="$(dfx identity get-principal)"
INITIAL_SUPPLY="8880101010000000000"
EKOKE_INITIAL_BALANCES="$(balances "$ADMIN_PRINCIPAL:250000000000000000")"
SWAP_ACCOUNT="$(account "$ADMIN_PRINCIPAL")"
ERC20_BRIDGE_ADDRESS="0x2CE04Fd64DB0372F6fb4B7a542f0F9196feE5663"
ERC20_BRIDGE_ADDRESS="0xc08e14F47382BCc1dA6c3Ff366018cAb1c77091F"
ERC20_SWAP_FEE="231634000000000"
EKOKE_MINTING_ACCOUNT="$(account "$ADMIN_PRINCIPAL" "{33;169;149;73;231;146;144;124;94;39;94;84;81;6;141;173;223;77;67;238;141;202;180;135;86;35;26;143;183;113;49;35}")"
ERC20_NETWORK="Sepolia"

dfx stop
dfx start --background

cd ../

deploy_deferred "reinstall" "local" "$DEFERRED_PRINCIPAL" "$EKOKE_PRINCIPAL" "$MARKETPLACE_PRINCIPAL" "$ADMIN_PRINCIPAL"
deploy_ekoke "reinstall" "local" "$EKOKE_PRINCIPAL" "$ADMIN_PRINCIPAL" "$INITIAL_SUPPLY" "$EKOKE_INITIAL_BALANCES" "$DEFERRED_PRINCIPAL" "$MARKETPLACE_PRINCIPAL" "$SWAP_ACCOUNT" "$EKOKE_MINTING_ACCOUNT" "$ERC20_BRIDGE_ADDRESS" "$ERC20_SWAP_FEE"
deploy_ekoke "reinstall" "local" "$EKOKE_PRINCIPAL" "$ADMIN_PRINCIPAL" "$INITIAL_SUPPLY" "$EKOKE_INITIAL_BALANCES" "$DEFERRED_PRINCIPAL" "$MARKETPLACE_PRINCIPAL" "$SWAP_ACCOUNT" "$EKOKE_MINTING_ACCOUNT" "$ERC20_BRIDGE_ADDRESS" "$ERC20_SWAP_FEE" "$ERC20_NETWORK"
deploy_marketplace "reinstall" "local" "$MARKETPLACE_PRINCIPAL" "$DEFERRED_PRINCIPAL" "$EKOKE_PRINCIPAL" "$ADMIN_PRINCIPAL"

dfx stop
Expand Down

0 comments on commit 32468d9

Please sign in to comment.