solidity

package
v0.0.0-...-ddfbed8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BridgeABI = BridgeMetaData.ABI

BridgeABI is the input ABI used to generate the binding from. Deprecated: Use BridgeMetaData.ABI instead.

View Source
var BridgeMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_signers\",\"type\":\"address[]\"},{\"internalType\":\"uint8\",\"name\":\"_minThreshold\",\"type\":\"uint8\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"destination\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"version\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"minThreshold\",\"type\":\"uint8\"}],\"name\":\"RegisterSigners\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"RegisterStellarAsset\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"value\",\"type\":\"uint8\"}],\"name\":\"SetPaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"destination\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"depositERC20\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"destination\",\"type\":\"uint256\"}],\"name\":\"depositETH\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isStellarAsset\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"minThreshold\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"}],\"internalType\":\"structRegisterStellarAssetRequest\",\"name\":\"request\",\"type\":\"tuple\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"},{\"internalType\":\"uint8[]\",\"name\":\"indexes\",\"type\":\"uint8[]\"}],\"name\":\"registerStellarAsset\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"requestID\",\"type\":\"bytes32\"}],\"name\":\"requestStatus\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"value\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"}],\"internalType\":\"structSetPausedRequest\",\"name\":\"request\",\"type\":\"tuple\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"},{\"internalType\":\"uint8[]\",\"name\":\"indexes\",\"type\":\"uint8[]\"}],\"name\":\"setPaused\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"signers\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_signers\",\"type\":\"address[]\"},{\"internalType\":\"uint8\",\"name\":\"_minThreshold\",\"type\":\"uint8\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"},{\"internalType\":\"uint8[]\",\"name\":\"indexes\",\"type\":\"uint8[]\"}],\"name\":\"updateSigners\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structWithdrawERC20Request\",\"name\":\"request\",\"type\":\"tuple\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"},{\"internalType\":\"uint8[]\",\"name\":\"indexes\",\"type\":\"uint8[]\"}],\"name\":\"withdrawERC20\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structWithdrawETHRequest\",\"name\":\"request\",\"type\":\"tuple\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"},{\"internalType\":\"uint8[]\",\"name\":\"indexes\",\"type\":\"uint8[]\"}],\"name\":\"withdrawETH\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

BridgeMetaData contains all meta data concerning the Bridge contract.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	BridgeCaller     // Read-only binding to the contract
	BridgeTransactor // Write-only binding to the contract
	BridgeFilterer   // Log filterer for contract events
}

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

func NewBridge

func NewBridge(address common.Address, backend bind.ContractBackend) (*Bridge, error)

NewBridge creates a new instance of Bridge, bound to a specific deployed contract.

type BridgeCaller

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

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

func NewBridgeCaller

func NewBridgeCaller(address common.Address, caller bind.ContractCaller) (*BridgeCaller, error)

NewBridgeCaller creates a new read-only instance of Bridge, bound to a specific deployed contract.

func (*BridgeCaller) IsStellarAsset

func (_Bridge *BridgeCaller) IsStellarAsset(opts *bind.CallOpts, arg0 common.Address) (bool, error)

IsStellarAsset is a free data retrieval call binding the contract method 0x453c6d97.

Solidity: function isStellarAsset(address ) view returns(bool)

func (*BridgeCaller) MinThreshold

func (_Bridge *BridgeCaller) MinThreshold(opts *bind.CallOpts) (uint8, error)

MinThreshold is a free data retrieval call binding the contract method 0xc85501bb.

Solidity: function minThreshold() view returns(uint8)

func (*BridgeCaller) Paused

func (_Bridge *BridgeCaller) Paused(opts *bind.CallOpts) (uint8, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(uint8)

func (*BridgeCaller) RequestStatus

func (_Bridge *BridgeCaller) RequestStatus(opts *bind.CallOpts, requestID [32]byte) (bool, *big.Int, error)

RequestStatus is a free data retrieval call binding the contract method 0x9b902497.

Solidity: function requestStatus(bytes32 requestID) view returns(bool, uint256)

func (*BridgeCaller) Signers

func (_Bridge *BridgeCaller) Signers(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

Signers is a free data retrieval call binding the contract method 0x2079fb9a.

Solidity: function signers(uint256 ) view returns(address)

func (*BridgeCaller) Version

func (_Bridge *BridgeCaller) Version(opts *bind.CallOpts) (*big.Int, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint256)

type BridgeCallerRaw

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

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

func (*BridgeCallerRaw) Call

func (_Bridge *BridgeCallerRaw) 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 BridgeCallerSession

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

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

func (*BridgeCallerSession) IsStellarAsset

func (_Bridge *BridgeCallerSession) IsStellarAsset(arg0 common.Address) (bool, error)

IsStellarAsset is a free data retrieval call binding the contract method 0x453c6d97.

Solidity: function isStellarAsset(address ) view returns(bool)

func (*BridgeCallerSession) MinThreshold

func (_Bridge *BridgeCallerSession) MinThreshold() (uint8, error)

MinThreshold is a free data retrieval call binding the contract method 0xc85501bb.

Solidity: function minThreshold() view returns(uint8)

func (*BridgeCallerSession) Paused

func (_Bridge *BridgeCallerSession) Paused() (uint8, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(uint8)

func (*BridgeCallerSession) RequestStatus

func (_Bridge *BridgeCallerSession) RequestStatus(requestID [32]byte) (bool, *big.Int, error)

RequestStatus is a free data retrieval call binding the contract method 0x9b902497.

Solidity: function requestStatus(bytes32 requestID) view returns(bool, uint256)

func (*BridgeCallerSession) Signers

func (_Bridge *BridgeCallerSession) Signers(arg0 *big.Int) (common.Address, error)

Signers is a free data retrieval call binding the contract method 0x2079fb9a.

Solidity: function signers(uint256 ) view returns(address)

func (*BridgeCallerSession) Version

func (_Bridge *BridgeCallerSession) Version() (*big.Int, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint256)

type BridgeDeposit

type BridgeDeposit struct {
	Token       common.Address
	Sender      common.Address
	Destination *big.Int
	Amount      *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

BridgeDeposit represents a Deposit event raised by the Bridge contract.

type BridgeDepositIterator

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

BridgeDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the Bridge contract.

func (*BridgeDepositIterator) Close

func (it *BridgeDepositIterator) Close() error

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

func (*BridgeDepositIterator) Error

func (it *BridgeDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeDepositIterator) Next

func (it *BridgeDepositIterator) 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 BridgeFilterer

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

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

func NewBridgeFilterer

func NewBridgeFilterer(address common.Address, filterer bind.ContractFilterer) (*BridgeFilterer, error)

NewBridgeFilterer creates a new log filterer instance of Bridge, bound to a specific deployed contract.

func (*BridgeFilterer) FilterDeposit

func (_Bridge *BridgeFilterer) FilterDeposit(opts *bind.FilterOpts) (*BridgeDepositIterator, error)

FilterDeposit is a free log retrieval operation binding the contract event 0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7.

Solidity: event Deposit(address token, address sender, uint256 destination, uint256 amount)

func (*BridgeFilterer) FilterRegisterSigners

func (_Bridge *BridgeFilterer) FilterRegisterSigners(opts *bind.FilterOpts) (*BridgeRegisterSignersIterator, error)

FilterRegisterSigners is a free log retrieval operation binding the contract event 0x5d291071bb8cb02c25b56ac7a404864bbf1b404850664208dc12952b59017a8a.

Solidity: event RegisterSigners(uint256 version, address[] signers, uint8 minThreshold)

func (*BridgeFilterer) FilterRegisterStellarAsset

func (_Bridge *BridgeFilterer) FilterRegisterStellarAsset(opts *bind.FilterOpts) (*BridgeRegisterStellarAssetIterator, error)

FilterRegisterStellarAsset is a free log retrieval operation binding the contract event 0xa4dfd59983ab499bfeddc2f42db87b2c7e274c8c227df1b705c0139d9f7ca3f3.

Solidity: event RegisterStellarAsset(address asset)

func (*BridgeFilterer) FilterSetPaused

func (_Bridge *BridgeFilterer) FilterSetPaused(opts *bind.FilterOpts) (*BridgeSetPausedIterator, error)

FilterSetPaused is a free log retrieval operation binding the contract event 0x9a0d3d5e378f6c06261926f8d2c566764cc506766d4cf6535cb64d9f831fa310.

Solidity: event SetPaused(uint8 value)

func (*BridgeFilterer) FilterWithdraw

func (_Bridge *BridgeFilterer) FilterWithdraw(opts *bind.FilterOpts) (*BridgeWithdrawIterator, error)

FilterWithdraw is a free log retrieval operation binding the contract event 0xcd6ac346191b4b7531743e58f243dd4d350a52a9186641c1e5eac22b95aaedbe.

Solidity: event Withdraw(bytes32 id, address token, address recipient, uint256 amount)

func (*BridgeFilterer) ParseDeposit

func (_Bridge *BridgeFilterer) ParseDeposit(log types.Log) (*BridgeDeposit, error)

ParseDeposit is a log parse operation binding the contract event 0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7.

Solidity: event Deposit(address token, address sender, uint256 destination, uint256 amount)

func (*BridgeFilterer) ParseRegisterSigners

func (_Bridge *BridgeFilterer) ParseRegisterSigners(log types.Log) (*BridgeRegisterSigners, error)

ParseRegisterSigners is a log parse operation binding the contract event 0x5d291071bb8cb02c25b56ac7a404864bbf1b404850664208dc12952b59017a8a.

Solidity: event RegisterSigners(uint256 version, address[] signers, uint8 minThreshold)

func (*BridgeFilterer) ParseRegisterStellarAsset

func (_Bridge *BridgeFilterer) ParseRegisterStellarAsset(log types.Log) (*BridgeRegisterStellarAsset, error)

ParseRegisterStellarAsset is a log parse operation binding the contract event 0xa4dfd59983ab499bfeddc2f42db87b2c7e274c8c227df1b705c0139d9f7ca3f3.

Solidity: event RegisterStellarAsset(address asset)

func (*BridgeFilterer) ParseSetPaused

func (_Bridge *BridgeFilterer) ParseSetPaused(log types.Log) (*BridgeSetPaused, error)

ParseSetPaused is a log parse operation binding the contract event 0x9a0d3d5e378f6c06261926f8d2c566764cc506766d4cf6535cb64d9f831fa310.

Solidity: event SetPaused(uint8 value)

func (*BridgeFilterer) ParseWithdraw

func (_Bridge *BridgeFilterer) ParseWithdraw(log types.Log) (*BridgeWithdraw, error)

ParseWithdraw is a log parse operation binding the contract event 0xcd6ac346191b4b7531743e58f243dd4d350a52a9186641c1e5eac22b95aaedbe.

Solidity: event Withdraw(bytes32 id, address token, address recipient, uint256 amount)

func (*BridgeFilterer) WatchDeposit

func (_Bridge *BridgeFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *BridgeDeposit) (event.Subscription, error)

WatchDeposit is a free log subscription operation binding the contract event 0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7.

Solidity: event Deposit(address token, address sender, uint256 destination, uint256 amount)

func (*BridgeFilterer) WatchRegisterSigners

func (_Bridge *BridgeFilterer) WatchRegisterSigners(opts *bind.WatchOpts, sink chan<- *BridgeRegisterSigners) (event.Subscription, error)

WatchRegisterSigners is a free log subscription operation binding the contract event 0x5d291071bb8cb02c25b56ac7a404864bbf1b404850664208dc12952b59017a8a.

Solidity: event RegisterSigners(uint256 version, address[] signers, uint8 minThreshold)

func (*BridgeFilterer) WatchRegisterStellarAsset

func (_Bridge *BridgeFilterer) WatchRegisterStellarAsset(opts *bind.WatchOpts, sink chan<- *BridgeRegisterStellarAsset) (event.Subscription, error)

WatchRegisterStellarAsset is a free log subscription operation binding the contract event 0xa4dfd59983ab499bfeddc2f42db87b2c7e274c8c227df1b705c0139d9f7ca3f3.

Solidity: event RegisterStellarAsset(address asset)

func (*BridgeFilterer) WatchSetPaused

func (_Bridge *BridgeFilterer) WatchSetPaused(opts *bind.WatchOpts, sink chan<- *BridgeSetPaused) (event.Subscription, error)

WatchSetPaused is a free log subscription operation binding the contract event 0x9a0d3d5e378f6c06261926f8d2c566764cc506766d4cf6535cb64d9f831fa310.

Solidity: event SetPaused(uint8 value)

func (*BridgeFilterer) WatchWithdraw

func (_Bridge *BridgeFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *BridgeWithdraw) (event.Subscription, error)

WatchWithdraw is a free log subscription operation binding the contract event 0xcd6ac346191b4b7531743e58f243dd4d350a52a9186641c1e5eac22b95aaedbe.

Solidity: event Withdraw(bytes32 id, address token, address recipient, uint256 amount)

type BridgeRaw

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

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

func (*BridgeRaw) Call

func (_Bridge *BridgeRaw) 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 (*BridgeRaw) Transact

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

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

func (*BridgeRaw) Transfer

func (_Bridge *BridgeRaw) 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 BridgeRegisterSigners

type BridgeRegisterSigners struct {
	Version      *big.Int
	Signers      []common.Address
	MinThreshold uint8
	Raw          types.Log // Blockchain specific contextual infos
}

BridgeRegisterSigners represents a RegisterSigners event raised by the Bridge contract.

type BridgeRegisterSignersIterator

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

BridgeRegisterSignersIterator is returned from FilterRegisterSigners and is used to iterate over the raw logs and unpacked data for RegisterSigners events raised by the Bridge contract.

func (*BridgeRegisterSignersIterator) Close

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

func (*BridgeRegisterSignersIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeRegisterSignersIterator) 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 BridgeRegisterStellarAsset

type BridgeRegisterStellarAsset struct {
	Asset common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

BridgeRegisterStellarAsset represents a RegisterStellarAsset event raised by the Bridge contract.

type BridgeRegisterStellarAssetIterator

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

BridgeRegisterStellarAssetIterator is returned from FilterRegisterStellarAsset and is used to iterate over the raw logs and unpacked data for RegisterStellarAsset events raised by the Bridge contract.

func (*BridgeRegisterStellarAssetIterator) Close

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

func (*BridgeRegisterStellarAssetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeRegisterStellarAssetIterator) 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 BridgeSession

type BridgeSession struct {
	Contract     *Bridge           // 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
}

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

func (*BridgeSession) DepositERC20

func (_Bridge *BridgeSession) DepositERC20(token common.Address, destination *big.Int, amount *big.Int) (*types.Transaction, error)

DepositERC20 is a paid mutator transaction binding the contract method 0x21425ee0.

Solidity: function depositERC20(address token, uint256 destination, uint256 amount) returns()

func (*BridgeSession) DepositETH

func (_Bridge *BridgeSession) DepositETH(destination *big.Int) (*types.Transaction, error)

DepositETH is a paid mutator transaction binding the contract method 0x5358fbda.

Solidity: function depositETH(uint256 destination) payable returns()

func (*BridgeSession) IsStellarAsset

func (_Bridge *BridgeSession) IsStellarAsset(arg0 common.Address) (bool, error)

IsStellarAsset is a free data retrieval call binding the contract method 0x453c6d97.

Solidity: function isStellarAsset(address ) view returns(bool)

func (*BridgeSession) MinThreshold

func (_Bridge *BridgeSession) MinThreshold() (uint8, error)

MinThreshold is a free data retrieval call binding the contract method 0xc85501bb.

Solidity: function minThreshold() view returns(uint8)

func (*BridgeSession) Paused

func (_Bridge *BridgeSession) Paused() (uint8, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(uint8)

func (*BridgeSession) RegisterStellarAsset

func (_Bridge *BridgeSession) RegisterStellarAsset(request RegisterStellarAssetRequest, signatures [][]byte, indexes []uint8) (*types.Transaction, error)

RegisterStellarAsset is a paid mutator transaction binding the contract method 0x410d8d61.

Solidity: function registerStellarAsset((uint8,string,string) request, bytes[] signatures, uint8[] indexes) returns()

func (*BridgeSession) RequestStatus

func (_Bridge *BridgeSession) RequestStatus(requestID [32]byte) (bool, *big.Int, error)

RequestStatus is a free data retrieval call binding the contract method 0x9b902497.

Solidity: function requestStatus(bytes32 requestID) view returns(bool, uint256)

func (*BridgeSession) SetPaused

func (_Bridge *BridgeSession) SetPaused(request SetPausedRequest, signatures [][]byte, indexes []uint8) (*types.Transaction, error)

SetPaused is a paid mutator transaction binding the contract method 0xfac7d40f.

Solidity: function setPaused((uint8,uint256,uint256) request, bytes[] signatures, uint8[] indexes) returns()

func (*BridgeSession) Signers

func (_Bridge *BridgeSession) Signers(arg0 *big.Int) (common.Address, error)

Signers is a free data retrieval call binding the contract method 0x2079fb9a.

Solidity: function signers(uint256 ) view returns(address)

func (*BridgeSession) UpdateSigners

func (_Bridge *BridgeSession) UpdateSigners(_signers []common.Address, _minThreshold uint8, signatures [][]byte, indexes []uint8) (*types.Transaction, error)

UpdateSigners is a paid mutator transaction binding the contract method 0xbd7c5733.

Solidity: function updateSigners(address[] _signers, uint8 _minThreshold, bytes[] signatures, uint8[] indexes) returns()

func (*BridgeSession) Version

func (_Bridge *BridgeSession) Version() (*big.Int, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint256)

func (*BridgeSession) WithdrawERC20

func (_Bridge *BridgeSession) WithdrawERC20(request WithdrawERC20Request, signatures [][]byte, indexes []uint8) (*types.Transaction, error)

WithdrawERC20 is a paid mutator transaction binding the contract method 0x23d64d1c.

Solidity: function withdrawERC20((bytes32,uint256,address,address,uint256) request, bytes[] signatures, uint8[] indexes) returns()

func (*BridgeSession) WithdrawETH

func (_Bridge *BridgeSession) WithdrawETH(request WithdrawETHRequest, signatures [][]byte, indexes []uint8) (*types.Transaction, error)

WithdrawETH is a paid mutator transaction binding the contract method 0x15c0f43d.

Solidity: function withdrawETH((bytes32,uint256,address,uint256) request, bytes[] signatures, uint8[] indexes) returns()

type BridgeSetPaused

type BridgeSetPaused struct {
	Value uint8
	Raw   types.Log // Blockchain specific contextual infos
}

BridgeSetPaused represents a SetPaused event raised by the Bridge contract.

type BridgeSetPausedIterator

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

BridgeSetPausedIterator is returned from FilterSetPaused and is used to iterate over the raw logs and unpacked data for SetPaused events raised by the Bridge contract.

func (*BridgeSetPausedIterator) Close

func (it *BridgeSetPausedIterator) Close() error

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

func (*BridgeSetPausedIterator) Error

func (it *BridgeSetPausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeSetPausedIterator) Next

func (it *BridgeSetPausedIterator) 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 BridgeTransactor

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

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

func NewBridgeTransactor

func NewBridgeTransactor(address common.Address, transactor bind.ContractTransactor) (*BridgeTransactor, error)

NewBridgeTransactor creates a new write-only instance of Bridge, bound to a specific deployed contract.

func (*BridgeTransactor) DepositERC20

func (_Bridge *BridgeTransactor) DepositERC20(opts *bind.TransactOpts, token common.Address, destination *big.Int, amount *big.Int) (*types.Transaction, error)

DepositERC20 is a paid mutator transaction binding the contract method 0x21425ee0.

Solidity: function depositERC20(address token, uint256 destination, uint256 amount) returns()

func (*BridgeTransactor) DepositETH

func (_Bridge *BridgeTransactor) DepositETH(opts *bind.TransactOpts, destination *big.Int) (*types.Transaction, error)

DepositETH is a paid mutator transaction binding the contract method 0x5358fbda.

Solidity: function depositETH(uint256 destination) payable returns()

func (*BridgeTransactor) RegisterStellarAsset

func (_Bridge *BridgeTransactor) RegisterStellarAsset(opts *bind.TransactOpts, request RegisterStellarAssetRequest, signatures [][]byte, indexes []uint8) (*types.Transaction, error)

RegisterStellarAsset is a paid mutator transaction binding the contract method 0x410d8d61.

Solidity: function registerStellarAsset((uint8,string,string) request, bytes[] signatures, uint8[] indexes) returns()

func (*BridgeTransactor) SetPaused

func (_Bridge *BridgeTransactor) SetPaused(opts *bind.TransactOpts, request SetPausedRequest, signatures [][]byte, indexes []uint8) (*types.Transaction, error)

SetPaused is a paid mutator transaction binding the contract method 0xfac7d40f.

Solidity: function setPaused((uint8,uint256,uint256) request, bytes[] signatures, uint8[] indexes) returns()

func (*BridgeTransactor) UpdateSigners

func (_Bridge *BridgeTransactor) UpdateSigners(opts *bind.TransactOpts, _signers []common.Address, _minThreshold uint8, signatures [][]byte, indexes []uint8) (*types.Transaction, error)

UpdateSigners is a paid mutator transaction binding the contract method 0xbd7c5733.

Solidity: function updateSigners(address[] _signers, uint8 _minThreshold, bytes[] signatures, uint8[] indexes) returns()

func (*BridgeTransactor) WithdrawERC20

func (_Bridge *BridgeTransactor) WithdrawERC20(opts *bind.TransactOpts, request WithdrawERC20Request, signatures [][]byte, indexes []uint8) (*types.Transaction, error)

WithdrawERC20 is a paid mutator transaction binding the contract method 0x23d64d1c.

Solidity: function withdrawERC20((bytes32,uint256,address,address,uint256) request, bytes[] signatures, uint8[] indexes) returns()

func (*BridgeTransactor) WithdrawETH

func (_Bridge *BridgeTransactor) WithdrawETH(opts *bind.TransactOpts, request WithdrawETHRequest, signatures [][]byte, indexes []uint8) (*types.Transaction, error)

WithdrawETH is a paid mutator transaction binding the contract method 0x15c0f43d.

Solidity: function withdrawETH((bytes32,uint256,address,uint256) request, bytes[] signatures, uint8[] indexes) returns()

type BridgeTransactorRaw

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

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

func (*BridgeTransactorRaw) Transact

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

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

func (*BridgeTransactorRaw) Transfer

func (_Bridge *BridgeTransactorRaw) 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 BridgeTransactorSession

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

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

func (*BridgeTransactorSession) DepositERC20

func (_Bridge *BridgeTransactorSession) DepositERC20(token common.Address, destination *big.Int, amount *big.Int) (*types.Transaction, error)

DepositERC20 is a paid mutator transaction binding the contract method 0x21425ee0.

Solidity: function depositERC20(address token, uint256 destination, uint256 amount) returns()

func (*BridgeTransactorSession) DepositETH

func (_Bridge *BridgeTransactorSession) DepositETH(destination *big.Int) (*types.Transaction, error)

DepositETH is a paid mutator transaction binding the contract method 0x5358fbda.

Solidity: function depositETH(uint256 destination) payable returns()

func (*BridgeTransactorSession) RegisterStellarAsset

func (_Bridge *BridgeTransactorSession) RegisterStellarAsset(request RegisterStellarAssetRequest, signatures [][]byte, indexes []uint8) (*types.Transaction, error)

RegisterStellarAsset is a paid mutator transaction binding the contract method 0x410d8d61.

Solidity: function registerStellarAsset((uint8,string,string) request, bytes[] signatures, uint8[] indexes) returns()

func (*BridgeTransactorSession) SetPaused

func (_Bridge *BridgeTransactorSession) SetPaused(request SetPausedRequest, signatures [][]byte, indexes []uint8) (*types.Transaction, error)

SetPaused is a paid mutator transaction binding the contract method 0xfac7d40f.

Solidity: function setPaused((uint8,uint256,uint256) request, bytes[] signatures, uint8[] indexes) returns()

func (*BridgeTransactorSession) UpdateSigners

func (_Bridge *BridgeTransactorSession) UpdateSigners(_signers []common.Address, _minThreshold uint8, signatures [][]byte, indexes []uint8) (*types.Transaction, error)

UpdateSigners is a paid mutator transaction binding the contract method 0xbd7c5733.

Solidity: function updateSigners(address[] _signers, uint8 _minThreshold, bytes[] signatures, uint8[] indexes) returns()

func (*BridgeTransactorSession) WithdrawERC20

func (_Bridge *BridgeTransactorSession) WithdrawERC20(request WithdrawERC20Request, signatures [][]byte, indexes []uint8) (*types.Transaction, error)

WithdrawERC20 is a paid mutator transaction binding the contract method 0x23d64d1c.

Solidity: function withdrawERC20((bytes32,uint256,address,address,uint256) request, bytes[] signatures, uint8[] indexes) returns()

func (*BridgeTransactorSession) WithdrawETH

func (_Bridge *BridgeTransactorSession) WithdrawETH(request WithdrawETHRequest, signatures [][]byte, indexes []uint8) (*types.Transaction, error)

WithdrawETH is a paid mutator transaction binding the contract method 0x15c0f43d.

Solidity: function withdrawETH((bytes32,uint256,address,uint256) request, bytes[] signatures, uint8[] indexes) returns()

type BridgeWithdraw

type BridgeWithdraw struct {
	Id        [32]byte
	Token     common.Address
	Recipient common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

BridgeWithdraw represents a Withdraw event raised by the Bridge contract.

type BridgeWithdrawIterator

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

BridgeWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the Bridge contract.

func (*BridgeWithdrawIterator) Close

func (it *BridgeWithdrawIterator) Close() error

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

func (*BridgeWithdrawIterator) Error

func (it *BridgeWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeWithdrawIterator) Next

func (it *BridgeWithdrawIterator) 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 RegisterStellarAssetRequest

type RegisterStellarAssetRequest struct {
	Decimals uint8
	Name     string
	Symbol   string
}

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

type SetPausedRequest

type SetPausedRequest struct {
	Value      uint8
	Nonce      *big.Int
	Expiration *big.Int
}

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

type WithdrawERC20Request

type WithdrawERC20Request struct {
	Id         [32]byte
	Expiration *big.Int
	Recipient  common.Address
	Token      common.Address
	Amount     *big.Int
}

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

type WithdrawETHRequest

type WithdrawETHRequest struct {
	Id         [32]byte
	Expiration *big.Int
	Recipient  common.Address
	Amount     *big.Int
}

WithdrawETHRequest 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