WG meeting
June 11, 2024
Agenda
ICRC-2 approve
icrc2_approve : (ApproveArgs) -> (variant { Ok : nat; Err : ApproveError });
type ApproveArgs = record {
from_subaccount : opt blob;
spender : Account;
amount : nat;
expected_allowance : opt nat;
expires_at : opt nat64;
fee : opt nat;
memo : opt blob;
created_at_time : opt nat64;
};
The issue
hash(principal, subaccount_id)
Proposal
list_icrc2_allowances : (ListAllowancesArgs) -> (ListAllowancesResult) query;
type ListAllowancesArgs = record {
last_seen_allowance: opt Allowance;
};
type ListAllowancesResult = record {
allowances: vec Allowance;
};
type Allowance = record {
from : Account;
spender : Account;
amount : nat;
expires_at : opt nat64;
};
type Account = record {
owner: Principal;
subaccount : SubAccount;
};
Semantics
Proposal
Deployment
Relation between the proposal and the ICRC-2 standard
The Issue