cow

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AddressSettlement = common.HexToAddress("0x9008D19f58AAbD9eD0D60971565AA8510560ab41")
	AddressETH        = common.HexToAddress("0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE")

	EventHashSettlementTrade = contract.EventHash("Trade(address,address,address,uint256,uint256,uint256,bytes)")
)
View Source
var SettlementABI = SettlementMetaData.ABI

SettlementABI is the input ABI used to generate the binding from. Deprecated: Use SettlementMetaData.ABI instead.

View Source
var SettlementMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"contractGPv2Authentication\",\"name\":\"authenticator_\",\"type\":\"address\"},{\"internalType\":\"contractIVault\",\"name\":\"vault_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"Interaction\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"orderUid\",\"type\":\"bytes\"}],\"name\":\"OrderInvalidated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"orderUid\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"signed\",\"type\":\"bool\"}],\"name\":\"PreSignature\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"solver\",\"type\":\"address\"}],\"name\":\"Settlement\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"contractIERC20\",\"name\":\"sellToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"contractIERC20\",\"name\":\"buyToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sellAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"buyAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"orderUid\",\"type\":\"bytes\"}],\"name\":\"Trade\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"authenticator\",\"outputs\":[{\"internalType\":\"contractGPv2Authentication\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"domainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"filledAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"orderUids\",\"type\":\"bytes[]\"}],\"name\":\"freeFilledAmountStorage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"orderUids\",\"type\":\"bytes[]\"}],\"name\":\"freePreSignatureStorage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"getStorageAt\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"orderUid\",\"type\":\"bytes\"}],\"name\":\"invalidateOrder\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"preSignature\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"orderUid\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"signed\",\"type\":\"bool\"}],\"name\":\"setPreSignature\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIERC20[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"clearingPrices\",\"type\":\"uint256[]\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"sellTokenIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"buyTokenIndex\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sellAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"buyAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"validTo\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"appData\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"flags\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"executedAmount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structGPv2Trade.Data[]\",\"name\":\"trades\",\"type\":\"tuple[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structGPv2Interaction.Data[][3]\",\"name\":\"interactions\",\"type\":\"tuple[][3]\"}],\"name\":\"settle\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"targetContract\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"calldataPayload\",\"type\":\"bytes\"}],\"name\":\"simulateDelegatecall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"response\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"targetContract\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"calldataPayload\",\"type\":\"bytes\"}],\"name\":\"simulateDelegatecallInternal\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"response\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"assetInIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"assetOutIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"internalType\":\"structIVault.BatchSwapStep[]\",\"name\":\"swaps\",\"type\":\"tuple[]\"},{\"internalType\":\"contractIERC20[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"sellTokenIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"buyTokenIndex\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sellAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"buyAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"validTo\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"appData\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"flags\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"executedAmount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structGPv2Trade.Data\",\"name\":\"trade\",\"type\":\"tuple\"}],\"name\":\"swap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vault\",\"outputs\":[{\"internalType\":\"contractIVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vaultRelayer\",\"outputs\":[{\"internalType\":\"contractGPv2VaultRelayer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}

SettlementMetaData contains all meta data concerning the Settlement contract.

Functions

This section is empty.

Types

type GPv2InteractionData

type GPv2InteractionData struct {
	Target   common.Address
	Value    *big.Int
	CallData []byte
}

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

type GPv2TradeData

type GPv2TradeData struct {
	SellTokenIndex *big.Int
	BuyTokenIndex  *big.Int
	Receiver       common.Address
	SellAmount     *big.Int
	BuyAmount      *big.Int
	ValidTo        uint32
	AppData        [32]byte
	FeeAmount      *big.Int
	Flags          *big.Int
	ExecutedAmount *big.Int
	Signature      []byte
}

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

type IVaultBatchSwapStep

type IVaultBatchSwapStep struct {
	PoolId        [32]byte
	AssetInIndex  *big.Int
	AssetOutIndex *big.Int
	Amount        *big.Int
	UserData      []byte
}

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

type Settlement

type Settlement struct {
	SettlementCaller     // Read-only binding to the contract
	SettlementTransactor // Write-only binding to the contract
	SettlementFilterer   // Log filterer for contract events
}

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

func NewSettlement

func NewSettlement(address common.Address, backend bind.ContractBackend) (*Settlement, error)

NewSettlement creates a new instance of Settlement, bound to a specific deployed contract.

type SettlementCaller

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

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

func NewSettlementCaller

func NewSettlementCaller(address common.Address, caller bind.ContractCaller) (*SettlementCaller, error)

NewSettlementCaller creates a new read-only instance of Settlement, bound to a specific deployed contract.

func (*SettlementCaller) Authenticator

func (_Settlement *SettlementCaller) Authenticator(opts *bind.CallOpts) (common.Address, error)

Authenticator is a free data retrieval call binding the contract method 0x2335c76b.

Solidity: function authenticator() view returns(address)

func (*SettlementCaller) DomainSeparator

func (_Settlement *SettlementCaller) DomainSeparator(opts *bind.CallOpts) ([32]byte, error)

DomainSeparator is a free data retrieval call binding the contract method 0xf698da25.

Solidity: function domainSeparator() view returns(bytes32)

func (*SettlementCaller) FilledAmount

func (_Settlement *SettlementCaller) FilledAmount(opts *bind.CallOpts, arg0 []byte) (*big.Int, error)

FilledAmount is a free data retrieval call binding the contract method 0x2479fb6e.

Solidity: function filledAmount(bytes ) view returns(uint256)

func (*SettlementCaller) GetStorageAt

func (_Settlement *SettlementCaller) GetStorageAt(opts *bind.CallOpts, offset *big.Int, length *big.Int) ([]byte, error)

GetStorageAt is a free data retrieval call binding the contract method 0x5624b25b.

Solidity: function getStorageAt(uint256 offset, uint256 length) view returns(bytes)

func (*SettlementCaller) PreSignature

func (_Settlement *SettlementCaller) PreSignature(opts *bind.CallOpts, arg0 []byte) (*big.Int, error)

PreSignature is a free data retrieval call binding the contract method 0xd08d33d1.

Solidity: function preSignature(bytes ) view returns(uint256)

func (*SettlementCaller) Vault

func (_Settlement *SettlementCaller) Vault(opts *bind.CallOpts) (common.Address, error)

Vault is a free data retrieval call binding the contract method 0xfbfa77cf.

Solidity: function vault() view returns(address)

func (*SettlementCaller) VaultRelayer

func (_Settlement *SettlementCaller) VaultRelayer(opts *bind.CallOpts) (common.Address, error)

VaultRelayer is a free data retrieval call binding the contract method 0x9b552cc2.

Solidity: function vaultRelayer() view returns(address)

type SettlementCallerRaw

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

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

func (*SettlementCallerRaw) Call

func (_Settlement *SettlementCallerRaw) 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 SettlementCallerSession

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

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

func (*SettlementCallerSession) Authenticator

func (_Settlement *SettlementCallerSession) Authenticator() (common.Address, error)

Authenticator is a free data retrieval call binding the contract method 0x2335c76b.

Solidity: function authenticator() view returns(address)

func (*SettlementCallerSession) DomainSeparator

func (_Settlement *SettlementCallerSession) DomainSeparator() ([32]byte, error)

DomainSeparator is a free data retrieval call binding the contract method 0xf698da25.

Solidity: function domainSeparator() view returns(bytes32)

func (*SettlementCallerSession) FilledAmount

func (_Settlement *SettlementCallerSession) FilledAmount(arg0 []byte) (*big.Int, error)

FilledAmount is a free data retrieval call binding the contract method 0x2479fb6e.

Solidity: function filledAmount(bytes ) view returns(uint256)

func (*SettlementCallerSession) GetStorageAt

func (_Settlement *SettlementCallerSession) GetStorageAt(offset *big.Int, length *big.Int) ([]byte, error)

GetStorageAt is a free data retrieval call binding the contract method 0x5624b25b.

Solidity: function getStorageAt(uint256 offset, uint256 length) view returns(bytes)

func (*SettlementCallerSession) PreSignature

func (_Settlement *SettlementCallerSession) PreSignature(arg0 []byte) (*big.Int, error)

PreSignature is a free data retrieval call binding the contract method 0xd08d33d1.

Solidity: function preSignature(bytes ) view returns(uint256)

func (*SettlementCallerSession) Vault

func (_Settlement *SettlementCallerSession) Vault() (common.Address, error)

Vault is a free data retrieval call binding the contract method 0xfbfa77cf.

Solidity: function vault() view returns(address)

func (*SettlementCallerSession) VaultRelayer

func (_Settlement *SettlementCallerSession) VaultRelayer() (common.Address, error)

VaultRelayer is a free data retrieval call binding the contract method 0x9b552cc2.

Solidity: function vaultRelayer() view returns(address)

type SettlementFilterer

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

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

func NewSettlementFilterer

func NewSettlementFilterer(address common.Address, filterer bind.ContractFilterer) (*SettlementFilterer, error)

NewSettlementFilterer creates a new log filterer instance of Settlement, bound to a specific deployed contract.

func (*SettlementFilterer) FilterInteraction

func (_Settlement *SettlementFilterer) FilterInteraction(opts *bind.FilterOpts, target []common.Address) (*SettlementInteractionIterator, error)

FilterInteraction is a free log retrieval operation binding the contract event 0xed99827efb37016f2275f98c4bcf71c7551c75d59e9b450f79fa32e60be672c2.

Solidity: event Interaction(address indexed target, uint256 value, bytes4 selector)

func (*SettlementFilterer) FilterOrderInvalidated

func (_Settlement *SettlementFilterer) FilterOrderInvalidated(opts *bind.FilterOpts, owner []common.Address) (*SettlementOrderInvalidatedIterator, error)

FilterOrderInvalidated is a free log retrieval operation binding the contract event 0x875b6cb035bbd4ac6500fabc6d1e4ca5bdc58a3e2b424ccb5c24cdbebeb009a9.

Solidity: event OrderInvalidated(address indexed owner, bytes orderUid)

func (*SettlementFilterer) FilterPreSignature

func (_Settlement *SettlementFilterer) FilterPreSignature(opts *bind.FilterOpts, owner []common.Address) (*SettlementPreSignatureIterator, error)

FilterPreSignature is a free log retrieval operation binding the contract event 0x01bf7c8b0ca55deecbea89d7e58295b7ffbf685fd0d96801034ba8c6ffe1c68d.

Solidity: event PreSignature(address indexed owner, bytes orderUid, bool signed)

func (*SettlementFilterer) FilterSettlement

func (_Settlement *SettlementFilterer) FilterSettlement(opts *bind.FilterOpts, solver []common.Address) (*SettlementSettlementIterator, error)

FilterSettlement is a free log retrieval operation binding the contract event 0x40338ce1a7c49204f0099533b1e9a7ee0a3d261f84974ab7af36105b8c4e9db4.

Solidity: event Settlement(address indexed solver)

func (*SettlementFilterer) FilterTrade

func (_Settlement *SettlementFilterer) FilterTrade(opts *bind.FilterOpts, owner []common.Address) (*SettlementTradeIterator, error)

FilterTrade is a free log retrieval operation binding the contract event 0xa07a543ab8a018198e99ca0184c93fe9050a79400a0a723441f84de1d972cc17.

Solidity: event Trade(address indexed owner, address sellToken, address buyToken, uint256 sellAmount, uint256 buyAmount, uint256 feeAmount, bytes orderUid)

func (*SettlementFilterer) ParseInteraction

func (_Settlement *SettlementFilterer) ParseInteraction(log types.Log) (*SettlementInteraction, error)

ParseInteraction is a log parse operation binding the contract event 0xed99827efb37016f2275f98c4bcf71c7551c75d59e9b450f79fa32e60be672c2.

Solidity: event Interaction(address indexed target, uint256 value, bytes4 selector)

func (*SettlementFilterer) ParseOrderInvalidated

func (_Settlement *SettlementFilterer) ParseOrderInvalidated(log types.Log) (*SettlementOrderInvalidated, error)

ParseOrderInvalidated is a log parse operation binding the contract event 0x875b6cb035bbd4ac6500fabc6d1e4ca5bdc58a3e2b424ccb5c24cdbebeb009a9.

Solidity: event OrderInvalidated(address indexed owner, bytes orderUid)

func (*SettlementFilterer) ParsePreSignature

func (_Settlement *SettlementFilterer) ParsePreSignature(log types.Log) (*SettlementPreSignature, error)

ParsePreSignature is a log parse operation binding the contract event 0x01bf7c8b0ca55deecbea89d7e58295b7ffbf685fd0d96801034ba8c6ffe1c68d.

Solidity: event PreSignature(address indexed owner, bytes orderUid, bool signed)

func (*SettlementFilterer) ParseSettlement

func (_Settlement *SettlementFilterer) ParseSettlement(log types.Log) (*SettlementSettlement, error)

ParseSettlement is a log parse operation binding the contract event 0x40338ce1a7c49204f0099533b1e9a7ee0a3d261f84974ab7af36105b8c4e9db4.

Solidity: event Settlement(address indexed solver)

func (*SettlementFilterer) ParseTrade

func (_Settlement *SettlementFilterer) ParseTrade(log types.Log) (*SettlementTrade, error)

ParseTrade is a log parse operation binding the contract event 0xa07a543ab8a018198e99ca0184c93fe9050a79400a0a723441f84de1d972cc17.

Solidity: event Trade(address indexed owner, address sellToken, address buyToken, uint256 sellAmount, uint256 buyAmount, uint256 feeAmount, bytes orderUid)

func (*SettlementFilterer) WatchInteraction

func (_Settlement *SettlementFilterer) WatchInteraction(opts *bind.WatchOpts, sink chan<- *SettlementInteraction, target []common.Address) (event.Subscription, error)

WatchInteraction is a free log subscription operation binding the contract event 0xed99827efb37016f2275f98c4bcf71c7551c75d59e9b450f79fa32e60be672c2.

Solidity: event Interaction(address indexed target, uint256 value, bytes4 selector)

func (*SettlementFilterer) WatchOrderInvalidated

func (_Settlement *SettlementFilterer) WatchOrderInvalidated(opts *bind.WatchOpts, sink chan<- *SettlementOrderInvalidated, owner []common.Address) (event.Subscription, error)

WatchOrderInvalidated is a free log subscription operation binding the contract event 0x875b6cb035bbd4ac6500fabc6d1e4ca5bdc58a3e2b424ccb5c24cdbebeb009a9.

Solidity: event OrderInvalidated(address indexed owner, bytes orderUid)

func (*SettlementFilterer) WatchPreSignature

func (_Settlement *SettlementFilterer) WatchPreSignature(opts *bind.WatchOpts, sink chan<- *SettlementPreSignature, owner []common.Address) (event.Subscription, error)

WatchPreSignature is a free log subscription operation binding the contract event 0x01bf7c8b0ca55deecbea89d7e58295b7ffbf685fd0d96801034ba8c6ffe1c68d.

Solidity: event PreSignature(address indexed owner, bytes orderUid, bool signed)

func (*SettlementFilterer) WatchSettlement

func (_Settlement *SettlementFilterer) WatchSettlement(opts *bind.WatchOpts, sink chan<- *SettlementSettlement, solver []common.Address) (event.Subscription, error)

WatchSettlement is a free log subscription operation binding the contract event 0x40338ce1a7c49204f0099533b1e9a7ee0a3d261f84974ab7af36105b8c4e9db4.

Solidity: event Settlement(address indexed solver)

func (*SettlementFilterer) WatchTrade

func (_Settlement *SettlementFilterer) WatchTrade(opts *bind.WatchOpts, sink chan<- *SettlementTrade, owner []common.Address) (event.Subscription, error)

WatchTrade is a free log subscription operation binding the contract event 0xa07a543ab8a018198e99ca0184c93fe9050a79400a0a723441f84de1d972cc17.

Solidity: event Trade(address indexed owner, address sellToken, address buyToken, uint256 sellAmount, uint256 buyAmount, uint256 feeAmount, bytes orderUid)

type SettlementInteraction

type SettlementInteraction struct {
	Target   common.Address
	Value    *big.Int
	Selector [4]byte
	Raw      types.Log // Blockchain specific contextual infos
}

SettlementInteraction represents a Interaction event raised by the Settlement contract.

type SettlementInteractionIterator

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

SettlementInteractionIterator is returned from FilterInteraction and is used to iterate over the raw logs and unpacked data for Interaction events raised by the Settlement contract.

func (*SettlementInteractionIterator) Close

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

func (*SettlementInteractionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SettlementInteractionIterator) 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 SettlementOrderInvalidated

type SettlementOrderInvalidated struct {
	Owner    common.Address
	OrderUid []byte
	Raw      types.Log // Blockchain specific contextual infos
}

SettlementOrderInvalidated represents a OrderInvalidated event raised by the Settlement contract.

type SettlementOrderInvalidatedIterator

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

SettlementOrderInvalidatedIterator is returned from FilterOrderInvalidated and is used to iterate over the raw logs and unpacked data for OrderInvalidated events raised by the Settlement contract.

func (*SettlementOrderInvalidatedIterator) Close

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

func (*SettlementOrderInvalidatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SettlementOrderInvalidatedIterator) 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 SettlementPreSignature

type SettlementPreSignature struct {
	Owner    common.Address
	OrderUid []byte
	Signed   bool
	Raw      types.Log // Blockchain specific contextual infos
}

SettlementPreSignature represents a PreSignature event raised by the Settlement contract.

type SettlementPreSignatureIterator

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

SettlementPreSignatureIterator is returned from FilterPreSignature and is used to iterate over the raw logs and unpacked data for PreSignature events raised by the Settlement contract.

func (*SettlementPreSignatureIterator) Close

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

func (*SettlementPreSignatureIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SettlementPreSignatureIterator) 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 SettlementRaw

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

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

func (*SettlementRaw) Call

func (_Settlement *SettlementRaw) 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 (*SettlementRaw) Transact

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

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

func (*SettlementRaw) Transfer

func (_Settlement *SettlementRaw) 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 SettlementSession

type SettlementSession struct {
	Contract     *Settlement       // 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
}

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

func (*SettlementSession) Authenticator

func (_Settlement *SettlementSession) Authenticator() (common.Address, error)

Authenticator is a free data retrieval call binding the contract method 0x2335c76b.

Solidity: function authenticator() view returns(address)

func (*SettlementSession) DomainSeparator

func (_Settlement *SettlementSession) DomainSeparator() ([32]byte, error)

DomainSeparator is a free data retrieval call binding the contract method 0xf698da25.

Solidity: function domainSeparator() view returns(bytes32)

func (*SettlementSession) FilledAmount

func (_Settlement *SettlementSession) FilledAmount(arg0 []byte) (*big.Int, error)

FilledAmount is a free data retrieval call binding the contract method 0x2479fb6e.

Solidity: function filledAmount(bytes ) view returns(uint256)

func (*SettlementSession) FreeFilledAmountStorage

func (_Settlement *SettlementSession) FreeFilledAmountStorage(orderUids [][]byte) (*types.Transaction, error)

FreeFilledAmountStorage is a paid mutator transaction binding the contract method 0xed9f35ce.

Solidity: function freeFilledAmountStorage(bytes[] orderUids) returns()

func (*SettlementSession) FreePreSignatureStorage

func (_Settlement *SettlementSession) FreePreSignatureStorage(orderUids [][]byte) (*types.Transaction, error)

FreePreSignatureStorage is a paid mutator transaction binding the contract method 0xa2a7d51b.

Solidity: function freePreSignatureStorage(bytes[] orderUids) returns()

func (*SettlementSession) GetStorageAt

func (_Settlement *SettlementSession) GetStorageAt(offset *big.Int, length *big.Int) ([]byte, error)

GetStorageAt is a free data retrieval call binding the contract method 0x5624b25b.

Solidity: function getStorageAt(uint256 offset, uint256 length) view returns(bytes)

func (*SettlementSession) InvalidateOrder

func (_Settlement *SettlementSession) InvalidateOrder(orderUid []byte) (*types.Transaction, error)

InvalidateOrder is a paid mutator transaction binding the contract method 0x15337bc0.

Solidity: function invalidateOrder(bytes orderUid) returns()

func (*SettlementSession) PreSignature

func (_Settlement *SettlementSession) PreSignature(arg0 []byte) (*big.Int, error)

PreSignature is a free data retrieval call binding the contract method 0xd08d33d1.

Solidity: function preSignature(bytes ) view returns(uint256)

func (*SettlementSession) Receive

func (_Settlement *SettlementSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*SettlementSession) SetPreSignature

func (_Settlement *SettlementSession) SetPreSignature(orderUid []byte, signed bool) (*types.Transaction, error)

SetPreSignature is a paid mutator transaction binding the contract method 0xec6cb13f.

Solidity: function setPreSignature(bytes orderUid, bool signed) returns()

func (*SettlementSession) Settle

func (_Settlement *SettlementSession) Settle(tokens []common.Address, clearingPrices []*big.Int, trades []GPv2TradeData, interactions [3][]GPv2InteractionData) (*types.Transaction, error)

Settle is a paid mutator transaction binding the contract method 0x13d79a0b.

Solidity: function settle(address[] tokens, uint256[] clearingPrices, (uint256,uint256,address,uint256,uint256,uint32,bytes32,uint256,uint256,uint256,bytes)[] trades, (address,uint256,bytes)[][3] interactions) returns()

func (*SettlementSession) SimulateDelegatecall

func (_Settlement *SettlementSession) SimulateDelegatecall(targetContract common.Address, calldataPayload []byte) (*types.Transaction, error)

SimulateDelegatecall is a paid mutator transaction binding the contract method 0xf84436bd.

Solidity: function simulateDelegatecall(address targetContract, bytes calldataPayload) returns(bytes response)

func (*SettlementSession) SimulateDelegatecallInternal

func (_Settlement *SettlementSession) SimulateDelegatecallInternal(targetContract common.Address, calldataPayload []byte) (*types.Transaction, error)

SimulateDelegatecallInternal is a paid mutator transaction binding the contract method 0x43218e19.

Solidity: function simulateDelegatecallInternal(address targetContract, bytes calldataPayload) returns(bytes response)

func (*SettlementSession) Swap

func (_Settlement *SettlementSession) Swap(swaps []IVaultBatchSwapStep, tokens []common.Address, trade GPv2TradeData) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x845a101f.

Solidity: function swap((bytes32,uint256,uint256,uint256,bytes)[] swaps, address[] tokens, (uint256,uint256,address,uint256,uint256,uint32,bytes32,uint256,uint256,uint256,bytes) trade) returns()

func (*SettlementSession) Vault

func (_Settlement *SettlementSession) Vault() (common.Address, error)

Vault is a free data retrieval call binding the contract method 0xfbfa77cf.

Solidity: function vault() view returns(address)

func (*SettlementSession) VaultRelayer

func (_Settlement *SettlementSession) VaultRelayer() (common.Address, error)

VaultRelayer is a free data retrieval call binding the contract method 0x9b552cc2.

Solidity: function vaultRelayer() view returns(address)

type SettlementSettlement

type SettlementSettlement struct {
	Solver common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

SettlementSettlement represents a Settlement event raised by the Settlement contract.

type SettlementSettlementIterator

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

SettlementSettlementIterator is returned from FilterSettlement and is used to iterate over the raw logs and unpacked data for Settlement events raised by the Settlement contract.

func (*SettlementSettlementIterator) Close

func (it *SettlementSettlementIterator) Close() error

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

func (*SettlementSettlementIterator) Error

func (it *SettlementSettlementIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SettlementSettlementIterator) 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 SettlementTrade

type SettlementTrade struct {
	Owner      common.Address
	SellToken  common.Address
	BuyToken   common.Address
	SellAmount *big.Int
	BuyAmount  *big.Int
	FeeAmount  *big.Int
	OrderUid   []byte
	Raw        types.Log // Blockchain specific contextual infos
}

SettlementTrade represents a Trade event raised by the Settlement contract.

type SettlementTradeIterator

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

SettlementTradeIterator is returned from FilterTrade and is used to iterate over the raw logs and unpacked data for Trade events raised by the Settlement contract.

func (*SettlementTradeIterator) Close

func (it *SettlementTradeIterator) Close() error

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

func (*SettlementTradeIterator) Error

func (it *SettlementTradeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SettlementTradeIterator) Next

func (it *SettlementTradeIterator) 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 SettlementTransactor

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

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

func NewSettlementTransactor

func NewSettlementTransactor(address common.Address, transactor bind.ContractTransactor) (*SettlementTransactor, error)

NewSettlementTransactor creates a new write-only instance of Settlement, bound to a specific deployed contract.

func (*SettlementTransactor) FreeFilledAmountStorage

func (_Settlement *SettlementTransactor) FreeFilledAmountStorage(opts *bind.TransactOpts, orderUids [][]byte) (*types.Transaction, error)

FreeFilledAmountStorage is a paid mutator transaction binding the contract method 0xed9f35ce.

Solidity: function freeFilledAmountStorage(bytes[] orderUids) returns()

func (*SettlementTransactor) FreePreSignatureStorage

func (_Settlement *SettlementTransactor) FreePreSignatureStorage(opts *bind.TransactOpts, orderUids [][]byte) (*types.Transaction, error)

FreePreSignatureStorage is a paid mutator transaction binding the contract method 0xa2a7d51b.

Solidity: function freePreSignatureStorage(bytes[] orderUids) returns()

func (*SettlementTransactor) InvalidateOrder

func (_Settlement *SettlementTransactor) InvalidateOrder(opts *bind.TransactOpts, orderUid []byte) (*types.Transaction, error)

InvalidateOrder is a paid mutator transaction binding the contract method 0x15337bc0.

Solidity: function invalidateOrder(bytes orderUid) returns()

func (*SettlementTransactor) Receive

func (_Settlement *SettlementTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*SettlementTransactor) SetPreSignature

func (_Settlement *SettlementTransactor) SetPreSignature(opts *bind.TransactOpts, orderUid []byte, signed bool) (*types.Transaction, error)

SetPreSignature is a paid mutator transaction binding the contract method 0xec6cb13f.

Solidity: function setPreSignature(bytes orderUid, bool signed) returns()

func (*SettlementTransactor) Settle

func (_Settlement *SettlementTransactor) Settle(opts *bind.TransactOpts, tokens []common.Address, clearingPrices []*big.Int, trades []GPv2TradeData, interactions [3][]GPv2InteractionData) (*types.Transaction, error)

Settle is a paid mutator transaction binding the contract method 0x13d79a0b.

Solidity: function settle(address[] tokens, uint256[] clearingPrices, (uint256,uint256,address,uint256,uint256,uint32,bytes32,uint256,uint256,uint256,bytes)[] trades, (address,uint256,bytes)[][3] interactions) returns()

func (*SettlementTransactor) SimulateDelegatecall

func (_Settlement *SettlementTransactor) SimulateDelegatecall(opts *bind.TransactOpts, targetContract common.Address, calldataPayload []byte) (*types.Transaction, error)

SimulateDelegatecall is a paid mutator transaction binding the contract method 0xf84436bd.

Solidity: function simulateDelegatecall(address targetContract, bytes calldataPayload) returns(bytes response)

func (*SettlementTransactor) SimulateDelegatecallInternal

func (_Settlement *SettlementTransactor) SimulateDelegatecallInternal(opts *bind.TransactOpts, targetContract common.Address, calldataPayload []byte) (*types.Transaction, error)

SimulateDelegatecallInternal is a paid mutator transaction binding the contract method 0x43218e19.

Solidity: function simulateDelegatecallInternal(address targetContract, bytes calldataPayload) returns(bytes response)

func (*SettlementTransactor) Swap

func (_Settlement *SettlementTransactor) Swap(opts *bind.TransactOpts, swaps []IVaultBatchSwapStep, tokens []common.Address, trade GPv2TradeData) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x845a101f.

Solidity: function swap((bytes32,uint256,uint256,uint256,bytes)[] swaps, address[] tokens, (uint256,uint256,address,uint256,uint256,uint32,bytes32,uint256,uint256,uint256,bytes) trade) returns()

type SettlementTransactorRaw

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

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

func (*SettlementTransactorRaw) Transact

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

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

func (*SettlementTransactorRaw) Transfer

func (_Settlement *SettlementTransactorRaw) 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 SettlementTransactorSession

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

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

func (*SettlementTransactorSession) FreeFilledAmountStorage

func (_Settlement *SettlementTransactorSession) FreeFilledAmountStorage(orderUids [][]byte) (*types.Transaction, error)

FreeFilledAmountStorage is a paid mutator transaction binding the contract method 0xed9f35ce.

Solidity: function freeFilledAmountStorage(bytes[] orderUids) returns()

func (*SettlementTransactorSession) FreePreSignatureStorage

func (_Settlement *SettlementTransactorSession) FreePreSignatureStorage(orderUids [][]byte) (*types.Transaction, error)

FreePreSignatureStorage is a paid mutator transaction binding the contract method 0xa2a7d51b.

Solidity: function freePreSignatureStorage(bytes[] orderUids) returns()

func (*SettlementTransactorSession) InvalidateOrder

func (_Settlement *SettlementTransactorSession) InvalidateOrder(orderUid []byte) (*types.Transaction, error)

InvalidateOrder is a paid mutator transaction binding the contract method 0x15337bc0.

Solidity: function invalidateOrder(bytes orderUid) returns()

func (*SettlementTransactorSession) Receive

func (_Settlement *SettlementTransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*SettlementTransactorSession) SetPreSignature

func (_Settlement *SettlementTransactorSession) SetPreSignature(orderUid []byte, signed bool) (*types.Transaction, error)

SetPreSignature is a paid mutator transaction binding the contract method 0xec6cb13f.

Solidity: function setPreSignature(bytes orderUid, bool signed) returns()

func (*SettlementTransactorSession) Settle

func (_Settlement *SettlementTransactorSession) Settle(tokens []common.Address, clearingPrices []*big.Int, trades []GPv2TradeData, interactions [3][]GPv2InteractionData) (*types.Transaction, error)

Settle is a paid mutator transaction binding the contract method 0x13d79a0b.

Solidity: function settle(address[] tokens, uint256[] clearingPrices, (uint256,uint256,address,uint256,uint256,uint32,bytes32,uint256,uint256,uint256,bytes)[] trades, (address,uint256,bytes)[][3] interactions) returns()

func (*SettlementTransactorSession) SimulateDelegatecall

func (_Settlement *SettlementTransactorSession) SimulateDelegatecall(targetContract common.Address, calldataPayload []byte) (*types.Transaction, error)

SimulateDelegatecall is a paid mutator transaction binding the contract method 0xf84436bd.

Solidity: function simulateDelegatecall(address targetContract, bytes calldataPayload) returns(bytes response)

func (*SettlementTransactorSession) SimulateDelegatecallInternal

func (_Settlement *SettlementTransactorSession) SimulateDelegatecallInternal(targetContract common.Address, calldataPayload []byte) (*types.Transaction, error)

SimulateDelegatecallInternal is a paid mutator transaction binding the contract method 0x43218e19.

Solidity: function simulateDelegatecallInternal(address targetContract, bytes calldataPayload) returns(bytes response)

func (*SettlementTransactorSession) Swap

func (_Settlement *SettlementTransactorSession) Swap(swaps []IVaultBatchSwapStep, tokens []common.Address, trade GPv2TradeData) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x845a101f.

Solidity: function swap((bytes32,uint256,uint256,uint256,bytes)[] swaps, address[] tokens, (uint256,uint256,address,uint256,uint256,uint32,bytes32,uint256,uint256,uint256,bytes) trade) returns()

Jump to

Keyboard shortcuts

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