bridge

package
v0.0.0-...-a87494f Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: MIT 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\":\"_stableToken\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"avail\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requested\",\"type\":\"uint256\"}],\"name\":\"InsufficientAllowance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"avail\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requested\",\"type\":\"uint256\"}],\"name\":\"InsufficientBalance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"curr\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requested\",\"type\":\"uint256\"}],\"name\":\"MustBeSequential\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustNotBeZero\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"CompleteTransfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"depositor\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"OwnerBorrow\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"OwnerReturn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"targetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"completeTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"crossChainDepositId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentIds\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"depositId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"depositIdToBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"depositIdToDepositInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"depositId_\",\"type\":\"uint256\"}],\"name\":\"getDepositInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structBridge.DepositInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ownerBorrow\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ownerReturn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"ownerWithdrawals\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stableToken\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"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) CrossChainDepositId

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

CrossChainDepositId is a free data retrieval call binding the contract method 0xe02132ee.

Solidity: function crossChainDepositId() view returns(uint256)

func (*BridgeCaller) CurrentIds

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

CurrentIds is a free data retrieval call binding the contract method 0xe0a0f4fb.

Solidity: function currentIds() view returns(uint256, uint256)

func (*BridgeCaller) DepositId

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

DepositId is a free data retrieval call binding the contract method 0x9852099c.

Solidity: function depositId() view returns(uint256)

func (*BridgeCaller) DepositIdToBlock

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

DepositIdToBlock is a free data retrieval call binding the contract method 0xb559a53a.

Solidity: function depositIdToBlock(uint256 ) view returns(uint256)

func (*BridgeCaller) DepositIdToDepositInfo

func (_Bridge *BridgeCaller) DepositIdToDepositInfo(opts *bind.CallOpts, arg0 *big.Int) (struct {
	User   common.Address
	Amount *big.Int
}, error)

DepositIdToDepositInfo is a free data retrieval call binding the contract method 0x75f33e81.

Solidity: function depositIdToDepositInfo(uint256 ) view returns(address user, uint256 amount)

func (*BridgeCaller) GetDepositInfo

func (_Bridge *BridgeCaller) GetDepositInfo(opts *bind.CallOpts, depositId_ *big.Int) (BridgeDepositInfo, error)

GetDepositInfo is a free data retrieval call binding the contract method 0x5328c2bf.

Solidity: function getDepositInfo(uint256 depositId_) view returns((address,uint256))

func (*BridgeCaller) Owner

func (_Bridge *BridgeCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*BridgeCaller) OwnerWithdrawals

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

OwnerWithdrawals is a free data retrieval call binding the contract method 0x5c0b3d27.

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

func (*BridgeCaller) StableToken

func (_Bridge *BridgeCaller) StableToken(opts *bind.CallOpts) (common.Address, error)

StableToken is a free data retrieval call binding the contract method 0xa9d75b2b.

Solidity: function stableToken() view returns(address)

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) CrossChainDepositId

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

CrossChainDepositId is a free data retrieval call binding the contract method 0xe02132ee.

Solidity: function crossChainDepositId() view returns(uint256)

func (*BridgeCallerSession) CurrentIds

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

CurrentIds is a free data retrieval call binding the contract method 0xe0a0f4fb.

Solidity: function currentIds() view returns(uint256, uint256)

func (*BridgeCallerSession) DepositId

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

DepositId is a free data retrieval call binding the contract method 0x9852099c.

Solidity: function depositId() view returns(uint256)

func (*BridgeCallerSession) DepositIdToBlock

func (_Bridge *BridgeCallerSession) DepositIdToBlock(arg0 *big.Int) (*big.Int, error)

DepositIdToBlock is a free data retrieval call binding the contract method 0xb559a53a.

Solidity: function depositIdToBlock(uint256 ) view returns(uint256)

func (*BridgeCallerSession) DepositIdToDepositInfo

func (_Bridge *BridgeCallerSession) DepositIdToDepositInfo(arg0 *big.Int) (struct {
	User   common.Address
	Amount *big.Int
}, error)

DepositIdToDepositInfo is a free data retrieval call binding the contract method 0x75f33e81.

Solidity: function depositIdToDepositInfo(uint256 ) view returns(address user, uint256 amount)

func (*BridgeCallerSession) GetDepositInfo

func (_Bridge *BridgeCallerSession) GetDepositInfo(depositId_ *big.Int) (BridgeDepositInfo, error)

GetDepositInfo is a free data retrieval call binding the contract method 0x5328c2bf.

Solidity: function getDepositInfo(uint256 depositId_) view returns((address,uint256))

func (*BridgeCallerSession) Owner

func (_Bridge *BridgeCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*BridgeCallerSession) OwnerWithdrawals

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

OwnerWithdrawals is a free data retrieval call binding the contract method 0x5c0b3d27.

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

func (*BridgeCallerSession) StableToken

func (_Bridge *BridgeCallerSession) StableToken() (common.Address, error)

StableToken is a free data retrieval call binding the contract method 0xa9d75b2b.

Solidity: function stableToken() view returns(address)

type BridgeCompleteTransfer

type BridgeCompleteTransfer struct {
	Beneficiary common.Address
	Id          *big.Int
	Amount      *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

BridgeCompleteTransfer represents a CompleteTransfer event raised by the Bridge contract.

type BridgeCompleteTransferIterator

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

BridgeCompleteTransferIterator is returned from FilterCompleteTransfer and is used to iterate over the raw logs and unpacked data for CompleteTransfer events raised by the Bridge contract.

func (*BridgeCompleteTransferIterator) Close

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

func (*BridgeCompleteTransferIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeCompleteTransferIterator) 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 BridgeDeposit

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

BridgeDeposit represents a Deposit event raised by the Bridge contract.

type BridgeDepositInfo

type BridgeDepositInfo struct {
	User   common.Address
	Amount *big.Int
}

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

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) FilterCompleteTransfer

func (_Bridge *BridgeFilterer) FilterCompleteTransfer(opts *bind.FilterOpts, beneficiary []common.Address, id []*big.Int) (*BridgeCompleteTransferIterator, error)

FilterCompleteTransfer is a free log retrieval operation binding the contract event 0x1a3467986fee07094e44ed6fbe328521301a92e34d0552fb39067655096163f3.

Solidity: event CompleteTransfer(address indexed beneficiary, uint256 indexed id, uint256 amount)

func (*BridgeFilterer) FilterDeposit

func (_Bridge *BridgeFilterer) FilterDeposit(opts *bind.FilterOpts, depositor []common.Address, id []*big.Int) (*BridgeDepositIterator, error)

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

Solidity: event Deposit(address indexed depositor, uint256 indexed id, uint256 amount)

func (*BridgeFilterer) FilterOwnerBorrow

func (_Bridge *BridgeFilterer) FilterOwnerBorrow(opts *bind.FilterOpts, owner []common.Address) (*BridgeOwnerBorrowIterator, error)

FilterOwnerBorrow is a free log retrieval operation binding the contract event 0x4fbfd3bb0fb7fbe460e3a494f1c890f838ee0f930ab79b6bf21f07b88372df0a.

Solidity: event OwnerBorrow(address indexed owner, uint256 amount)

func (*BridgeFilterer) FilterOwnerReturn

func (_Bridge *BridgeFilterer) FilterOwnerReturn(opts *bind.FilterOpts, owner []common.Address) (*BridgeOwnerReturnIterator, error)

FilterOwnerReturn is a free log retrieval operation binding the contract event 0x607fae14c29b49308dc94bcb474142bc68ea380c8790f229472c1f2a089647c7.

Solidity: event OwnerReturn(address indexed owner, uint256 amount)

func (*BridgeFilterer) FilterOwnershipTransferred

func (_Bridge *BridgeFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BridgeOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*BridgeFilterer) ParseCompleteTransfer

func (_Bridge *BridgeFilterer) ParseCompleteTransfer(log types.Log) (*BridgeCompleteTransfer, error)

ParseCompleteTransfer is a log parse operation binding the contract event 0x1a3467986fee07094e44ed6fbe328521301a92e34d0552fb39067655096163f3.

Solidity: event CompleteTransfer(address indexed beneficiary, uint256 indexed id, uint256 amount)

func (*BridgeFilterer) ParseDeposit

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

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

Solidity: event Deposit(address indexed depositor, uint256 indexed id, uint256 amount)

func (*BridgeFilterer) ParseOwnerBorrow

func (_Bridge *BridgeFilterer) ParseOwnerBorrow(log types.Log) (*BridgeOwnerBorrow, error)

ParseOwnerBorrow is a log parse operation binding the contract event 0x4fbfd3bb0fb7fbe460e3a494f1c890f838ee0f930ab79b6bf21f07b88372df0a.

Solidity: event OwnerBorrow(address indexed owner, uint256 amount)

func (*BridgeFilterer) ParseOwnerReturn

func (_Bridge *BridgeFilterer) ParseOwnerReturn(log types.Log) (*BridgeOwnerReturn, error)

ParseOwnerReturn is a log parse operation binding the contract event 0x607fae14c29b49308dc94bcb474142bc68ea380c8790f229472c1f2a089647c7.

Solidity: event OwnerReturn(address indexed owner, uint256 amount)

func (*BridgeFilterer) ParseOwnershipTransferred

func (_Bridge *BridgeFilterer) ParseOwnershipTransferred(log types.Log) (*BridgeOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*BridgeFilterer) WatchCompleteTransfer

func (_Bridge *BridgeFilterer) WatchCompleteTransfer(opts *bind.WatchOpts, sink chan<- *BridgeCompleteTransfer, beneficiary []common.Address, id []*big.Int) (event.Subscription, error)

WatchCompleteTransfer is a free log subscription operation binding the contract event 0x1a3467986fee07094e44ed6fbe328521301a92e34d0552fb39067655096163f3.

Solidity: event CompleteTransfer(address indexed beneficiary, uint256 indexed id, uint256 amount)

func (*BridgeFilterer) WatchDeposit

func (_Bridge *BridgeFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *BridgeDeposit, depositor []common.Address, id []*big.Int) (event.Subscription, error)

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

Solidity: event Deposit(address indexed depositor, uint256 indexed id, uint256 amount)

func (*BridgeFilterer) WatchOwnerBorrow

func (_Bridge *BridgeFilterer) WatchOwnerBorrow(opts *bind.WatchOpts, sink chan<- *BridgeOwnerBorrow, owner []common.Address) (event.Subscription, error)

WatchOwnerBorrow is a free log subscription operation binding the contract event 0x4fbfd3bb0fb7fbe460e3a494f1c890f838ee0f930ab79b6bf21f07b88372df0a.

Solidity: event OwnerBorrow(address indexed owner, uint256 amount)

func (*BridgeFilterer) WatchOwnerReturn

func (_Bridge *BridgeFilterer) WatchOwnerReturn(opts *bind.WatchOpts, sink chan<- *BridgeOwnerReturn, owner []common.Address) (event.Subscription, error)

WatchOwnerReturn is a free log subscription operation binding the contract event 0x607fae14c29b49308dc94bcb474142bc68ea380c8790f229472c1f2a089647c7.

Solidity: event OwnerReturn(address indexed owner, uint256 amount)

func (*BridgeFilterer) WatchOwnershipTransferred

func (_Bridge *BridgeFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BridgeOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

type BridgeOwnerBorrow

type BridgeOwnerBorrow struct {
	Owner  common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

BridgeOwnerBorrow represents a OwnerBorrow event raised by the Bridge contract.

type BridgeOwnerBorrowIterator

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

BridgeOwnerBorrowIterator is returned from FilterOwnerBorrow and is used to iterate over the raw logs and unpacked data for OwnerBorrow events raised by the Bridge contract.

func (*BridgeOwnerBorrowIterator) Close

func (it *BridgeOwnerBorrowIterator) Close() error

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

func (*BridgeOwnerBorrowIterator) Error

func (it *BridgeOwnerBorrowIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeOwnerBorrowIterator) Next

func (it *BridgeOwnerBorrowIterator) 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 BridgeOwnerReturn

type BridgeOwnerReturn struct {
	Owner  common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

BridgeOwnerReturn represents a OwnerReturn event raised by the Bridge contract.

type BridgeOwnerReturnIterator

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

BridgeOwnerReturnIterator is returned from FilterOwnerReturn and is used to iterate over the raw logs and unpacked data for OwnerReturn events raised by the Bridge contract.

func (*BridgeOwnerReturnIterator) Close

func (it *BridgeOwnerReturnIterator) Close() error

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

func (*BridgeOwnerReturnIterator) Error

func (it *BridgeOwnerReturnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeOwnerReturnIterator) Next

func (it *BridgeOwnerReturnIterator) 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 BridgeOwnershipTransferred

type BridgeOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

BridgeOwnershipTransferred represents a OwnershipTransferred event raised by the Bridge contract.

type BridgeOwnershipTransferredIterator

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

BridgeOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Bridge contract.

func (*BridgeOwnershipTransferredIterator) Close

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

func (*BridgeOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeOwnershipTransferredIterator) 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 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 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) CompleteTransfer

func (_Bridge *BridgeSession) CompleteTransfer(beneficiary common.Address, targetId *big.Int, amount *big.Int) (*types.Transaction, error)

CompleteTransfer is a paid mutator transaction binding the contract method 0x0901d6f7.

Solidity: function completeTransfer(address beneficiary, uint256 targetId, uint256 amount) returns()

func (*BridgeSession) CrossChainDepositId

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

CrossChainDepositId is a free data retrieval call binding the contract method 0xe02132ee.

Solidity: function crossChainDepositId() view returns(uint256)

func (*BridgeSession) CurrentIds

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

CurrentIds is a free data retrieval call binding the contract method 0xe0a0f4fb.

Solidity: function currentIds() view returns(uint256, uint256)

func (*BridgeSession) Deposit

func (_Bridge *BridgeSession) Deposit(amount *big.Int) (*types.Transaction, error)

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

Solidity: function deposit(uint256 amount) returns()

func (*BridgeSession) DepositId

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

DepositId is a free data retrieval call binding the contract method 0x9852099c.

Solidity: function depositId() view returns(uint256)

func (*BridgeSession) DepositIdToBlock

func (_Bridge *BridgeSession) DepositIdToBlock(arg0 *big.Int) (*big.Int, error)

DepositIdToBlock is a free data retrieval call binding the contract method 0xb559a53a.

Solidity: function depositIdToBlock(uint256 ) view returns(uint256)

func (*BridgeSession) DepositIdToDepositInfo

func (_Bridge *BridgeSession) DepositIdToDepositInfo(arg0 *big.Int) (struct {
	User   common.Address
	Amount *big.Int
}, error)

DepositIdToDepositInfo is a free data retrieval call binding the contract method 0x75f33e81.

Solidity: function depositIdToDepositInfo(uint256 ) view returns(address user, uint256 amount)

func (*BridgeSession) GetDepositInfo

func (_Bridge *BridgeSession) GetDepositInfo(depositId_ *big.Int) (BridgeDepositInfo, error)

GetDepositInfo is a free data retrieval call binding the contract method 0x5328c2bf.

Solidity: function getDepositInfo(uint256 depositId_) view returns((address,uint256))

func (*BridgeSession) Owner

func (_Bridge *BridgeSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*BridgeSession) OwnerBorrow

func (_Bridge *BridgeSession) OwnerBorrow(amount *big.Int) (*types.Transaction, error)

OwnerBorrow is a paid mutator transaction binding the contract method 0x08d9af12.

Solidity: function ownerBorrow(uint256 amount) returns()

func (*BridgeSession) OwnerReturn

func (_Bridge *BridgeSession) OwnerReturn(amount *big.Int) (*types.Transaction, error)

OwnerReturn is a paid mutator transaction binding the contract method 0xba6059d9.

Solidity: function ownerReturn(uint256 amount) returns()

func (*BridgeSession) OwnerWithdrawals

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

OwnerWithdrawals is a free data retrieval call binding the contract method 0x5c0b3d27.

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

func (*BridgeSession) RenounceOwnership

func (_Bridge *BridgeSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*BridgeSession) StableToken

func (_Bridge *BridgeSession) StableToken() (common.Address, error)

StableToken is a free data retrieval call binding the contract method 0xa9d75b2b.

Solidity: function stableToken() view returns(address)

func (*BridgeSession) TransferOwnership

func (_Bridge *BridgeSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

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) CompleteTransfer

func (_Bridge *BridgeTransactor) CompleteTransfer(opts *bind.TransactOpts, beneficiary common.Address, targetId *big.Int, amount *big.Int) (*types.Transaction, error)

CompleteTransfer is a paid mutator transaction binding the contract method 0x0901d6f7.

Solidity: function completeTransfer(address beneficiary, uint256 targetId, uint256 amount) returns()

func (*BridgeTransactor) Deposit

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

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

Solidity: function deposit(uint256 amount) returns()

func (*BridgeTransactor) OwnerBorrow

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

OwnerBorrow is a paid mutator transaction binding the contract method 0x08d9af12.

Solidity: function ownerBorrow(uint256 amount) returns()

func (*BridgeTransactor) OwnerReturn

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

OwnerReturn is a paid mutator transaction binding the contract method 0xba6059d9.

Solidity: function ownerReturn(uint256 amount) returns()

func (*BridgeTransactor) RenounceOwnership

func (_Bridge *BridgeTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*BridgeTransactor) TransferOwnership

func (_Bridge *BridgeTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) 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) CompleteTransfer

func (_Bridge *BridgeTransactorSession) CompleteTransfer(beneficiary common.Address, targetId *big.Int, amount *big.Int) (*types.Transaction, error)

CompleteTransfer is a paid mutator transaction binding the contract method 0x0901d6f7.

Solidity: function completeTransfer(address beneficiary, uint256 targetId, uint256 amount) returns()

func (*BridgeTransactorSession) Deposit

func (_Bridge *BridgeTransactorSession) Deposit(amount *big.Int) (*types.Transaction, error)

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

Solidity: function deposit(uint256 amount) returns()

func (*BridgeTransactorSession) OwnerBorrow

func (_Bridge *BridgeTransactorSession) OwnerBorrow(amount *big.Int) (*types.Transaction, error)

OwnerBorrow is a paid mutator transaction binding the contract method 0x08d9af12.

Solidity: function ownerBorrow(uint256 amount) returns()

func (*BridgeTransactorSession) OwnerReturn

func (_Bridge *BridgeTransactorSession) OwnerReturn(amount *big.Int) (*types.Transaction, error)

OwnerReturn is a paid mutator transaction binding the contract method 0xba6059d9.

Solidity: function ownerReturn(uint256 amount) returns()

func (*BridgeTransactorSession) RenounceOwnership

func (_Bridge *BridgeTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*BridgeTransactorSession) TransferOwnership

func (_Bridge *BridgeTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

Jump to

Keyboard shortcuts

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