BPSucker

package
v0.0.0-...-21c898a Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BPSuckerABI = BPSuckerMetaData.ABI

BPSuckerABI is the input ABI used to generate the binding from. Deprecated: Use BPSuckerMetaData.ABI instead.

View Source
var BPSuckerMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"ADD_TO_BALANCE_MODE\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumBPAddToBalanceMode\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"DEPLOYER\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"DIRECTORY\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIJBDirectory\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"PEER\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"PERMISSIONS\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIJBPermissions\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"PROJECT_ID\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"TOKENS\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIJBTokens\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"addOutstandingAmountToBalance\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"amountToAddToBalance\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"claim\",\"inputs\":[{\"name\":\"claimData\",\"type\":\"tuple\",\"internalType\":\"structBPClaim\",\"components\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"leaf\",\"type\":\"tuple\",\"internalType\":\"structBPLeaf\",\"components\":[{\"name\":\"index\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"beneficiary\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"projectTokenAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"terminalTokenAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"proof\",\"type\":\"bytes32[32]\",\"internalType\":\"bytes32[32]\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"claim\",\"inputs\":[{\"name\":\"claims\",\"type\":\"tuple[]\",\"internalType\":\"structBPClaim[]\",\"components\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"leaf\",\"type\":\"tuple\",\"internalType\":\"structBPLeaf\",\"components\":[{\"name\":\"index\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"beneficiary\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"projectTokenAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"terminalTokenAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"proof\",\"type\":\"bytes32[32]\",\"internalType\":\"bytes32[32]\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"fromRemote\",\"inputs\":[{\"name\":\"root\",\"type\":\"tuple\",\"internalType\":\"structBPMessageRoot\",\"components\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"remoteRoot\",\"type\":\"tuple\",\"internalType\":\"structBPInboxTreeRoot\",\"components\":[{\"name\":\"nonce\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"root\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]}]}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"inbox\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"nonce\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"root\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isMapped\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"mapToken\",\"inputs\":[{\"name\":\"map\",\"type\":\"tuple\",\"internalType\":\"structBPTokenMapping\",\"components\":[{\"name\":\"localToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"minGas\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"remoteToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"minBridgeAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"mapTokens\",\"inputs\":[{\"name\":\"maps\",\"type\":\"tuple[]\",\"internalType\":\"structBPTokenMapping[]\",\"components\":[{\"name\":\"localToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"minGas\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"remoteToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"minBridgeAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"outbox\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"nonce\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"balance\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"tree\",\"type\":\"tuple\",\"internalType\":\"structMerkleLib.Tree\",\"components\":[{\"name\":\"branch\",\"type\":\"bytes32[32]\",\"internalType\":\"bytes32[32]\"},{\"name\":\"count\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"peerChainID\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"prepare\",\"inputs\":[{\"name\":\"projectTokenAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"beneficiary\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"minTokensReclaimed\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"remoteTokenFor\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"minGas\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"addr\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"minBridgeAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"toRemote\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"Claimed\",\"inputs\":[{\"name\":\"beneficiary\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"projectTokenAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"terminalTokenAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"index\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"autoAddedToBalance\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"InsertToOutboxTree\",\"inputs\":[{\"name\":\"beneficiary\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"terminalToken\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"hashed\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"index\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"root\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"projectTokenAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"terminalTokenAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"NewInboxTreeRoot\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"nonce\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"},{\"name\":\"root\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RootToRemote\",\"inputs\":[{\"name\":\"root\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"terminalToken\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"index\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"nonce\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"AddressEmptyCode\",\"inputs\":[{\"name\":\"target\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"AddressInsufficientBalance\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"BELOW_MIN_GAS\",\"inputs\":[{\"name\":\"minGas\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"suppliedGas\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"BENEFICIARY_NOT_ALLOWED\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"ERC20_TOKEN_REQUIRED\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"FailedInnerCall\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"INSUFFICIENT_BALANCE\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"INVALID_NATIVE_REMOTE_ADDRESS\",\"inputs\":[{\"name\":\"addr\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"INVALID_PROOF\",\"inputs\":[{\"name\":\"expectedRoot\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"proofRoot\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"type\":\"error\",\"name\":\"LEAF_ALREADY_EXECUTED\",\"inputs\":[{\"name\":\"index\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"MANUAL_NOT_ALLOWED\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"MerkleLib__insert_treeIsFull\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NOT_PEER\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NO_TERMINAL_FOR\",\"inputs\":[{\"name\":\"projectId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"QUEUE_INSUFFECIENT_SIZE\",\"inputs\":[{\"name\":\"minSize\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"currentSize\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"SafeERC20FailedOperation\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"TOKEN_NOT_MAPPED\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"UNAUTHORIZED\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"UNEXPECTED_MSG_VALUE\",\"inputs\":[]}]",
}

BPSuckerMetaData contains all meta data concerning the BPSucker contract.

Functions

This section is empty.

Types

type BPClaim

type BPClaim struct {
	Token common.Address
	Leaf  BPLeaf
	Proof [32][32]byte
}

BPClaim is an auto generated low-level Go binding around an user-defined struct.

type BPInboxTreeRoot

type BPInboxTreeRoot struct {
	Nonce uint64
	Root  [32]byte
}

BPInboxTreeRoot is an auto generated low-level Go binding around an user-defined struct.

type BPLeaf

type BPLeaf struct {
	Index               *big.Int
	Beneficiary         common.Address
	ProjectTokenAmount  *big.Int
	TerminalTokenAmount *big.Int
}

BPLeaf is an auto generated low-level Go binding around an user-defined struct.

type BPMessageRoot

type BPMessageRoot struct {
	Token      common.Address
	Amount     *big.Int
	RemoteRoot BPInboxTreeRoot
}

BPMessageRoot is an auto generated low-level Go binding around an user-defined struct.

type BPSucker

type BPSucker struct {
	BPSuckerCaller     // Read-only binding to the contract
	BPSuckerTransactor // Write-only binding to the contract
	BPSuckerFilterer   // Log filterer for contract events
}

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

func NewBPSucker

func NewBPSucker(address common.Address, backend bind.ContractBackend) (*BPSucker, error)

NewBPSucker creates a new instance of BPSucker, bound to a specific deployed contract.

type BPSuckerCaller

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

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

func NewBPSuckerCaller

func NewBPSuckerCaller(address common.Address, caller bind.ContractCaller) (*BPSuckerCaller, error)

NewBPSuckerCaller creates a new read-only instance of BPSucker, bound to a specific deployed contract.

func (*BPSuckerCaller) ADDTOBALANCEMODE

func (_BPSucker *BPSuckerCaller) ADDTOBALANCEMODE(opts *bind.CallOpts) (uint8, error)

ADDTOBALANCEMODE is a free data retrieval call binding the contract method 0xc6525f2c.

Solidity: function ADD_TO_BALANCE_MODE() view returns(uint8)

func (*BPSuckerCaller) AmountToAddToBalance

func (_BPSucker *BPSuckerCaller) AmountToAddToBalance(opts *bind.CallOpts, token common.Address) (*big.Int, error)

AmountToAddToBalance is a free data retrieval call binding the contract method 0xe7f82c75.

Solidity: function amountToAddToBalance(address token) view returns(uint256 amount)

func (*BPSuckerCaller) DEPLOYER

func (_BPSucker *BPSuckerCaller) DEPLOYER(opts *bind.CallOpts) (common.Address, error)

DEPLOYER is a free data retrieval call binding the contract method 0xc1b8411a.

Solidity: function DEPLOYER() view returns(address)

func (*BPSuckerCaller) DIRECTORY

func (_BPSucker *BPSuckerCaller) DIRECTORY(opts *bind.CallOpts) (common.Address, error)

DIRECTORY is a free data retrieval call binding the contract method 0x88bc2ef3.

Solidity: function DIRECTORY() view returns(address)

func (*BPSuckerCaller) Inbox

func (_BPSucker *BPSuckerCaller) Inbox(opts *bind.CallOpts, token common.Address) (struct {
	Nonce uint64
	Root  [32]byte
}, error)

Inbox is a free data retrieval call binding the contract method 0xed0e26b9.

Solidity: function inbox(address token) view returns(uint64 nonce, bytes32 root)

func (*BPSuckerCaller) IsMapped

func (_BPSucker *BPSuckerCaller) IsMapped(opts *bind.CallOpts, token common.Address) (bool, error)

IsMapped is a free data retrieval call binding the contract method 0xbf557aee.

Solidity: function isMapped(address token) view returns(bool)

func (*BPSuckerCaller) Outbox

func (_BPSucker *BPSuckerCaller) Outbox(opts *bind.CallOpts, token common.Address) (struct {
	Nonce   uint64
	Balance *big.Int
	Tree    MerkleLibTree
}, error)

Outbox is a free data retrieval call binding the contract method 0x6dfa7268.

Solidity: function outbox(address token) view returns(uint64 nonce, uint256 balance, (bytes32[32],uint256) tree)

func (*BPSuckerCaller) PEER

func (_BPSucker *BPSuckerCaller) PEER(opts *bind.CallOpts) (common.Address, error)

PEER is a free data retrieval call binding the contract method 0xad42938b.

Solidity: function PEER() view returns(address)

func (*BPSuckerCaller) PERMISSIONS

func (_BPSucker *BPSuckerCaller) PERMISSIONS(opts *bind.CallOpts) (common.Address, error)

PERMISSIONS is a free data retrieval call binding the contract method 0xf434c914.

Solidity: function PERMISSIONS() view returns(address)

func (*BPSuckerCaller) PROJECTID

func (_BPSucker *BPSuckerCaller) PROJECTID(opts *bind.CallOpts) (*big.Int, error)

PROJECTID is a free data retrieval call binding the contract method 0x56539f39.

Solidity: function PROJECT_ID() view returns(uint256)

func (*BPSuckerCaller) PeerChainID

func (_BPSucker *BPSuckerCaller) PeerChainID(opts *bind.CallOpts) (*big.Int, error)

PeerChainID is a free data retrieval call binding the contract method 0x61c86417.

Solidity: function peerChainID() view returns(uint256)

func (*BPSuckerCaller) RemoteTokenFor

func (_BPSucker *BPSuckerCaller) RemoteTokenFor(opts *bind.CallOpts, token common.Address) (struct {
	MinGas          uint32
	Addr            common.Address
	MinBridgeAmount *big.Int
}, error)

RemoteTokenFor is a free data retrieval call binding the contract method 0x7de6fba2.

Solidity: function remoteTokenFor(address token) view returns(uint32 minGas, address addr, uint256 minBridgeAmount)

func (*BPSuckerCaller) TOKENS

func (_BPSucker *BPSuckerCaller) TOKENS(opts *bind.CallOpts) (common.Address, error)

TOKENS is a free data retrieval call binding the contract method 0x1d831d5c.

Solidity: function TOKENS() view returns(address)

type BPSuckerCallerRaw

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

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

func (*BPSuckerCallerRaw) Call

func (_BPSucker *BPSuckerCallerRaw) 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 BPSuckerCallerSession

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

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

func (*BPSuckerCallerSession) ADDTOBALANCEMODE

func (_BPSucker *BPSuckerCallerSession) ADDTOBALANCEMODE() (uint8, error)

ADDTOBALANCEMODE is a free data retrieval call binding the contract method 0xc6525f2c.

Solidity: function ADD_TO_BALANCE_MODE() view returns(uint8)

func (*BPSuckerCallerSession) AmountToAddToBalance

func (_BPSucker *BPSuckerCallerSession) AmountToAddToBalance(token common.Address) (*big.Int, error)

AmountToAddToBalance is a free data retrieval call binding the contract method 0xe7f82c75.

Solidity: function amountToAddToBalance(address token) view returns(uint256 amount)

func (*BPSuckerCallerSession) DEPLOYER

func (_BPSucker *BPSuckerCallerSession) DEPLOYER() (common.Address, error)

DEPLOYER is a free data retrieval call binding the contract method 0xc1b8411a.

Solidity: function DEPLOYER() view returns(address)

func (*BPSuckerCallerSession) DIRECTORY

func (_BPSucker *BPSuckerCallerSession) DIRECTORY() (common.Address, error)

DIRECTORY is a free data retrieval call binding the contract method 0x88bc2ef3.

Solidity: function DIRECTORY() view returns(address)

func (*BPSuckerCallerSession) Inbox

func (_BPSucker *BPSuckerCallerSession) Inbox(token common.Address) (struct {
	Nonce uint64
	Root  [32]byte
}, error)

Inbox is a free data retrieval call binding the contract method 0xed0e26b9.

Solidity: function inbox(address token) view returns(uint64 nonce, bytes32 root)

func (*BPSuckerCallerSession) IsMapped

func (_BPSucker *BPSuckerCallerSession) IsMapped(token common.Address) (bool, error)

IsMapped is a free data retrieval call binding the contract method 0xbf557aee.

Solidity: function isMapped(address token) view returns(bool)

func (*BPSuckerCallerSession) Outbox

func (_BPSucker *BPSuckerCallerSession) Outbox(token common.Address) (struct {
	Nonce   uint64
	Balance *big.Int
	Tree    MerkleLibTree
}, error)

Outbox is a free data retrieval call binding the contract method 0x6dfa7268.

Solidity: function outbox(address token) view returns(uint64 nonce, uint256 balance, (bytes32[32],uint256) tree)

func (*BPSuckerCallerSession) PEER

func (_BPSucker *BPSuckerCallerSession) PEER() (common.Address, error)

PEER is a free data retrieval call binding the contract method 0xad42938b.

Solidity: function PEER() view returns(address)

func (*BPSuckerCallerSession) PERMISSIONS

func (_BPSucker *BPSuckerCallerSession) PERMISSIONS() (common.Address, error)

PERMISSIONS is a free data retrieval call binding the contract method 0xf434c914.

Solidity: function PERMISSIONS() view returns(address)

func (*BPSuckerCallerSession) PROJECTID

func (_BPSucker *BPSuckerCallerSession) PROJECTID() (*big.Int, error)

PROJECTID is a free data retrieval call binding the contract method 0x56539f39.

Solidity: function PROJECT_ID() view returns(uint256)

func (*BPSuckerCallerSession) PeerChainID

func (_BPSucker *BPSuckerCallerSession) PeerChainID() (*big.Int, error)

PeerChainID is a free data retrieval call binding the contract method 0x61c86417.

Solidity: function peerChainID() view returns(uint256)

func (*BPSuckerCallerSession) RemoteTokenFor

func (_BPSucker *BPSuckerCallerSession) RemoteTokenFor(token common.Address) (struct {
	MinGas          uint32
	Addr            common.Address
	MinBridgeAmount *big.Int
}, error)

RemoteTokenFor is a free data retrieval call binding the contract method 0x7de6fba2.

Solidity: function remoteTokenFor(address token) view returns(uint32 minGas, address addr, uint256 minBridgeAmount)

func (*BPSuckerCallerSession) TOKENS

func (_BPSucker *BPSuckerCallerSession) TOKENS() (common.Address, error)

TOKENS is a free data retrieval call binding the contract method 0x1d831d5c.

Solidity: function TOKENS() view returns(address)

type BPSuckerClaimed

type BPSuckerClaimed struct {
	Beneficiary         common.Address
	Token               common.Address
	ProjectTokenAmount  *big.Int
	TerminalTokenAmount *big.Int
	Index               *big.Int
	AutoAddedToBalance  bool
	Raw                 types.Log // Blockchain specific contextual infos
}

BPSuckerClaimed represents a Claimed event raised by the BPSucker contract.

type BPSuckerClaimedIterator

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

BPSuckerClaimedIterator is returned from FilterClaimed and is used to iterate over the raw logs and unpacked data for Claimed events raised by the BPSucker contract.

func (*BPSuckerClaimedIterator) Close

func (it *BPSuckerClaimedIterator) Close() error

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

func (*BPSuckerClaimedIterator) Error

func (it *BPSuckerClaimedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BPSuckerClaimedIterator) Next

func (it *BPSuckerClaimedIterator) Next() bool

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 BPSuckerFilterer

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

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

func NewBPSuckerFilterer

func NewBPSuckerFilterer(address common.Address, filterer bind.ContractFilterer) (*BPSuckerFilterer, error)

NewBPSuckerFilterer creates a new log filterer instance of BPSucker, bound to a specific deployed contract.

func (*BPSuckerFilterer) FilterClaimed

func (_BPSucker *BPSuckerFilterer) FilterClaimed(opts *bind.FilterOpts) (*BPSuckerClaimedIterator, error)

FilterClaimed is a free log retrieval operation binding the contract event 0x487194902d206a126abe9f23a4e2b78d1600ed8034b1423290a13edd6ebc7d14.

Solidity: event Claimed(address beneficiary, address token, uint256 projectTokenAmount, uint256 terminalTokenAmount, uint256 index, bool autoAddedToBalance)

func (*BPSuckerFilterer) FilterInsertToOutboxTree

func (_BPSucker *BPSuckerFilterer) FilterInsertToOutboxTree(opts *bind.FilterOpts, beneficiary []common.Address, terminalToken []common.Address) (*BPSuckerInsertToOutboxTreeIterator, error)

FilterInsertToOutboxTree is a free log retrieval operation binding the contract event 0x7b58dbb78e7edc690b0688a53dea0c443d630c4a5db66c3c47d4ff2044c97728.

Solidity: event InsertToOutboxTree(address indexed beneficiary, address indexed terminalToken, bytes32 hashed, uint256 index, bytes32 root, uint256 projectTokenAmount, uint256 terminalTokenAmount)

func (*BPSuckerFilterer) FilterNewInboxTreeRoot

func (_BPSucker *BPSuckerFilterer) FilterNewInboxTreeRoot(opts *bind.FilterOpts, token []common.Address) (*BPSuckerNewInboxTreeRootIterator, error)

FilterNewInboxTreeRoot is a free log retrieval operation binding the contract event 0x551b6b99b4c48e3265d2885ab0d93779be2402293261e074f7bf74b2c8f45b6f.

Solidity: event NewInboxTreeRoot(address indexed token, uint64 nonce, bytes32 root)

func (*BPSuckerFilterer) FilterRootToRemote

func (_BPSucker *BPSuckerFilterer) FilterRootToRemote(opts *bind.FilterOpts, root [][32]byte, terminalToken []common.Address) (*BPSuckerRootToRemoteIterator, error)

FilterRootToRemote is a free log retrieval operation binding the contract event 0x3e069c1f498cba23d7d2b74b84311469e8da6e527cade62061d642c61b64e0de.

Solidity: event RootToRemote(bytes32 indexed root, address indexed terminalToken, uint256 index, uint64 nonce)

func (*BPSuckerFilterer) ParseClaimed

func (_BPSucker *BPSuckerFilterer) ParseClaimed(log types.Log) (*BPSuckerClaimed, error)

ParseClaimed is a log parse operation binding the contract event 0x487194902d206a126abe9f23a4e2b78d1600ed8034b1423290a13edd6ebc7d14.

Solidity: event Claimed(address beneficiary, address token, uint256 projectTokenAmount, uint256 terminalTokenAmount, uint256 index, bool autoAddedToBalance)

func (*BPSuckerFilterer) ParseInsertToOutboxTree

func (_BPSucker *BPSuckerFilterer) ParseInsertToOutboxTree(log types.Log) (*BPSuckerInsertToOutboxTree, error)

ParseInsertToOutboxTree is a log parse operation binding the contract event 0x7b58dbb78e7edc690b0688a53dea0c443d630c4a5db66c3c47d4ff2044c97728.

Solidity: event InsertToOutboxTree(address indexed beneficiary, address indexed terminalToken, bytes32 hashed, uint256 index, bytes32 root, uint256 projectTokenAmount, uint256 terminalTokenAmount)

func (*BPSuckerFilterer) ParseNewInboxTreeRoot

func (_BPSucker *BPSuckerFilterer) ParseNewInboxTreeRoot(log types.Log) (*BPSuckerNewInboxTreeRoot, error)

ParseNewInboxTreeRoot is a log parse operation binding the contract event 0x551b6b99b4c48e3265d2885ab0d93779be2402293261e074f7bf74b2c8f45b6f.

Solidity: event NewInboxTreeRoot(address indexed token, uint64 nonce, bytes32 root)

func (*BPSuckerFilterer) ParseRootToRemote

func (_BPSucker *BPSuckerFilterer) ParseRootToRemote(log types.Log) (*BPSuckerRootToRemote, error)

ParseRootToRemote is a log parse operation binding the contract event 0x3e069c1f498cba23d7d2b74b84311469e8da6e527cade62061d642c61b64e0de.

Solidity: event RootToRemote(bytes32 indexed root, address indexed terminalToken, uint256 index, uint64 nonce)

func (*BPSuckerFilterer) WatchClaimed

func (_BPSucker *BPSuckerFilterer) WatchClaimed(opts *bind.WatchOpts, sink chan<- *BPSuckerClaimed) (event.Subscription, error)

WatchClaimed is a free log subscription operation binding the contract event 0x487194902d206a126abe9f23a4e2b78d1600ed8034b1423290a13edd6ebc7d14.

Solidity: event Claimed(address beneficiary, address token, uint256 projectTokenAmount, uint256 terminalTokenAmount, uint256 index, bool autoAddedToBalance)

func (*BPSuckerFilterer) WatchInsertToOutboxTree

func (_BPSucker *BPSuckerFilterer) WatchInsertToOutboxTree(opts *bind.WatchOpts, sink chan<- *BPSuckerInsertToOutboxTree, beneficiary []common.Address, terminalToken []common.Address) (event.Subscription, error)

WatchInsertToOutboxTree is a free log subscription operation binding the contract event 0x7b58dbb78e7edc690b0688a53dea0c443d630c4a5db66c3c47d4ff2044c97728.

Solidity: event InsertToOutboxTree(address indexed beneficiary, address indexed terminalToken, bytes32 hashed, uint256 index, bytes32 root, uint256 projectTokenAmount, uint256 terminalTokenAmount)

func (*BPSuckerFilterer) WatchNewInboxTreeRoot

func (_BPSucker *BPSuckerFilterer) WatchNewInboxTreeRoot(opts *bind.WatchOpts, sink chan<- *BPSuckerNewInboxTreeRoot, token []common.Address) (event.Subscription, error)

WatchNewInboxTreeRoot is a free log subscription operation binding the contract event 0x551b6b99b4c48e3265d2885ab0d93779be2402293261e074f7bf74b2c8f45b6f.

Solidity: event NewInboxTreeRoot(address indexed token, uint64 nonce, bytes32 root)

func (*BPSuckerFilterer) WatchRootToRemote

func (_BPSucker *BPSuckerFilterer) WatchRootToRemote(opts *bind.WatchOpts, sink chan<- *BPSuckerRootToRemote, root [][32]byte, terminalToken []common.Address) (event.Subscription, error)

WatchRootToRemote is a free log subscription operation binding the contract event 0x3e069c1f498cba23d7d2b74b84311469e8da6e527cade62061d642c61b64e0de.

Solidity: event RootToRemote(bytes32 indexed root, address indexed terminalToken, uint256 index, uint64 nonce)

type BPSuckerInsertToOutboxTree

type BPSuckerInsertToOutboxTree struct {
	Beneficiary         common.Address
	TerminalToken       common.Address
	Hashed              [32]byte
	Index               *big.Int
	Root                [32]byte
	ProjectTokenAmount  *big.Int
	TerminalTokenAmount *big.Int
	Raw                 types.Log // Blockchain specific contextual infos
}

BPSuckerInsertToOutboxTree represents a InsertToOutboxTree event raised by the BPSucker contract.

type BPSuckerInsertToOutboxTreeIterator

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

BPSuckerInsertToOutboxTreeIterator is returned from FilterInsertToOutboxTree and is used to iterate over the raw logs and unpacked data for InsertToOutboxTree events raised by the BPSucker contract.

func (*BPSuckerInsertToOutboxTreeIterator) Close

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

func (*BPSuckerInsertToOutboxTreeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BPSuckerInsertToOutboxTreeIterator) 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 BPSuckerNewInboxTreeRoot

type BPSuckerNewInboxTreeRoot struct {
	Token common.Address
	Nonce uint64
	Root  [32]byte
	Raw   types.Log // Blockchain specific contextual infos
}

BPSuckerNewInboxTreeRoot represents a NewInboxTreeRoot event raised by the BPSucker contract.

type BPSuckerNewInboxTreeRootIterator

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

BPSuckerNewInboxTreeRootIterator is returned from FilterNewInboxTreeRoot and is used to iterate over the raw logs and unpacked data for NewInboxTreeRoot events raised by the BPSucker contract.

func (*BPSuckerNewInboxTreeRootIterator) Close

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

func (*BPSuckerNewInboxTreeRootIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BPSuckerNewInboxTreeRootIterator) 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 BPSuckerRaw

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

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

func (*BPSuckerRaw) Call

func (_BPSucker *BPSuckerRaw) 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 (*BPSuckerRaw) Transact

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

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

func (*BPSuckerRaw) Transfer

func (_BPSucker *BPSuckerRaw) 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 BPSuckerRootToRemote

type BPSuckerRootToRemote struct {
	Root          [32]byte
	TerminalToken common.Address
	Index         *big.Int
	Nonce         uint64
	Raw           types.Log // Blockchain specific contextual infos
}

BPSuckerRootToRemote represents a RootToRemote event raised by the BPSucker contract.

type BPSuckerRootToRemoteIterator

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

BPSuckerRootToRemoteIterator is returned from FilterRootToRemote and is used to iterate over the raw logs and unpacked data for RootToRemote events raised by the BPSucker contract.

func (*BPSuckerRootToRemoteIterator) Close

func (it *BPSuckerRootToRemoteIterator) Close() error

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

func (*BPSuckerRootToRemoteIterator) Error

func (it *BPSuckerRootToRemoteIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BPSuckerRootToRemoteIterator) 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 BPSuckerSession

type BPSuckerSession struct {
	Contract     *BPSucker         // 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
}

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

func (*BPSuckerSession) ADDTOBALANCEMODE

func (_BPSucker *BPSuckerSession) ADDTOBALANCEMODE() (uint8, error)

ADDTOBALANCEMODE is a free data retrieval call binding the contract method 0xc6525f2c.

Solidity: function ADD_TO_BALANCE_MODE() view returns(uint8)

func (*BPSuckerSession) AddOutstandingAmountToBalance

func (_BPSucker *BPSuckerSession) AddOutstandingAmountToBalance(token common.Address) (*types.Transaction, error)

AddOutstandingAmountToBalance is a paid mutator transaction binding the contract method 0x69ce2233.

Solidity: function addOutstandingAmountToBalance(address token) returns()

func (*BPSuckerSession) AmountToAddToBalance

func (_BPSucker *BPSuckerSession) AmountToAddToBalance(token common.Address) (*big.Int, error)

AmountToAddToBalance is a free data retrieval call binding the contract method 0xe7f82c75.

Solidity: function amountToAddToBalance(address token) view returns(uint256 amount)

func (*BPSuckerSession) Claim

func (_BPSucker *BPSuckerSession) Claim(claimData BPClaim) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0xb59ef50f.

Solidity: function claim((address,(uint256,address,uint256,uint256),bytes32[32]) claimData) returns()

func (*BPSuckerSession) Claim0

func (_BPSucker *BPSuckerSession) Claim0(claims []BPClaim) (*types.Transaction, error)

Claim0 is a paid mutator transaction binding the contract method 0xc1854129.

Solidity: function claim((address,(uint256,address,uint256,uint256),bytes32[32])[] claims) returns()

func (*BPSuckerSession) DEPLOYER

func (_BPSucker *BPSuckerSession) DEPLOYER() (common.Address, error)

DEPLOYER is a free data retrieval call binding the contract method 0xc1b8411a.

Solidity: function DEPLOYER() view returns(address)

func (*BPSuckerSession) DIRECTORY

func (_BPSucker *BPSuckerSession) DIRECTORY() (common.Address, error)

DIRECTORY is a free data retrieval call binding the contract method 0x88bc2ef3.

Solidity: function DIRECTORY() view returns(address)

func (*BPSuckerSession) FromRemote

func (_BPSucker *BPSuckerSession) FromRemote(root BPMessageRoot) (*types.Transaction, error)

FromRemote is a paid mutator transaction binding the contract method 0x69d31fdd.

Solidity: function fromRemote((address,uint256,(uint64,bytes32)) root) payable returns()

func (*BPSuckerSession) Inbox

func (_BPSucker *BPSuckerSession) Inbox(token common.Address) (struct {
	Nonce uint64
	Root  [32]byte
}, error)

Inbox is a free data retrieval call binding the contract method 0xed0e26b9.

Solidity: function inbox(address token) view returns(uint64 nonce, bytes32 root)

func (*BPSuckerSession) IsMapped

func (_BPSucker *BPSuckerSession) IsMapped(token common.Address) (bool, error)

IsMapped is a free data retrieval call binding the contract method 0xbf557aee.

Solidity: function isMapped(address token) view returns(bool)

func (*BPSuckerSession) MapToken

func (_BPSucker *BPSuckerSession) MapToken(arg0 BPTokenMapping) (*types.Transaction, error)

MapToken is a paid mutator transaction binding the contract method 0x38eb2044.

Solidity: function mapToken((address,uint32,address,uint256) map) returns()

func (*BPSuckerSession) MapTokens

func (_BPSucker *BPSuckerSession) MapTokens(maps []BPTokenMapping) (*types.Transaction, error)

MapTokens is a paid mutator transaction binding the contract method 0x2241dc52.

Solidity: function mapTokens((address,uint32,address,uint256)[] maps) returns()

func (*BPSuckerSession) Outbox

func (_BPSucker *BPSuckerSession) Outbox(token common.Address) (struct {
	Nonce   uint64
	Balance *big.Int
	Tree    MerkleLibTree
}, error)

Outbox is a free data retrieval call binding the contract method 0x6dfa7268.

Solidity: function outbox(address token) view returns(uint64 nonce, uint256 balance, (bytes32[32],uint256) tree)

func (*BPSuckerSession) PEER

func (_BPSucker *BPSuckerSession) PEER() (common.Address, error)

PEER is a free data retrieval call binding the contract method 0xad42938b.

Solidity: function PEER() view returns(address)

func (*BPSuckerSession) PERMISSIONS

func (_BPSucker *BPSuckerSession) PERMISSIONS() (common.Address, error)

PERMISSIONS is a free data retrieval call binding the contract method 0xf434c914.

Solidity: function PERMISSIONS() view returns(address)

func (*BPSuckerSession) PROJECTID

func (_BPSucker *BPSuckerSession) PROJECTID() (*big.Int, error)

PROJECTID is a free data retrieval call binding the contract method 0x56539f39.

Solidity: function PROJECT_ID() view returns(uint256)

func (*BPSuckerSession) PeerChainID

func (_BPSucker *BPSuckerSession) PeerChainID() (*big.Int, error)

PeerChainID is a free data retrieval call binding the contract method 0x61c86417.

Solidity: function peerChainID() view returns(uint256)

func (*BPSuckerSession) Prepare

func (_BPSucker *BPSuckerSession) Prepare(projectTokenAmount *big.Int, beneficiary common.Address, minTokensReclaimed *big.Int, token common.Address) (*types.Transaction, error)

Prepare is a paid mutator transaction binding the contract method 0x551ebbf0.

Solidity: function prepare(uint256 projectTokenAmount, address beneficiary, uint256 minTokensReclaimed, address token) returns()

func (*BPSuckerSession) Receive

func (_BPSucker *BPSuckerSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*BPSuckerSession) RemoteTokenFor

func (_BPSucker *BPSuckerSession) RemoteTokenFor(token common.Address) (struct {
	MinGas          uint32
	Addr            common.Address
	MinBridgeAmount *big.Int
}, error)

RemoteTokenFor is a free data retrieval call binding the contract method 0x7de6fba2.

Solidity: function remoteTokenFor(address token) view returns(uint32 minGas, address addr, uint256 minBridgeAmount)

func (*BPSuckerSession) TOKENS

func (_BPSucker *BPSuckerSession) TOKENS() (common.Address, error)

TOKENS is a free data retrieval call binding the contract method 0x1d831d5c.

Solidity: function TOKENS() view returns(address)

func (*BPSuckerSession) ToRemote

func (_BPSucker *BPSuckerSession) ToRemote(token common.Address) (*types.Transaction, error)

ToRemote is a paid mutator transaction binding the contract method 0xb71c1179.

Solidity: function toRemote(address token) payable returns()

type BPSuckerTransactor

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

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

func NewBPSuckerTransactor

func NewBPSuckerTransactor(address common.Address, transactor bind.ContractTransactor) (*BPSuckerTransactor, error)

NewBPSuckerTransactor creates a new write-only instance of BPSucker, bound to a specific deployed contract.

func (*BPSuckerTransactor) AddOutstandingAmountToBalance

func (_BPSucker *BPSuckerTransactor) AddOutstandingAmountToBalance(opts *bind.TransactOpts, token common.Address) (*types.Transaction, error)

AddOutstandingAmountToBalance is a paid mutator transaction binding the contract method 0x69ce2233.

Solidity: function addOutstandingAmountToBalance(address token) returns()

func (*BPSuckerTransactor) Claim

func (_BPSucker *BPSuckerTransactor) Claim(opts *bind.TransactOpts, claimData BPClaim) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0xb59ef50f.

Solidity: function claim((address,(uint256,address,uint256,uint256),bytes32[32]) claimData) returns()

func (*BPSuckerTransactor) Claim0

func (_BPSucker *BPSuckerTransactor) Claim0(opts *bind.TransactOpts, claims []BPClaim) (*types.Transaction, error)

Claim0 is a paid mutator transaction binding the contract method 0xc1854129.

Solidity: function claim((address,(uint256,address,uint256,uint256),bytes32[32])[] claims) returns()

func (*BPSuckerTransactor) FromRemote

func (_BPSucker *BPSuckerTransactor) FromRemote(opts *bind.TransactOpts, root BPMessageRoot) (*types.Transaction, error)

FromRemote is a paid mutator transaction binding the contract method 0x69d31fdd.

Solidity: function fromRemote((address,uint256,(uint64,bytes32)) root) payable returns()

func (*BPSuckerTransactor) MapToken

func (_BPSucker *BPSuckerTransactor) MapToken(opts *bind.TransactOpts, arg0 BPTokenMapping) (*types.Transaction, error)

MapToken is a paid mutator transaction binding the contract method 0x38eb2044.

Solidity: function mapToken((address,uint32,address,uint256) map) returns()

func (*BPSuckerTransactor) MapTokens

func (_BPSucker *BPSuckerTransactor) MapTokens(opts *bind.TransactOpts, maps []BPTokenMapping) (*types.Transaction, error)

MapTokens is a paid mutator transaction binding the contract method 0x2241dc52.

Solidity: function mapTokens((address,uint32,address,uint256)[] maps) returns()

func (*BPSuckerTransactor) Prepare

func (_BPSucker *BPSuckerTransactor) Prepare(opts *bind.TransactOpts, projectTokenAmount *big.Int, beneficiary common.Address, minTokensReclaimed *big.Int, token common.Address) (*types.Transaction, error)

Prepare is a paid mutator transaction binding the contract method 0x551ebbf0.

Solidity: function prepare(uint256 projectTokenAmount, address beneficiary, uint256 minTokensReclaimed, address token) returns()

func (*BPSuckerTransactor) Receive

func (_BPSucker *BPSuckerTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*BPSuckerTransactor) ToRemote

func (_BPSucker *BPSuckerTransactor) ToRemote(opts *bind.TransactOpts, token common.Address) (*types.Transaction, error)

ToRemote is a paid mutator transaction binding the contract method 0xb71c1179.

Solidity: function toRemote(address token) payable returns()

type BPSuckerTransactorRaw

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

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

func (*BPSuckerTransactorRaw) Transact

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

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

func (*BPSuckerTransactorRaw) Transfer

func (_BPSucker *BPSuckerTransactorRaw) 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 BPSuckerTransactorSession

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

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

func (*BPSuckerTransactorSession) AddOutstandingAmountToBalance

func (_BPSucker *BPSuckerTransactorSession) AddOutstandingAmountToBalance(token common.Address) (*types.Transaction, error)

AddOutstandingAmountToBalance is a paid mutator transaction binding the contract method 0x69ce2233.

Solidity: function addOutstandingAmountToBalance(address token) returns()

func (*BPSuckerTransactorSession) Claim

func (_BPSucker *BPSuckerTransactorSession) Claim(claimData BPClaim) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0xb59ef50f.

Solidity: function claim((address,(uint256,address,uint256,uint256),bytes32[32]) claimData) returns()

func (*BPSuckerTransactorSession) Claim0

func (_BPSucker *BPSuckerTransactorSession) Claim0(claims []BPClaim) (*types.Transaction, error)

Claim0 is a paid mutator transaction binding the contract method 0xc1854129.

Solidity: function claim((address,(uint256,address,uint256,uint256),bytes32[32])[] claims) returns()

func (*BPSuckerTransactorSession) FromRemote

func (_BPSucker *BPSuckerTransactorSession) FromRemote(root BPMessageRoot) (*types.Transaction, error)

FromRemote is a paid mutator transaction binding the contract method 0x69d31fdd.

Solidity: function fromRemote((address,uint256,(uint64,bytes32)) root) payable returns()

func (*BPSuckerTransactorSession) MapToken

func (_BPSucker *BPSuckerTransactorSession) MapToken(arg0 BPTokenMapping) (*types.Transaction, error)

MapToken is a paid mutator transaction binding the contract method 0x38eb2044.

Solidity: function mapToken((address,uint32,address,uint256) map) returns()

func (*BPSuckerTransactorSession) MapTokens

func (_BPSucker *BPSuckerTransactorSession) MapTokens(maps []BPTokenMapping) (*types.Transaction, error)

MapTokens is a paid mutator transaction binding the contract method 0x2241dc52.

Solidity: function mapTokens((address,uint32,address,uint256)[] maps) returns()

func (*BPSuckerTransactorSession) Prepare

func (_BPSucker *BPSuckerTransactorSession) Prepare(projectTokenAmount *big.Int, beneficiary common.Address, minTokensReclaimed *big.Int, token common.Address) (*types.Transaction, error)

Prepare is a paid mutator transaction binding the contract method 0x551ebbf0.

Solidity: function prepare(uint256 projectTokenAmount, address beneficiary, uint256 minTokensReclaimed, address token) returns()

func (*BPSuckerTransactorSession) Receive

func (_BPSucker *BPSuckerTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*BPSuckerTransactorSession) ToRemote

func (_BPSucker *BPSuckerTransactorSession) ToRemote(token common.Address) (*types.Transaction, error)

ToRemote is a paid mutator transaction binding the contract method 0xb71c1179.

Solidity: function toRemote(address token) payable returns()

type BPTokenMapping

type BPTokenMapping struct {
	LocalToken      common.Address
	MinGas          uint32
	RemoteToken     common.Address
	MinBridgeAmount *big.Int
}

BPTokenMapping is an auto generated low-level Go binding around an user-defined struct.

type MerkleLibTree

type MerkleLibTree struct {
	Branch [32][32]byte
	Count  *big.Int
}

MerkleLibTree is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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