automation: testenv write key functions for Bitcoin, Hive, Peerplays #281

Closed
opened 2022-02-16 13:14:43 +00:00 by pavel.baykov · 1 comment
pavel.baykov commented 2022-02-16 13:14:43 +00:00 (Migrated from gitlab.com)

implement based on XLS spreadsheet key functions
Bitcoin:

"bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet=""default"" getnewaddress

New address will be returned

bitcoin-core.cli -rpcuser=1 -rpcpassword=1 -rpcwallet="""" getaddressinfo <new_address>

Address info will contain both private and public key

"

Same as Create key pair

bitcoin-core.cli -rpcuser=1 -rpcpassword=1 -rpcwallet="" sendtoaddress <<account_deposit_address>> <> "" "" false

bitcoin-core.cli -rpcuser=1 -rpcpassword=1 -rpcwallet="" getbalance

bitcoin-core.cli -rpcuser=1 -rpcpassword=1 -rpcwallet="" generatetoaddress 1 <bitcoin__address>

HIVE:
Create key pair suggest_brain_key

Create account "# Create four key pairs, use public keys in create_account_with_keys, and use private keys in import_key

create_account_with_keys initminer son-account null TST8kLKo9seYaJvuQSdwFd2YAi29VRdCVeLgd3E8A7PUFaKosYRGL TST6wibhLBtEz6tmYhWu3aQh9PMCfqbdqozs7fbSc7ESottim7QB4 TST6aEkVuFwiZB8Fz3fDSH5pLuJxmMHbnVW8t6wc2oGMkjsFRTyVx TST8Awh2THVMy44jS4daKQmVSeTHjW66Zey87wyZCiTx8NrTd2KLr true

import_key 5KTrh53ufxqzy8srfpPePAE2KooM3qnvExTPiLHDz6DXBfut29e

import_key 5Kh2g1W9mbeBix6wWdNi5nRJoZjit13FKSaAq9YpXxVVCxWc4WS

import_key 5JgKuFmmBujK3VfFg2uqH71EvLV3rsDUYD56Vvpe6VW8LRcBTTv

import_key 5KQzm63jBfbUJ5A8Nr4owzNMDkwuhEPz34UEBgvyizuvbvLGAG3"
Upgrade account to lifemember NA
Transfer funds transfer “amount.decimals symbol” null true

List account balances "# Observe balances fields in account object

get_account "

Peerplays:
Create key pair suggest_brain_key

Create account create_account_with_brain_key "0 1 2 3 4 5 6 7 8 9" account_name nathan nathan true
Upgrade account to lifemember upgrade_account account_name true
Transfer funds transfer null true

List account balances list_account_balances

Create asset create_asset son-account PBTC 5 { "max_supply": "1000000000000000", "market_fee_percent": 0, "max_market_fee": "1000000000000000", "issuer_permissions": 79, "flags": 0, "core_exchange_rate": { "base": { "amount": 1, "asset_id": "1.3.0" }, "quote": { "amount": 1, "asset_id": "1.3.1" } }, "whitelist_authorities": "", "blacklist_authorities": "", "whitelist_markets": "", "blacklist_markets": "", "description": "", "extensions": "" } null true
Issue asset issue_asset null true

Add sidechain address add_sidechain_address <bitcoin|hive|peerplays> deposit_public_key deposit_address withdraw_public_key withdraw_address true
Delete sidechain address delete_sidechain_address <bitcoin|hive|peerplays> true
Get sidechain address by account get_sidechain_addresses_by_account
Get sidechain address by sidechain get_sidechain_addresses_by_sidechain <bitcoin|hive|peerplays>

Create witness create_witness true
Update witness update_witness <URL|null> <public_key_for_signing|null> true
Get witness get_witness
Vote for witness vote_for_witness <voter_account> <witness_account> <true|false> true

Create vesting balance create_vesting_balance <gpos|normal|son> true
Get vesting balances for account get_vesting_balances <account_name>

Create SON create_son <account_name> <son_vesting_object_id> <normal_vesting_object_id> [ [ <bitcoin|hive|peerplays>, <public_key_for_signing> ], …] true
Create SON v2 try_create_son [ [ <bitcoin|hive|peerplays>, <public_key_for_signing> ], …] true
Update SON update_son <URL|null> <public_key_for_signing|null> <[ [ <bitcoin|hive|peerplays>, <public_key_for_signing> ], …]|null> true
Get SON get_son
Get SON statistics "Obtain son statistics object id from

get_son

get_object <son_statistics_id>"
Vote for SON vote_for_son <voter_account> <son_account> <true|false> true

Get global properties get_global_properties

implement based on XLS spreadsheet key functions Bitcoin: "bitcoin-cli -rpcuser=1 -rpcpassword=1 -rpcwallet=""default"" getnewaddress # New address will be returned bitcoin-core.cli -rpcuser=1 -rpcpassword=1 -rpcwallet="""" getaddressinfo <new_address> # Address info will contain both private and public key " Same as Create key pair bitcoin-core.cli -rpcuser=1 -rpcpassword=1 -rpcwallet="" sendtoaddress <<account_deposit_address>> <<amount>> "" "" false bitcoin-core.cli -rpcuser=1 -rpcpassword=1 -rpcwallet="" getbalance bitcoin-core.cli -rpcuser=1 -rpcpassword=1 -rpcwallet="" generatetoaddress 1 <bitcoin__address> ------------------------------------------- HIVE: Create key pair suggest_brain_key Create account "# Create four key pairs, use public keys in create_account_with_keys, and use private keys in import_key create_account_with_keys initminer son-account null TST8kLKo9seYaJvuQSdwFd2YAi29VRdCVeLgd3E8A7PUFaKosYRGL TST6wibhLBtEz6tmYhWu3aQh9PMCfqbdqozs7fbSc7ESottim7QB4 TST6aEkVuFwiZB8Fz3fDSH5pLuJxmMHbnVW8t6wc2oGMkjsFRTyVx TST8Awh2THVMy44jS4daKQmVSeTHjW66Zey87wyZCiTx8NrTd2KLr true import_key 5KTrh53ufxqzy8srfpPePAE2KooM3qnvExTPiLHDz6DXBfut29e import_key 5Kh2g1W9mbeBix6wWdNi5nRJoZjit13FKSaAq9YpXxVVCxWc4WS import_key 5JgKuFmmBujK3VfFg2uqH71EvLV3rsDUYD56Vvpe6VW8LRcBTTv import_key 5KQzm63jBfbUJ5A8Nr4owzNMDkwuhEPz34UEBgvyizuvbvLGAG3" Upgrade account to lifemember NA Transfer funds transfer <sender> <receiver> “amount.decimals symbol” null true List account balances "# Observe balances fields in account object get_account <account>" ------------------------------------ Peerplays: Create key pair suggest_brain_key Create account create_account_with_brain_key "0 1 2 3 4 5 6 7 8 9" account_name nathan nathan true Upgrade account to lifemember upgrade_account account_name true Transfer funds transfer <sender> <receiver> <amount> <symbol> null true List account balances list_account_balances <account> Create asset create_asset son-account PBTC 5 { "max_supply": "1000000000000000", "market_fee_percent": 0, "max_market_fee": "1000000000000000", "issuer_permissions": 79, "flags": 0, "core_exchange_rate": { "base": { "amount": 1, "asset_id": "1.3.0" }, "quote": { "amount": 1, "asset_id": "1.3.1" } }, "whitelist_authorities": "", "blacklist_authorities": "", "whitelist_markets": "", "blacklist_markets": "", "description": "", "extensions": "" } null true Issue asset issue_asset <receiver> <amount> <symbol> null true Add sidechain address add_sidechain_address <account> <bitcoin|hive|peerplays> deposit_public_key deposit_address withdraw_public_key withdraw_address true Delete sidechain address delete_sidechain_address <account> <bitcoin|hive|peerplays> true Get sidechain address by account get_sidechain_addresses_by_account <account> Get sidechain address by sidechain get_sidechain_addresses_by_sidechain <bitcoin|hive|peerplays> Create witness create_witness <account> <URL> true Update witness update_witness <account> <URL|null> <public_key_for_signing|null> true Get witness get_witness <account> Vote for witness vote_for_witness <voter_account> <witness_account> <true|false> true Create vesting balance create_vesting_balance <account> <amount> <symbol> <gpos|normal|son> true Get vesting balances for account get_vesting_balances <account_name> Create SON create_son <account_name> <URL> <son_vesting_object_id> <normal_vesting_object_id> [ [ <bitcoin|hive|peerplays>, <public_key_for_signing> ], …] true Create SON v2 try_create_son <account> <URL> [ [ <bitcoin|hive|peerplays>, <public_key_for_signing> ], …] true Update SON update_son <account> <URL|null> <public_key_for_signing|null> <[ [ <bitcoin|hive|peerplays>, <public_key_for_signing> ], …]|null> true Get SON get_son <account> Get SON statistics "Obtain son statistics object id from get_son <account> get_object <son_statistics_id>" Vote for SON vote_for_son <voter_account> <son_account> <true|false> true Get global properties get_global_properties
pavel.baykov commented 2022-02-16 13:14:44 +00:00 (Migrated from gitlab.com)

assigned to @pavel.baykov

assigned to @pavel.baykov
serkixenos (Migrated from gitlab.com) closed this issue 2022-03-04 19:52:01 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#281
No description provided.