2020-12-01 15:03:59 +00:00
|
|
|
# Download NeoFS sidechain dump with pre-deployed NeoFS contracts
|
2022-09-08 15:18:53 +00:00
|
|
|
get.morph_chain: get.contracts get.adm
|
2020-07-10 15:14:30 +00:00
|
|
|
get.morph_chain: MORPH_CHAIN_DUMP_NAME=neo.morph.dump.
|
|
|
|
get.morph_chain: MORPH_CHAIN_PATH?=
|
|
|
|
get.morph_chain:
|
|
|
|
@mkdir -p ./vendor
|
|
|
|
|
|
|
|
ifeq (${MORPH_CHAIN_PATH},)
|
2020-09-16 13:08:53 +00:00
|
|
|
@echo "⇒ Download morph chain dump from ${MORPH_CHAIN_URL}"
|
2020-07-10 15:14:30 +00:00
|
|
|
@curl \
|
2020-12-29 14:38:54 +00:00
|
|
|
-sSL "${MORPH_CHAIN_URL}" \
|
2020-07-10 15:14:30 +00:00
|
|
|
-o ./vendor/morph_chain.gz
|
|
|
|
else
|
|
|
|
@echo "⇒ Copy local archive ${MORPH_CHAIN_PATH}"
|
|
|
|
@cp ${MORPH_CHAIN_PATH} ./vendor/morph_chain.gz
|
|
|
|
endif
|
2022-09-08 15:18:53 +00:00
|
|
|
|
|
|
|
get.contracts: NEOFS_CONTRACTS_DEST=./vendor/contracts
|
|
|
|
get.contracts: NEOFS_CONTRACTS_ARCHIVE=neofs-contracts.tar.gz
|
|
|
|
get.contracts:
|
|
|
|
@mkdir -p ${NEOFS_CONTRACTS_DEST}
|
|
|
|
|
|
|
|
ifeq (${NEOFS_CONTRACTS_PATH},)
|
|
|
|
@echo "⇒ Download compiled NeoFS contracts from ${NEOFS_CONTRACTS_URL}"
|
|
|
|
@curl -sSL ${NEOFS_CONTRACTS_URL} -o ${NEOFS_CONTRACTS_ARCHIVE}
|
|
|
|
@tar -xf ${NEOFS_CONTRACTS_ARCHIVE} -C ${NEOFS_CONTRACTS_DEST} --strip-components 1
|
|
|
|
@rm ${NEOFS_CONTRACTS_ARCHIVE}
|
|
|
|
else
|
|
|
|
@echo "⇒ Copy compiled contracts from ${NEOFS_CONTRACTS_PATH}"
|
|
|
|
@cp -r ${NEOFS_CONTRACTS_PATH} ${NEOFS_CONTRACTS_DEST}
|
|
|
|
endif
|
|
|
|
|
|
|
|
get.adm: NEOFS_ADM_DEST=./vendor/neofs-adm
|
|
|
|
get.adm: NEOFS_ADM_ARCHIVE=neofs-adm.tar.gz
|
|
|
|
get.adm:
|
|
|
|
|
|
|
|
ifeq (${NEOFS_ADM_PATH},)
|
|
|
|
@echo "⇒ Download NeoFS ADM binary from ${NEOFS_ADM_URL}"
|
|
|
|
@curl -sSL ${NEOFS_ADM_URL} -o ${NEOFS_ADM_ARCHIVE}
|
|
|
|
@tar -xvf ${NEOFS_ADM_ARCHIVE} -C ./vendor | xargs -I {} \
|
|
|
|
mv ./vendor/{} ${NEOFS_ADM_DEST}
|
|
|
|
@rm ${NEOFS_ADM_ARCHIVE}
|
|
|
|
else
|
|
|
|
@echo "⇒ Copy neofs-adm binary from ${NEOFS_ADM_PATH}"
|
|
|
|
@cp ${NEOFS_ADM_PATH} ${NEOFS_ADM_DEST}
|
|
|
|
endif
|