Skip to content

SPEND_ENVELOPE_REGISTRY_ABI

PQSafe AgentPay API Reference v0.1.0


PQSafe AgentPay API Reference / SPEND_ENVELOPE_REGISTRY_ABI

Variable: SPEND_ENVELOPE_REGISTRY_ABI

const SPEND_ENVELOPE_REGISTRY_ABI: readonly [{ inputs: readonly [{ name: "envelopeId"; type: "bytes32"; }, { name: "sigFingerprint"; type: "bytes32"; }, { name: "agent"; type: "string"; }, { name: "maxAmount"; type: "uint128"; }, { name: "currency"; type: "bytes3"; }, { name: "validUntil"; type: "uint64"; }, { name: "nonce"; type: "bytes16"; }]; name: "commit"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ name: "envelopeId"; type: "bytes32"; }, { name: "txReference"; type: "bytes32"; }, { name: "amountUsed"; type: "uint128"; }]; name: "markUsed"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ name: "envelopeId"; type: "bytes32"; }]; name: "isCommitted"; outputs: readonly [{ type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ name: "envelopeId"; type: "bytes32"; }]; name: "isUsed"; outputs: readonly [{ type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ name: "envelopeId"; type: "bytes32"; }]; name: "getRecord"; outputs: readonly [{ components: readonly [{ name: "operator"; type: "address"; }, { name: "maxAmount"; type: "uint128"; }, { name: "currency"; type: "bytes3"; }, { name: "validUntil"; type: "uint64"; }, { name: "nonce"; type: "bytes16"; }, { name: "sigFingerprint"; type: "bytes32"; }, { name: "used"; type: "bool"; }, { name: "txReference"; type: "bytes32"; }, { name: "amountUsed"; type: "uint128"; }, { name: "committedAt"; type: "uint64"; }]; type: "tuple"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ indexed: true; name: "operator"; type: "address"; }, { indexed: true; name: "agent"; type: "string"; }, { indexed: true; name: "envelopeId"; type: "bytes32"; }, { indexed: false; name: "sigFingerprint"; type: "bytes32"; }, { indexed: false; name: "maxAmount"; type: "uint128"; }, { indexed: false; name: "currency"; type: "bytes3"; }, { indexed: false; name: "validUntil"; type: "uint64"; }, { indexed: false; name: "nonce"; type: "bytes16"; }]; name: "EnvelopeCommitted"; type: "event"; }, { inputs: readonly [{ indexed: true; name: "envelopeId"; type: "bytes32"; }, { indexed: false; name: "txReference"; type: "bytes32"; }, { indexed: false; name: "amountUsed"; type: "uint128"; }]; name: "EnvelopeUsed"; type: "event"; }]

Defined in: pqsafe/agent-pay/src/arbitrum.ts:298