Expand description
TIP-1034 TIP-20 channel reserve precompile.
Channels lock TIP-20 deposits from a payer and let the payee claim signed
cumulative vouchers. A channel is identified by its descriptor, the current
chain, this precompile address, and a transaction-derived nonce hash that
prevents accidental replay of open calls across transactions.
Modulesยง
- ITIP20
Channel Reserve - TIP-20 channel reserve ABI.
- __
packing_ packed_ channel_ state - dispatch
- ABI dispatch for the
TIP20ChannelReserveprecompile. - slots
Structsยง
- Packed
Channel ๐State - Packed persistent state for one channel.
- Packed
Channel State Handler - Type-safe handler for accessing
#struct_namein storage. - TIP20
Channel Reserve
Enumsยง
- TIP20
Channel Reserve Error - Container for all the
ITIP20ChannelReservecustom errors. - TIP20
Channel Reserve Event - Container for all the
ITIP20ChannelReserveevents.
Constantsยง
- CLOSE_
GRACE_ PERIOD - 15 minute grace period between
requestCloseandwithdraw. - TIP20_
CHANNEL_ RESERVE_ ADDRESS - Native TIP-1034 channel reserve precompile address.
Staticsยง
- DOMAIN_
SEPARATOR_ ๐MAINNET - EIP-712 domain separator for the reserve voucher domain on mainnet.
- DOMAIN_
SEPARATOR_ ๐TESTNET - EIP-712 domain separator for the reserve voucher domain on testnet.
- EIP712_
DOMAIN_ ๐TYPEHASH - EIP-712 domain type hash used by
TIP20ChannelReserve::domain_separator. - NAME_
HASH ๐ - EIP-712 domain name hash for the reserve voucher domain.
- VERSION_
HASH ๐ - EIP-712 domain version hash for the reserve voucher domain.
- VOUCHER_
TYPEHASH ๐ - EIP-712 type hash for signed cumulative payment vouchers.
Functionsยง
- domain_
separator_ ๐inner - Computes the EIP-712 domain separator.