diff --git a/Makefile b/Makefile index 087cf96..c4c6819 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,11 @@ build/api/production: testnet: make -C contracts/api testnet +# MAINNET + +mainnet: + make -C contracts/api mainnet + # UNIT TESTS test/api: build/api/debug node_modules codegen diff --git a/contracts/api/Makefile b/contracts/api/Makefile index 5040d0b..f928e0f 100644 --- a/contracts/api/Makefile +++ b/contracts/api/Makefile @@ -5,9 +5,9 @@ BIN := ./node_modules/.bin SRC_CONTRACT_NAME = api MAINNET_NODE_URL = https://eos.greymass.com -MAINNET_CONTRACT_ACCOUNT = api +MAINNET_CONTRACT_ACCOUNT = unicove.gm TESTNET_NODE_URL = https://jungle4.greymass.com -TESTNET_CONTRACT_ACCOUNT = api.gm +TESTNET_CONTRACT_ACCOUNT = unicove.gm build: | build/dir cdt-cpp -abigen -abigen_output=build/${SRC_CONTRACT_NAME}.abi -o build/${SRC_CONTRACT_NAME}.wasm src/${SRC_CONTRACT_NAME}.cpp -R src -I include -D DEBUG @@ -29,11 +29,15 @@ testnet: build/debug build/ ${SRC_CONTRACT_NAME}.wasm ${SRC_CONTRACT_NAME}.abi mainnet: build/production - cleos -u $(MAINNET_NODE_URL) set contract \ - --dont-broadcast --skip-sign --expiration 259200 --json-file msig.json \ - ${MAINNET_CONTRACT_ACCOUNT} build/ ${SRC_CONTRACT_NAME}.wasm ${SRC_CONTRACT_NAME}.abi - cleos -u $(MAINNET_NODE_URL) multisig propose_trx ${MAINNET_MSIG_PROPOSAL} ${MAINNET_MSIG_SIGNERS} \ - msig.json ${MAINNET_MSIG_PROPOSER} -p ${MAINNET_MSIG_PERMISSION} + cleos -u $(MAINNET_NODE_URL) set contract $(MAINNET_CONTRACT_ACCOUNT) \ + build/ ${SRC_CONTRACT_NAME}.wasm ${SRC_CONTRACT_NAME}.abi + +# mainnet: build/production +# cleos -u $(MAINNET_NODE_URL) set contract \ +# --dont-broadcast --skip-sign --expiration 259200 --json-file msig.json \ +# ${MAINNET_CONTRACT_ACCOUNT} build/ ${SRC_CONTRACT_NAME}.wasm ${SRC_CONTRACT_NAME}.abi +# cleos -u $(MAINNET_NODE_URL) multisig propose_trx ${MAINNET_MSIG_PROPOSAL} ${MAINNET_MSIG_SIGNERS} \ +# msig.json ${MAINNET_MSIG_PROPOSER} -p ${MAINNET_MSIG_PERMISSION} test: build/debug node_modules build/contract.ts bun test