From 79952e82e0b1952bf604d173f55fabf676d1a37b Mon Sep 17 00:00:00 2001 From: Airat Arifullin Date: Fri, 2 Aug 2024 14:58:03 +0300 Subject: [PATCH] [#XX] Makefile: Add subjects for storage and client wallets to FrostfsID Signed-off-by: Airat Arifullin --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 051aa7d..9095b7a 100644 --- a/Makefile +++ b/Makefile @@ -84,8 +84,18 @@ up/bootstrap: get vendor/hosts echo "Transfer GAS to wallet $${f}" \ && ./vendor/frostfs-adm -c frostfs-adm.yml morph refill-gas --storage-wallet $${f} --gas 10.0 \ || die "Failed to transfer GAS to alphabet wallets"; \ + echo "Create frostfsid subject for storage wallet $${f}" \ + && subj_key=`neo-go wallet dump-keys -w $${f} | head -2 | tail -1` \ + && subj_name_suffix=`echo $${subj_key} | tail -c 5` \ + && ./vendor/frostfs-adm -c frostfs-adm.yml morph frostfsid create-subject --namespace "" --subject-key $${subj_key} --subject-name storage$${subj_name_suffix} \ + || die "Failed to create subject for the wallet"; \ done - @echo "FrostFS sidechain environment is deployed" + @echo "Create frostfsid subject for ./wallets/wallet.json" \ + && subj_key=`neo-go wallet dump-keys -w ./wallets/wallet.json | head -2 | tail -1` \ + && subj_name_suffix=`echo $${subj_key} | tail -c 5` \ + && ./vendor/frostfs-adm -c frostfs-adm.yml morph frostfsid create-subject --namespace "" --subject-key $${subj_key} --subject-name storage$${subj_name_suffix} \ + || die "Failed to create subject for the wallet"; \ + echo "FrostFS sidechain environment is deployed" # Build up certain service .PHONY: up/%