Forked from truongnmt/gist:fdc82bc28eff7b15ecdf4131f310c9d3
Created
September 22, 2018 07:00
-
-
Save TranBaVinhSon/75b8443ecf27ada43ef5b9a8aa6b74af to your computer and use it in GitHub Desktop.
genesis.block new admin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat stable/genesis.block | |
{ | |
"payload":{ | |
"transactions":[ | |
{ | |
"payload":{ | |
"reducedPayload":{ | |
"commands":[ | |
{ | |
"addPeer":{ | |
"peer":{ | |
"address":"0.0.0.0:10001", | |
"peerKey":"vd1YQE0TFeDrJ5AsXXyOsGAsFiOPAFdz30BrwZEwiSk=" | |
} | |
} | |
}, | |
{ | |
"createRole":{ | |
"roleName":"admin", | |
"permissions":[ | |
"can_add_peer", | |
"can_add_signatory", | |
"can_create_account", | |
"can_create_domain", | |
"can_get_all_acc_ast", | |
"can_get_all_acc_ast_txs", | |
"can_get_all_acc_detail", | |
"can_get_all_acc_txs", | |
"can_get_all_accounts", | |
"can_get_all_signatories", | |
"can_get_all_txs", | |
"can_get_blocks", | |
"can_get_roles", | |
"can_read_assets", | |
"can_remove_signatory", | |
"can_set_quorum" | |
] | |
} | |
}, | |
{ | |
"createRole":{ | |
"roleName":"user", | |
"permissions":[ | |
"can_add_signatory", | |
"can_get_my_acc_ast", | |
"can_get_my_acc_ast_txs", | |
"can_get_my_acc_detail", | |
"can_get_my_acc_txs", | |
"can_get_my_account", | |
"can_get_my_signatories", | |
"can_get_my_txs", | |
"can_grant_can_add_my_signatory", | |
"can_grant_can_remove_my_signatory", | |
"can_grant_can_set_my_account_detail", | |
"can_grant_can_set_my_quorum", | |
"can_grant_can_transfer_my_assets", | |
"can_receive", | |
"can_remove_signatory", | |
"can_set_quorum", | |
"can_transfer" | |
] | |
} | |
}, | |
{ | |
"createRole":{ | |
"roleName":"money_creator", | |
"permissions":[ | |
"can_add_asset_qty", | |
"can_create_asset", | |
"can_receive", | |
"can_transfer" | |
] | |
} | |
}, | |
{ | |
"createDomain":{ | |
"domainId":"moneyforward", | |
"defaultRole":"user" | |
} | |
}, | |
{ | |
"createAsset":{ | |
"assetName":"mfc", | |
"domainId":"moneyforward", | |
"precision":2 | |
} | |
}, | |
{ | |
"createAccount":{ | |
"accountName":"admin", | |
"domainId":"moneyforward", | |
"mainPubkey":"i7UHEHP77mb3a/BTVTG6lMahNiHV+QLhdwFBw+Mhgno=" | |
} | |
}, | |
{ | |
"createAccount":{ | |
"accountName":"test", | |
"domainId":"moneyforward", | |
"mainPubkey":"" | |
} | |
}, | |
{ | |
"appendRole":{ | |
"accountId":"admin@moneyforward", | |
"roleName":"admin" | |
} | |
}, | |
{ | |
"appendRole":{ | |
"accountId":"admin@moneyforward", | |
"roleName":"money_creator" | |
} | |
} | |
], | |
"quorum":1 | |
} | |
} | |
} | |
], | |
"txNumber":1, | |
"height":"1", | |
"prevBlockHash":"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment