Documentation
¶
Overview ¶
Package tips provides helpers for interacting with the on-chain tip registry contract.
Index ¶
- Constants
- func DecodeIsTokenAllowedResult(ret []byte) (bool, error)
- func EncodeGetHostCall(hostID common.Hash) ([]byte, error)
- func EncodeIsTokenAllowedCall(token common.Address) ([]byte, error)
- func EncodeRegisterHostCall(hostID common.Hash, wallet common.Address, feeBps uint16) ([]byte, error)
- func EncodeSetHostActiveCall(hostID common.Hash, active bool) ([]byte, error)
- func EncodeSetTokenAllowedCall(token common.Address, allowed bool) ([]byte, error)
- func EncodeUpdateHostCall(hostID common.Hash, wallet common.Address, feeBps uint16) ([]byte, error)
- func HostIDFromDomain(normalizedDomain string) common.Hash
- type HostConfig
Constants ¶
const TipSplitterABI = `` /* 1113-byte string literal not displayed */
TipSplitterABI is the minimal ABI required for host registry + allowlist operations.
Variables ¶
This section is empty.
Functions ¶
func DecodeIsTokenAllowedResult ¶
DecodeIsTokenAllowedResult decodes the return data of TipSplitter.allowedTokens(token).
func EncodeGetHostCall ¶
EncodeGetHostCall returns ABI-encoded call data for TipSplitter.hosts(hostId).
func EncodeIsTokenAllowedCall ¶
EncodeIsTokenAllowedCall returns ABI-encoded call data for TipSplitter.allowedTokens(token).
func EncodeRegisterHostCall ¶
func EncodeRegisterHostCall(hostID common.Hash, wallet common.Address, feeBps uint16) ([]byte, error)
EncodeRegisterHostCall returns ABI-encoded call data for TipSplitter.registerHost.
func EncodeSetHostActiveCall ¶
EncodeSetHostActiveCall returns ABI-encoded call data for TipSplitter.setHostActive.
func EncodeSetTokenAllowedCall ¶
EncodeSetTokenAllowedCall returns ABI-encoded call data for TipSplitter.setTokenAllowed.
func EncodeUpdateHostCall ¶
EncodeUpdateHostCall returns ABI-encoded call data for TipSplitter.updateHost.
func HostIDFromDomain ¶
HostIDFromDomain returns the on-chain hostId (bytes32) for a normalized domain.
The canonical hostId is keccak256(utf8(normalizedDomain)).
Types ¶
type HostConfig ¶
HostConfig is the decoded host registry entry from TipSplitter.hosts(hostId).
func DecodeGetHostResult ¶
func DecodeGetHostResult(ret []byte) (*HostConfig, error)
DecodeGetHostResult decodes the return data of TipSplitter.hosts(hostId).