registry

package
v0.0.0-...-15461e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Method = "Request"
)

Variables

View Source
var RegistryBindingABI = RegistryBindingMetaData.ABI

RegistryBindingABI is the input ABI used to generate the binding from. Deprecated: Use RegistryBindingMetaData.ABI instead.

View Source
var RegistryBindingMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"ben\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tok\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"buy\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"why\",\"type\":\"string\"}],\"name\":\"Address\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"why\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"bal\",\"type\":\"uint256\"}],\"name\":\"Balance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ECDSAInvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"ECDSAInvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"ECDSAInvalidSignatureS\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"why\",\"type\":\"string\"}],\"name\":\"Process\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"StringsInsufficientHexLength\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"grd\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"kil\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"win\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"los\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dep\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"buy\",\"type\":\"uint256\"}],\"name\":\"GuardianResolve\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"pla\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"grd\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"kil\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"win\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"los\",\"type\":\"address\"}],\"name\":\"WitnessPublish\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"BASIS_FEE\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"BASIS_GUARDIAN\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"BASIS_PROTOCOL\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"BASIS_SPLIT\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"BASIS_TOTAL\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"bal\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"tim\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"sig\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"sgn\",\"type\":\"bytes\"}],\"name\":\"Deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"tim\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"wal\",\"type\":\"address\"}],\"name\":\"DepositMessage\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"grd\",\"type\":\"address\"}],\"name\":\"Escape\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"KILL_STATE_ESCAPE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"KILL_STATE_RELEASE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"kil\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"win\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"los\",\"type\":\"address\"}],\"name\":\"Publish\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"mes\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"sgn\",\"type\":\"bytes\"}],\"name\":\"RecoverSigner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"los\",\"type\":\"address\"}],\"name\":\"Release\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"grd\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"tim\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"wal\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"sgn\",\"type\":\"bytes\"}],\"name\":\"Request\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"grd\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"tim\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"pla\",\"type\":\"address\"}],\"name\":\"RequestMessage\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"kil\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"win\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"los\",\"type\":\"address\"}],\"name\":\"Resolve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"wal\",\"type\":\"address\"}],\"name\":\"SearchBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"wal\",\"type\":\"address\"}],\"name\":\"SearchSigner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"ben\",\"type\":\"address\"}],\"name\":\"UpdateBeneficiary\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"bal\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"beneficiary\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"buyin\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

RegistryBindingMetaData contains all meta data concerning the RegistryBinding contract.

Functions

func Decode

func Decode(byt []byte) (common.Address, time.Time, common.Address, []byte, error)

func IsTransactionNotFoundError

func IsTransactionNotFoundError(err error) bool

func IsTransactionNotSuccessfulError

func IsTransactionNotSuccessfulError(err error) bool

func IsTransactionStillPending

func IsTransactionStillPending(err error) bool

func Recover

func Recover(pre string, tim time.Time, grd common.Address, pla common.Address, sgn []byte) (common.Address, error)

Types

type Config

type Config struct {
	// Add is the address of the deployed smart contract to interact with.
	Add string
	// Key is the private key signing transactions for contract writes.
	Key string
	// Log is a simple logger interface to print system relevant information.
	Log logger.Interface
	// RPC is the RPC endpoint for network connection.
	RPC string
}

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func New

func New(c Config) *Registry

func (*Registry) Address

func (r *Registry) Address() common.Address

func (*Registry) Release

func (r *Registry) Release(los common.Address) (*types.Transaction, error)

func (*Registry) Resolve

func (r *Registry) Resolve(kil objectid.ID, win common.Address, los common.Address) (*types.Transaction, error)

func (*Registry) Search

func (c *Registry) Search(hsh common.Hash) (*types.Transaction, error)

type RegistryBinding

type RegistryBinding struct {
	RegistryBindingCaller     // Read-only binding to the contract
	RegistryBindingTransactor // Write-only binding to the contract
	RegistryBindingFilterer   // Log filterer for contract events
}

RegistryBinding is an auto generated Go binding around an Ethereum contract.

func NewRegistryBinding

func NewRegistryBinding(address common.Address, backend bind.ContractBackend) (*RegistryBinding, error)

NewRegistryBinding creates a new instance of RegistryBinding, bound to a specific deployed contract.

type RegistryBindingCaller

type RegistryBindingCaller struct {
	// contains filtered or unexported fields
}

RegistryBindingCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewRegistryBindingCaller

func NewRegistryBindingCaller(address common.Address, caller bind.ContractCaller) (*RegistryBindingCaller, error)

NewRegistryBindingCaller creates a new read-only instance of RegistryBinding, bound to a specific deployed contract.

func (*RegistryBindingCaller) BASISFEE

func (_RegistryBinding *RegistryBindingCaller) BASISFEE(opts *bind.CallOpts) (uint16, error)

BASISFEE is a free data retrieval call binding the contract method 0x44c6d89b.

Solidity: function BASIS_FEE() view returns(uint16)

func (*RegistryBindingCaller) BASISGUARDIAN

func (_RegistryBinding *RegistryBindingCaller) BASISGUARDIAN(opts *bind.CallOpts) (uint16, error)

BASISGUARDIAN is a free data retrieval call binding the contract method 0x949a86f4.

Solidity: function BASIS_GUARDIAN() view returns(uint16)

func (*RegistryBindingCaller) BASISPROTOCOL

func (_RegistryBinding *RegistryBindingCaller) BASISPROTOCOL(opts *bind.CallOpts) (uint16, error)

BASISPROTOCOL is a free data retrieval call binding the contract method 0xc926e70f.

Solidity: function BASIS_PROTOCOL() view returns(uint16)

func (*RegistryBindingCaller) BASISSPLIT

func (_RegistryBinding *RegistryBindingCaller) BASISSPLIT(opts *bind.CallOpts) (uint16, error)

BASISSPLIT is a free data retrieval call binding the contract method 0x34cb7584.

Solidity: function BASIS_SPLIT() view returns(uint16)

func (*RegistryBindingCaller) BASISTOTAL

func (_RegistryBinding *RegistryBindingCaller) BASISTOTAL(opts *bind.CallOpts) (uint16, error)

BASISTOTAL is a free data retrieval call binding the contract method 0x9a61d8c3.

Solidity: function BASIS_TOTAL() view returns(uint16)

func (*RegistryBindingCaller) Beneficiary

func (_RegistryBinding *RegistryBindingCaller) Beneficiary(opts *bind.CallOpts) (common.Address, error)

Beneficiary is a free data retrieval call binding the contract method 0x38af3eed.

Solidity: function beneficiary() view returns(address)

func (*RegistryBindingCaller) Buyin

func (_RegistryBinding *RegistryBindingCaller) Buyin(opts *bind.CallOpts) (*big.Int, error)

Buyin is a free data retrieval call binding the contract method 0x69766079.

Solidity: function buyin() view returns(uint256)

func (*RegistryBindingCaller) DepositMessage

func (_RegistryBinding *RegistryBindingCaller) DepositMessage(opts *bind.CallOpts, tim uint64, wal common.Address) ([]byte, error)

DepositMessage is a free data retrieval call binding the contract method 0x0dc9f0b0.

Solidity: function DepositMessage(uint64 tim, address wal) pure returns(bytes)

func (*RegistryBindingCaller) KILLSTATEESCAPE

func (_RegistryBinding *RegistryBindingCaller) KILLSTATEESCAPE(opts *bind.CallOpts) (*big.Int, error)

KILLSTATEESCAPE is a free data retrieval call binding the contract method 0xe58c988c.

Solidity: function KILL_STATE_ESCAPE() view returns(uint256)

func (*RegistryBindingCaller) KILLSTATERELEASE

func (_RegistryBinding *RegistryBindingCaller) KILLSTATERELEASE(opts *bind.CallOpts) (*big.Int, error)

KILLSTATERELEASE is a free data retrieval call binding the contract method 0xf1e2ab6c.

Solidity: function KILL_STATE_RELEASE() view returns(uint256)

func (*RegistryBindingCaller) RecoverSigner

func (_RegistryBinding *RegistryBindingCaller) RecoverSigner(opts *bind.CallOpts, mes []byte, sgn []byte) (common.Address, error)

RecoverSigner is a free data retrieval call binding the contract method 0x073afc87.

Solidity: function RecoverSigner(bytes mes, bytes sgn) pure returns(address)

func (*RegistryBindingCaller) RequestMessage

func (_RegistryBinding *RegistryBindingCaller) RequestMessage(opts *bind.CallOpts, grd common.Address, tim uint64, pla common.Address) ([]byte, error)

RequestMessage is a free data retrieval call binding the contract method 0x8b601b4a.

Solidity: function RequestMessage(address grd, uint64 tim, address pla) pure returns(bytes)

func (*RegistryBindingCaller) SearchBalance

func (_RegistryBinding *RegistryBindingCaller) SearchBalance(opts *bind.CallOpts, wal common.Address) (*big.Int, *big.Int, *big.Int, error)

SearchBalance is a free data retrieval call binding the contract method 0x026b2666.

Solidity: function SearchBalance(address wal) view returns(uint256, uint256, uint256)

func (*RegistryBindingCaller) SearchSigner

func (_RegistryBinding *RegistryBindingCaller) SearchSigner(opts *bind.CallOpts, wal common.Address) (common.Address, common.Address, error)

SearchSigner is a free data retrieval call binding the contract method 0xc78e95ec.

Solidity: function SearchSigner(address wal) view returns(address, address)

func (*RegistryBindingCaller) Token

func (_RegistryBinding *RegistryBindingCaller) Token(opts *bind.CallOpts) (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*RegistryBindingCaller) VERSION

func (_RegistryBinding *RegistryBindingCaller) VERSION(opts *bind.CallOpts) (string, error)

VERSION is a free data retrieval call binding the contract method 0xffa1ad74.

Solidity: function VERSION() view returns(string)

type RegistryBindingCallerRaw

type RegistryBindingCallerRaw struct {
	Contract *RegistryBindingCaller // Generic read-only contract binding to access the raw methods on
}

RegistryBindingCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*RegistryBindingCallerRaw) Call

func (_RegistryBinding *RegistryBindingCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type RegistryBindingCallerSession

type RegistryBindingCallerSession struct {
	Contract *RegistryBindingCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts          // Call options to use throughout this session
}

RegistryBindingCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*RegistryBindingCallerSession) BASISFEE

func (_RegistryBinding *RegistryBindingCallerSession) BASISFEE() (uint16, error)

BASISFEE is a free data retrieval call binding the contract method 0x44c6d89b.

Solidity: function BASIS_FEE() view returns(uint16)

func (*RegistryBindingCallerSession) BASISGUARDIAN

func (_RegistryBinding *RegistryBindingCallerSession) BASISGUARDIAN() (uint16, error)

BASISGUARDIAN is a free data retrieval call binding the contract method 0x949a86f4.

Solidity: function BASIS_GUARDIAN() view returns(uint16)

func (*RegistryBindingCallerSession) BASISPROTOCOL

func (_RegistryBinding *RegistryBindingCallerSession) BASISPROTOCOL() (uint16, error)

BASISPROTOCOL is a free data retrieval call binding the contract method 0xc926e70f.

Solidity: function BASIS_PROTOCOL() view returns(uint16)

func (*RegistryBindingCallerSession) BASISSPLIT

func (_RegistryBinding *RegistryBindingCallerSession) BASISSPLIT() (uint16, error)

BASISSPLIT is a free data retrieval call binding the contract method 0x34cb7584.

Solidity: function BASIS_SPLIT() view returns(uint16)

func (*RegistryBindingCallerSession) BASISTOTAL

func (_RegistryBinding *RegistryBindingCallerSession) BASISTOTAL() (uint16, error)

BASISTOTAL is a free data retrieval call binding the contract method 0x9a61d8c3.

Solidity: function BASIS_TOTAL() view returns(uint16)

func (*RegistryBindingCallerSession) Beneficiary

func (_RegistryBinding *RegistryBindingCallerSession) Beneficiary() (common.Address, error)

Beneficiary is a free data retrieval call binding the contract method 0x38af3eed.

Solidity: function beneficiary() view returns(address)

func (*RegistryBindingCallerSession) Buyin

func (_RegistryBinding *RegistryBindingCallerSession) Buyin() (*big.Int, error)

Buyin is a free data retrieval call binding the contract method 0x69766079.

Solidity: function buyin() view returns(uint256)

func (*RegistryBindingCallerSession) DepositMessage

func (_RegistryBinding *RegistryBindingCallerSession) DepositMessage(tim uint64, wal common.Address) ([]byte, error)

DepositMessage is a free data retrieval call binding the contract method 0x0dc9f0b0.

Solidity: function DepositMessage(uint64 tim, address wal) pure returns(bytes)

func (*RegistryBindingCallerSession) KILLSTATEESCAPE

func (_RegistryBinding *RegistryBindingCallerSession) KILLSTATEESCAPE() (*big.Int, error)

KILLSTATEESCAPE is a free data retrieval call binding the contract method 0xe58c988c.

Solidity: function KILL_STATE_ESCAPE() view returns(uint256)

func (*RegistryBindingCallerSession) KILLSTATERELEASE

func (_RegistryBinding *RegistryBindingCallerSession) KILLSTATERELEASE() (*big.Int, error)

KILLSTATERELEASE is a free data retrieval call binding the contract method 0xf1e2ab6c.

Solidity: function KILL_STATE_RELEASE() view returns(uint256)

func (*RegistryBindingCallerSession) RecoverSigner

func (_RegistryBinding *RegistryBindingCallerSession) RecoverSigner(mes []byte, sgn []byte) (common.Address, error)

RecoverSigner is a free data retrieval call binding the contract method 0x073afc87.

Solidity: function RecoverSigner(bytes mes, bytes sgn) pure returns(address)

func (*RegistryBindingCallerSession) RequestMessage

func (_RegistryBinding *RegistryBindingCallerSession) RequestMessage(grd common.Address, tim uint64, pla common.Address) ([]byte, error)

RequestMessage is a free data retrieval call binding the contract method 0x8b601b4a.

Solidity: function RequestMessage(address grd, uint64 tim, address pla) pure returns(bytes)

func (*RegistryBindingCallerSession) SearchBalance

func (_RegistryBinding *RegistryBindingCallerSession) SearchBalance(wal common.Address) (*big.Int, *big.Int, *big.Int, error)

SearchBalance is a free data retrieval call binding the contract method 0x026b2666.

Solidity: function SearchBalance(address wal) view returns(uint256, uint256, uint256)

func (*RegistryBindingCallerSession) SearchSigner

func (_RegistryBinding *RegistryBindingCallerSession) SearchSigner(wal common.Address) (common.Address, common.Address, error)

SearchSigner is a free data retrieval call binding the contract method 0xc78e95ec.

Solidity: function SearchSigner(address wal) view returns(address, address)

func (*RegistryBindingCallerSession) Token

func (_RegistryBinding *RegistryBindingCallerSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*RegistryBindingCallerSession) VERSION

func (_RegistryBinding *RegistryBindingCallerSession) VERSION() (string, error)

VERSION is a free data retrieval call binding the contract method 0xffa1ad74.

Solidity: function VERSION() view returns(string)

type RegistryBindingFilterer

type RegistryBindingFilterer struct {
	// contains filtered or unexported fields
}

RegistryBindingFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewRegistryBindingFilterer

func NewRegistryBindingFilterer(address common.Address, filterer bind.ContractFilterer) (*RegistryBindingFilterer, error)

NewRegistryBindingFilterer creates a new log filterer instance of RegistryBinding, bound to a specific deployed contract.

func (*RegistryBindingFilterer) FilterGuardianResolve

func (_RegistryBinding *RegistryBindingFilterer) FilterGuardianResolve(opts *bind.FilterOpts, grd []common.Address) (*RegistryBindingGuardianResolveIterator, error)

FilterGuardianResolve is a free log retrieval operation binding the contract event 0x8178738fffcc585c33627171c76ba109ea8922ec6cc6e427bccfc4b2d0a4259d.

Solidity: event GuardianResolve(address indexed grd, uint256 kil, address win, address los, uint256 dep, uint256 buy)

func (*RegistryBindingFilterer) FilterWitnessPublish

func (_RegistryBinding *RegistryBindingFilterer) FilterWitnessPublish(opts *bind.FilterOpts, pla []common.Address, grd []common.Address) (*RegistryBindingWitnessPublishIterator, error)

FilterWitnessPublish is a free log retrieval operation binding the contract event 0x1815e1e4c91b21cf1042ad6f929ca67fe4529f8030c3d9ab143dcd890bfe81ad.

Solidity: event WitnessPublish(address indexed pla, address indexed grd, uint256 kil, address win, address los)

func (*RegistryBindingFilterer) ParseGuardianResolve

func (_RegistryBinding *RegistryBindingFilterer) ParseGuardianResolve(log types.Log) (*RegistryBindingGuardianResolve, error)

ParseGuardianResolve is a log parse operation binding the contract event 0x8178738fffcc585c33627171c76ba109ea8922ec6cc6e427bccfc4b2d0a4259d.

Solidity: event GuardianResolve(address indexed grd, uint256 kil, address win, address los, uint256 dep, uint256 buy)

func (*RegistryBindingFilterer) ParseWitnessPublish

func (_RegistryBinding *RegistryBindingFilterer) ParseWitnessPublish(log types.Log) (*RegistryBindingWitnessPublish, error)

ParseWitnessPublish is a log parse operation binding the contract event 0x1815e1e4c91b21cf1042ad6f929ca67fe4529f8030c3d9ab143dcd890bfe81ad.

Solidity: event WitnessPublish(address indexed pla, address indexed grd, uint256 kil, address win, address los)

func (*RegistryBindingFilterer) WatchGuardianResolve

func (_RegistryBinding *RegistryBindingFilterer) WatchGuardianResolve(opts *bind.WatchOpts, sink chan<- *RegistryBindingGuardianResolve, grd []common.Address) (event.Subscription, error)

WatchGuardianResolve is a free log subscription operation binding the contract event 0x8178738fffcc585c33627171c76ba109ea8922ec6cc6e427bccfc4b2d0a4259d.

Solidity: event GuardianResolve(address indexed grd, uint256 kil, address win, address los, uint256 dep, uint256 buy)

func (*RegistryBindingFilterer) WatchWitnessPublish

func (_RegistryBinding *RegistryBindingFilterer) WatchWitnessPublish(opts *bind.WatchOpts, sink chan<- *RegistryBindingWitnessPublish, pla []common.Address, grd []common.Address) (event.Subscription, error)

WatchWitnessPublish is a free log subscription operation binding the contract event 0x1815e1e4c91b21cf1042ad6f929ca67fe4529f8030c3d9ab143dcd890bfe81ad.

Solidity: event WitnessPublish(address indexed pla, address indexed grd, uint256 kil, address win, address los)

type RegistryBindingGuardianResolve

type RegistryBindingGuardianResolve struct {
	Grd common.Address
	Kil *big.Int
	Win common.Address
	Los common.Address
	Dep *big.Int
	Buy *big.Int
	Raw types.Log // Blockchain specific contextual infos
}

RegistryBindingGuardianResolve represents a GuardianResolve event raised by the RegistryBinding contract.

type RegistryBindingGuardianResolveIterator

type RegistryBindingGuardianResolveIterator struct {
	Event *RegistryBindingGuardianResolve // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RegistryBindingGuardianResolveIterator is returned from FilterGuardianResolve and is used to iterate over the raw logs and unpacked data for GuardianResolve events raised by the RegistryBinding contract.

func (*RegistryBindingGuardianResolveIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*RegistryBindingGuardianResolveIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RegistryBindingGuardianResolveIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type RegistryBindingRaw

type RegistryBindingRaw struct {
	Contract *RegistryBinding // Generic contract binding to access the raw methods on
}

RegistryBindingRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*RegistryBindingRaw) Call

func (_RegistryBinding *RegistryBindingRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*RegistryBindingRaw) Transact

func (_RegistryBinding *RegistryBindingRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*RegistryBindingRaw) Transfer

func (_RegistryBinding *RegistryBindingRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type RegistryBindingSession

type RegistryBindingSession struct {
	Contract     *RegistryBinding  // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

RegistryBindingSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*RegistryBindingSession) BASISFEE

func (_RegistryBinding *RegistryBindingSession) BASISFEE() (uint16, error)

BASISFEE is a free data retrieval call binding the contract method 0x44c6d89b.

Solidity: function BASIS_FEE() view returns(uint16)

func (*RegistryBindingSession) BASISGUARDIAN

func (_RegistryBinding *RegistryBindingSession) BASISGUARDIAN() (uint16, error)

BASISGUARDIAN is a free data retrieval call binding the contract method 0x949a86f4.

Solidity: function BASIS_GUARDIAN() view returns(uint16)

func (*RegistryBindingSession) BASISPROTOCOL

func (_RegistryBinding *RegistryBindingSession) BASISPROTOCOL() (uint16, error)

BASISPROTOCOL is a free data retrieval call binding the contract method 0xc926e70f.

Solidity: function BASIS_PROTOCOL() view returns(uint16)

func (*RegistryBindingSession) BASISSPLIT

func (_RegistryBinding *RegistryBindingSession) BASISSPLIT() (uint16, error)

BASISSPLIT is a free data retrieval call binding the contract method 0x34cb7584.

Solidity: function BASIS_SPLIT() view returns(uint16)

func (*RegistryBindingSession) BASISTOTAL

func (_RegistryBinding *RegistryBindingSession) BASISTOTAL() (uint16, error)

BASISTOTAL is a free data retrieval call binding the contract method 0x9a61d8c3.

Solidity: function BASIS_TOTAL() view returns(uint16)

func (*RegistryBindingSession) Beneficiary

func (_RegistryBinding *RegistryBindingSession) Beneficiary() (common.Address, error)

Beneficiary is a free data retrieval call binding the contract method 0x38af3eed.

Solidity: function beneficiary() view returns(address)

func (*RegistryBindingSession) Buyin

func (_RegistryBinding *RegistryBindingSession) Buyin() (*big.Int, error)

Buyin is a free data retrieval call binding the contract method 0x69766079.

Solidity: function buyin() view returns(uint256)

func (*RegistryBindingSession) Deposit

func (_RegistryBinding *RegistryBindingSession) Deposit(bal *big.Int, tim uint64, sig common.Address, sgn []byte) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x96b13c54.

Solidity: function Deposit(uint256 bal, uint64 tim, address sig, bytes sgn) returns()

func (*RegistryBindingSession) DepositMessage

func (_RegistryBinding *RegistryBindingSession) DepositMessage(tim uint64, wal common.Address) ([]byte, error)

DepositMessage is a free data retrieval call binding the contract method 0x0dc9f0b0.

Solidity: function DepositMessage(uint64 tim, address wal) pure returns(bytes)

func (*RegistryBindingSession) Escape

func (_RegistryBinding *RegistryBindingSession) Escape(grd common.Address) (*types.Transaction, error)

Escape is a paid mutator transaction binding the contract method 0x0d5dd3e4.

Solidity: function Escape(address grd) returns()

func (*RegistryBindingSession) KILLSTATEESCAPE

func (_RegistryBinding *RegistryBindingSession) KILLSTATEESCAPE() (*big.Int, error)

KILLSTATEESCAPE is a free data retrieval call binding the contract method 0xe58c988c.

Solidity: function KILL_STATE_ESCAPE() view returns(uint256)

func (*RegistryBindingSession) KILLSTATERELEASE

func (_RegistryBinding *RegistryBindingSession) KILLSTATERELEASE() (*big.Int, error)

KILLSTATERELEASE is a free data retrieval call binding the contract method 0xf1e2ab6c.

Solidity: function KILL_STATE_RELEASE() view returns(uint256)

func (*RegistryBindingSession) Publish

func (_RegistryBinding *RegistryBindingSession) Publish(kil *big.Int, win common.Address, los common.Address) (*types.Transaction, error)

Publish is a paid mutator transaction binding the contract method 0x5b19a0ee.

Solidity: function Publish(uint256 kil, address win, address los) returns()

func (*RegistryBindingSession) RecoverSigner

func (_RegistryBinding *RegistryBindingSession) RecoverSigner(mes []byte, sgn []byte) (common.Address, error)

RecoverSigner is a free data retrieval call binding the contract method 0x073afc87.

Solidity: function RecoverSigner(bytes mes, bytes sgn) pure returns(address)

func (*RegistryBindingSession) Release

func (_RegistryBinding *RegistryBindingSession) Release(los common.Address) (*types.Transaction, error)

Release is a paid mutator transaction binding the contract method 0x79552101.

Solidity: function Release(address los) returns()

func (*RegistryBindingSession) Request

func (_RegistryBinding *RegistryBindingSession) Request(grd common.Address, tim uint64, wal common.Address, sgn []byte) (*types.Transaction, error)

Request is a paid mutator transaction binding the contract method 0x2ef5c5a4.

Solidity: function Request(address grd, uint64 tim, address wal, bytes sgn) returns()

func (*RegistryBindingSession) RequestMessage

func (_RegistryBinding *RegistryBindingSession) RequestMessage(grd common.Address, tim uint64, pla common.Address) ([]byte, error)

RequestMessage is a free data retrieval call binding the contract method 0x8b601b4a.

Solidity: function RequestMessage(address grd, uint64 tim, address pla) pure returns(bytes)

func (*RegistryBindingSession) Resolve

func (_RegistryBinding *RegistryBindingSession) Resolve(kil *big.Int, win common.Address, los common.Address) (*types.Transaction, error)

Resolve is a paid mutator transaction binding the contract method 0xed8bdd82.

Solidity: function Resolve(uint256 kil, address win, address los) returns()

func (*RegistryBindingSession) SearchBalance

func (_RegistryBinding *RegistryBindingSession) SearchBalance(wal common.Address) (*big.Int, *big.Int, *big.Int, error)

SearchBalance is a free data retrieval call binding the contract method 0x026b2666.

Solidity: function SearchBalance(address wal) view returns(uint256, uint256, uint256)

func (*RegistryBindingSession) SearchSigner

func (_RegistryBinding *RegistryBindingSession) SearchSigner(wal common.Address) (common.Address, common.Address, error)

SearchSigner is a free data retrieval call binding the contract method 0xc78e95ec.

Solidity: function SearchSigner(address wal) view returns(address, address)

func (*RegistryBindingSession) Token

func (_RegistryBinding *RegistryBindingSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*RegistryBindingSession) UpdateBeneficiary

func (_RegistryBinding *RegistryBindingSession) UpdateBeneficiary(ben common.Address) (*types.Transaction, error)

UpdateBeneficiary is a paid mutator transaction binding the contract method 0xe6131a64.

Solidity: function UpdateBeneficiary(address ben) returns()

func (*RegistryBindingSession) VERSION

func (_RegistryBinding *RegistryBindingSession) VERSION() (string, error)

VERSION is a free data retrieval call binding the contract method 0xffa1ad74.

Solidity: function VERSION() view returns(string)

func (*RegistryBindingSession) Withdraw

func (_RegistryBinding *RegistryBindingSession) Withdraw(bal *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x5b6b431d.

Solidity: function Withdraw(uint256 bal) returns()

type RegistryBindingTransactor

type RegistryBindingTransactor struct {
	// contains filtered or unexported fields
}

RegistryBindingTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewRegistryBindingTransactor

func NewRegistryBindingTransactor(address common.Address, transactor bind.ContractTransactor) (*RegistryBindingTransactor, error)

NewRegistryBindingTransactor creates a new write-only instance of RegistryBinding, bound to a specific deployed contract.

func (*RegistryBindingTransactor) Deposit

func (_RegistryBinding *RegistryBindingTransactor) Deposit(opts *bind.TransactOpts, bal *big.Int, tim uint64, sig common.Address, sgn []byte) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x96b13c54.

Solidity: function Deposit(uint256 bal, uint64 tim, address sig, bytes sgn) returns()

func (*RegistryBindingTransactor) Escape

func (_RegistryBinding *RegistryBindingTransactor) Escape(opts *bind.TransactOpts, grd common.Address) (*types.Transaction, error)

Escape is a paid mutator transaction binding the contract method 0x0d5dd3e4.

Solidity: function Escape(address grd) returns()

func (*RegistryBindingTransactor) Publish

func (_RegistryBinding *RegistryBindingTransactor) Publish(opts *bind.TransactOpts, kil *big.Int, win common.Address, los common.Address) (*types.Transaction, error)

Publish is a paid mutator transaction binding the contract method 0x5b19a0ee.

Solidity: function Publish(uint256 kil, address win, address los) returns()

func (*RegistryBindingTransactor) Release

func (_RegistryBinding *RegistryBindingTransactor) Release(opts *bind.TransactOpts, los common.Address) (*types.Transaction, error)

Release is a paid mutator transaction binding the contract method 0x79552101.

Solidity: function Release(address los) returns()

func (*RegistryBindingTransactor) Request

func (_RegistryBinding *RegistryBindingTransactor) Request(opts *bind.TransactOpts, grd common.Address, tim uint64, wal common.Address, sgn []byte) (*types.Transaction, error)

Request is a paid mutator transaction binding the contract method 0x2ef5c5a4.

Solidity: function Request(address grd, uint64 tim, address wal, bytes sgn) returns()

func (*RegistryBindingTransactor) Resolve

func (_RegistryBinding *RegistryBindingTransactor) Resolve(opts *bind.TransactOpts, kil *big.Int, win common.Address, los common.Address) (*types.Transaction, error)

Resolve is a paid mutator transaction binding the contract method 0xed8bdd82.

Solidity: function Resolve(uint256 kil, address win, address los) returns()

func (*RegistryBindingTransactor) UpdateBeneficiary

func (_RegistryBinding *RegistryBindingTransactor) UpdateBeneficiary(opts *bind.TransactOpts, ben common.Address) (*types.Transaction, error)

UpdateBeneficiary is a paid mutator transaction binding the contract method 0xe6131a64.

Solidity: function UpdateBeneficiary(address ben) returns()

func (*RegistryBindingTransactor) Withdraw

func (_RegistryBinding *RegistryBindingTransactor) Withdraw(opts *bind.TransactOpts, bal *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x5b6b431d.

Solidity: function Withdraw(uint256 bal) returns()

type RegistryBindingTransactorRaw

type RegistryBindingTransactorRaw struct {
	Contract *RegistryBindingTransactor // Generic write-only contract binding to access the raw methods on
}

RegistryBindingTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*RegistryBindingTransactorRaw) Transact

func (_RegistryBinding *RegistryBindingTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*RegistryBindingTransactorRaw) Transfer

func (_RegistryBinding *RegistryBindingTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type RegistryBindingTransactorSession

type RegistryBindingTransactorSession struct {
	Contract     *RegistryBindingTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts          // Transaction auth options to use throughout this session
}

RegistryBindingTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*RegistryBindingTransactorSession) Deposit

func (_RegistryBinding *RegistryBindingTransactorSession) Deposit(bal *big.Int, tim uint64, sig common.Address, sgn []byte) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x96b13c54.

Solidity: function Deposit(uint256 bal, uint64 tim, address sig, bytes sgn) returns()

func (*RegistryBindingTransactorSession) Escape

func (_RegistryBinding *RegistryBindingTransactorSession) Escape(grd common.Address) (*types.Transaction, error)

Escape is a paid mutator transaction binding the contract method 0x0d5dd3e4.

Solidity: function Escape(address grd) returns()

func (*RegistryBindingTransactorSession) Publish

func (_RegistryBinding *RegistryBindingTransactorSession) Publish(kil *big.Int, win common.Address, los common.Address) (*types.Transaction, error)

Publish is a paid mutator transaction binding the contract method 0x5b19a0ee.

Solidity: function Publish(uint256 kil, address win, address los) returns()

func (*RegistryBindingTransactorSession) Release

func (_RegistryBinding *RegistryBindingTransactorSession) Release(los common.Address) (*types.Transaction, error)

Release is a paid mutator transaction binding the contract method 0x79552101.

Solidity: function Release(address los) returns()

func (*RegistryBindingTransactorSession) Request

func (_RegistryBinding *RegistryBindingTransactorSession) Request(grd common.Address, tim uint64, wal common.Address, sgn []byte) (*types.Transaction, error)

Request is a paid mutator transaction binding the contract method 0x2ef5c5a4.

Solidity: function Request(address grd, uint64 tim, address wal, bytes sgn) returns()

func (*RegistryBindingTransactorSession) Resolve

func (_RegistryBinding *RegistryBindingTransactorSession) Resolve(kil *big.Int, win common.Address, los common.Address) (*types.Transaction, error)

Resolve is a paid mutator transaction binding the contract method 0xed8bdd82.

Solidity: function Resolve(uint256 kil, address win, address los) returns()

func (*RegistryBindingTransactorSession) UpdateBeneficiary

func (_RegistryBinding *RegistryBindingTransactorSession) UpdateBeneficiary(ben common.Address) (*types.Transaction, error)

UpdateBeneficiary is a paid mutator transaction binding the contract method 0xe6131a64.

Solidity: function UpdateBeneficiary(address ben) returns()

func (*RegistryBindingTransactorSession) Withdraw

func (_RegistryBinding *RegistryBindingTransactorSession) Withdraw(bal *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x5b6b431d.

Solidity: function Withdraw(uint256 bal) returns()

type RegistryBindingWitnessPublish

type RegistryBindingWitnessPublish struct {
	Pla common.Address
	Grd common.Address
	Kil *big.Int
	Win common.Address
	Los common.Address
	Raw types.Log // Blockchain specific contextual infos
}

RegistryBindingWitnessPublish represents a WitnessPublish event raised by the RegistryBinding contract.

type RegistryBindingWitnessPublishIterator

type RegistryBindingWitnessPublishIterator struct {
	Event *RegistryBindingWitnessPublish // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RegistryBindingWitnessPublishIterator is returned from FilterWitnessPublish and is used to iterate over the raw logs and unpacked data for WitnessPublish events raised by the RegistryBinding contract.

func (*RegistryBindingWitnessPublishIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*RegistryBindingWitnessPublishIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RegistryBindingWitnessPublishIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL