Skip to main content

Module tip20_channel_reserve

Module tip20_channel_reserve 

Source
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ยง

ITIP20ChannelReserve
TIP-20 channel reserve ABI.
__packing_packed_channel_state
dispatch
ABI dispatch for the TIP20ChannelReserve precompile.
slots

Structsยง

PackedChannelState ๐Ÿ”’
Packed persistent state for one channel.
PackedChannelStateHandler
Type-safe handler for accessing #struct_name in storage.
TIP20ChannelReserve

Enumsยง

TIP20ChannelReserveError
Container for all the ITIP20ChannelReserve custom errors.
TIP20ChannelReserveEvent
Container for all the ITIP20ChannelReserve events.

Constantsยง

CLOSE_GRACE_PERIOD
15 minute grace period between requestClose and withdraw.
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.