bridge

package
v0.0.0-...-0ed12b1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Pledge4ThorABI = "" /* 8483-byte string literal not displayed */

Pledge4ThorABI is the input ABI used to generate the binding from.

Variables

View Source
var OdinAssetsUnsatisfiedErr = errors.New("Odin assets not satifisfied")

Functions

This section is empty.

Types

type OdinBridge

type OdinBridge struct {
	ContractAddress common.Address
	RpcUrl          string
}

func (*OdinBridge) VerifyOdinProof

func (ob *OdinBridge) VerifyOdinProof(header *types.Header, publicKey []byte) error

type Pledge4Thor

type Pledge4Thor struct {
	Pledge4ThorCaller     // Read-only binding to the contract
	Pledge4ThorTransactor // Write-only binding to the contract
	Pledge4ThorFilterer   // Log filterer for contract events
}

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

func NewPledge4Thor

func NewPledge4Thor(address common.Address, backend bind.ContractBackend) (*Pledge4Thor, error)

NewPledge4Thor creates a new instance of Pledge4Thor, bound to a specific deployed contract.

type Pledge4ThorBindRig

type Pledge4ThorBindRig struct {
	Rig   [32]byte
	Owner common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

Pledge4ThorBindRig represents a BindRig event raised by the Pledge4Thor contract.

type Pledge4ThorBindRigIterator

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

Pledge4ThorBindRigIterator is returned from FilterBindRig and is used to iterate over the raw logs and unpacked data for BindRig events raised by the Pledge4Thor contract.

func (*Pledge4ThorBindRigIterator) Close

func (it *Pledge4ThorBindRigIterator) Close() error

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

func (*Pledge4ThorBindRigIterator) Error

func (it *Pledge4ThorBindRigIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Pledge4ThorBindRigIterator) Next

func (it *Pledge4ThorBindRigIterator) 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 Pledge4ThorCaller

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

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

func NewPledge4ThorCaller

func NewPledge4ThorCaller(address common.Address, caller bind.ContractCaller) (*Pledge4ThorCaller, error)

NewPledge4ThorCaller creates a new read-only instance of Pledge4Thor, bound to a specific deployed contract.

func (*Pledge4ThorCaller) Blackhole

func (_Pledge4Thor *Pledge4ThorCaller) Blackhole(opts *bind.CallOpts) (common.Address, error)

Blackhole is a free data retrieval call binding the contract method 0xf34447f7.

Solidity: function blackhole() view returns(address)

func (*Pledge4ThorCaller) BlockRigHistory

func (_Pledge4Thor *Pledge4ThorCaller) BlockRigHistory(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)

BlockRigHistory is a free data retrieval call binding the contract method 0x3ee8ce21.

Solidity: function blockRigHistory(uint256 ) view returns(bytes32)

func (*Pledge4ThorCaller) Decimals

func (_Pledge4Thor *Pledge4ThorCaller) Decimals(opts *bind.CallOpts) (*big.Int, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint256)

func (*Pledge4ThorCaller) Fuel

func (_Pledge4Thor *Pledge4ThorCaller) Fuel(opts *bind.CallOpts) (*big.Int, error)

Fuel is a free data retrieval call binding the contract method 0xdd07ee50.

Solidity: function _fuel() view returns(uint256)

func (*Pledge4ThorCaller) GetUserRig

func (_Pledge4Thor *Pledge4ThorCaller) GetUserRig(opts *bind.CallOpts, user common.Address, index *big.Int) ([32]byte, error)

GetUserRig is a free data retrieval call binding the contract method 0x23d1ae70.

Solidity: function getUserRig(address user, uint256 index) view returns(bytes32 a)

func (*Pledge4ThorCaller) HalfSpan

func (_Pledge4Thor *Pledge4ThorCaller) HalfSpan(opts *bind.CallOpts) (*big.Int, error)

HalfSpan is a free data retrieval call binding the contract method 0x0a75565a.

Solidity: function halfSpan() view returns(uint256)

func (*Pledge4ThorCaller) Hour

func (_Pledge4Thor *Pledge4ThorCaller) Hour(opts *bind.CallOpts) (*big.Int, error)

Hour is a free data retrieval call binding the contract method 0x23e5f1c5.

Solidity: function hour() view returns(uint256)

func (*Pledge4ThorCaller) InitialBindPower

func (_Pledge4Thor *Pledge4ThorCaller) InitialBindPower(opts *bind.CallOpts) (*big.Int, error)

InitialBindPower is a free data retrieval call binding the contract method 0xcf2333a7.

Solidity: function initialBindPower() view returns(uint256)

func (*Pledge4ThorCaller) IsBridge

func (_Pledge4Thor *Pledge4ThorCaller) IsBridge(opts *bind.CallOpts) (bool, error)

IsBridge is a free data retrieval call binding the contract method 0x4f046c8f.

Solidity: function isBridge() view returns(bool)

func (*Pledge4ThorCaller) IsOwner

func (_Pledge4Thor *Pledge4ThorCaller) IsOwner(opts *bind.CallOpts) (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() view returns(bool)

func (*Pledge4ThorCaller) IsRigEligible

func (_Pledge4Thor *Pledge4ThorCaller) IsRigEligible(opts *bind.CallOpts, rig [32]byte, height *big.Int) (bool, error)

IsRigEligible is a free data retrieval call binding the contract method 0x9bb988fa.

Solidity: function isRigEligible(bytes32 rig, uint256 height) view returns(bool)

func (*Pledge4ThorCaller) NextFuel

func (_Pledge4Thor *Pledge4ThorCaller) NextFuel(opts *bind.CallOpts) (*big.Int, error)

NextFuel is a free data retrieval call binding the contract method 0x6e06518a.

Solidity: function _nextFuel() view returns(uint256)

func (*Pledge4ThorCaller) NextFuelHeight

func (_Pledge4Thor *Pledge4ThorCaller) NextFuelHeight(opts *bind.CallOpts) (*big.Int, error)

NextFuelHeight is a free data retrieval call binding the contract method 0x1d0d0a1c.

Solidity: function _nextFuelHeight() view returns(uint256)

func (*Pledge4ThorCaller) OdinContractAddress

func (_Pledge4Thor *Pledge4ThorCaller) OdinContractAddress(opts *bind.CallOpts) (common.Address, error)

OdinContractAddress is a free data retrieval call binding the contract method 0x91dad278.

Solidity: function odinContractAddress() view returns(address)

func (*Pledge4ThorCaller) Owner

func (_Pledge4Thor *Pledge4ThorCaller) 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 (*Pledge4ThorCaller) Paused

func (_Pledge4Thor *Pledge4ThorCaller) Paused(opts *bind.CallOpts) (bool, error)

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

Solidity: function paused() view returns(bool)

func (*Pledge4ThorCaller) RigOwners

func (_Pledge4Thor *Pledge4ThorCaller) RigOwners(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)

RigOwners is a free data retrieval call binding the contract method 0xf9cf1940.

Solidity: function rigOwners(bytes32 ) view returns(address)

func (*Pledge4ThorCaller) TotalDeposit

func (_Pledge4Thor *Pledge4ThorCaller) TotalDeposit(opts *bind.CallOpts) (*big.Int, error)

TotalDeposit is a free data retrieval call binding the contract method 0xf6153ccd.

Solidity: function totalDeposit() view returns(uint256)

func (*Pledge4ThorCaller) UserDeposits

func (_Pledge4Thor *Pledge4ThorCaller) UserDeposits(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

UserDeposits is a free data retrieval call binding the contract method 0x0ba36dcd.

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

func (*Pledge4ThorCaller) UserLastDeductTime

func (_Pledge4Thor *Pledge4ThorCaller) UserLastDeductTime(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

UserLastDeductTime is a free data retrieval call binding the contract method 0x7ba028a8.

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

type Pledge4ThorCallerRaw

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

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

func (*Pledge4ThorCallerRaw) Call

func (_Pledge4Thor *Pledge4ThorCallerRaw) 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 Pledge4ThorCallerSession

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

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

func (*Pledge4ThorCallerSession) Blackhole

func (_Pledge4Thor *Pledge4ThorCallerSession) Blackhole() (common.Address, error)

Blackhole is a free data retrieval call binding the contract method 0xf34447f7.

Solidity: function blackhole() view returns(address)

func (*Pledge4ThorCallerSession) BlockRigHistory

func (_Pledge4Thor *Pledge4ThorCallerSession) BlockRigHistory(arg0 *big.Int) ([32]byte, error)

BlockRigHistory is a free data retrieval call binding the contract method 0x3ee8ce21.

Solidity: function blockRigHistory(uint256 ) view returns(bytes32)

func (*Pledge4ThorCallerSession) Decimals

func (_Pledge4Thor *Pledge4ThorCallerSession) Decimals() (*big.Int, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint256)

func (*Pledge4ThorCallerSession) Fuel

func (_Pledge4Thor *Pledge4ThorCallerSession) Fuel() (*big.Int, error)

Fuel is a free data retrieval call binding the contract method 0xdd07ee50.

Solidity: function _fuel() view returns(uint256)

func (*Pledge4ThorCallerSession) GetUserRig

func (_Pledge4Thor *Pledge4ThorCallerSession) GetUserRig(user common.Address, index *big.Int) ([32]byte, error)

GetUserRig is a free data retrieval call binding the contract method 0x23d1ae70.

Solidity: function getUserRig(address user, uint256 index) view returns(bytes32 a)

func (*Pledge4ThorCallerSession) HalfSpan

func (_Pledge4Thor *Pledge4ThorCallerSession) HalfSpan() (*big.Int, error)

HalfSpan is a free data retrieval call binding the contract method 0x0a75565a.

Solidity: function halfSpan() view returns(uint256)

func (*Pledge4ThorCallerSession) Hour

func (_Pledge4Thor *Pledge4ThorCallerSession) Hour() (*big.Int, error)

Hour is a free data retrieval call binding the contract method 0x23e5f1c5.

Solidity: function hour() view returns(uint256)

func (*Pledge4ThorCallerSession) InitialBindPower

func (_Pledge4Thor *Pledge4ThorCallerSession) InitialBindPower() (*big.Int, error)

InitialBindPower is a free data retrieval call binding the contract method 0xcf2333a7.

Solidity: function initialBindPower() view returns(uint256)

func (*Pledge4ThorCallerSession) IsBridge

func (_Pledge4Thor *Pledge4ThorCallerSession) IsBridge() (bool, error)

IsBridge is a free data retrieval call binding the contract method 0x4f046c8f.

Solidity: function isBridge() view returns(bool)

func (*Pledge4ThorCallerSession) IsOwner

func (_Pledge4Thor *Pledge4ThorCallerSession) IsOwner() (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() view returns(bool)

func (*Pledge4ThorCallerSession) IsRigEligible

func (_Pledge4Thor *Pledge4ThorCallerSession) IsRigEligible(rig [32]byte, height *big.Int) (bool, error)

IsRigEligible is a free data retrieval call binding the contract method 0x9bb988fa.

Solidity: function isRigEligible(bytes32 rig, uint256 height) view returns(bool)

func (*Pledge4ThorCallerSession) NextFuel

func (_Pledge4Thor *Pledge4ThorCallerSession) NextFuel() (*big.Int, error)

NextFuel is a free data retrieval call binding the contract method 0x6e06518a.

Solidity: function _nextFuel() view returns(uint256)

func (*Pledge4ThorCallerSession) NextFuelHeight

func (_Pledge4Thor *Pledge4ThorCallerSession) NextFuelHeight() (*big.Int, error)

NextFuelHeight is a free data retrieval call binding the contract method 0x1d0d0a1c.

Solidity: function _nextFuelHeight() view returns(uint256)

func (*Pledge4ThorCallerSession) OdinContractAddress

func (_Pledge4Thor *Pledge4ThorCallerSession) OdinContractAddress() (common.Address, error)

OdinContractAddress is a free data retrieval call binding the contract method 0x91dad278.

Solidity: function odinContractAddress() view returns(address)

func (*Pledge4ThorCallerSession) Owner

func (_Pledge4Thor *Pledge4ThorCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*Pledge4ThorCallerSession) Paused

func (_Pledge4Thor *Pledge4ThorCallerSession) Paused() (bool, error)

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

Solidity: function paused() view returns(bool)

func (*Pledge4ThorCallerSession) RigOwners

func (_Pledge4Thor *Pledge4ThorCallerSession) RigOwners(arg0 [32]byte) (common.Address, error)

RigOwners is a free data retrieval call binding the contract method 0xf9cf1940.

Solidity: function rigOwners(bytes32 ) view returns(address)

func (*Pledge4ThorCallerSession) TotalDeposit

func (_Pledge4Thor *Pledge4ThorCallerSession) TotalDeposit() (*big.Int, error)

TotalDeposit is a free data retrieval call binding the contract method 0xf6153ccd.

Solidity: function totalDeposit() view returns(uint256)

func (*Pledge4ThorCallerSession) UserDeposits

func (_Pledge4Thor *Pledge4ThorCallerSession) UserDeposits(arg0 common.Address) (*big.Int, error)

UserDeposits is a free data retrieval call binding the contract method 0x0ba36dcd.

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

func (*Pledge4ThorCallerSession) UserLastDeductTime

func (_Pledge4Thor *Pledge4ThorCallerSession) UserLastDeductTime(arg0 common.Address) (*big.Int, error)

UserLastDeductTime is a free data retrieval call binding the contract method 0x7ba028a8.

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

type Pledge4ThorDeductDeposit

type Pledge4ThorDeductDeposit struct {
	Rig    [32]byte
	Height *big.Int
	Owner  common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

Pledge4ThorDeductDeposit represents a DeductDeposit event raised by the Pledge4Thor contract.

type Pledge4ThorDeductDepositIterator

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

Pledge4ThorDeductDepositIterator is returned from FilterDeductDeposit and is used to iterate over the raw logs and unpacked data for DeductDeposit events raised by the Pledge4Thor contract.

func (*Pledge4ThorDeductDepositIterator) Close

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

func (*Pledge4ThorDeductDepositIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Pledge4ThorDeductDepositIterator) 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 Pledge4ThorDeposit

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

Pledge4ThorDeposit represents a Deposit event raised by the Pledge4Thor contract.

type Pledge4ThorDepositIterator

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

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

func (*Pledge4ThorDepositIterator) Close

func (it *Pledge4ThorDepositIterator) Close() error

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

func (*Pledge4ThorDepositIterator) Error

func (it *Pledge4ThorDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Pledge4ThorDepositIterator) Next

func (it *Pledge4ThorDepositIterator) 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 Pledge4ThorFilterer

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

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

func NewPledge4ThorFilterer

func NewPledge4ThorFilterer(address common.Address, filterer bind.ContractFilterer) (*Pledge4ThorFilterer, error)

NewPledge4ThorFilterer creates a new log filterer instance of Pledge4Thor, bound to a specific deployed contract.

func (*Pledge4ThorFilterer) FilterBindRig

func (_Pledge4Thor *Pledge4ThorFilterer) FilterBindRig(opts *bind.FilterOpts, owner []common.Address) (*Pledge4ThorBindRigIterator, error)

FilterBindRig is a free log retrieval operation binding the contract event 0x50f0ee7af49e6ace8107b6f934a6a53ca37b9a1625d53bed9ab5c9c76faeb5e0.

Solidity: event BindRig(bytes32 rig, address indexed owner)

func (*Pledge4ThorFilterer) FilterDeductDeposit

func (_Pledge4Thor *Pledge4ThorFilterer) FilterDeductDeposit(opts *bind.FilterOpts, owner []common.Address) (*Pledge4ThorDeductDepositIterator, error)

FilterDeductDeposit is a free log retrieval operation binding the contract event 0x741d859d6fdf97ec7399b68da994d7aa873c4f189cf3a5ef58310885f235fa4f.

Solidity: event DeductDeposit(bytes32 rig, uint256 height, address indexed owner)

func (*Pledge4ThorFilterer) FilterDeposit

func (_Pledge4Thor *Pledge4ThorFilterer) FilterDeposit(opts *bind.FilterOpts, from []common.Address) (*Pledge4ThorDepositIterator, error)

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

Solidity: event Deposit(address indexed from, uint256 amount)

func (*Pledge4ThorFilterer) FilterInternalTransfer

func (_Pledge4Thor *Pledge4ThorFilterer) FilterInternalTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*Pledge4ThorInternalTransferIterator, error)

FilterInternalTransfer is a free log retrieval operation binding the contract event 0xe2080c8fc8d86c864d8dc081fadaebf2be7191086615e786f954420f13ed122a.

Solidity: event InternalTransfer(address indexed from, address indexed to, uint256 amount)

func (*Pledge4ThorFilterer) FilterOwnershipTransferred

func (_Pledge4Thor *Pledge4ThorFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*Pledge4ThorOwnershipTransferredIterator, error)

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

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

func (*Pledge4ThorFilterer) FilterPaused

func (_Pledge4Thor *Pledge4ThorFilterer) FilterPaused(opts *bind.FilterOpts) (*Pledge4ThorPausedIterator, error)

FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*Pledge4ThorFilterer) FilterUnBindRig

func (_Pledge4Thor *Pledge4ThorFilterer) FilterUnBindRig(opts *bind.FilterOpts, owner []common.Address) (*Pledge4ThorUnBindRigIterator, error)

FilterUnBindRig is a free log retrieval operation binding the contract event 0x7310aed68a6f42bbcee631bcb319c0eead9b2f286ee39d57183a7460a0193f10.

Solidity: event UnBindRig(bytes32 rig, address indexed owner)

func (*Pledge4ThorFilterer) FilterUnpaused

func (_Pledge4Thor *Pledge4ThorFilterer) FilterUnpaused(opts *bind.FilterOpts) (*Pledge4ThorUnpausedIterator, error)

FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*Pledge4ThorFilterer) FilterWithdraw

func (_Pledge4Thor *Pledge4ThorFilterer) FilterWithdraw(opts *bind.FilterOpts, to []common.Address) (*Pledge4ThorWithdrawIterator, error)

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

Solidity: event Withdraw(address indexed to, uint256 amount)

func (*Pledge4ThorFilterer) ParseBindRig

func (_Pledge4Thor *Pledge4ThorFilterer) ParseBindRig(log types.Log) (*Pledge4ThorBindRig, error)

ParseBindRig is a log parse operation binding the contract event 0x50f0ee7af49e6ace8107b6f934a6a53ca37b9a1625d53bed9ab5c9c76faeb5e0.

Solidity: event BindRig(bytes32 rig, address indexed owner)

func (*Pledge4ThorFilterer) ParseDeductDeposit

func (_Pledge4Thor *Pledge4ThorFilterer) ParseDeductDeposit(log types.Log) (*Pledge4ThorDeductDeposit, error)

ParseDeductDeposit is a log parse operation binding the contract event 0x741d859d6fdf97ec7399b68da994d7aa873c4f189cf3a5ef58310885f235fa4f.

Solidity: event DeductDeposit(bytes32 rig, uint256 height, address indexed owner)

func (*Pledge4ThorFilterer) ParseDeposit

func (_Pledge4Thor *Pledge4ThorFilterer) ParseDeposit(log types.Log) (*Pledge4ThorDeposit, error)

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

Solidity: event Deposit(address indexed from, uint256 amount)

func (*Pledge4ThorFilterer) ParseInternalTransfer

func (_Pledge4Thor *Pledge4ThorFilterer) ParseInternalTransfer(log types.Log) (*Pledge4ThorInternalTransfer, error)

ParseInternalTransfer is a log parse operation binding the contract event 0xe2080c8fc8d86c864d8dc081fadaebf2be7191086615e786f954420f13ed122a.

Solidity: event InternalTransfer(address indexed from, address indexed to, uint256 amount)

func (*Pledge4ThorFilterer) ParseOwnershipTransferred

func (_Pledge4Thor *Pledge4ThorFilterer) ParseOwnershipTransferred(log types.Log) (*Pledge4ThorOwnershipTransferred, error)

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

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

func (*Pledge4ThorFilterer) ParsePaused

func (_Pledge4Thor *Pledge4ThorFilterer) ParsePaused(log types.Log) (*Pledge4ThorPaused, error)

ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*Pledge4ThorFilterer) ParseUnBindRig

func (_Pledge4Thor *Pledge4ThorFilterer) ParseUnBindRig(log types.Log) (*Pledge4ThorUnBindRig, error)

ParseUnBindRig is a log parse operation binding the contract event 0x7310aed68a6f42bbcee631bcb319c0eead9b2f286ee39d57183a7460a0193f10.

Solidity: event UnBindRig(bytes32 rig, address indexed owner)

func (*Pledge4ThorFilterer) ParseUnpaused

func (_Pledge4Thor *Pledge4ThorFilterer) ParseUnpaused(log types.Log) (*Pledge4ThorUnpaused, error)

ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*Pledge4ThorFilterer) ParseWithdraw

func (_Pledge4Thor *Pledge4ThorFilterer) ParseWithdraw(log types.Log) (*Pledge4ThorWithdraw, error)

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

Solidity: event Withdraw(address indexed to, uint256 amount)

func (*Pledge4ThorFilterer) WatchBindRig

func (_Pledge4Thor *Pledge4ThorFilterer) WatchBindRig(opts *bind.WatchOpts, sink chan<- *Pledge4ThorBindRig, owner []common.Address) (event.Subscription, error)

WatchBindRig is a free log subscription operation binding the contract event 0x50f0ee7af49e6ace8107b6f934a6a53ca37b9a1625d53bed9ab5c9c76faeb5e0.

Solidity: event BindRig(bytes32 rig, address indexed owner)

func (*Pledge4ThorFilterer) WatchDeductDeposit

func (_Pledge4Thor *Pledge4ThorFilterer) WatchDeductDeposit(opts *bind.WatchOpts, sink chan<- *Pledge4ThorDeductDeposit, owner []common.Address) (event.Subscription, error)

WatchDeductDeposit is a free log subscription operation binding the contract event 0x741d859d6fdf97ec7399b68da994d7aa873c4f189cf3a5ef58310885f235fa4f.

Solidity: event DeductDeposit(bytes32 rig, uint256 height, address indexed owner)

func (*Pledge4ThorFilterer) WatchDeposit

func (_Pledge4Thor *Pledge4ThorFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *Pledge4ThorDeposit, from []common.Address) (event.Subscription, error)

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

Solidity: event Deposit(address indexed from, uint256 amount)

func (*Pledge4ThorFilterer) WatchInternalTransfer

func (_Pledge4Thor *Pledge4ThorFilterer) WatchInternalTransfer(opts *bind.WatchOpts, sink chan<- *Pledge4ThorInternalTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchInternalTransfer is a free log subscription operation binding the contract event 0xe2080c8fc8d86c864d8dc081fadaebf2be7191086615e786f954420f13ed122a.

Solidity: event InternalTransfer(address indexed from, address indexed to, uint256 amount)

func (*Pledge4ThorFilterer) WatchOwnershipTransferred

func (_Pledge4Thor *Pledge4ThorFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *Pledge4ThorOwnershipTransferred, 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)

func (*Pledge4ThorFilterer) WatchPaused

func (_Pledge4Thor *Pledge4ThorFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *Pledge4ThorPaused) (event.Subscription, error)

WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*Pledge4ThorFilterer) WatchUnBindRig

func (_Pledge4Thor *Pledge4ThorFilterer) WatchUnBindRig(opts *bind.WatchOpts, sink chan<- *Pledge4ThorUnBindRig, owner []common.Address) (event.Subscription, error)

WatchUnBindRig is a free log subscription operation binding the contract event 0x7310aed68a6f42bbcee631bcb319c0eead9b2f286ee39d57183a7460a0193f10.

Solidity: event UnBindRig(bytes32 rig, address indexed owner)

func (*Pledge4ThorFilterer) WatchUnpaused

func (_Pledge4Thor *Pledge4ThorFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *Pledge4ThorUnpaused) (event.Subscription, error)

WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*Pledge4ThorFilterer) WatchWithdraw

func (_Pledge4Thor *Pledge4ThorFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *Pledge4ThorWithdraw, to []common.Address) (event.Subscription, error)

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

Solidity: event Withdraw(address indexed to, uint256 amount)

type Pledge4ThorInternalTransfer

type Pledge4ThorInternalTransfer struct {
	From   common.Address
	To     common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

Pledge4ThorInternalTransfer represents a InternalTransfer event raised by the Pledge4Thor contract.

type Pledge4ThorInternalTransferIterator

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

Pledge4ThorInternalTransferIterator is returned from FilterInternalTransfer and is used to iterate over the raw logs and unpacked data for InternalTransfer events raised by the Pledge4Thor contract.

func (*Pledge4ThorInternalTransferIterator) Close

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

func (*Pledge4ThorInternalTransferIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Pledge4ThorInternalTransferIterator) 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 Pledge4ThorOwnershipTransferred

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

Pledge4ThorOwnershipTransferred represents a OwnershipTransferred event raised by the Pledge4Thor contract.

type Pledge4ThorOwnershipTransferredIterator

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

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

func (*Pledge4ThorOwnershipTransferredIterator) Close

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

func (*Pledge4ThorOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Pledge4ThorOwnershipTransferredIterator) 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 Pledge4ThorPaused

type Pledge4ThorPaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

Pledge4ThorPaused represents a Paused event raised by the Pledge4Thor contract.

type Pledge4ThorPausedIterator

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

Pledge4ThorPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the Pledge4Thor contract.

func (*Pledge4ThorPausedIterator) Close

func (it *Pledge4ThorPausedIterator) Close() error

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

func (*Pledge4ThorPausedIterator) Error

func (it *Pledge4ThorPausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Pledge4ThorPausedIterator) Next

func (it *Pledge4ThorPausedIterator) 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 Pledge4ThorRaw

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

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

func (*Pledge4ThorRaw) Call

func (_Pledge4Thor *Pledge4ThorRaw) 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 (*Pledge4ThorRaw) Transact

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

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

func (*Pledge4ThorRaw) Transfer

func (_Pledge4Thor *Pledge4ThorRaw) 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 Pledge4ThorSession

type Pledge4ThorSession struct {
	Contract     *Pledge4Thor      // 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
}

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

func (*Pledge4ThorSession) BindRig

func (_Pledge4Thor *Pledge4ThorSession) BindRig(rig [32]byte, height *big.Int) (*types.Transaction, error)

BindRig is a paid mutator transaction binding the contract method 0x21e9f172.

Solidity: function bindRig(bytes32 rig, uint256 height) returns()

func (*Pledge4ThorSession) Blackhole

func (_Pledge4Thor *Pledge4ThorSession) Blackhole() (common.Address, error)

Blackhole is a free data retrieval call binding the contract method 0xf34447f7.

Solidity: function blackhole() view returns(address)

func (*Pledge4ThorSession) BlockRigHistory

func (_Pledge4Thor *Pledge4ThorSession) BlockRigHistory(arg0 *big.Int) ([32]byte, error)

BlockRigHistory is a free data retrieval call binding the contract method 0x3ee8ce21.

Solidity: function blockRigHistory(uint256 ) view returns(bytes32)

func (*Pledge4ThorSession) Decimals

func (_Pledge4Thor *Pledge4ThorSession) Decimals() (*big.Int, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint256)

func (*Pledge4ThorSession) DeductDeposit

func (_Pledge4Thor *Pledge4ThorSession) DeductDeposit(rig [32]byte, height *big.Int) (*types.Transaction, error)

DeductDeposit is a paid mutator transaction binding the contract method 0x02d901d4.

Solidity: function deductDeposit(bytes32 rig, uint256 height) returns()

func (*Pledge4ThorSession) Fuel

func (_Pledge4Thor *Pledge4ThorSession) Fuel() (*big.Int, error)

Fuel is a free data retrieval call binding the contract method 0xdd07ee50.

Solidity: function _fuel() view returns(uint256)

func (*Pledge4ThorSession) GetUserRig

func (_Pledge4Thor *Pledge4ThorSession) GetUserRig(user common.Address, index *big.Int) ([32]byte, error)

GetUserRig is a free data retrieval call binding the contract method 0x23d1ae70.

Solidity: function getUserRig(address user, uint256 index) view returns(bytes32 a)

func (*Pledge4ThorSession) HalfSpan

func (_Pledge4Thor *Pledge4ThorSession) HalfSpan() (*big.Int, error)

HalfSpan is a free data retrieval call binding the contract method 0x0a75565a.

Solidity: function halfSpan() view returns(uint256)

func (*Pledge4ThorSession) Hour

func (_Pledge4Thor *Pledge4ThorSession) Hour() (*big.Int, error)

Hour is a free data retrieval call binding the contract method 0x23e5f1c5.

Solidity: function hour() view returns(uint256)

func (*Pledge4ThorSession) InitialBindPower

func (_Pledge4Thor *Pledge4ThorSession) InitialBindPower() (*big.Int, error)

InitialBindPower is a free data retrieval call binding the contract method 0xcf2333a7.

Solidity: function initialBindPower() view returns(uint256)

func (*Pledge4ThorSession) IsBridge

func (_Pledge4Thor *Pledge4ThorSession) IsBridge() (bool, error)

IsBridge is a free data retrieval call binding the contract method 0x4f046c8f.

Solidity: function isBridge() view returns(bool)

func (*Pledge4ThorSession) IsOwner

func (_Pledge4Thor *Pledge4ThorSession) IsOwner() (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() view returns(bool)

func (*Pledge4ThorSession) IsRigEligible

func (_Pledge4Thor *Pledge4ThorSession) IsRigEligible(rig [32]byte, height *big.Int) (bool, error)

IsRigEligible is a free data retrieval call binding the contract method 0x9bb988fa.

Solidity: function isRigEligible(bytes32 rig, uint256 height) view returns(bool)

func (*Pledge4ThorSession) NextFuel

func (_Pledge4Thor *Pledge4ThorSession) NextFuel() (*big.Int, error)

NextFuel is a free data retrieval call binding the contract method 0x6e06518a.

Solidity: function _nextFuel() view returns(uint256)

func (*Pledge4ThorSession) NextFuelHeight

func (_Pledge4Thor *Pledge4ThorSession) NextFuelHeight() (*big.Int, error)

NextFuelHeight is a free data retrieval call binding the contract method 0x1d0d0a1c.

Solidity: function _nextFuelHeight() view returns(uint256)

func (*Pledge4ThorSession) OdinContractAddress

func (_Pledge4Thor *Pledge4ThorSession) OdinContractAddress() (common.Address, error)

OdinContractAddress is a free data retrieval call binding the contract method 0x91dad278.

Solidity: function odinContractAddress() view returns(address)

func (*Pledge4ThorSession) Owner

func (_Pledge4Thor *Pledge4ThorSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*Pledge4ThorSession) Pause

func (_Pledge4Thor *Pledge4ThorSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*Pledge4ThorSession) Paused

func (_Pledge4Thor *Pledge4ThorSession) Paused() (bool, error)

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

Solidity: function paused() view returns(bool)

func (*Pledge4ThorSession) Receive

func (_Pledge4Thor *Pledge4ThorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*Pledge4ThorSession) RenounceOwnership

func (_Pledge4Thor *Pledge4ThorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*Pledge4ThorSession) RigOwners

func (_Pledge4Thor *Pledge4ThorSession) RigOwners(arg0 [32]byte) (common.Address, error)

RigOwners is a free data retrieval call binding the contract method 0xf9cf1940.

Solidity: function rigOwners(bytes32 ) view returns(address)

func (*Pledge4ThorSession) SetBridge

func (_Pledge4Thor *Pledge4ThorSession) SetBridge(bridge common.Address) (*types.Transaction, error)

SetBridge is a paid mutator transaction binding the contract method 0x8dd14802.

Solidity: function setBridge(address bridge) returns()

func (*Pledge4ThorSession) SetFuel

func (_Pledge4Thor *Pledge4ThorSession) SetFuel(fuel *big.Int) (*types.Transaction, error)

SetFuel is a paid mutator transaction binding the contract method 0x99b96329.

Solidity: function setFuel(uint256 fuel) returns()

func (*Pledge4ThorSession) SetNextFuel

func (_Pledge4Thor *Pledge4ThorSession) SetNextFuel(nextFuel *big.Int, nextFuelHeight *big.Int) (*types.Transaction, error)

SetNextFuel is a paid mutator transaction binding the contract method 0xc4cb6971.

Solidity: function setNextFuel(uint256 nextFuel, uint256 nextFuelHeight) returns()

func (*Pledge4ThorSession) TotalDeposit

func (_Pledge4Thor *Pledge4ThorSession) TotalDeposit() (*big.Int, error)

TotalDeposit is a free data retrieval call binding the contract method 0xf6153ccd.

Solidity: function totalDeposit() view returns(uint256)

func (*Pledge4ThorSession) TransferOwnership

func (_Pledge4Thor *Pledge4ThorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*Pledge4ThorSession) UnBindRig

func (_Pledge4Thor *Pledge4ThorSession) UnBindRig(rig [32]byte) (*types.Transaction, error)

UnBindRig is a paid mutator transaction binding the contract method 0x72d45cb2.

Solidity: function unBindRig(bytes32 rig) returns()

func (*Pledge4ThorSession) Unpause

func (_Pledge4Thor *Pledge4ThorSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*Pledge4ThorSession) UserDeposits

func (_Pledge4Thor *Pledge4ThorSession) UserDeposits(arg0 common.Address) (*big.Int, error)

UserDeposits is a free data retrieval call binding the contract method 0x0ba36dcd.

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

func (*Pledge4ThorSession) UserLastDeductTime

func (_Pledge4Thor *Pledge4ThorSession) UserLastDeductTime(arg0 common.Address) (*big.Int, error)

UserLastDeductTime is a free data retrieval call binding the contract method 0x7ba028a8.

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

func (*Pledge4ThorSession) Withdraw

func (_Pledge4Thor *Pledge4ThorSession) Withdraw(payee common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address payee, uint256 amount) returns()

type Pledge4ThorTransactor

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

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

func NewPledge4ThorTransactor

func NewPledge4ThorTransactor(address common.Address, transactor bind.ContractTransactor) (*Pledge4ThorTransactor, error)

NewPledge4ThorTransactor creates a new write-only instance of Pledge4Thor, bound to a specific deployed contract.

func (*Pledge4ThorTransactor) BindRig

func (_Pledge4Thor *Pledge4ThorTransactor) BindRig(opts *bind.TransactOpts, rig [32]byte, height *big.Int) (*types.Transaction, error)

BindRig is a paid mutator transaction binding the contract method 0x21e9f172.

Solidity: function bindRig(bytes32 rig, uint256 height) returns()

func (*Pledge4ThorTransactor) DeductDeposit

func (_Pledge4Thor *Pledge4ThorTransactor) DeductDeposit(opts *bind.TransactOpts, rig [32]byte, height *big.Int) (*types.Transaction, error)

DeductDeposit is a paid mutator transaction binding the contract method 0x02d901d4.

Solidity: function deductDeposit(bytes32 rig, uint256 height) returns()

func (*Pledge4ThorTransactor) Pause

func (_Pledge4Thor *Pledge4ThorTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*Pledge4ThorTransactor) Receive

func (_Pledge4Thor *Pledge4ThorTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*Pledge4ThorTransactor) RenounceOwnership

func (_Pledge4Thor *Pledge4ThorTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*Pledge4ThorTransactor) SetBridge

func (_Pledge4Thor *Pledge4ThorTransactor) SetBridge(opts *bind.TransactOpts, bridge common.Address) (*types.Transaction, error)

SetBridge is a paid mutator transaction binding the contract method 0x8dd14802.

Solidity: function setBridge(address bridge) returns()

func (*Pledge4ThorTransactor) SetFuel

func (_Pledge4Thor *Pledge4ThorTransactor) SetFuel(opts *bind.TransactOpts, fuel *big.Int) (*types.Transaction, error)

SetFuel is a paid mutator transaction binding the contract method 0x99b96329.

Solidity: function setFuel(uint256 fuel) returns()

func (*Pledge4ThorTransactor) SetNextFuel

func (_Pledge4Thor *Pledge4ThorTransactor) SetNextFuel(opts *bind.TransactOpts, nextFuel *big.Int, nextFuelHeight *big.Int) (*types.Transaction, error)

SetNextFuel is a paid mutator transaction binding the contract method 0xc4cb6971.

Solidity: function setNextFuel(uint256 nextFuel, uint256 nextFuelHeight) returns()

func (*Pledge4ThorTransactor) TransferOwnership

func (_Pledge4Thor *Pledge4ThorTransactor) 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()

func (*Pledge4ThorTransactor) UnBindRig

func (_Pledge4Thor *Pledge4ThorTransactor) UnBindRig(opts *bind.TransactOpts, rig [32]byte) (*types.Transaction, error)

UnBindRig is a paid mutator transaction binding the contract method 0x72d45cb2.

Solidity: function unBindRig(bytes32 rig) returns()

func (*Pledge4ThorTransactor) Unpause

func (_Pledge4Thor *Pledge4ThorTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*Pledge4ThorTransactor) Withdraw

func (_Pledge4Thor *Pledge4ThorTransactor) Withdraw(opts *bind.TransactOpts, payee common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address payee, uint256 amount) returns()

type Pledge4ThorTransactorRaw

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

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

func (*Pledge4ThorTransactorRaw) Transact

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

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

func (*Pledge4ThorTransactorRaw) Transfer

func (_Pledge4Thor *Pledge4ThorTransactorRaw) 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 Pledge4ThorTransactorSession

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

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

func (*Pledge4ThorTransactorSession) BindRig

func (_Pledge4Thor *Pledge4ThorTransactorSession) BindRig(rig [32]byte, height *big.Int) (*types.Transaction, error)

BindRig is a paid mutator transaction binding the contract method 0x21e9f172.

Solidity: function bindRig(bytes32 rig, uint256 height) returns()

func (*Pledge4ThorTransactorSession) DeductDeposit

func (_Pledge4Thor *Pledge4ThorTransactorSession) DeductDeposit(rig [32]byte, height *big.Int) (*types.Transaction, error)

DeductDeposit is a paid mutator transaction binding the contract method 0x02d901d4.

Solidity: function deductDeposit(bytes32 rig, uint256 height) returns()

func (*Pledge4ThorTransactorSession) Pause

func (_Pledge4Thor *Pledge4ThorTransactorSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*Pledge4ThorTransactorSession) Receive

func (_Pledge4Thor *Pledge4ThorTransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*Pledge4ThorTransactorSession) RenounceOwnership

func (_Pledge4Thor *Pledge4ThorTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*Pledge4ThorTransactorSession) SetBridge

func (_Pledge4Thor *Pledge4ThorTransactorSession) SetBridge(bridge common.Address) (*types.Transaction, error)

SetBridge is a paid mutator transaction binding the contract method 0x8dd14802.

Solidity: function setBridge(address bridge) returns()

func (*Pledge4ThorTransactorSession) SetFuel

func (_Pledge4Thor *Pledge4ThorTransactorSession) SetFuel(fuel *big.Int) (*types.Transaction, error)

SetFuel is a paid mutator transaction binding the contract method 0x99b96329.

Solidity: function setFuel(uint256 fuel) returns()

func (*Pledge4ThorTransactorSession) SetNextFuel

func (_Pledge4Thor *Pledge4ThorTransactorSession) SetNextFuel(nextFuel *big.Int, nextFuelHeight *big.Int) (*types.Transaction, error)

SetNextFuel is a paid mutator transaction binding the contract method 0xc4cb6971.

Solidity: function setNextFuel(uint256 nextFuel, uint256 nextFuelHeight) returns()

func (*Pledge4ThorTransactorSession) TransferOwnership

func (_Pledge4Thor *Pledge4ThorTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*Pledge4ThorTransactorSession) UnBindRig

func (_Pledge4Thor *Pledge4ThorTransactorSession) UnBindRig(rig [32]byte) (*types.Transaction, error)

UnBindRig is a paid mutator transaction binding the contract method 0x72d45cb2.

Solidity: function unBindRig(bytes32 rig) returns()

func (*Pledge4ThorTransactorSession) Unpause

func (_Pledge4Thor *Pledge4ThorTransactorSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*Pledge4ThorTransactorSession) Withdraw

func (_Pledge4Thor *Pledge4ThorTransactorSession) Withdraw(payee common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address payee, uint256 amount) returns()

type Pledge4ThorUnBindRig

type Pledge4ThorUnBindRig struct {
	Rig   [32]byte
	Owner common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

Pledge4ThorUnBindRig represents a UnBindRig event raised by the Pledge4Thor contract.

type Pledge4ThorUnBindRigIterator

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

Pledge4ThorUnBindRigIterator is returned from FilterUnBindRig and is used to iterate over the raw logs and unpacked data for UnBindRig events raised by the Pledge4Thor contract.

func (*Pledge4ThorUnBindRigIterator) Close

func (it *Pledge4ThorUnBindRigIterator) Close() error

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

func (*Pledge4ThorUnBindRigIterator) Error

func (it *Pledge4ThorUnBindRigIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Pledge4ThorUnBindRigIterator) 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 Pledge4ThorUnpaused

type Pledge4ThorUnpaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

Pledge4ThorUnpaused represents a Unpaused event raised by the Pledge4Thor contract.

type Pledge4ThorUnpausedIterator

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

Pledge4ThorUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the Pledge4Thor contract.

func (*Pledge4ThorUnpausedIterator) Close

func (it *Pledge4ThorUnpausedIterator) Close() error

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

func (*Pledge4ThorUnpausedIterator) Error

func (it *Pledge4ThorUnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Pledge4ThorUnpausedIterator) Next

func (it *Pledge4ThorUnpausedIterator) 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 Pledge4ThorWithdraw

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

Pledge4ThorWithdraw represents a Withdraw event raised by the Pledge4Thor contract.

type Pledge4ThorWithdrawIterator

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

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

func (*Pledge4ThorWithdrawIterator) Close

func (it *Pledge4ThorWithdrawIterator) Close() error

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

func (*Pledge4ThorWithdrawIterator) Error

func (it *Pledge4ThorWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Pledge4ThorWithdrawIterator) Next

func (it *Pledge4ThorWithdrawIterator) 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.

Jump to

Keyboard shortcuts

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