Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
iKapitonau committed Dec 16, 2024
1 parent 8fdd40c commit fa81020
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
20 changes: 0 additions & 20 deletions deployment/ci/docker-compose.ci.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
version: '3'

networks:
ci:
driver: bridge

services:
aesm:
image: fortanix/aesmd:2.18.101.1-1
Expand All @@ -17,8 +13,6 @@ services:
environment:
- http_proxy
- https_proxy
networks:
- ci

base:
image: tests-base-image
Expand All @@ -38,8 +32,6 @@ services:
limits:
cpus: "2"
memory: "4g"
networks:
- ci

bench:
image: tests-base-image
Expand All @@ -60,8 +52,6 @@ services:
limits:
cpus: "2"
memory: "4g"
networks:
- ci

integration-tests:
image: integration-tests
Expand All @@ -77,8 +67,6 @@ services:
limits:
cpus: "2"
memory: "4g"
networks:
- ci

bootstrap:
image: azcr.io/enigmampc/ci-node-image:latest
Expand All @@ -102,8 +90,6 @@ services:
- 26656
- 26657
- 1317
networks:
- ci

node-no-tests:
image: azcr.io/enigmampc/ci-node-image:latest
Expand All @@ -123,8 +109,6 @@ services:
- http_proxy
- https_proxy
- SECRET_LOCAL_NODE_TYPE=node
networks:
- ci

node:
image: azcr.io/enigmampc/ci-node-image:latest
Expand All @@ -144,8 +128,6 @@ services:
- http_proxy
- https_proxy
- SECRET_LOCAL_NODE_TYPE=node
networks:
- ci

enclave-test:
image: rust-enclave-test
Expand All @@ -163,5 +145,3 @@ services:
environment:
- http_proxy
- https_proxy
networks:
- ci
9 changes: 3 additions & 6 deletions deployment/ci/node_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ sleep 5

# store wasm code on-chain so we could later instantiate it
export STORE_TX_HASH=$(
yes |
secretd tx compute store erc20.wasm --from a --gas 1200000 --gas-prices 0.25uscrt --output json |
secretd tx compute store erc20.wasm --from a --gas 1200000 --gas-prices 0.25uscrt --output json -y |
jq -r .txhash
)

Expand All @@ -115,8 +114,7 @@ secretd q tx "$STORE_TX_HASH" --output json |
# secret1f395p0gg67mmfd5zcqvpnp9cxnu0hg6rjep44t is just a random address
# balances are set to 108 & 53 at init
INIT_TX_HASH=$(
yes |
secretd tx compute instantiate 1 "{\"decimals\":10,\"initial_balances\":[{\"address\":\"$(secretd keys show a -a)\",\"amount\":\"108\"},{\"address\":\"secret1f395p0gg67mmfd5zcqvpnp9cxnu0hg6rjep44t\",\"amount\":\"53\"}],\"name\":\"ReuvenPersonalRustCoin\",\"symbol\":\"RPRC\"}" --label RPRCCoin --output json --gas-prices 0.25uscrt --from a |
secretd tx compute instantiate 1 "{\"decimals\":10,\"initial_balances\":[{\"address\":\"$(secretd keys show a -a)\",\"amount\":\"108\"},{\"address\":\"secret1f395p0gg67mmfd5zcqvpnp9cxnu0hg6rjep44t\",\"amount\":\"53\"}],\"name\":\"ReuvenPersonalRustCoin\",\"symbol\":\"RPRC\"}" --label RPRCCoin --output json --gas-prices 0.25uscrt --from a -y |
jq -r .txhash
)

Expand All @@ -136,8 +134,7 @@ secretd q compute query "$CONTRACT_ADDRESS" "{\"balance\":{\"address\":\"secret1

# transfer 10 balance (ocall_handle + read_db + write_db + humanize_address + canonicalize_address)
TRANSFER_TX_HASH=$(
yes |
secretd tx compute execute --from a "$CONTRACT_ADDRESS" '{"transfer":{"amount":"10","recipient":"secret1f395p0gg67mmfd5zcqvpnp9cxnu0hg6rjep44t"}}' --gas-prices 0.25uscrt --output json 2> /dev/null |
secretd tx compute execute --from a "$CONTRACT_ADDRESS" '{"transfer":{"amount":"10","recipient":"secret1f395p0gg67mmfd5zcqvpnp9cxnu0hg6rjep44t"}}' --gas-prices 0.25uscrt --output json -y 2> /dev/null |
jq -r .txhash
)

Expand Down

0 comments on commit fa81020

Please sign in to comment.