Coda by Ian Macalinao
Preparing search index...
@macalinao/clients-spl-governance
getCreateProgramGovernanceInstruction
Function getCreateProgramGovernanceInstruction
getCreateProgramGovernanceInstruction
<
TAccountRealmAccount
extends
string
,
TAccountProgramGovernanceAccount
extends
string
,
TAccountGovernedProgram
extends
string
,
TAccountProgramData
extends
string
,
TAccountCurrentUpgradeAuthority
extends
string
,
TAccountGoverningTokenOwnerRecord
extends
string
,
TAccountPayer
extends
string
,
TAccountBpfUpgradeableLoaderProgram
extends
string
,
TAccountSystemProgram
extends
string
,
TAccountGovernanceAuthority
extends
string
,
TAccountRealmConfig
extends
string
,
TAccountVoterWeightRecord
extends
string
,
TProgramAddress
extends
Address
=
Address
<
"GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw"
>
,
>
(
input
:
CreateProgramGovernanceInput
<
TAccountRealmAccount
,
TAccountProgramGovernanceAccount
,
TAccountGovernedProgram
,
TAccountProgramData
,
TAccountCurrentUpgradeAuthority
,
TAccountGoverningTokenOwnerRecord
,
TAccountPayer
,
TAccountBpfUpgradeableLoaderProgram
,
TAccountSystemProgram
,
TAccountGovernanceAuthority
,
TAccountRealmConfig
,
TAccountVoterWeightRecord
,
>
,
config
?:
{
programAddress
?:
TProgramAddress
}
,
)
:
CreateProgramGovernanceInstruction
<
TProgramAddress
,
TAccountRealmAccount
,
TAccountProgramGovernanceAccount
,
TAccountGovernedProgram
,
TAccountProgramData
,
TAccountCurrentUpgradeAuthority
,
TAccountGoverningTokenOwnerRecord
,
TAccountPayer
,
TAccountBpfUpgradeableLoaderProgram
,
TAccountSystemProgram
,
TAccountGovernanceAuthority
,
TAccountRealmConfig
,
TAccountVoterWeightRecord
,
>
Type Parameters
TAccountRealmAccount
extends
string
TAccountProgramGovernanceAccount
extends
string
TAccountGovernedProgram
extends
string
TAccountProgramData
extends
string
TAccountCurrentUpgradeAuthority
extends
string
TAccountGoverningTokenOwnerRecord
extends
string
TAccountPayer
extends
string
TAccountBpfUpgradeableLoaderProgram
extends
string
TAccountSystemProgram
extends
string
TAccountGovernanceAuthority
extends
string
TAccountRealmConfig
extends
string
TAccountVoterWeightRecord
extends
string
TProgramAddress
extends
Address
=
Address
<
"GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw"
>
Parameters
input
:
CreateProgramGovernanceInput
<
TAccountRealmAccount
,
TAccountProgramGovernanceAccount
,
TAccountGovernedProgram
,
TAccountProgramData
,
TAccountCurrentUpgradeAuthority
,
TAccountGoverningTokenOwnerRecord
,
TAccountPayer
,
TAccountBpfUpgradeableLoaderProgram
,
TAccountSystemProgram
,
TAccountGovernanceAuthority
,
TAccountRealmConfig
,
TAccountVoterWeightRecord
,
>
Optional
config
:
{
programAddress
?:
TProgramAddress
}
Returns
CreateProgramGovernanceInstruction
<
TProgramAddress
,
TAccountRealmAccount
,
TAccountProgramGovernanceAccount
,
TAccountGovernedProgram
,
TAccountProgramData
,
TAccountCurrentUpgradeAuthority
,
TAccountGoverningTokenOwnerRecord
,
TAccountPayer
,
TAccountBpfUpgradeableLoaderProgram
,
TAccountSystemProgram
,
TAccountGovernanceAuthority
,
TAccountRealmConfig
,
TAccountVoterWeightRecord
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Coda by Ian Macalinao
Loading...