golos.operations

Contains the attribute type_op which maps each transaction operation to a list of arguments and their types.

Used by golos.broadcast.Tx.get_digest() for generating a transaction digest.

golos.operations.type_op = {'account_create': [['fee', <class 'golos.types.Amount'>], ['creator', <class 'golos.types.String'>], ['new_account_name', <class 'golos.types.String'>], ['owner', <class 'golos.types.Permission'>], ['active', <class 'golos.types.Permission'>], ['posting', <class 'golos.types.Permission'>], ['memo_key', <class 'golos.types.PublicKey'>], ['json_metadata', <class 'golos.types.String'>]], 'account_create_with_delegation': [['fee', <class 'golos.types.Amount'>], ['delegation', <class 'golos.types.Amount'>], ['creator', <class 'golos.types.String'>], ['new_account_name', <class 'golos.types.String'>], ['owner', <class 'golos.types.Permission'>], ['active', <class 'golos.types.Permission'>], ['posting', <class 'golos.types.Permission'>], ['memo_key', <class 'golos.types.PublicKey'>], ['json_metadata', <class 'golos.types.String'>], ['extensions', <class 'golos.types.Set'>]], 'account_metadata': [['account', <class 'golos.types.String'>], ['json_metadata', <class 'golos.types.String'>]], 'account_update': [['account', <class 'golos.types.String'>], ['owner', <class 'golos.types.Optional_Permission'>], ['active', <class 'golos.types.Optional_Permission'>], ['posting', <class 'golos.types.Optional_Permission'>], ['memo_key', <class 'golos.types.PublicKey'>], ['json_metadata', <class 'golos.types.String'>]], 'change_recovery_account': [['account_to_recover', <class 'golos.types.String'>], ['new_recovery_account', <class 'golos.types.String'>], ['extensions', <class 'golos.types.Set'>]], 'comment': [['parent_author', <class 'golos.types.String'>], ['parent_permlink', <class 'golos.types.String'>], ['author', <class 'golos.types.String'>], ['permlink', <class 'golos.types.String'>], ['title', <class 'golos.types.String'>], ['body', <class 'golos.types.String'>], ['json_metadata', <class 'golos.types.String'>]], 'comment_options': [['author', <class 'golos.types.String'>], ['permlink', <class 'golos.types.String'>], ['max_accepted_payout', <class 'golos.types.Amount'>], ['percent_steem_dollars', <class 'golos.types.Uint16'>], ['allow_votes', <class 'golos.types.Bool'>], ['allow_curation_rewards', <class 'golos.types.Bool'>], ['extensions', <class 'golos.types.ExtensionsComment'>]], 'custom_json': [['required_auths', <class 'golos.types.ArrayString'>], ['required_posting_auths', <class 'golos.types.ArrayString'>], ['id', <class 'golos.types.String'>], ['json', <class 'golos.types.String'>]], 'delegate_vesting_shares': [['delegator', <class 'golos.types.String'>], ['delegatee', <class 'golos.types.String'>], ['vesting_shares', <class 'golos.types.Amount'>]], 'delegate_vesting_shares_with_interest': [['delegator', <class 'golos.types.String'>], ['delegatee', <class 'golos.types.String'>], ['vesting_shares', <class 'golos.types.Amount'>], ['interest_rate', <class 'golos.types.Uint16'>], ['extensions', <class 'golos.types.Set'>]], 'transfer': [['from', <class 'golos.types.String'>], ['to', <class 'golos.types.String'>], ['amount', <class 'golos.types.Amount'>], ['memo', <class 'golos.types.String'>]], 'transfer_to_vesting': [['from', <class 'golos.types.String'>], ['to', <class 'golos.types.String'>], ['amount', <class 'golos.types.Amount'>]], 'vote': [['voter', <class 'golos.types.String'>], ['author', <class 'golos.types.String'>], ['permlink', <class 'golos.types.String'>], ['weight', <class 'golos.types.Int16'>]], 'withdraw_vesting': [['account', <class 'golos.types.String'>], ['vesting_shares', <class 'golos.types.Amount'>]]}

A dictionary which maps each GOLOS operation such as vote - to a list of argument pairs (['arg_name', String]) which map each argument of the operation to it’s type in types

Example:

>>> type_op['vote']
[
        ['voter', <class 'golos.types.String'>], ['author', <class 'golos.types.String'>], 
        ['permlink', <class 'golos.types.String'>], ['weight', <class 'golos.types.Int16'>]
]