holdmanager

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 9 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HoldmanagerMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"function\",\"name\":\"cancelHold\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"holdId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"createHold\",\"inputs\":[{\"name\":\"holdId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"hold\",\"type\":\"tuple\",\"internalType\":\"structIHoldManager.Hold\",\"components\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"recipient\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"executor\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"expiresAt\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"executeHold\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"holdId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"extendHold\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"holdId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"expiresAt\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"getHold\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"holdId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structIHoldManager.Hold\",\"components\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"recipient\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"executor\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"expiresAt\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getHoldStatus\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"holdId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumIHoldManager.HoldStatus\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"heldBalanceOf\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isExpired\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"holdId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"releaseHold\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"holdId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"HoldCanceled\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"holdId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"HoldCreated\",\"inputs\":[{\"name\":\"holdId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"hold\",\"type\":\"tuple\",\"indexed\":false,\"internalType\":\"structIHoldManager.Hold\",\"components\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"recipient\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"executor\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"expiresAt\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"HoldExecuted\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"holdId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"HoldExtended\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"holdId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"expiresAt\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"HoldReleased\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"holdId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"}],\"anonymous\":false}]",
}

HoldmanagerMetaData contains all meta data concerning the Holdmanager contract.

Functions

This section is empty.

Types

type Holdmanager

type Holdmanager struct {
	HoldmanagerCaller     // Read-only binding to the contract
	HoldmanagerTransactor // Write-only binding to the contract
	HoldmanagerFilterer   // Log filterer for contract events
}

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

func NewHoldmanager

func NewHoldmanager(address common.Address, backend bind.ContractBackend) (*Holdmanager, error)

NewHoldmanager creates a new instance of Holdmanager, bound to a specific deployed contract.

type HoldmanagerCaller

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

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

func NewHoldmanagerCaller

func NewHoldmanagerCaller(address common.Address, caller bind.ContractCaller) (*HoldmanagerCaller, error)

NewHoldmanagerCaller creates a new read-only instance of Holdmanager, bound to a specific deployed contract.

func (*HoldmanagerCaller) GetHold

func (_Holdmanager *HoldmanagerCaller) GetHold(opts *bind.CallOpts, sender common.Address, holdId [32]byte) (IHoldManagerHold, error)

GetHold is a free data retrieval call binding the contract method 0x003a30a6.

Solidity: function getHold(address sender, bytes32 holdId) view returns((address,address,address,address,uint256,uint256))

func (*HoldmanagerCaller) GetHoldStatus

func (_Holdmanager *HoldmanagerCaller) GetHoldStatus(opts *bind.CallOpts, sender common.Address, holdId [32]byte) (uint8, error)

GetHoldStatus is a free data retrieval call binding the contract method 0x5cd2aadc.

Solidity: function getHoldStatus(address sender, bytes32 holdId) view returns(uint8)

func (*HoldmanagerCaller) HeldBalanceOf

func (_Holdmanager *HoldmanagerCaller) HeldBalanceOf(opts *bind.CallOpts, sender common.Address) (*big.Int, error)

HeldBalanceOf is a free data retrieval call binding the contract method 0xbe9c1add.

Solidity: function heldBalanceOf(address sender) view returns(uint256)

func (*HoldmanagerCaller) IsExpired

func (_Holdmanager *HoldmanagerCaller) IsExpired(opts *bind.CallOpts, sender common.Address, holdId [32]byte) (bool, error)

IsExpired is a free data retrieval call binding the contract method 0x00f304db.

Solidity: function isExpired(address sender, bytes32 holdId) view returns(bool)

type HoldmanagerCallerRaw

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

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

func (*HoldmanagerCallerRaw) Call

func (_Holdmanager *HoldmanagerCallerRaw) 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 HoldmanagerCallerSession

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

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

func (*HoldmanagerCallerSession) GetHold

func (_Holdmanager *HoldmanagerCallerSession) GetHold(sender common.Address, holdId [32]byte) (IHoldManagerHold, error)

GetHold is a free data retrieval call binding the contract method 0x003a30a6.

Solidity: function getHold(address sender, bytes32 holdId) view returns((address,address,address,address,uint256,uint256))

func (*HoldmanagerCallerSession) GetHoldStatus

func (_Holdmanager *HoldmanagerCallerSession) GetHoldStatus(sender common.Address, holdId [32]byte) (uint8, error)

GetHoldStatus is a free data retrieval call binding the contract method 0x5cd2aadc.

Solidity: function getHoldStatus(address sender, bytes32 holdId) view returns(uint8)

func (*HoldmanagerCallerSession) HeldBalanceOf

func (_Holdmanager *HoldmanagerCallerSession) HeldBalanceOf(sender common.Address) (*big.Int, error)

HeldBalanceOf is a free data retrieval call binding the contract method 0xbe9c1add.

Solidity: function heldBalanceOf(address sender) view returns(uint256)

func (*HoldmanagerCallerSession) IsExpired

func (_Holdmanager *HoldmanagerCallerSession) IsExpired(sender common.Address, holdId [32]byte) (bool, error)

IsExpired is a free data retrieval call binding the contract method 0x00f304db.

Solidity: function isExpired(address sender, bytes32 holdId) view returns(bool)

type HoldmanagerFilterer

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

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

func NewHoldmanagerFilterer

func NewHoldmanagerFilterer(address common.Address, filterer bind.ContractFilterer) (*HoldmanagerFilterer, error)

NewHoldmanagerFilterer creates a new log filterer instance of Holdmanager, bound to a specific deployed contract.

func (*HoldmanagerFilterer) FilterHoldCanceled

func (_Holdmanager *HoldmanagerFilterer) FilterHoldCanceled(opts *bind.FilterOpts, sender []common.Address, holdId [][32]byte) (*HoldmanagerHoldCanceledIterator, error)

FilterHoldCanceled is a free log retrieval operation binding the contract event 0x2fd5592c5d0335e054db1164b19cf94f92ed8f707baa92cc90f565ba7e53b196.

Solidity: event HoldCanceled(address indexed sender, bytes32 indexed holdId)

func (*HoldmanagerFilterer) FilterHoldCreated

func (_Holdmanager *HoldmanagerFilterer) FilterHoldCreated(opts *bind.FilterOpts, holdId [][32]byte) (*HoldmanagerHoldCreatedIterator, error)

FilterHoldCreated is a free log retrieval operation binding the contract event 0xea975310e945455e3e9ac7b1b0678439bbd01bdbeba38c4a8542da22dc85b95a.

Solidity: event HoldCreated(bytes32 indexed holdId, (address,address,address,address,uint256,uint256) hold)

func (*HoldmanagerFilterer) FilterHoldExecuted

func (_Holdmanager *HoldmanagerFilterer) FilterHoldExecuted(opts *bind.FilterOpts, sender []common.Address, holdId [][32]byte) (*HoldmanagerHoldExecutedIterator, error)

FilterHoldExecuted is a free log retrieval operation binding the contract event 0xed3cc5a786d717fbf71ddf9b128c44ac87cd0fb35c999373b2f938d14c12066f.

Solidity: event HoldExecuted(address indexed sender, bytes32 indexed holdId)

func (*HoldmanagerFilterer) FilterHoldExtended

func (_Holdmanager *HoldmanagerFilterer) FilterHoldExtended(opts *bind.FilterOpts, sender []common.Address, holdId [][32]byte) (*HoldmanagerHoldExtendedIterator, error)

FilterHoldExtended is a free log retrieval operation binding the contract event 0x33daaf142cd1f192d2598aa040236d4c3c21f9fc800f7219bca5d8c0a96fbeee.

Solidity: event HoldExtended(address indexed sender, bytes32 indexed holdId, uint256 expiresAt)

func (*HoldmanagerFilterer) FilterHoldReleased

func (_Holdmanager *HoldmanagerFilterer) FilterHoldReleased(opts *bind.FilterOpts, sender []common.Address, holdId [][32]byte) (*HoldmanagerHoldReleasedIterator, error)

FilterHoldReleased is a free log retrieval operation binding the contract event 0xab2a9a25f2d6f297f59ab9852e62b3cd1623db40094924f7da14222f59da7d3e.

Solidity: event HoldReleased(address indexed sender, bytes32 indexed holdId)

func (*HoldmanagerFilterer) ParseHoldCanceled

func (_Holdmanager *HoldmanagerFilterer) ParseHoldCanceled(log types.Log) (*HoldmanagerHoldCanceled, error)

ParseHoldCanceled is a log parse operation binding the contract event 0x2fd5592c5d0335e054db1164b19cf94f92ed8f707baa92cc90f565ba7e53b196.

Solidity: event HoldCanceled(address indexed sender, bytes32 indexed holdId)

func (*HoldmanagerFilterer) ParseHoldCreated

func (_Holdmanager *HoldmanagerFilterer) ParseHoldCreated(log types.Log) (*HoldmanagerHoldCreated, error)

ParseHoldCreated is a log parse operation binding the contract event 0xea975310e945455e3e9ac7b1b0678439bbd01bdbeba38c4a8542da22dc85b95a.

Solidity: event HoldCreated(bytes32 indexed holdId, (address,address,address,address,uint256,uint256) hold)

func (*HoldmanagerFilterer) ParseHoldExecuted

func (_Holdmanager *HoldmanagerFilterer) ParseHoldExecuted(log types.Log) (*HoldmanagerHoldExecuted, error)

ParseHoldExecuted is a log parse operation binding the contract event 0xed3cc5a786d717fbf71ddf9b128c44ac87cd0fb35c999373b2f938d14c12066f.

Solidity: event HoldExecuted(address indexed sender, bytes32 indexed holdId)

func (*HoldmanagerFilterer) ParseHoldExtended

func (_Holdmanager *HoldmanagerFilterer) ParseHoldExtended(log types.Log) (*HoldmanagerHoldExtended, error)

ParseHoldExtended is a log parse operation binding the contract event 0x33daaf142cd1f192d2598aa040236d4c3c21f9fc800f7219bca5d8c0a96fbeee.

Solidity: event HoldExtended(address indexed sender, bytes32 indexed holdId, uint256 expiresAt)

func (*HoldmanagerFilterer) ParseHoldReleased

func (_Holdmanager *HoldmanagerFilterer) ParseHoldReleased(log types.Log) (*HoldmanagerHoldReleased, error)

ParseHoldReleased is a log parse operation binding the contract event 0xab2a9a25f2d6f297f59ab9852e62b3cd1623db40094924f7da14222f59da7d3e.

Solidity: event HoldReleased(address indexed sender, bytes32 indexed holdId)

func (*HoldmanagerFilterer) WatchHoldCanceled

func (_Holdmanager *HoldmanagerFilterer) WatchHoldCanceled(opts *bind.WatchOpts, sink chan<- *HoldmanagerHoldCanceled, sender []common.Address, holdId [][32]byte) (event.Subscription, error)

WatchHoldCanceled is a free log subscription operation binding the contract event 0x2fd5592c5d0335e054db1164b19cf94f92ed8f707baa92cc90f565ba7e53b196.

Solidity: event HoldCanceled(address indexed sender, bytes32 indexed holdId)

func (*HoldmanagerFilterer) WatchHoldCreated

func (_Holdmanager *HoldmanagerFilterer) WatchHoldCreated(opts *bind.WatchOpts, sink chan<- *HoldmanagerHoldCreated, holdId [][32]byte) (event.Subscription, error)

WatchHoldCreated is a free log subscription operation binding the contract event 0xea975310e945455e3e9ac7b1b0678439bbd01bdbeba38c4a8542da22dc85b95a.

Solidity: event HoldCreated(bytes32 indexed holdId, (address,address,address,address,uint256,uint256) hold)

func (*HoldmanagerFilterer) WatchHoldExecuted

func (_Holdmanager *HoldmanagerFilterer) WatchHoldExecuted(opts *bind.WatchOpts, sink chan<- *HoldmanagerHoldExecuted, sender []common.Address, holdId [][32]byte) (event.Subscription, error)

WatchHoldExecuted is a free log subscription operation binding the contract event 0xed3cc5a786d717fbf71ddf9b128c44ac87cd0fb35c999373b2f938d14c12066f.

Solidity: event HoldExecuted(address indexed sender, bytes32 indexed holdId)

func (*HoldmanagerFilterer) WatchHoldExtended

func (_Holdmanager *HoldmanagerFilterer) WatchHoldExtended(opts *bind.WatchOpts, sink chan<- *HoldmanagerHoldExtended, sender []common.Address, holdId [][32]byte) (event.Subscription, error)

WatchHoldExtended is a free log subscription operation binding the contract event 0x33daaf142cd1f192d2598aa040236d4c3c21f9fc800f7219bca5d8c0a96fbeee.

Solidity: event HoldExtended(address indexed sender, bytes32 indexed holdId, uint256 expiresAt)

func (*HoldmanagerFilterer) WatchHoldReleased

func (_Holdmanager *HoldmanagerFilterer) WatchHoldReleased(opts *bind.WatchOpts, sink chan<- *HoldmanagerHoldReleased, sender []common.Address, holdId [][32]byte) (event.Subscription, error)

WatchHoldReleased is a free log subscription operation binding the contract event 0xab2a9a25f2d6f297f59ab9852e62b3cd1623db40094924f7da14222f59da7d3e.

Solidity: event HoldReleased(address indexed sender, bytes32 indexed holdId)

type HoldmanagerHoldCanceled

type HoldmanagerHoldCanceled struct {
	Sender common.Address
	HoldId [32]byte
	Raw    types.Log // Blockchain specific contextual infos
}

HoldmanagerHoldCanceled represents a HoldCanceled event raised by the Holdmanager contract.

type HoldmanagerHoldCanceledIterator

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

HoldmanagerHoldCanceledIterator is returned from FilterHoldCanceled and is used to iterate over the raw logs and unpacked data for HoldCanceled events raised by the Holdmanager contract.

func (*HoldmanagerHoldCanceledIterator) Close

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

func (*HoldmanagerHoldCanceledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*HoldmanagerHoldCanceledIterator) 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 HoldmanagerHoldCreated

type HoldmanagerHoldCreated struct {
	HoldId [32]byte
	Hold   IHoldManagerHold
	Raw    types.Log // Blockchain specific contextual infos
}

HoldmanagerHoldCreated represents a HoldCreated event raised by the Holdmanager contract.

type HoldmanagerHoldCreatedIterator

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

HoldmanagerHoldCreatedIterator is returned from FilterHoldCreated and is used to iterate over the raw logs and unpacked data for HoldCreated events raised by the Holdmanager contract.

func (*HoldmanagerHoldCreatedIterator) Close

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

func (*HoldmanagerHoldCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*HoldmanagerHoldCreatedIterator) 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 HoldmanagerHoldExecuted

type HoldmanagerHoldExecuted struct {
	Sender common.Address
	HoldId [32]byte
	Raw    types.Log // Blockchain specific contextual infos
}

HoldmanagerHoldExecuted represents a HoldExecuted event raised by the Holdmanager contract.

type HoldmanagerHoldExecutedIterator

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

HoldmanagerHoldExecutedIterator is returned from FilterHoldExecuted and is used to iterate over the raw logs and unpacked data for HoldExecuted events raised by the Holdmanager contract.

func (*HoldmanagerHoldExecutedIterator) Close

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

func (*HoldmanagerHoldExecutedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*HoldmanagerHoldExecutedIterator) 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 HoldmanagerHoldExtended

type HoldmanagerHoldExtended struct {
	Sender    common.Address
	HoldId    [32]byte
	ExpiresAt *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

HoldmanagerHoldExtended represents a HoldExtended event raised by the Holdmanager contract.

type HoldmanagerHoldExtendedIterator

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

HoldmanagerHoldExtendedIterator is returned from FilterHoldExtended and is used to iterate over the raw logs and unpacked data for HoldExtended events raised by the Holdmanager contract.

func (*HoldmanagerHoldExtendedIterator) Close

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

func (*HoldmanagerHoldExtendedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*HoldmanagerHoldExtendedIterator) 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 HoldmanagerHoldReleased

type HoldmanagerHoldReleased struct {
	Sender common.Address
	HoldId [32]byte
	Raw    types.Log // Blockchain specific contextual infos
}

HoldmanagerHoldReleased represents a HoldReleased event raised by the Holdmanager contract.

type HoldmanagerHoldReleasedIterator

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

HoldmanagerHoldReleasedIterator is returned from FilterHoldReleased and is used to iterate over the raw logs and unpacked data for HoldReleased events raised by the Holdmanager contract.

func (*HoldmanagerHoldReleasedIterator) Close

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

func (*HoldmanagerHoldReleasedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*HoldmanagerHoldReleasedIterator) 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 HoldmanagerRaw

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

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

func (*HoldmanagerRaw) Call

func (_Holdmanager *HoldmanagerRaw) 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 (*HoldmanagerRaw) Transact

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

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

func (*HoldmanagerRaw) Transfer

func (_Holdmanager *HoldmanagerRaw) 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 HoldmanagerSession

type HoldmanagerSession struct {
	Contract     *Holdmanager      // 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
}

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

func (*HoldmanagerSession) CancelHold

func (_Holdmanager *HoldmanagerSession) CancelHold(sender common.Address, holdId [32]byte) (*types.Transaction, error)

CancelHold is a paid mutator transaction binding the contract method 0xeee2068b.

Solidity: function cancelHold(address sender, bytes32 holdId) returns()

func (*HoldmanagerSession) CreateHold

func (_Holdmanager *HoldmanagerSession) CreateHold(holdId [32]byte, hold IHoldManagerHold) (*types.Transaction, error)

CreateHold is a paid mutator transaction binding the contract method 0xae01e0bd.

Solidity: function createHold(bytes32 holdId, (address,address,address,address,uint256,uint256) hold) returns()

func (*HoldmanagerSession) ExecuteHold

func (_Holdmanager *HoldmanagerSession) ExecuteHold(sender common.Address, holdId [32]byte) (*types.Transaction, error)

ExecuteHold is a paid mutator transaction binding the contract method 0x0e432dec.

Solidity: function executeHold(address sender, bytes32 holdId) returns()

func (*HoldmanagerSession) ExtendHold

func (_Holdmanager *HoldmanagerSession) ExtendHold(sender common.Address, holdId [32]byte, expiresAt *big.Int) (*types.Transaction, error)

ExtendHold is a paid mutator transaction binding the contract method 0x29251264.

Solidity: function extendHold(address sender, bytes32 holdId, uint256 expiresAt) returns()

func (*HoldmanagerSession) GetHold

func (_Holdmanager *HoldmanagerSession) GetHold(sender common.Address, holdId [32]byte) (IHoldManagerHold, error)

GetHold is a free data retrieval call binding the contract method 0x003a30a6.

Solidity: function getHold(address sender, bytes32 holdId) view returns((address,address,address,address,uint256,uint256))

func (*HoldmanagerSession) GetHoldStatus

func (_Holdmanager *HoldmanagerSession) GetHoldStatus(sender common.Address, holdId [32]byte) (uint8, error)

GetHoldStatus is a free data retrieval call binding the contract method 0x5cd2aadc.

Solidity: function getHoldStatus(address sender, bytes32 holdId) view returns(uint8)

func (*HoldmanagerSession) HeldBalanceOf

func (_Holdmanager *HoldmanagerSession) HeldBalanceOf(sender common.Address) (*big.Int, error)

HeldBalanceOf is a free data retrieval call binding the contract method 0xbe9c1add.

Solidity: function heldBalanceOf(address sender) view returns(uint256)

func (*HoldmanagerSession) IsExpired

func (_Holdmanager *HoldmanagerSession) IsExpired(sender common.Address, holdId [32]byte) (bool, error)

IsExpired is a free data retrieval call binding the contract method 0x00f304db.

Solidity: function isExpired(address sender, bytes32 holdId) view returns(bool)

func (*HoldmanagerSession) ReleaseHold

func (_Holdmanager *HoldmanagerSession) ReleaseHold(sender common.Address, holdId [32]byte) (*types.Transaction, error)

ReleaseHold is a paid mutator transaction binding the contract method 0xc1c60fe2.

Solidity: function releaseHold(address sender, bytes32 holdId) returns()

type HoldmanagerTransactor

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

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

func NewHoldmanagerTransactor

func NewHoldmanagerTransactor(address common.Address, transactor bind.ContractTransactor) (*HoldmanagerTransactor, error)

NewHoldmanagerTransactor creates a new write-only instance of Holdmanager, bound to a specific deployed contract.

func (*HoldmanagerTransactor) CancelHold

func (_Holdmanager *HoldmanagerTransactor) CancelHold(opts *bind.TransactOpts, sender common.Address, holdId [32]byte) (*types.Transaction, error)

CancelHold is a paid mutator transaction binding the contract method 0xeee2068b.

Solidity: function cancelHold(address sender, bytes32 holdId) returns()

func (*HoldmanagerTransactor) CreateHold

func (_Holdmanager *HoldmanagerTransactor) CreateHold(opts *bind.TransactOpts, holdId [32]byte, hold IHoldManagerHold) (*types.Transaction, error)

CreateHold is a paid mutator transaction binding the contract method 0xae01e0bd.

Solidity: function createHold(bytes32 holdId, (address,address,address,address,uint256,uint256) hold) returns()

func (*HoldmanagerTransactor) ExecuteHold

func (_Holdmanager *HoldmanagerTransactor) ExecuteHold(opts *bind.TransactOpts, sender common.Address, holdId [32]byte) (*types.Transaction, error)

ExecuteHold is a paid mutator transaction binding the contract method 0x0e432dec.

Solidity: function executeHold(address sender, bytes32 holdId) returns()

func (*HoldmanagerTransactor) ExtendHold

func (_Holdmanager *HoldmanagerTransactor) ExtendHold(opts *bind.TransactOpts, sender common.Address, holdId [32]byte, expiresAt *big.Int) (*types.Transaction, error)

ExtendHold is a paid mutator transaction binding the contract method 0x29251264.

Solidity: function extendHold(address sender, bytes32 holdId, uint256 expiresAt) returns()

func (*HoldmanagerTransactor) ReleaseHold

func (_Holdmanager *HoldmanagerTransactor) ReleaseHold(opts *bind.TransactOpts, sender common.Address, holdId [32]byte) (*types.Transaction, error)

ReleaseHold is a paid mutator transaction binding the contract method 0xc1c60fe2.

Solidity: function releaseHold(address sender, bytes32 holdId) returns()

type HoldmanagerTransactorRaw

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

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

func (*HoldmanagerTransactorRaw) Transact

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

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

func (*HoldmanagerTransactorRaw) Transfer

func (_Holdmanager *HoldmanagerTransactorRaw) 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 HoldmanagerTransactorSession

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

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

func (*HoldmanagerTransactorSession) CancelHold

func (_Holdmanager *HoldmanagerTransactorSession) CancelHold(sender common.Address, holdId [32]byte) (*types.Transaction, error)

CancelHold is a paid mutator transaction binding the contract method 0xeee2068b.

Solidity: function cancelHold(address sender, bytes32 holdId) returns()

func (*HoldmanagerTransactorSession) CreateHold

func (_Holdmanager *HoldmanagerTransactorSession) CreateHold(holdId [32]byte, hold IHoldManagerHold) (*types.Transaction, error)

CreateHold is a paid mutator transaction binding the contract method 0xae01e0bd.

Solidity: function createHold(bytes32 holdId, (address,address,address,address,uint256,uint256) hold) returns()

func (*HoldmanagerTransactorSession) ExecuteHold

func (_Holdmanager *HoldmanagerTransactorSession) ExecuteHold(sender common.Address, holdId [32]byte) (*types.Transaction, error)

ExecuteHold is a paid mutator transaction binding the contract method 0x0e432dec.

Solidity: function executeHold(address sender, bytes32 holdId) returns()

func (*HoldmanagerTransactorSession) ExtendHold

func (_Holdmanager *HoldmanagerTransactorSession) ExtendHold(sender common.Address, holdId [32]byte, expiresAt *big.Int) (*types.Transaction, error)

ExtendHold is a paid mutator transaction binding the contract method 0x29251264.

Solidity: function extendHold(address sender, bytes32 holdId, uint256 expiresAt) returns()

func (*HoldmanagerTransactorSession) ReleaseHold

func (_Holdmanager *HoldmanagerTransactorSession) ReleaseHold(sender common.Address, holdId [32]byte) (*types.Transaction, error)

ReleaseHold is a paid mutator transaction binding the contract method 0xc1c60fe2.

Solidity: function releaseHold(address sender, bytes32 holdId) returns()

type IHoldManagerHold

type IHoldManagerHold struct {
	Token     common.Address
	Sender    common.Address
	Recipient common.Address
	Executor  common.Address
	ExpiresAt *big.Int
	Value     *big.Int
}

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

Jump to

Keyboard shortcuts

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