gill
gill/programs/token/Type aliases

ConfidentialWithdrawInstructionDataArgs

type ConfidentialWithdrawInstructionDataArgs = {
  amount: number | bigint;
  decimals: number;
  equalityProofInstructionOffset: number;
  newDecryptableAvailableBalance: DecryptableBalanceArgs;
  rangeProofInstructionOffset: number;
};

Properties

amount

amount: number | bigint;

The amount of tokens to withdraw.


decimals

decimals: number;

Expected number of base 10 digits to the right of the decimal place.


equalityProofInstructionOffset

equalityProofInstructionOffset: number;

Relative location of the ProofInstruction::VerifyCiphertextCommitmentEquality instruction to the Withdraw instruction in the transaction. If the offset is 0, then use a context state account for the proof.


newDecryptableAvailableBalance

newDecryptableAvailableBalance: DecryptableBalanceArgs;

The new decryptable balance if the withdrawal succeeds.


rangeProofInstructionOffset

rangeProofInstructionOffset: number;

Relative location of the ProofInstruction::BatchedRangeProofU64 instruction to the Withdraw instruction in the transaction. If the offset is 0, then use a context state account for the proof.

On this page