mirror of https://github.com/certusone/oyster.git
chore: remove mint account from input accounts
This commit is contained in:
parent
876bad040b
commit
956efcee67
|
@ -17,7 +17,6 @@ export const registerGovernance = async (
|
|||
config: GovernanceConfig,
|
||||
transferAuthority: boolean,
|
||||
tokenOwnerRecord: PublicKey,
|
||||
governingTokenMint: PublicKey,
|
||||
): Promise<PublicKey> => {
|
||||
let instructions: TransactionInstruction[] = [];
|
||||
|
||||
|
@ -33,7 +32,6 @@ export const registerGovernance = async (
|
|||
governedAccount,
|
||||
config,
|
||||
tokenOwnerRecord,
|
||||
governingTokenMint,
|
||||
walletPubkey,
|
||||
)
|
||||
).governanceAddress;
|
||||
|
@ -50,7 +48,6 @@ export const registerGovernance = async (
|
|||
transferAuthority!,
|
||||
walletPubkey,
|
||||
tokenOwnerRecord,
|
||||
governingTokenMint,
|
||||
walletPubkey,
|
||||
)
|
||||
).governanceAddress;
|
||||
|
@ -67,7 +64,6 @@ export const registerGovernance = async (
|
|||
transferAuthority!,
|
||||
walletPubkey,
|
||||
tokenOwnerRecord,
|
||||
governingTokenMint,
|
||||
walletPubkey,
|
||||
)
|
||||
).governanceAddress;
|
||||
|
@ -84,7 +80,6 @@ export const registerGovernance = async (
|
|||
transferAuthority!,
|
||||
walletPubkey,
|
||||
tokenOwnerRecord,
|
||||
governingTokenMint,
|
||||
walletPubkey,
|
||||
)
|
||||
).governanceAddress;
|
||||
|
|
|
@ -16,7 +16,6 @@ export const withCreateAccountGovernance = async (
|
|||
governedAccount: PublicKey,
|
||||
config: GovernanceConfig,
|
||||
tokenOwnerRecord: PublicKey,
|
||||
governingTokenMint: PublicKey,
|
||||
payer: PublicKey,
|
||||
): Promise<{ governanceAddress: PublicKey }> => {
|
||||
const { system: systemId } = utils.programIds();
|
||||
|
@ -54,11 +53,6 @@ export const withCreateAccountGovernance = async (
|
|||
isWritable: false,
|
||||
isSigner: false,
|
||||
},
|
||||
{
|
||||
pubkey: governingTokenMint,
|
||||
isWritable: false,
|
||||
isSigner: false,
|
||||
},
|
||||
{
|
||||
pubkey: payer,
|
||||
isWritable: false,
|
||||
|
|
|
@ -18,7 +18,6 @@ export const withCreateMintGovernance = async (
|
|||
transferMintAuthority: boolean,
|
||||
mintAuthority: PublicKey,
|
||||
tokenOwnerRecord: PublicKey,
|
||||
governingTokenMint: PublicKey,
|
||||
payer: PublicKey,
|
||||
): Promise<{ governanceAddress: PublicKey }> => {
|
||||
const { system: systemId, token: tokenId } = utils.programIds();
|
||||
|
@ -60,11 +59,6 @@ export const withCreateMintGovernance = async (
|
|||
isWritable: false,
|
||||
isSigner: false,
|
||||
},
|
||||
{
|
||||
pubkey: governingTokenMint,
|
||||
isWritable: false,
|
||||
isSigner: false,
|
||||
},
|
||||
{
|
||||
pubkey: payer,
|
||||
isWritable: false,
|
||||
|
|
|
@ -18,7 +18,6 @@ export const withCreateProgramGovernance = async (
|
|||
transferUpgradeAuthority: boolean,
|
||||
programUpgradeAuthority: PublicKey,
|
||||
tokenOwnerRecord: PublicKey,
|
||||
governingTokenMint: PublicKey,
|
||||
payer: PublicKey,
|
||||
): Promise<{ governanceAddress: PublicKey }> => {
|
||||
const {
|
||||
|
@ -77,11 +76,6 @@ export const withCreateProgramGovernance = async (
|
|||
isWritable: false,
|
||||
isSigner: false,
|
||||
},
|
||||
{
|
||||
pubkey: governingTokenMint,
|
||||
isWritable: false,
|
||||
isSigner: false,
|
||||
},
|
||||
{
|
||||
pubkey: payer,
|
||||
isWritable: false,
|
||||
|
|
|
@ -18,7 +18,6 @@ export const withCreateTokenGovernance = async (
|
|||
transferTokenOwner: boolean,
|
||||
tokenOwner: PublicKey,
|
||||
tokenOwnerRecord: PublicKey,
|
||||
governingTokenMint: PublicKey,
|
||||
payer: PublicKey,
|
||||
): Promise<{ governanceAddress: PublicKey }> => {
|
||||
const { system: systemId, token: tokenId } = utils.programIds();
|
||||
|
@ -64,11 +63,6 @@ export const withCreateTokenGovernance = async (
|
|||
isWritable: false,
|
||||
isSigner: false,
|
||||
},
|
||||
{
|
||||
pubkey: governingTokenMint,
|
||||
isWritable: false,
|
||||
isSigner: false,
|
||||
},
|
||||
{
|
||||
pubkey: payer,
|
||||
isWritable: false,
|
||||
|
|
|
@ -35,7 +35,7 @@ export const AccountInstructionsForm = ({
|
|||
initialValues={{ instructionType: instructions[0] }}
|
||||
>
|
||||
<InstructionSelector
|
||||
instructions={[InstructionType.GovernanceSetConfig]}
|
||||
instructions={instructions}
|
||||
onChange={setInstruction}
|
||||
></InstructionSelector>
|
||||
|
||||
|
|
|
@ -87,7 +87,6 @@ export function RegisterGovernanceButton({
|
|||
config,
|
||||
values.transferAuthority,
|
||||
tokenOwnerRecord!.pubkey,
|
||||
tokenOwnerRecord!.info.governingTokenMint,
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue