Settler
Defined in: packages/scheme-qorechain/src/chain.ts:69
Submits settlements. Implementations pay the gas.
Properties
Section titled “Properties”address
Section titled “address”
readonlyaddress:`0x${string}`
Defined in: packages/scheme-qorechain/src/chain.ts:71
The account that sends settlement transactions.
Methods
Section titled “Methods”settle()
Section titled “settle()”settle(
payment,signature):Promise<SettlementResult>
Defined in: packages/scheme-qorechain/src/chain.ts:73
Send settle(payment, signature) to the escrow and wait until it is included.
Parameters
Section titled “Parameters”payment
Section titled “payment”Payment
signature
Section titled “signature”Uint8Array
Returns
Section titled “Returns”Promise<SettlementResult>
spend()?
Section titled “spend()?”
optionalspend(spend,signature):Promise<SettlementResult>
Defined in: packages/scheme-qorechain/src/chain.ts:78
Send spend(...) to a Perennial vault, wait until it is included, and
confirm the Spent(positionId, to, amount, ref) event. Needed for pq-perennial.
Parameters
Section titled “Parameters”PerennialSpend
signature
Section titled “signature”Uint8Array
Returns
Section titled “Returns”Promise<SettlementResult>