Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: virtual group and sp exit #284

Merged
merged 152 commits into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
31a3a7b
init virtual group module
fynnss Jun 8, 2023
bf2b9e8
add create/delete/deposit/withdraw/swapout messages
fynnss Jun 8, 2023
8757af2
add sp keeper dependency
fynnss Jun 8, 2023
60a4c7e
add router and type function
fynnss Jun 9, 2023
4b655a0
refactor sequence to support uint32 and U256
fynnss Jun 9, 2023
1ccfa76
impl virtual group module
fynnss Jun 12, 2023
823d2e0
refactor storage module
fynnss Jun 13, 2023
92d67a7
refactor challenge module to algin the new design
forcodedancing Jun 13, 2023
b966f03
self review code
fynnss Jun 13, 2023
155c7a0
fix testcase and punish code
fynnss Jun 13, 2023
891e8e1
fix challenge testcases
forcodedancing Jun 13, 2023
3c25b37
refactor payment module to algin the new design
forcodedancing Jun 13, 2023
1e8c69b
add e2e test
fynnss Jun 14, 2023
694b1d5
fix some unit tests
forcodedancing Jun 14, 2023
2fb5175
update cosmos-sdk
fynnss Jun 14, 2023
e6a383c
update go mod
fynnss Jun 14, 2023
e40705c
fix e2e test
forcodedancing Jun 14, 2023
7921310
store deposit
fynnss Jun 14, 2023
1722ccb
update gomod
forcodedancing Jun 14, 2023
273cb40
Merge branch 'virtual_group_dev' of https://github.com/bnb-chain/insc…
forcodedancing Jun 14, 2023
7a290fb
fix some e2e test case
fynnss Jun 14, 2023
b2663b5
fix cancel create object
fynnss Jun 14, 2023
f509024
ignore error for testing
forcodedancing Jun 15, 2023
52a358a
fix storage test
fynnss Jun 15, 2023
17c825e
fix test case
fynnss Jun 15, 2023
96909c6
make GetGVG more simple
fynnss Jun 15, 2023
b12854d
add virtual group swap out message
fynnss Jun 15, 2023
8fe023b
fix swap out
fynnss Jun 15, 2023
54c70dd
add event
fynnss Jun 16, 2023
154c6b8
fix ignite missing placeholder
fynnss Jun 16, 2023
c5d989e
add sp exit message
fynnss Jun 16, 2023
49c3008
add sp exit
fynnss Jun 16, 2023
305170a
complete sp exit
fynnss Jun 16, 2023
3474ecf
add swap deposit
fynnss Jun 16, 2023
7049f63
remove virtual payment account from local virtual group/ event
fynnss Jun 16, 2023
476a941
complete sp exit process
fynnss Jun 16, 2023
0129b7a
fix mock file error
fynnss Jun 16, 2023
cd296af
add mock gen
fynnss Jun 16, 2023
2af4799
fix swap out as secondary sp error
fynnss Jun 17, 2023
56e32bf
refator payment
forcodedancing Jun 17, 2023
3e27bd6
refactor approval to get more extends
fynnss Jun 17, 2023
761014c
fix payment unit test
forcodedancing Jun 17, 2023
f691fef
add withdraw cli
forcodedancing Jun 17, 2023
09ecdfd
revert extends of approval
fynnss Jun 18, 2023
a49e874
refactor payment for settlement and resume
forcodedancing Jun 18, 2023
1a924af
refactor payment for out flow
forcodedancing Jun 18, 2023
2757b88
merge develop branch
forcodedancing Jun 18, 2023
917988a
fix proto
forcodedancing Jun 18, 2023
9fe9e75
add basic migration bucket logic
fynnss Jun 18, 2023
84950b4
fix the sp exit
fynnss Jun 19, 2023
bb4e6b5
refine the code
fynnss Jun 19, 2023
480346a
add payment for bucket migration
forcodedancing Jun 19, 2023
410b02f
refactor code
fynnss Jun 19, 2023
9cca39b
fix some issues
forcodedancing Jun 19, 2023
a6857ab
fix issue and unit tests
forcodedancing Jun 19, 2023
80d3d74
add migration check and rebinding
fynnss Jun 19, 2023
8bded06
refine the code
fynnss Jun 19, 2023
0c627a9
refactor withdraw from gvg & gvg family
forcodedancing Jun 19, 2023
2addc95
feat: use bls sig in sealObject by secondary sps (#283)
alexgao001 Jun 19, 2023
f415738
fix gensp test error
fynnss Jun 19, 2023
2c2bca4
add more check and params
fynnss Jun 19, 2023
695fb68
add some unit tests for payment
forcodedancing Jun 19, 2023
1d2027d
fix compile error
fynnss Jun 20, 2023
d8b1d5f
add exit,completeexit, swapout events
fynnss Jun 20, 2023
83f6676
add migration event
fynnss Jun 20, 2023
f4f3e61
add create gvg family event
fynnss Jun 20, 2023
45cff69
mirror update
forcodedancing Jun 20, 2023
076eb77
fix lint issues
forcodedancing Jun 20, 2023
ce9888a
fix lint issues
forcodedancing Jun 20, 2023
06b468e
fix some unit tests
forcodedancing Jun 20, 2023
ec138fa
fix the limit of gvgs and lvgs
fynnss Jun 20, 2023
80d2e78
fix bucket migration
forcodedancing Jun 20, 2023
e0a32f5
fix address issues for new messages
forcodedancing Jun 20, 2023
f3f2358
refine challenge module
forcodedancing Jun 20, 2023
4c6c10d
refine payment module
forcodedancing Jun 20, 2023
e2dc772
fix basesuite for create so many families
fynnss Jun 20, 2023
e05e723
fix lint
fynnss Jun 20, 2023
1405fa1
add deposit/withdraw test for virtual group
fynnss Jun 20, 2023
7eba790
fix issue of iterator
forcodedancing Jun 20, 2023
1ed830a
reslove conflict
forcodedancing Jun 20, 2023
4239ca1
add basic sp exit test and fix some bugs
fynnss Jun 21, 2023
0c7a9aa
fix issue and refactor e2e tests
forcodedancing Jun 21, 2023
b8bebc0
Merge branch 'virtual_group_dev' of https://github.com/bnb-chain/insc…
forcodedancing Jun 21, 2023
0fea1d1
add e2e test cases
forcodedancing Jun 21, 2023
9deee39
fix and add e2e test cases
forcodedancing Jun 21, 2023
d929c5c
refactor e2e test
fynnss Jun 25, 2023
2f6db16
add sp swap out test
fynnss Jun 25, 2023
18ec63b
refine code by cr
fynnss Jun 25, 2023
cd55999
fix some review comments
forcodedancing Jun 25, 2023
e22290a
Merge branch 'virtual_group_dev' of https://github.com/bnb-chain/insc…
forcodedancing Jun 25, 2023
91b5d21
fix cr suggestion
fynnss Jun 25, 2023
d6c5455
fix some review comments
forcodedancing Jun 25, 2023
d2d580a
Merge branch 'virtual_group_dev' of https://github.com/bnb-chain/insc…
forcodedancing Jun 25, 2023
438c820
refine the code
fynnss Jun 25, 2023
73f9955
calculate sp num instead of constant
forcodedancing Jun 26, 2023
1c7721e
add migration e2e test
fynnss Jun 26, 2023
f43d4ce
feat: bls sig for complete migrate bucket (#291)
alexgao001 Jun 26, 2023
666c8b2
fix bucket migration issue
forcodedancing Jun 26, 2023
8ad2c8c
Merge branch 'develop' into virtual_group_dev
forcodedancing Jun 26, 2023
f443cac
update cosmos sdk version
forcodedancing Jun 26, 2023
86fa55a
fix migration bucket e2e test
fynnss Jun 26, 2023
b6c6761
fix CodeReview issues
fynnss Jun 26, 2023
b888f1b
fix some bugs
fynnss Jun 27, 2023
9914b09
update staking per GB
fynnss Jun 27, 2023
6e83731
refine some var
fynnss Jun 27, 2023
6ad8b1a
fix RebindingGVGsToBucket revert error
fynnss Jun 27, 2023
a5392ea
feat: Local virtual group and Billing info refacot (#306)
fynnss Jun 27, 2023
a965c5f
fix challenge refactor
fynnss Jun 27, 2023
ffacaa3
fix some review tips
fynnss Jun 28, 2023
1505c6d
fix internal bucket info error
fynnss Jun 28, 2023
2609d08
add family id to CreateBucketEvent
fynnss Jun 28, 2023
f56ed3a
refactor challenge module
forcodedancing Jun 28, 2023
d299fc2
Merge branch 'virtual_group_dev' of https://github.com/bnb-chain/insc…
forcodedancing Jun 28, 2023
6e9ff89
refactor payment module
forcodedancing Jun 28, 2023
b0ad55a
fix redundany GenId
fynnss Jun 28, 2023
e6d8306
add family id check
fynnss Jun 28, 2023
b98c935
refactor payment module
forcodedancing Jun 28, 2023
2092e31
Merge branch 'develop' into virtual_group_dev
fynnss Jun 28, 2023
fb29be7
fix error
fynnss Jun 28, 2023
d6ca5a0
refactor payment module
forcodedancing Jun 28, 2023
74bbfea
fix issue
forcodedancing Jun 28, 2023
732c9b9
implement virtual group cmd
fynnss Jun 28, 2023
2ef735a
refine the comments of protobuf
fynnss Jun 28, 2023
0d7680c
fix e2e test
forcodedancing Jun 28, 2023
1bdd88f
Merge branch 'virtual_group_dev' of https://github.com/bnb-chain/insc…
forcodedancing Jun 28, 2023
9e75af6
remove some useless code
fynnss Jun 28, 2023
8f1cd06
fix sp exit test
fynnss Jun 28, 2023
bec213e
add more sp exit test and fix some bugs
fynnss Jun 28, 2023
58811c1
using id instead of address for some interfaces and events
forcodedancing Jun 28, 2023
6178800
fix some tests
forcodedancing Jun 28, 2023
9ad16fa
fix e2e
fynnss Jun 28, 2023
a792901
fix unit test
fynnss Jun 29, 2023
058daf5
add more check and parmas check
fynnss Jun 29, 2023
71130b8
fix e2e tests
forcodedancing Jun 29, 2023
f40d9db
fix an issue
forcodedancing Jun 29, 2023
34bc408
fix sp test
fynnss Jun 29, 2023
b6d6df2
fix ci lint
fynnss Jun 29, 2023
9e5726b
remove useless code (#308)
fynnss Jun 29, 2023
51467d2
chore: refine payment for gvg settle (#309)
forcodedancing Jun 29, 2023
b0a8e19
chore: refine gvg staking per bytes and default params (#310)
fynnss Jun 30, 2023
ba8957b
feat: add chainId to bls sign doc (#313)
alexgao001 Jul 3, 2023
73740ca
feat: refine swap out and migrate bucket (#311)
fynnss Jul 4, 2023
e16dd04
fix: update swagger (#317)
fynnss Jul 5, 2023
49ee25a
feat: enhance head object api (#321)
fynnss Jul 6, 2023
facd3ff
fix gnfd query api (#318)
fynnss Jul 6, 2023
c325941
feat: update challenge and stop serving for sp exit (#322)
forcodedancing Jul 6, 2023
ae8d6c6
feat: fix review comments of sp exit (#320)
forcodedancing Jul 6, 2023
b375189
fix code review tips (#325)
fynnss Jul 6, 2023
89c8507
Merge remote-tracking branch 'origin/develop' into virtual_group_dev
fynnss Jul 6, 2023
ec0cbfa
fix cosmos sdk version
fynnss Jul 6, 2023
91a693f
fix e2e test case
fynnss Jul 7, 2023
28ad8fe
fix review tips
fynnss Jul 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ proto-format-check:
build:
go build -o build/bin/gnfd -ldflags="$(ldflags)" ./cmd/gnfd/main.go

mock-gen:
sh ./scripts/mockgen.sh

docker-image:
go mod vendor # temporary, should be removed after open source
docker build . -t ${IMAGE_NAME}
Expand Down
44 changes: 34 additions & 10 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ import (
storagemodule "github.com/bnb-chain/greenfield/x/storage"
storagemodulekeeper "github.com/bnb-chain/greenfield/x/storage/keeper"
storagemoduletypes "github.com/bnb-chain/greenfield/x/storage/types"
virtualgroupmodule "github.com/bnb-chain/greenfield/x/virtualgroup"
virtualgroupmodulekeeper "github.com/bnb-chain/greenfield/x/virtualgroup/keeper"
virtualgroupmoduletypes "github.com/bnb-chain/greenfield/x/virtualgroup/types"
)

const (
Expand Down Expand Up @@ -158,22 +161,24 @@ var (
spmodule.AppModuleBasic{},
paymentmodule.AppModuleBasic{},
permissionmodule.AppModuleBasic{},
virtualgroupmodule.AppModuleBasic{},
storagemodule.AppModuleBasic{},
challengemodule.AppModuleBasic{},
)

// module account permissions
maccPerms = map[string][]string{
authtypes.FeeCollectorName: nil,
distrtypes.ModuleName: nil,
stakingtypes.BondedPoolName: {authtypes.Burner, authtypes.Staking},
stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking},
govtypes.ModuleName: {authtypes.Burner},
paymentmoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking},
crosschaintypes.ModuleName: {authtypes.Minter},
permissionmoduletypes.ModuleName: nil,
bridgemoduletypes.ModuleName: nil,
spmoduletypes.ModuleName: {authtypes.Staking},
authtypes.FeeCollectorName: nil,
distrtypes.ModuleName: nil,
stakingtypes.BondedPoolName: {authtypes.Burner, authtypes.Staking},
stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking},
govtypes.ModuleName: {authtypes.Burner},
paymentmoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking},
crosschaintypes.ModuleName: {authtypes.Minter},
permissionmoduletypes.ModuleName: nil,
bridgemoduletypes.ModuleName: nil,
spmoduletypes.ModuleName: {authtypes.Staking},
virtualgroupmoduletypes.ModuleName: nil,
}
)

Expand Down Expand Up @@ -230,6 +235,7 @@ type App struct {
PaymentKeeper paymentmodulekeeper.Keeper
ChallengeKeeper challengemodulekeeper.Keeper
PermissionmoduleKeeper permissionmodulekeeper.Keeper
VirtualgroupKeeper virtualgroupmodulekeeper.Keeper
StorageKeeper storagemodulekeeper.Keeper

// mm is the module manager
Expand Down Expand Up @@ -284,6 +290,7 @@ func New(
bridgemoduletypes.StoreKey,
gashubtypes.StoreKey,
spmoduletypes.StoreKey,
virtualgroupmoduletypes.StoreKey,
paymentmoduletypes.StoreKey,
permissionmoduletypes.StoreKey,
storagemoduletypes.StoreKey,
Expand Down Expand Up @@ -457,6 +464,18 @@ func New(
)
paymentModule := paymentmodule.NewAppModule(appCodec, app.PaymentKeeper, app.AccountKeeper, app.BankKeeper)

app.VirtualgroupKeeper = *virtualgroupmodulekeeper.NewKeeper(
appCodec,
keys[virtualgroupmoduletypes.StoreKey],
tKeys[virtualgroupmoduletypes.TStoreKey],
authtypes.NewModuleAddress(virtualgroupmoduletypes.ModuleName).String(),
app.SpKeeper,
app.AccountKeeper,
app.BankKeeper,
app.PaymentKeeper,
)
virtualgroupModule := virtualgroupmodule.NewAppModule(appCodec, app.VirtualgroupKeeper, app.SpKeeper)

app.PermissionmoduleKeeper = *permissionmodulekeeper.NewKeeper(
appCodec,
keys[permissionmoduletypes.StoreKey],
Expand All @@ -474,6 +493,7 @@ func New(
app.PaymentKeeper,
app.PermissionmoduleKeeper,
app.CrossChainKeeper,
app.VirtualgroupKeeper,
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)
storageModule := storagemodule.NewAppModule(appCodec, app.StorageKeeper, app.AccountKeeper, app.BankKeeper, app.SpKeeper)
Expand Down Expand Up @@ -521,6 +541,7 @@ func New(
bridgeModule,
gashubModule,
spModule,
virtualgroupModule,
paymentModule,
permissionModule,
storageModule,
Expand Down Expand Up @@ -549,6 +570,7 @@ func New(
bridgemoduletypes.ModuleName,
gashubtypes.ModuleName,
spmoduletypes.ModuleName,
virtualgroupmoduletypes.ModuleName,
paymentmoduletypes.ModuleName,
permissionmoduletypes.ModuleName,
storagemoduletypes.ModuleName,
Expand All @@ -573,6 +595,7 @@ func New(
bridgemoduletypes.ModuleName,
gashubtypes.ModuleName,
spmoduletypes.ModuleName,
virtualgroupmoduletypes.ModuleName,
paymentmoduletypes.ModuleName,
permissionmoduletypes.ModuleName,
storagemoduletypes.ModuleName,
Expand Down Expand Up @@ -602,6 +625,7 @@ func New(
oracletypes.ModuleName,
bridgemoduletypes.ModuleName,
spmoduletypes.ModuleName,
virtualgroupmoduletypes.ModuleName,
paymentmoduletypes.ModuleName,
permissionmoduletypes.ModuleName,
storagemoduletypes.ModuleName,
Expand Down
3 changes: 2 additions & 1 deletion deployment/localup/create_sp.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"read_price": "0.087",
"store_price": "0.0048",
"free_read_quota": 10000000000,
"creator":"0x7b5Fe22B5446f7C62Ea27B8BD71CeF94e03f3dF2"
"creator":"0x7b5Fe22B5446f7C62Ea27B8BD71CeF94e03f3dF2",
"bls_key": "89f5e82d1bbb7c751b063d6d69d30c5812a088cabb9ed015b1741939a45a896d83b5435d63257b954450c26d857de4e1"
}
],
"title": "create sp",
Expand Down
12 changes: 9 additions & 3 deletions deployment/localup/localup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function init() {
${bin} keys add sp${i} --keyring-backend test --home ${workspace}/.local/sp${i} > ${workspace}/.local/sp${i}/info 2>&1
${bin} keys add sp${i}_fund --keyring-backend test --home ${workspace}/.local/sp${i} > ${workspace}/.local/sp${i}/fund_info 2>&1
${bin} keys add sp${i}_seal --keyring-backend test --home ${workspace}/.local/sp${i} > ${workspace}/.local/sp${i}/seal_info 2>&1
${bin} keys add sp${i}_bls --keyring-backend test --home ${workspace}/.local/sp${i} --algo eth_bls > ${workspace}/.local/sp${i}/bls_info 2>&1
${bin} keys add sp${i}_approval --keyring-backend test --home ${workspace}/.local/sp${i} > ${workspace}/.local/sp${i}/approval_info 2>&1
${bin} keys add sp${i}_gc --keyring-backend test --home ${workspace}/.local/sp${i} > ${workspace}/.local/sp${i}/gc_info 2>&1
done
Expand Down Expand Up @@ -144,7 +145,7 @@ function generate_genesis() {
sed -i -e "s/\"10000000\"/\"${GOV_MIN_DEPOSIT_AMOUNT}\"/g" ${workspace}/.local/validator${i}/config/genesis.json
sed -i -e "s/\"max_bytes\": \"22020096\"/\"max_bytes\": \"1048576\"/g" ${workspace}/.local/validator${i}/config/genesis.json
sed -i -e "s/\"challenge_count_per_block\": \"1\"/\"challenge_count_per_block\": \"5\"/g" ${workspace}/.local/validator${i}/config/genesis.json
sed -i -e "s/\"challenge_keep_alive_period\": \"300\"/\"challenge_keep_alive_period\": \"50\"/g" ${workspace}/.local/validator${i}/config/genesis.json
sed -i -e "s/\"challenge_keep_alive_period\": \"300\"/\"challenge_keep_alive_period\": \"10\"/g" ${workspace}/.local/validator${i}/config/genesis.json
sed -i -e "s/\"heartbeat_interval\": \"1000\"/\"heartbeat_interval\": \"100\"/g" ${workspace}/.local/validator${i}/config/genesis.json
sed -i -e "s/\"attestation_inturn_interval\": \"120\"/\"attestation_inturn_interval\": \"10\"/g" ${workspace}/.local/validator${i}/config/genesis.json
sed -i -e "s/\"discontinue_confirm_period\": \"604800\"/\"discontinue_confirm_period\": \"5\"/g" ${workspace}/.local/validator${i}/config/genesis.json
Expand Down Expand Up @@ -207,6 +208,7 @@ function generate_sp_genesis {
spoperator_addr=("$(${bin} keys show sp${i} -a --keyring-backend test --home ${workspace}/.local/sp${i})")
spfund_addr=("$(${bin} keys show sp${i}_fund -a --keyring-backend test --home ${workspace}/.local/sp${i})")
spseal_addr=("$(${bin} keys show sp${i}_seal -a --keyring-backend test --home ${workspace}/.local/sp${i})")
bls_pub_key=("$(${bin} keys show sp${i}_bls --keyring-backend test --home ${workspace}/.local/sp${i} --output json | jq -r .pubkey_hex)")
spapproval_addr=("$(${bin} keys show sp${i}_approval -a --keyring-backend test --home ${workspace}/.local/sp${i})")
spgc_addr=("$(${bin} keys show sp${i}_gc -a --keyring-backend test --home ${workspace}/.local/sp${i})")
validator0Addr="$(${bin} keys show validator0 -a --keyring-backend test --home ${workspace}/.local/validator0)"
Expand All @@ -217,6 +219,7 @@ function generate_sp_genesis {
--operator-address=${spoperator_addr} \
--funding-address=${spfund_addr} \
--seal-address=${spseal_addr} \
--bls-pub-key=${bls_pub_key} \
--approval-address=${spapproval_addr} \
--gc-address=${spgc_addr} \
--keyring-backend=test \
Expand Down Expand Up @@ -252,23 +255,26 @@ function export_sps {
spseal_addr=("$(${bin} keys show sp${i}_seal -a --keyring-backend test --home ${workspace}/.local/sp${i})")
spapproval_addr=("$(${bin} keys show sp${i}_approval -a --keyring-backend test --home ${workspace}/.local/sp${i})")
spgc_addr=("$(${bin} keys show sp${i}_gc -a --keyring-backend test --home ${workspace}/.local/sp${i})")

bls_pub_key=("$(${bin} keys show sp${i}_bls --keyring-backend test --home ${workspace}/.local/sp${i} --output json | jq -r .pubkey_hex)")
spoperator_priv_key=("$(echo "y" | ${bin} keys export sp${i} --unarmored-hex --unsafe --keyring-backend test --home ${workspace}/.local/sp${i})")
spfund_priv_key=("$(echo "y" | ${bin} keys export sp${i}_fund --unarmored-hex --unsafe --keyring-backend test --home ${workspace}/.local/sp${i})")
spseal_priv_key=("$(echo "y" | ${bin} keys export sp${i}_seal --unarmored-hex --unsafe --keyring-backend test --home ${workspace}/.local/sp${i})")
spapproval_priv_key=("$(echo "y" | ${bin} keys export sp${i}_approval --unarmored-hex --unsafe --keyring-backend test --home ${workspace}/.local/sp${i})")
spgc_priv_key=("$(echo "y" | ${bin} keys export sp${i}_gc --unarmored-hex --unsafe --keyring-backend test --home ${workspace}/.local/sp${i})")
bls_priv_key=("$(echo "y" | ${bin} keys export sp${i}_bls --unarmored-hex --unsafe --keyring-backend test --home ${workspace}/.local/sp${i})")
output="${output}\"sp${i}\":{"
output="${output}\"OperatorAddress\": \"${spoperator_addr}\","
output="${output}\"FundingAddress\": \"${spfund_addr}\","
output="${output}\"SealAddress\": \"${spseal_addr}\","
output="${output}\"ApprovalAddress\": \"${spapproval_addr}\","
output="${output}\"GcAddress\": \"${spgc_addr}\","
output="${output}\"BlsPubKey\": \"${bls_pub_key}\","
output="${output}\"OperatorPrivateKey\": \"${spoperator_priv_key}\","
output="${output}\"FundingPrivateKey\": \"${spfund_priv_key}\","
output="${output}\"SealPrivateKey\": \"${spseal_priv_key}\","
output="${output}\"ApprovalPrivateKey\": \"${spapproval_priv_key}\","
output="${output}\"GcPrivateKey\": \"${spgc_priv_key}\""
output="${output}\"GcPrivateKey\": \"${spgc_priv_key}\","
output="${output}\"BlsPrivateKey\": \"${bls_priv_key}\""
output="${output}},"
done
output="${output%?}}"
Expand Down
Loading