import * as event from './event'; import * as transaction from './transaction'; import * as types from './types'; import * as wrapper from './wrapper'; /** * Unique module name. */ export declare const MODULE_NAME = "consensus_accounts"; export declare const ERR_INVALID_ARGUMENT_CODE = 1; export declare const ERR_INVALID_DENOMINATION_CODE = 2; export declare const ERR_INSUFFICIENT_BALANCE_CODE = 3; export declare const ERR_FORBIDDEN_CODE = 4; export declare const METHOD_DEPOSIT = "consensus.Deposit"; export declare const METHOD_WITHDRAW = "consensus.Withdraw"; export declare const METHOD_DELEGATE = "consensus.Delegate"; export declare const METHOD_UNDELEGATE = "consensus.Undelegate"; export declare const METHOD_PARAMETERS = "consensus_accounts.Parameters"; export declare const METHOD_BALANCE = "consensus.Balance"; export declare const METHOD_ACCOUNT = "consensus.Account"; export declare const METHOD_DELEGATION = "consensus.Delegation"; export declare const METHOD_DELEGATIONS = "consensus.Delegations"; export declare const METHOD_UNDELEGATIONS = "consensus.Undelegations"; export declare const METHOD_ALL_DELEGATIONS = "consensus.AllDelegations"; export declare const METHOD_ALL_UNDELEGATIONS = "consensus.AllUndelegations"; export declare const EVENT_DEPOSIT_CODE = 1; export declare const EVENT_WITHDRAW_CODE = 2; export declare const EVENT_DELEGATE_CODE = 3; export declare const EVENT_UNDELEGATE_START_CODE = 4; export declare const EVENT_UNDELEGATE_DONE_CODE = 5; export declare class Wrapper extends wrapper.Base { constructor(runtimeID: Uint8Array); callDeposit(): wrapper.TransactionWrapper; callWithdraw(): wrapper.TransactionWrapper; callDelegate(): wrapper.TransactionWrapper; callUndelegate(): wrapper.TransactionWrapper; queryParameters(): wrapper.QueryWrapper; queryBalance(): wrapper.QueryWrapper; queryAccount(): wrapper.QueryWrapper; queryDelegation(): wrapper.QueryWrapper; queryDelegations(): wrapper.QueryWrapper; queryAllDelegations(): wrapper.QueryWrapper; queryUndelegations(): wrapper.QueryWrapper; queryAllUndelegations(): wrapper.QueryWrapper; } export declare function moduleEventHandler(codes: { [EVENT_DEPOSIT_CODE]?: event.Handler; [EVENT_WITHDRAW_CODE]?: event.Handler; [EVENT_DELEGATE_CODE]?: event.Handler; [EVENT_UNDELEGATE_START_CODE]?: event.Handler; [EVENT_UNDELEGATE_DONE_CODE]?: event.Handler; }): event.ModuleHandler; /** * Use this as a part of a {@link transaction.CallHandlers}. */ export type TransactionCallHandlers = { [METHOD_DEPOSIT]?: transaction.CallHandler; [METHOD_WITHDRAW]?: transaction.CallHandler; [METHOD_DELEGATE]?: transaction.CallHandler; [METHOD_UNDELEGATE]?: transaction.CallHandler; };