Type alias RarimoBroadcaster
RarimoBroadcaster: {
disconnect: (() => void);
execUndelegate: ((grantee, delegatorAddress, validatorAddress, amount?) => Promise<DeliverTxResponse>);
execVoteProposal: ((grantee, voter, proposalId, option) => Promise<DeliverTxResponse>);
execWithdrawDelegatorReward: ((grantee, delegatorAddress, validatorAddress) => Promise<DeliverTxResponse>);
send: ((fromAddress, toAddress, amount) => Promise<DeliverTxResponse>);
delegate(delegatorAddress, validatorAddress, amount) => Promise<DeliverTxResponse>;
exec(grantee, msgs) => Promise<DeliverTxResponse>;
execDelegate(grantee, delegatorAddress, validatorAddress, amount?) => Promise<DeliverTxResponse>;
submitTextProposal(proposer, initialDeposit, title, description) => Promise<DeliverTxResponse>;
undelegate(delegatorAddress, validatorAddress, amount) => Promise<DeliverTxResponse>;
voteProposal(voter, proposalId, option) => Promise<DeliverTxResponse>;
withdrawDelegatorReward(delegatorAddress, validatorAddress) => Promise<DeliverTxResponse>;
withdrawValidatorCommission(validatorAddress) => Promise<DeliverTxResponse>;
}
Type declaration
-
disconnect: (() => void)
-
execUndelegate: ((grantee, delegatorAddress, validatorAddress, amount?) => Promise<DeliverTxResponse>)
-
- (grantee, delegatorAddress, validatorAddress, amount?): Promise<DeliverTxResponse>
-
Parameters
-
grantee: string
-
delegatorAddress: string
-
validatorAddress: string
-
Optional
amount: Coin
Returns Promise<DeliverTxResponse>
-
execVoteProposal: ((grantee, voter, proposalId, option) => Promise<DeliverTxResponse>)
-
- (grantee, voter, proposalId, option): Promise<DeliverTxResponse>
-
Parameters
-
grantee: string
-
voter: string
-
proposalId: number
-
Returns Promise<DeliverTxResponse>
-
execWithdrawDelegatorReward: ((grantee, delegatorAddress, validatorAddress) => Promise<DeliverTxResponse>)
-
- (grantee, delegatorAddress, validatorAddress): Promise<DeliverTxResponse>
-
Parameters
-
grantee: string
-
delegatorAddress: string
-
validatorAddress: string
Returns Promise<DeliverTxResponse>
-
send: ((fromAddress, toAddress, amount) => Promise<DeliverTxResponse>)
-
- (fromAddress, toAddress, amount): Promise<DeliverTxResponse>
-
Parameters
-
fromAddress: string
-
toAddress: string
-
amount: Coin[]
Returns Promise<DeliverTxResponse>
-
delegate:function
- delegate(delegatorAddress, validatorAddress, amount): Promise<DeliverTxResponse>
-
Parameters
-
delegatorAddress: string
-
validatorAddress: string
-
amount: undefined | Coin
Returns Promise<DeliverTxResponse>
-
exec:function
- exec(grantee, msgs): Promise<DeliverTxResponse>
-
Parameters
-
grantee: string
-
msgs: Any[]
Returns Promise<DeliverTxResponse>
-
execDelegate:function
- execDelegate(grantee, delegatorAddress, validatorAddress, amount?): Promise<DeliverTxResponse>
-
Parameters
-
grantee: string
-
delegatorAddress: string
-
validatorAddress: string
-
Optional
amount: Coin
Returns Promise<DeliverTxResponse>
-
submitTextProposal:function
- submitTextProposal(proposer, initialDeposit, title, description): Promise<DeliverTxResponse>
-
Parameters
-
proposer: string
-
initialDeposit: Coin[]
-
title: string
-
description: string
Returns Promise<DeliverTxResponse>
-
undelegate:function
- undelegate(delegatorAddress, validatorAddress, amount): Promise<DeliverTxResponse>
-
Parameters
-
delegatorAddress: string
-
validatorAddress: string
-
amount: undefined | Coin
Returns Promise<DeliverTxResponse>
-
voteProposal:function
- voteProposal(voter, proposalId, option): Promise<DeliverTxResponse>
-
Parameters
-
voter: string
-
proposalId: number
-
Returns Promise<DeliverTxResponse>
-
withdrawDelegatorReward:function
- withdrawDelegatorReward(delegatorAddress, validatorAddress): Promise<DeliverTxResponse>
-
Parameters
-
delegatorAddress: string
-
validatorAddress: string
Returns Promise<DeliverTxResponse>
-
withdrawValidatorCommission:function
- withdrawValidatorCommission(validatorAddress): Promise<DeliverTxResponse>
-
Returns Promise<DeliverTxResponse>