Generate alphabet wallets
This commit is contained in:
parent
a8a874afc0
commit
0ecf99e248
4 changed files with 24 additions and 6 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
||||||
bin
|
bin
|
||||||
log
|
log
|
||||||
data
|
data
|
||||||
wallet.json
|
wallet
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
FROSTFS_VERSION?=0.42.9
|
FROSTFS_VERSION?=0.42.9
|
||||||
|
FROSTFS_CONTRACTS_VERSION=0.19.4
|
||||||
NEOGO_VERSION?=0.106.3
|
NEOGO_VERSION?=0.106.3
|
||||||
|
|
||||||
SHELL=/bin/bash
|
SHELL=/bin/bash
|
||||||
|
@ -7,7 +8,7 @@ SHELL=/bin/bash
|
||||||
.PHONY: up
|
.PHONY: up
|
||||||
up: morph
|
up: morph
|
||||||
|
|
||||||
WALLET?=wallet.json
|
WALLET?=wallet/morph.json
|
||||||
TOOLS=$(NEOGO) $(ADM) $(CLI)
|
TOOLS=$(NEOGO) $(ADM) $(CLI)
|
||||||
|
|
||||||
ADM?=bin/frostfs-adm-v$(FROSTFS_VERSION)
|
ADM?=bin/frostfs-adm-v$(FROSTFS_VERSION)
|
||||||
|
@ -39,5 +40,22 @@ morph: $(WALLET) | $(NEOGO)
|
||||||
mkdir -p log
|
mkdir -p log
|
||||||
$(NEOGO) node --config-path . --privnet --debug 2>&1 | tee --append log/$@
|
$(NEOGO) node --config-path . --privnet --debug 2>&1 | tee --append log/$@
|
||||||
|
|
||||||
wallet.json: wallet.template | $(NEOGO)
|
wallet/morph.json: wallet.template | $(NEOGO)
|
||||||
|
mkdir -p $(dir $@)
|
||||||
$(NEOGO) wallet init --account --wallet-config $<
|
$(NEOGO) wallet init --account --wallet-config $<
|
||||||
|
|
||||||
|
.PHONY: bootstrap
|
||||||
|
bootstrap: data/contracts wallet/az.json | $(ADM)
|
||||||
|
$(ADM) morph init --contracts $< --alphabet-wallets wallet --rpc-endpoint http://localhost:30333
|
||||||
|
|
||||||
|
wallet/az.json:
|
||||||
|
mkdir -p wallet
|
||||||
|
cd wallet; $(abspath $(ADM)) morph generate-alphabet --size 1 --verbose
|
||||||
|
|
||||||
|
data/contracts: | $(NEOGO)
|
||||||
|
mkdir -p $(dir $@)
|
||||||
|
git clone https://git.frostfs.info/TrueCloudLab/frostfs-contract \
|
||||||
|
--branch=v$(FROSTFS_CONTRACTS_VERSION) \
|
||||||
|
--depth=1 --single-branch \
|
||||||
|
$@
|
||||||
|
$(MAKE) -C $@ all NEOGO=$(abspath $(NEOGO))
|
||||||
|
|
|
@ -30,7 +30,7 @@ ApplicationConfiguration:
|
||||||
Consensus:
|
Consensus:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
UnlockWallet:
|
UnlockWallet:
|
||||||
Path: "wallet.json"
|
Path: "wallet/morph.json"
|
||||||
Password: "morph"
|
Password: "morph"
|
||||||
RPC:
|
RPC:
|
||||||
Addresses:
|
Addresses:
|
||||||
|
@ -42,7 +42,7 @@ ApplicationConfiguration:
|
||||||
P2PNotary:
|
P2PNotary:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
UnlockWallet:
|
UnlockWallet:
|
||||||
Path: "wallet.json"
|
Path: "wallet/morph.json"
|
||||||
Password: "morph"
|
Password: "morph"
|
||||||
Prometheus:
|
Prometheus:
|
||||||
Addresses:
|
Addresses:
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
---
|
---
|
||||||
Path: wallet.json
|
Path: wallet/morph.json
|
||||||
Password: morph
|
Password: morph
|
||||||
|
|
Loading…
Add table
Reference in a new issue