Skip to content

Commit

Permalink
Update makefile for latest contract IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
tupui committed Sep 18, 2024
1 parent 6245173 commit 69c34f3
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
1 change: 1 addition & 0 deletions .soroban/soroban_domain_id
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CCEYNQXUY3GQT4SM5MZOHZBYNLEOW66C36UD4YVBCZ37X5QNBOVTZO4P
2 changes: 1 addition & 1 deletion .soroban/soroban_versioning_id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CAP52ERGUZ65UNPHP36CQBHYUPEUG2TT4NPVEV7CREWRT7UCPD7PRWEE
CCYM5OC6RTMEUHRK2BRU5YX4G4O745DPLPU4EXVTRCUN7JRJJWXEEXAB
25 changes: 23 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ contract_deploy: contract_test contract_build-release ## Deploy Soroban contrac
> .soroban/soroban_versioning_id && \
cat .soroban/soroban_versioning_id

contract_domain_deploy:
stellar contract deploy \
--wasm contracts/domain_3ebbeec072f4996958d4318656186732773ab5f0c159dcf039be202b4ecb8af8.wasm \
--source-account mando-$(network) \
--network $(network) \
> .soroban/soroban_domain_id && \
cat .soroban/soroban_domain_id

contract_init:
stellar contract invoke \
--source-account mando-$(network) \
Expand All @@ -93,6 +101,19 @@ contract_init:
init \
--admin $(shell soroban keys address mando-$(network))

contract_domain_init:
stellar contract invoke \
--source-account mando-testnet \
--network testnet \
--id $(shell cat .soroban/soroban_domain_id) \
-- \
init \
--adm $(shell soroban keys address mando-$(network)) \
--node_rate 100 \
--col_asset $(shell soroban keys address mando-$(network)) \
--min_duration 31536000 \
--allowed_tlds '[{"bytes": "786c6d"}]'

contract_upgrade: contract_build-release
stellar contract invoke \
--source-account mando-$(network) \
Expand Down Expand Up @@ -129,9 +150,9 @@ contract_register:
register \
--maintainer $(shell soroban keys address mando-$(network)) \
--name tansu \
--maintainers '[$(shell soroban keys address mando-$(network)),$(shell soroban keys address grogu-$(network))]' \
--maintainers '["$(shell soroban keys address mando-$(network))", "$(shell soroban keys address grogu-$(network))"]' \
--url https://github.com/tupui/soroban-versioning \
--hash da76cd6fdcc71d730306d23b121f8cc67d3eedda \
--hash 920b7ffed638360e7259c4b6a4691ef947cfb9bc4ab1b3d6b7f0628c71e86b25 \
--domain_contract_id $(domain_contract_id)

contract_commit:
Expand Down
4 changes: 2 additions & 2 deletions dapp/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
PUBLIC_SOROBAN_NETWORK_PASSPHRASE="Test SDF Network ; September 2015"
PUBLIC_SOROBAN_RPC_URL="https://soroban-testnet.stellar.org:443"

PUBLIC_TANSU_CONTRACT_ID="CAP52ERGUZ65UNPHP36CQBHYUPEUG2TT4NPVEV7CREWRT7UCPD7PRWEE"
PUBLIC_SOROBAN_DOMAIN_CONTRACT_ID="CDODLZIO3OY5ZBCNYQALDZWLW2NN533WIDZUDNW2NRWJGLTWSABGSMH7"
PUBLIC_TANSU_CONTRACT_ID="CCYM5OC6RTMEUHRK2BRU5YX4G4O745DPLPU4EXVTRCUN7JRJJWXEEXAB"
PUBLIC_SOROBAN_DOMAIN_CONTRACT_ID="CCEYNQXUY3GQT4SM5MZOHZBYNLEOW66C36UD4YVBCZ37X5QNBOVTZO4P"

SOROBAN_ACCOUNT="alice"
SOROBAN_NETWORK="testnet"

0 comments on commit 69c34f3

Please sign in to comment.