@multiversx/sdk-core - v14.2.6
Preparing search index...
GovernanceController
Class GovernanceController
Hierarchy (
View Summary
)
BaseController
GovernanceController
Index
Constructors
constructor
Methods
add
Extra
Gas
Limit
If
Required
await
Completed
Close
Proposal
await
Completed
Propose
Proposal
await
Completed
Vote
create
Transaction
For
Changing
Config
create
Transaction
For
Claiming
Accumulated
Fees
create
Transaction
For
Clearing
Ended
Proposals
create
Transaction
For
Closing
Proposal
create
Transaction
For
New
Proposal
create
Transaction
For
Voting
get
Config
get
Delegated
Vote
Info
get
Proposal
get
Voting
Power
parse
Close
Proposal
parse
New
Proposal
parse
Vote
set
Transaction
Gas
Options
set
Version
And
Options
For
Guardian
Constructors
constructor
new
GovernanceController
(
options
:
{
addressHrp
?:
string
;
chainID
:
string
;
networkProvider
:
INetworkProvider
;
}
,
)
:
GovernanceController
Parameters
options
:
{
addressHrp
?:
string
;
chainID
:
string
;
networkProvider
:
INetworkProvider
}
Returns
GovernanceController
Methods
Protected
add
Extra
Gas
Limit
If
Required
addExtraGasLimitIfRequired
(
transaction
:
Transaction
)
:
void
Parameters
transaction
:
Transaction
Returns
void
await
Completed
Close
Proposal
awaitCompletedCloseProposal
(
txHash
:
string
)
:
Promise
<
CloseProposalOutcome
[]
>
Parameters
txHash
:
string
Returns
Promise
<
CloseProposalOutcome
[]
>
await
Completed
Propose
Proposal
awaitCompletedProposeProposal
(
txHash
:
string
)
:
Promise
<
NewProposalOutcome
[]
>
Parameters
txHash
:
string
Returns
Promise
<
NewProposalOutcome
[]
>
await
Completed
Vote
awaitCompletedVote
(
txHash
:
string
)
:
Promise
<
VoteOutcome
[]
>
Parameters
txHash
:
string
Returns
Promise
<
VoteOutcome
[]
>
create
Transaction
For
Changing
Config
createTransactionForChangingConfig
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ChangeConfigInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ChangeConfigInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Claiming
Accumulated
Fees
createTransactionForClaimingAccumulatedFees
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Clearing
Ended
Proposals
createTransactionForClearingEndedProposals
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ClearEndedProposalsInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ClearEndedProposalsInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Closing
Proposal
createTransactionForClosingProposal
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
CloseProposalInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
CloseProposalInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
New
Proposal
createTransactionForNewProposal
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
NewProposalInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
NewProposalInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Voting
createTransactionForVoting
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
VoteProposalInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
VoteProposalInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
get
Config
getConfig
()
:
Promise
<
GovernanceConfig
>
Returns
Promise
<
GovernanceConfig
>
get
Delegated
Vote
Info
getDelegatedVoteInfo
()
:
Promise
<
DelegatedVoteInfo
>
Returns
Promise
<
DelegatedVoteInfo
>
get
Proposal
getProposal
(
proposalNonce
:
number
)
:
Promise
<
ProposalInfo
>
Parameters
proposalNonce
:
number
Returns
Promise
<
ProposalInfo
>
get
Voting
Power
getVotingPower
(
address
:
Address
)
:
Promise
<
bigint
>
Parameters
address
:
Address
Returns
Promise
<
bigint
>
parse
Close
Proposal
parseCloseProposal
(
transaction
:
TransactionOnNetwork
)
:
CloseProposalOutcome
[]
Parameters
transaction
:
TransactionOnNetwork
Returns
CloseProposalOutcome
[]
parse
New
Proposal
parseNewProposal
(
transaction
:
TransactionOnNetwork
)
:
NewProposalOutcome
[]
Parameters
transaction
:
TransactionOnNetwork
Returns
NewProposalOutcome
[]
parse
Vote
parseVote
(
transaction
:
TransactionOnNetwork
)
:
VoteOutcome
[]
Parameters
transaction
:
TransactionOnNetwork
Returns
VoteOutcome
[]
Protected
set
Transaction
Gas
Options
setTransactionGasOptions
(
transaction
:
Transaction
,
options
:
{
gasLimit
?:
bigint
;
gasPrice
?:
bigint
}
,
)
:
void
Parameters
transaction
:
Transaction
options
:
{
gasLimit
?:
bigint
;
gasPrice
?:
bigint
}
Returns
void
Protected
set
Version
And
Options
For
Guardian
setVersionAndOptionsForGuardian
(
transaction
:
Transaction
)
:
void
Parameters
transaction
:
Transaction
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
add
Extra
Gas
Limit
If
Required
await
Completed
Close
Proposal
await
Completed
Propose
Proposal
await
Completed
Vote
create
Transaction
For
Changing
Config
create
Transaction
For
Claiming
Accumulated
Fees
create
Transaction
For
Clearing
Ended
Proposals
create
Transaction
For
Closing
Proposal
create
Transaction
For
New
Proposal
create
Transaction
For
Voting
get
Config
get
Delegated
Vote
Info
get
Proposal
get
Voting
Power
parse
Close
Proposal
parse
New
Proposal
parse
Vote
set
Transaction
Gas
Options
set
Version
And
Options
For
Guardian
@multiversx/sdk-core - v14.2.6
Loading...