collateral

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CollateralABI = CollateralMetaData.ABI

CollateralABI is the input ABI used to generate the binding from. Deprecated: Use CollateralMetaData.ABI instead.

View Source
var CollateralMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"fundingWallet\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receivingWallet\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"depositAmount\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"taskContract\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"cpList\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"}],\"name\":\"LockCollateral\",\"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\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"taskContract\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"cp\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"}],\"name\":\"UnlockCollateral\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"fundingWallet\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"withdrawAmount\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"addAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"balances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"depositETH\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"frozenBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isAdmin\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"taskContract\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"cpList\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"collateral\",\"type\":\"uint256\"}],\"name\":\"lockCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"}],\"name\":\"removeAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"taskBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"totalFrozenBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"unlockCollateral\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}

CollateralMetaData contains all meta data concerning the Collateral contract.

Functions

This section is empty.

Types

type Collateral

type Collateral struct {
	CollateralCaller     // Read-only binding to the contract
	CollateralTransactor // Write-only binding to the contract
	CollateralFilterer   // Log filterer for contract events
}

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

func NewCollateral

func NewCollateral(address common.Address, backend bind.ContractBackend) (*Collateral, error)

NewCollateral creates a new instance of Collateral, bound to a specific deployed contract.

type CollateralAdminChanged

type CollateralAdminChanged struct {
	PreviousAdmin common.Address
	NewAdmin      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

CollateralAdminChanged represents a AdminChanged event raised by the Collateral contract.

type CollateralAdminChangedIterator

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

CollateralAdminChangedIterator is returned from FilterAdminChanged and is used to iterate over the raw logs and unpacked data for AdminChanged events raised by the Collateral contract.

func (*CollateralAdminChangedIterator) Close

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

func (*CollateralAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CollateralAdminChangedIterator) 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 CollateralBeaconUpgraded

type CollateralBeaconUpgraded struct {
	Beacon common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

CollateralBeaconUpgraded represents a BeaconUpgraded event raised by the Collateral contract.

type CollateralBeaconUpgradedIterator

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

CollateralBeaconUpgradedIterator is returned from FilterBeaconUpgraded and is used to iterate over the raw logs and unpacked data for BeaconUpgraded events raised by the Collateral contract.

func (*CollateralBeaconUpgradedIterator) Close

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

func (*CollateralBeaconUpgradedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CollateralBeaconUpgradedIterator) 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 CollateralCaller

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

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

func NewCollateralCaller

func NewCollateralCaller(address common.Address, caller bind.ContractCaller) (*CollateralCaller, error)

NewCollateralCaller creates a new read-only instance of Collateral, bound to a specific deployed contract.

func (*CollateralCaller) Balances

func (_Collateral *CollateralCaller) Balances(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x27e235e3.

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

func (*CollateralCaller) FrozenBalance

func (_Collateral *CollateralCaller) FrozenBalance(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

FrozenBalance is a free data retrieval call binding the contract method 0x266565a9.

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

func (*CollateralCaller) IsAdmin

func (_Collateral *CollateralCaller) IsAdmin(opts *bind.CallOpts, arg0 common.Address) (bool, error)

IsAdmin is a free data retrieval call binding the contract method 0x24d7806c.

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

func (*CollateralCaller) Owner

func (_Collateral *CollateralCaller) 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 (*CollateralCaller) ProxiableUUID

func (_Collateral *CollateralCaller) ProxiableUUID(opts *bind.CallOpts) ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*CollateralCaller) TaskBalance

func (_Collateral *CollateralCaller) TaskBalance(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

TaskBalance is a free data retrieval call binding the contract method 0x637a570a.

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

func (*CollateralCaller) TotalFrozenBalance

func (_Collateral *CollateralCaller) TotalFrozenBalance(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

TotalFrozenBalance is a free data retrieval call binding the contract method 0x19cf4697.

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

func (*CollateralCaller) Version

func (_Collateral *CollateralCaller) Version(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function version() pure returns(uint256)

type CollateralCallerRaw

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

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

func (*CollateralCallerRaw) Call

func (_Collateral *CollateralCallerRaw) 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 CollateralCallerSession

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

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

func (*CollateralCallerSession) Balances

func (_Collateral *CollateralCallerSession) Balances(arg0 common.Address) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x27e235e3.

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

func (*CollateralCallerSession) FrozenBalance

func (_Collateral *CollateralCallerSession) FrozenBalance(arg0 common.Address) (*big.Int, error)

FrozenBalance is a free data retrieval call binding the contract method 0x266565a9.

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

func (*CollateralCallerSession) IsAdmin

func (_Collateral *CollateralCallerSession) IsAdmin(arg0 common.Address) (bool, error)

IsAdmin is a free data retrieval call binding the contract method 0x24d7806c.

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

func (*CollateralCallerSession) Owner

func (_Collateral *CollateralCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*CollateralCallerSession) ProxiableUUID

func (_Collateral *CollateralCallerSession) ProxiableUUID() ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*CollateralCallerSession) TaskBalance

func (_Collateral *CollateralCallerSession) TaskBalance(arg0 common.Address) (*big.Int, error)

TaskBalance is a free data retrieval call binding the contract method 0x637a570a.

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

func (*CollateralCallerSession) TotalFrozenBalance

func (_Collateral *CollateralCallerSession) TotalFrozenBalance(arg0 common.Address) (*big.Int, error)

TotalFrozenBalance is a free data retrieval call binding the contract method 0x19cf4697.

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

func (*CollateralCallerSession) Version

func (_Collateral *CollateralCallerSession) Version() (*big.Int, error)

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

Solidity: function version() pure returns(uint256)

type CollateralDeposit

type CollateralDeposit struct {
	FundingWallet   common.Address
	ReceivingWallet common.Address
	DepositAmount   *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

CollateralDeposit represents a Deposit event raised by the Collateral contract.

type CollateralDepositIterator

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

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

func (*CollateralDepositIterator) Close

func (it *CollateralDepositIterator) Close() error

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

func (*CollateralDepositIterator) Error

func (it *CollateralDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CollateralDepositIterator) Next

func (it *CollateralDepositIterator) 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 CollateralFilterer

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

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

func NewCollateralFilterer

func NewCollateralFilterer(address common.Address, filterer bind.ContractFilterer) (*CollateralFilterer, error)

NewCollateralFilterer creates a new log filterer instance of Collateral, bound to a specific deployed contract.

func (*CollateralFilterer) FilterAdminChanged

func (_Collateral *CollateralFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*CollateralAdminChangedIterator, error)

FilterAdminChanged is a free log retrieval operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*CollateralFilterer) FilterBeaconUpgraded

func (_Collateral *CollateralFilterer) FilterBeaconUpgraded(opts *bind.FilterOpts, beacon []common.Address) (*CollateralBeaconUpgradedIterator, error)

FilterBeaconUpgraded is a free log retrieval operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.

Solidity: event BeaconUpgraded(address indexed beacon)

func (*CollateralFilterer) FilterDeposit

func (_Collateral *CollateralFilterer) FilterDeposit(opts *bind.FilterOpts) (*CollateralDepositIterator, error)

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

Solidity: event Deposit(address fundingWallet, address receivingWallet, uint256 depositAmount)

func (*CollateralFilterer) FilterInitialized

func (_Collateral *CollateralFilterer) FilterInitialized(opts *bind.FilterOpts) (*CollateralInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*CollateralFilterer) FilterLockCollateral

func (_Collateral *CollateralFilterer) FilterLockCollateral(opts *bind.FilterOpts) (*CollateralLockCollateralIterator, error)

FilterLockCollateral is a free log retrieval operation binding the contract event 0x725d92f258a928f1444ddfbc373ac2965cd5af9acfd0ec698099db2759db9415.

Solidity: event LockCollateral(address taskContract, address[] cpList, uint256 collateralAmount)

func (*CollateralFilterer) FilterOwnershipTransferred

func (_Collateral *CollateralFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*CollateralOwnershipTransferredIterator, error)

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

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

func (*CollateralFilterer) FilterUnlockCollateral

func (_Collateral *CollateralFilterer) FilterUnlockCollateral(opts *bind.FilterOpts) (*CollateralUnlockCollateralIterator, error)

FilterUnlockCollateral is a free log retrieval operation binding the contract event 0x0b07bdad0ef069f045a8095f09327d7282a29a5101416833dff00b4b2f888f77.

Solidity: event UnlockCollateral(address taskContract, address cp, uint256 collateralAmount)

func (*CollateralFilterer) FilterUpgraded

func (_Collateral *CollateralFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*CollateralUpgradedIterator, error)

FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*CollateralFilterer) FilterWithdraw

func (_Collateral *CollateralFilterer) FilterWithdraw(opts *bind.FilterOpts) (*CollateralWithdrawIterator, error)

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

Solidity: event Withdraw(address fundingWallet, uint256 withdrawAmount)

func (*CollateralFilterer) ParseAdminChanged

func (_Collateral *CollateralFilterer) ParseAdminChanged(log types.Log) (*CollateralAdminChanged, error)

ParseAdminChanged is a log parse operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*CollateralFilterer) ParseBeaconUpgraded

func (_Collateral *CollateralFilterer) ParseBeaconUpgraded(log types.Log) (*CollateralBeaconUpgraded, error)

ParseBeaconUpgraded is a log parse operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.

Solidity: event BeaconUpgraded(address indexed beacon)

func (*CollateralFilterer) ParseDeposit

func (_Collateral *CollateralFilterer) ParseDeposit(log types.Log) (*CollateralDeposit, error)

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

Solidity: event Deposit(address fundingWallet, address receivingWallet, uint256 depositAmount)

func (*CollateralFilterer) ParseInitialized

func (_Collateral *CollateralFilterer) ParseInitialized(log types.Log) (*CollateralInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*CollateralFilterer) ParseLockCollateral

func (_Collateral *CollateralFilterer) ParseLockCollateral(log types.Log) (*CollateralLockCollateral, error)

ParseLockCollateral is a log parse operation binding the contract event 0x725d92f258a928f1444ddfbc373ac2965cd5af9acfd0ec698099db2759db9415.

Solidity: event LockCollateral(address taskContract, address[] cpList, uint256 collateralAmount)

func (*CollateralFilterer) ParseOwnershipTransferred

func (_Collateral *CollateralFilterer) ParseOwnershipTransferred(log types.Log) (*CollateralOwnershipTransferred, error)

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

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

func (*CollateralFilterer) ParseUnlockCollateral

func (_Collateral *CollateralFilterer) ParseUnlockCollateral(log types.Log) (*CollateralUnlockCollateral, error)

ParseUnlockCollateral is a log parse operation binding the contract event 0x0b07bdad0ef069f045a8095f09327d7282a29a5101416833dff00b4b2f888f77.

Solidity: event UnlockCollateral(address taskContract, address cp, uint256 collateralAmount)

func (*CollateralFilterer) ParseUpgraded

func (_Collateral *CollateralFilterer) ParseUpgraded(log types.Log) (*CollateralUpgraded, error)

ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*CollateralFilterer) ParseWithdraw

func (_Collateral *CollateralFilterer) ParseWithdraw(log types.Log) (*CollateralWithdraw, error)

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

Solidity: event Withdraw(address fundingWallet, uint256 withdrawAmount)

func (*CollateralFilterer) WatchAdminChanged

func (_Collateral *CollateralFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *CollateralAdminChanged) (event.Subscription, error)

WatchAdminChanged is a free log subscription operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.

Solidity: event AdminChanged(address previousAdmin, address newAdmin)

func (*CollateralFilterer) WatchBeaconUpgraded

func (_Collateral *CollateralFilterer) WatchBeaconUpgraded(opts *bind.WatchOpts, sink chan<- *CollateralBeaconUpgraded, beacon []common.Address) (event.Subscription, error)

WatchBeaconUpgraded is a free log subscription operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.

Solidity: event BeaconUpgraded(address indexed beacon)

func (*CollateralFilterer) WatchDeposit

func (_Collateral *CollateralFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *CollateralDeposit) (event.Subscription, error)

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

Solidity: event Deposit(address fundingWallet, address receivingWallet, uint256 depositAmount)

func (*CollateralFilterer) WatchInitialized

func (_Collateral *CollateralFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *CollateralInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*CollateralFilterer) WatchLockCollateral

func (_Collateral *CollateralFilterer) WatchLockCollateral(opts *bind.WatchOpts, sink chan<- *CollateralLockCollateral) (event.Subscription, error)

WatchLockCollateral is a free log subscription operation binding the contract event 0x725d92f258a928f1444ddfbc373ac2965cd5af9acfd0ec698099db2759db9415.

Solidity: event LockCollateral(address taskContract, address[] cpList, uint256 collateralAmount)

func (*CollateralFilterer) WatchOwnershipTransferred

func (_Collateral *CollateralFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CollateralOwnershipTransferred, 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 (*CollateralFilterer) WatchUnlockCollateral

func (_Collateral *CollateralFilterer) WatchUnlockCollateral(opts *bind.WatchOpts, sink chan<- *CollateralUnlockCollateral) (event.Subscription, error)

WatchUnlockCollateral is a free log subscription operation binding the contract event 0x0b07bdad0ef069f045a8095f09327d7282a29a5101416833dff00b4b2f888f77.

Solidity: event UnlockCollateral(address taskContract, address cp, uint256 collateralAmount)

func (*CollateralFilterer) WatchUpgraded

func (_Collateral *CollateralFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *CollateralUpgraded, implementation []common.Address) (event.Subscription, error)

WatchUpgraded is a free log subscription operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*CollateralFilterer) WatchWithdraw

func (_Collateral *CollateralFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *CollateralWithdraw) (event.Subscription, error)

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

Solidity: event Withdraw(address fundingWallet, uint256 withdrawAmount)

type CollateralInitialized

type CollateralInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

CollateralInitialized represents a Initialized event raised by the Collateral contract.

type CollateralInitializedIterator

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

CollateralInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Collateral contract.

func (*CollateralInitializedIterator) Close

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

func (*CollateralInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CollateralInitializedIterator) 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 CollateralLockCollateral

type CollateralLockCollateral struct {
	TaskContract     common.Address
	CpList           []common.Address
	CollateralAmount *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

CollateralLockCollateral represents a LockCollateral event raised by the Collateral contract.

type CollateralLockCollateralIterator

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

CollateralLockCollateralIterator is returned from FilterLockCollateral and is used to iterate over the raw logs and unpacked data for LockCollateral events raised by the Collateral contract.

func (*CollateralLockCollateralIterator) Close

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

func (*CollateralLockCollateralIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CollateralLockCollateralIterator) 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 CollateralOwnershipTransferred

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

CollateralOwnershipTransferred represents a OwnershipTransferred event raised by the Collateral contract.

type CollateralOwnershipTransferredIterator

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

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

func (*CollateralOwnershipTransferredIterator) Close

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

func (*CollateralOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CollateralOwnershipTransferredIterator) 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 CollateralRaw

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

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

func (*CollateralRaw) Call

func (_Collateral *CollateralRaw) 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 (*CollateralRaw) Transact

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

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

func (*CollateralRaw) Transfer

func (_Collateral *CollateralRaw) 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 CollateralSession

type CollateralSession struct {
	Contract     *Collateral       // 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
}

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

func (*CollateralSession) AddAdmin

func (_Collateral *CollateralSession) AddAdmin(newAdmin common.Address) (*types.Transaction, error)

AddAdmin is a paid mutator transaction binding the contract method 0x70480275.

Solidity: function addAdmin(address newAdmin) returns()

func (*CollateralSession) Balances

func (_Collateral *CollateralSession) Balances(arg0 common.Address) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x27e235e3.

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

func (*CollateralSession) Deposit

func (_Collateral *CollateralSession) Deposit(recipient common.Address) (*types.Transaction, error)

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

Solidity: function deposit(address recipient) payable returns()

func (*CollateralSession) DepositETH

func (_Collateral *CollateralSession) DepositETH(recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function depositETH(address recipient, uint256 amount) payable returns()

func (*CollateralSession) FrozenBalance

func (_Collateral *CollateralSession) FrozenBalance(arg0 common.Address) (*big.Int, error)

FrozenBalance is a free data retrieval call binding the contract method 0x266565a9.

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

func (*CollateralSession) Initialize

func (_Collateral *CollateralSession) Initialize() (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.

Solidity: function initialize() returns()

func (*CollateralSession) IsAdmin

func (_Collateral *CollateralSession) IsAdmin(arg0 common.Address) (bool, error)

IsAdmin is a free data retrieval call binding the contract method 0x24d7806c.

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

func (*CollateralSession) LockCollateral

func (_Collateral *CollateralSession) LockCollateral(taskContract common.Address, cpList []common.Address, collateral *big.Int) (*types.Transaction, error)

LockCollateral is a paid mutator transaction binding the contract method 0x22d39e28.

Solidity: function lockCollateral(address taskContract, address[] cpList, uint256 collateral) returns()

func (*CollateralSession) Owner

func (_Collateral *CollateralSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*CollateralSession) ProxiableUUID

func (_Collateral *CollateralSession) ProxiableUUID() ([32]byte, error)

ProxiableUUID is a free data retrieval call binding the contract method 0x52d1902d.

Solidity: function proxiableUUID() view returns(bytes32)

func (*CollateralSession) Receive

func (_Collateral *CollateralSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*CollateralSession) RemoveAdmin

func (_Collateral *CollateralSession) RemoveAdmin(admin common.Address) (*types.Transaction, error)

RemoveAdmin is a paid mutator transaction binding the contract method 0x1785f53c.

Solidity: function removeAdmin(address admin) returns()

func (*CollateralSession) RenounceOwnership

func (_Collateral *CollateralSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*CollateralSession) TaskBalance

func (_Collateral *CollateralSession) TaskBalance(arg0 common.Address) (*big.Int, error)

TaskBalance is a free data retrieval call binding the contract method 0x637a570a.

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

func (*CollateralSession) TotalFrozenBalance

func (_Collateral *CollateralSession) TotalFrozenBalance(arg0 common.Address) (*big.Int, error)

TotalFrozenBalance is a free data retrieval call binding the contract method 0x19cf4697.

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

func (*CollateralSession) TransferOwnership

func (_Collateral *CollateralSession) 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 (*CollateralSession) UnlockCollateral

func (_Collateral *CollateralSession) UnlockCollateral(recipient common.Address) (*types.Transaction, error)

UnlockCollateral is a paid mutator transaction binding the contract method 0x3f001fd9.

Solidity: function unlockCollateral(address recipient) payable returns()

func (*CollateralSession) UpgradeTo

func (_Collateral *CollateralSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)

UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.

Solidity: function upgradeTo(address newImplementation) returns()

func (*CollateralSession) UpgradeToAndCall

func (_Collateral *CollateralSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

func (*CollateralSession) Version

func (_Collateral *CollateralSession) Version() (*big.Int, error)

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

Solidity: function version() pure returns(uint256)

func (*CollateralSession) Withdraw

func (_Collateral *CollateralSession) Withdraw(amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 amount) returns()

type CollateralTransactor

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

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

func NewCollateralTransactor

func NewCollateralTransactor(address common.Address, transactor bind.ContractTransactor) (*CollateralTransactor, error)

NewCollateralTransactor creates a new write-only instance of Collateral, bound to a specific deployed contract.

func (*CollateralTransactor) AddAdmin

func (_Collateral *CollateralTransactor) AddAdmin(opts *bind.TransactOpts, newAdmin common.Address) (*types.Transaction, error)

AddAdmin is a paid mutator transaction binding the contract method 0x70480275.

Solidity: function addAdmin(address newAdmin) returns()

func (*CollateralTransactor) Deposit

func (_Collateral *CollateralTransactor) Deposit(opts *bind.TransactOpts, recipient common.Address) (*types.Transaction, error)

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

Solidity: function deposit(address recipient) payable returns()

func (*CollateralTransactor) DepositETH

func (_Collateral *CollateralTransactor) DepositETH(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function depositETH(address recipient, uint256 amount) payable returns()

func (*CollateralTransactor) Initialize

func (_Collateral *CollateralTransactor) Initialize(opts *bind.TransactOpts) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.

Solidity: function initialize() returns()

func (*CollateralTransactor) LockCollateral

func (_Collateral *CollateralTransactor) LockCollateral(opts *bind.TransactOpts, taskContract common.Address, cpList []common.Address, collateral *big.Int) (*types.Transaction, error)

LockCollateral is a paid mutator transaction binding the contract method 0x22d39e28.

Solidity: function lockCollateral(address taskContract, address[] cpList, uint256 collateral) returns()

func (*CollateralTransactor) Receive

func (_Collateral *CollateralTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*CollateralTransactor) RemoveAdmin

func (_Collateral *CollateralTransactor) RemoveAdmin(opts *bind.TransactOpts, admin common.Address) (*types.Transaction, error)

RemoveAdmin is a paid mutator transaction binding the contract method 0x1785f53c.

Solidity: function removeAdmin(address admin) returns()

func (*CollateralTransactor) RenounceOwnership

func (_Collateral *CollateralTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*CollateralTransactor) TransferOwnership

func (_Collateral *CollateralTransactor) 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 (*CollateralTransactor) UnlockCollateral

func (_Collateral *CollateralTransactor) UnlockCollateral(opts *bind.TransactOpts, recipient common.Address) (*types.Transaction, error)

UnlockCollateral is a paid mutator transaction binding the contract method 0x3f001fd9.

Solidity: function unlockCollateral(address recipient) payable returns()

func (*CollateralTransactor) UpgradeTo

func (_Collateral *CollateralTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error)

UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.

Solidity: function upgradeTo(address newImplementation) returns()

func (*CollateralTransactor) UpgradeToAndCall

func (_Collateral *CollateralTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

func (*CollateralTransactor) Withdraw

func (_Collateral *CollateralTransactor) Withdraw(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 amount) returns()

type CollateralTransactorRaw

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

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

func (*CollateralTransactorRaw) Transact

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

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

func (*CollateralTransactorRaw) Transfer

func (_Collateral *CollateralTransactorRaw) 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 CollateralTransactorSession

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

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

func (*CollateralTransactorSession) AddAdmin

func (_Collateral *CollateralTransactorSession) AddAdmin(newAdmin common.Address) (*types.Transaction, error)

AddAdmin is a paid mutator transaction binding the contract method 0x70480275.

Solidity: function addAdmin(address newAdmin) returns()

func (*CollateralTransactorSession) Deposit

func (_Collateral *CollateralTransactorSession) Deposit(recipient common.Address) (*types.Transaction, error)

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

Solidity: function deposit(address recipient) payable returns()

func (*CollateralTransactorSession) DepositETH

func (_Collateral *CollateralTransactorSession) DepositETH(recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function depositETH(address recipient, uint256 amount) payable returns()

func (*CollateralTransactorSession) Initialize

func (_Collateral *CollateralTransactorSession) Initialize() (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.

Solidity: function initialize() returns()

func (*CollateralTransactorSession) LockCollateral

func (_Collateral *CollateralTransactorSession) LockCollateral(taskContract common.Address, cpList []common.Address, collateral *big.Int) (*types.Transaction, error)

LockCollateral is a paid mutator transaction binding the contract method 0x22d39e28.

Solidity: function lockCollateral(address taskContract, address[] cpList, uint256 collateral) returns()

func (*CollateralTransactorSession) Receive

func (_Collateral *CollateralTransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*CollateralTransactorSession) RemoveAdmin

func (_Collateral *CollateralTransactorSession) RemoveAdmin(admin common.Address) (*types.Transaction, error)

RemoveAdmin is a paid mutator transaction binding the contract method 0x1785f53c.

Solidity: function removeAdmin(address admin) returns()

func (*CollateralTransactorSession) RenounceOwnership

func (_Collateral *CollateralTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*CollateralTransactorSession) TransferOwnership

func (_Collateral *CollateralTransactorSession) 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 (*CollateralTransactorSession) UnlockCollateral

func (_Collateral *CollateralTransactorSession) UnlockCollateral(recipient common.Address) (*types.Transaction, error)

UnlockCollateral is a paid mutator transaction binding the contract method 0x3f001fd9.

Solidity: function unlockCollateral(address recipient) payable returns()

func (*CollateralTransactorSession) UpgradeTo

func (_Collateral *CollateralTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)

UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.

Solidity: function upgradeTo(address newImplementation) returns()

func (*CollateralTransactorSession) UpgradeToAndCall

func (_Collateral *CollateralTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

func (*CollateralTransactorSession) Withdraw

func (_Collateral *CollateralTransactorSession) Withdraw(amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 amount) returns()

type CollateralUnlockCollateral

type CollateralUnlockCollateral struct {
	TaskContract     common.Address
	Cp               common.Address
	CollateralAmount *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

CollateralUnlockCollateral represents a UnlockCollateral event raised by the Collateral contract.

type CollateralUnlockCollateralIterator

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

CollateralUnlockCollateralIterator is returned from FilterUnlockCollateral and is used to iterate over the raw logs and unpacked data for UnlockCollateral events raised by the Collateral contract.

func (*CollateralUnlockCollateralIterator) Close

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

func (*CollateralUnlockCollateralIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CollateralUnlockCollateralIterator) 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 CollateralUpgraded

type CollateralUpgraded struct {
	Implementation common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

CollateralUpgraded represents a Upgraded event raised by the Collateral contract.

type CollateralUpgradedIterator

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

CollateralUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the Collateral contract.

func (*CollateralUpgradedIterator) Close

func (it *CollateralUpgradedIterator) Close() error

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

func (*CollateralUpgradedIterator) Error

func (it *CollateralUpgradedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CollateralUpgradedIterator) Next

func (it *CollateralUpgradedIterator) 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 CollateralWithdraw

type CollateralWithdraw struct {
	FundingWallet  common.Address
	WithdrawAmount *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

CollateralWithdraw represents a Withdraw event raised by the Collateral contract.

type CollateralWithdrawIterator

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

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

func (*CollateralWithdrawIterator) Close

func (it *CollateralWithdrawIterator) Close() error

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

func (*CollateralWithdrawIterator) Error

func (it *CollateralWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CollateralWithdrawIterator) Next

func (it *CollateralWithdrawIterator) 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 Option

type Option func(*Stub)

func WithPrivateKey

func WithPrivateKey(pk string) Option

func WithPublicKey

func WithPublicKey(pk string) Option

type Stub

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

func NewCollateralStub

func NewCollateralStub(client *ethclient.Client, options ...Option) (*Stub, error)

func (*Stub) Balances

func (s *Stub) Balances() (string, error)

func (*Stub) Deposit

func (s *Stub) Deposit(amount *big.Int) (string, error)

func (*Stub) Withdraw

func (s *Stub) Withdraw(amount *big.Int) (string, error)

Jump to

Keyboard shortcuts

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