Coda by Ian Macalinao
Preparing search index...
@macalinao/clients-tribeca
GovernPluginInstructions
Interface GovernPluginInstructions
interface
GovernPluginInstructions
{
activateProposal
:
(
input
:
ActivateProposalInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
cancelProposal
:
(
input
:
CancelProposalInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
ReadonlyAccount
<
string
>
,
WritableAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
createGovernor
:
(
input
:
MakeOptional
<
CreateGovernorInput
<
string
,
string
,
string
,
string
,
string
>
,
"payer"
,
>
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
createProposal
:
(
input
:
MakeOptional
<
CreateProposalInput
<
string
,
string
,
string
,
string
,
string
>
,
"payer"
,
>
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
WritableAccount
<
string
>
,
WritableAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
createProposalMeta
:
(
input
:
MakeOptional
<
CreateProposalMetaInput
<
string
,
string
,
string
,
string
,
string
>
,
"payer"
,
>
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
ReadonlyAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
newVote
:
(
input
:
MakeOptional
<
NewVoteInput
<
string
,
string
,
string
,
string
>
,
"payer"
,
>
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
ReadonlyAccount
<
string
>
,
WritableAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
queueProposal
:
(
input
:
MakeOptional
<
QueueProposalInput
<
string
,
string
,
string
,
string
,
string
,
string
,
string
,
>
,
"payer"
,
>
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
ReadonlyAccount
<
string
>
,
WritableAccount
<
string
>
,
WritableAccount
<
string
>
,
WritableAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
setElectorate
:
(
input
:
SetElectorateInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
WritableAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
setGovernanceParams
:
(
input
:
SetGovernanceParamsInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
WritableAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
setVote
:
(
input
:
SetVoteInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
ReadonlyAccount
<
string
>
,
WritableAccount
<
string
>
,
WritableAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
}
Index
Properties
activate
Proposal
cancel
Proposal
create
Governor
create
Proposal
create
Proposal
Meta
new
Vote
queue
Proposal
set
Electorate
set
Governance
Params
set
Vote
Properties
activate
Proposal
activateProposal
:
(
input
:
ActivateProposalInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
cancel
Proposal
cancelProposal
:
(
input
:
CancelProposalInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
ReadonlyAccount
<
string
>
,
WritableAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
]
,
>
&
SelfPlanAndSendFunctions
create
Governor
createGovernor
:
(
input
:
MakeOptional
<
CreateGovernorInput
<
string
,
string
,
string
,
string
,
string
>
,
"payer"
,
>
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
create
Proposal
createProposal
:
(
input
:
MakeOptional
<
CreateProposalInput
<
string
,
string
,
string
,
string
,
string
>
,
"payer"
,
>
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
WritableAccount
<
string
>
,
WritableAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
create
Proposal
Meta
createProposalMeta
:
(
input
:
MakeOptional
<
CreateProposalMetaInput
<
string
,
string
,
string
,
string
,
string
>
,
"payer"
,
>
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
ReadonlyAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
new
Vote
newVote
:
(
input
:
MakeOptional
<
NewVoteInput
<
string
,
string
,
string
,
string
>
,
"payer"
,
>
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
ReadonlyAccount
<
string
>
,
WritableAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
queue
Proposal
queueProposal
:
(
input
:
MakeOptional
<
QueueProposalInput
<
string
,
string
,
string
,
string
,
string
,
string
,
string
,
>
,
"payer"
,
>
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
ReadonlyAccount
<
string
>
,
WritableAccount
<
string
>
,
WritableAccount
<
string
>
,
WritableAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
set
Electorate
setElectorate
:
(
input
:
SetElectorateInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
WritableAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
]
,
>
&
SelfPlanAndSendFunctions
set
Governance
Params
setGovernanceParams
:
(
input
:
SetGovernanceParamsInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
WritableAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
]
,
>
&
SelfPlanAndSendFunctions
set
Vote
setVote
:
(
input
:
SetVoteInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
ReadonlyAccount
<
string
>
,
WritableAccount
<
string
>
,
WritableAccount
<
string
>
,
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
]
,
>
&
SelfPlanAndSendFunctions
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
activate
Proposal
cancel
Proposal
create
Governor
create
Proposal
create
Proposal
Meta
new
Vote
queue
Proposal
set
Electorate
set
Governance
Params
set
Vote
Coda by Ian Macalinao
Loading...