Skip to content

@lelantos-org/sdk / index / AllowanceSetupProgress

Type Alias: AllowanceSetupProgress ​

ts
type AllowanceSetupProgress = 
  | {
  index: number;
  status: "wallet" | "confirming";
  step: "approving";
  token: EvmAddress;
  total: number;
  txHash?: Hex32;
}
  | {
  status: "wallet" | "confirming";
  step: "signing" | "permitting";
  txHash?: Hex32;
};

Defined in: @lelantos-org/sdk/dist/wallet/types/options.d.ts:137

One token's allowance window in a setupDepositAllowance run.

Union Members ​

Type Literal ​

ts
{
  index: number;
  status: "wallet" | "confirming";
  step: "approving";
  token: EvmAddress;
  total: number;
  txHash?: Hex32;
}

index ​

ts
index: number;

1-based position among the tokens that still need an ERC-20 approval.

status ​

ts
status: "wallet" | "confirming";

step ​

ts
step: "approving";

token ​

ts
token: EvmAddress;

total ​

ts
total: number;

txHash? ​

ts
optional txHash?: Hex32;

Set with status: "confirming".


Type Literal ​

ts
{
  status: "wallet" | "confirming";
  step: "signing" | "permitting";
  txHash?: Hex32;
}