|
@@ -90,7 +90,7 @@ export function getCreateAccountInstructionDataEncoder(): FixedSizeEncoder<Creat
|
|
|
['programAddress', getAddressEncoder()],
|
|
['programAddress', getAddressEncoder()],
|
|
|
]),
|
|
]),
|
|
|
(value) => ({ ...value, discriminator: CREATE_ACCOUNT_DISCRIMINATOR })
|
|
(value) => ({ ...value, discriminator: CREATE_ACCOUNT_DISCRIMINATOR })
|
|
|
- );
|
|
|
|
|
|
|
+ ) as FixedSizeEncoder<CreateAccountInstructionDataArgs>;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export function getCreateAccountInstructionDataDecoder(): FixedSizeDecoder<CreateAccountInstructionData> {
|
|
export function getCreateAccountInstructionDataDecoder(): FixedSizeDecoder<CreateAccountInstructionData> {
|
|
@@ -99,7 +99,7 @@ export function getCreateAccountInstructionDataDecoder(): FixedSizeDecoder<Creat
|
|
|
['lamports', getLamportsDecoder(getU64Decoder())],
|
|
['lamports', getLamportsDecoder(getU64Decoder())],
|
|
|
['space', getU64Decoder()],
|
|
['space', getU64Decoder()],
|
|
|
['programAddress', getAddressDecoder()],
|
|
['programAddress', getAddressDecoder()],
|
|
|
- ]);
|
|
|
|
|
|
|
+ ]) as FixedSizeDecoder<CreateAccountInstructionData>;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export function getCreateAccountInstructionDataCodec(): FixedSizeCodec<
|
|
export function getCreateAccountInstructionDataCodec(): FixedSizeCodec<
|
|
@@ -109,7 +109,10 @@ export function getCreateAccountInstructionDataCodec(): FixedSizeCodec<
|
|
|
return combineCodec(
|
|
return combineCodec(
|
|
|
getCreateAccountInstructionDataEncoder(),
|
|
getCreateAccountInstructionDataEncoder(),
|
|
|
getCreateAccountInstructionDataDecoder()
|
|
getCreateAccountInstructionDataDecoder()
|
|
|
- );
|
|
|
|
|
|
|
+ ) as FixedSizeCodec<
|
|
|
|
|
+ CreateAccountInstructionDataArgs,
|
|
|
|
|
+ CreateAccountInstructionData
|
|
|
|
|
+ >;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export type CreateAccountInput<
|
|
export type CreateAccountInput<
|