contracts

package
v0.0.0-...-29dbdae Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const FairswapABI = "" /* 3889-byte string literal not displayed */

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

View Source
const FairswapBin = `` /* 10592-byte string literal not displayed */

FairswapBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fairswap

type Fairswap struct {
	FairswapCaller     // Read-only binding to the contract
	FairswapTransactor // Write-only binding to the contract
	FairswapFilterer   // Log filterer for contract events
}

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

func DeployFairswap

func DeployFairswap(auth *bind.TransactOpts, backend bind.ContractBackend, _price *big.Int, _commitmentOfKey [32]byte, _EncInputRoot [32]byte, _receiverEntryKey [32]byte, circuitGatesOperationArray []*big.Int) (common.Address, *types.Transaction, *Fairswap, error)

DeployFairswap deploys a new Ethereum contract, binding an instance of Fairswap to it.

func NewFairswap

func NewFairswap(address common.Address, backend bind.ContractBackend) (*Fairswap, error)

NewFairswap creates a new instance of Fairswap, bound to a specific deployed contract.

type FairswapCaller

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

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

func NewFairswapCaller

func NewFairswapCaller(address common.Address, caller bind.ContractCaller) (*FairswapCaller, error)

NewFairswapCaller creates a new read-only instance of Fairswap, bound to a specific deployed contract.

func (*FairswapCaller) CircuitGatesOperation

func (_Fairswap *FairswapCaller) CircuitGatesOperation(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

CircuitGatesOperation is a free data retrieval call binding the contract method 0x0b90457d.

Solidity: function circuitGatesOperation(uint256 ) constant returns(uint256)

func (*FairswapCaller) CommitmentOfKey

func (_Fairswap *FairswapCaller) CommitmentOfKey(opts *bind.CallOpts) ([32]byte, error)

CommitmentOfKey is a free data retrieval call binding the contract method 0xca641f86.

Solidity: function commitmentOfKey() constant returns(bytes32)

func (*FairswapCaller) EncInputRoot

func (_Fairswap *FairswapCaller) EncInputRoot(opts *bind.CallOpts) ([32]byte, error)

EncInputRoot is a free data retrieval call binding the contract method 0x062a1398.

Solidity: function EncInputRoot() constant returns(bytes32)

func (*FairswapCaller) Key

func (_Fairswap *FairswapCaller) Key(opts *bind.CallOpts) ([32]byte, error)

Key is a free data retrieval call binding the contract method 0x3943380c.

Solidity: function key() constant returns(bytes32)

func (*FairswapCaller) Mverify

func (_Fairswap *FairswapCaller) Mverify(opts *bind.CallOpts, complaint [][32]byte, _index *big.Int) (bool, error)

Mverify is a free data retrieval call binding the contract method 0xa2630372.

Solidity: function Mverify(bytes32[] complaint, uint256 _index) constant returns(bool)

func (*FairswapCaller) Now

func (_Fairswap *FairswapCaller) Now(opts *bind.CallOpts) (*big.Int, error)

Now is a free data retrieval call binding the contract method 0x44d4fd19.

Solidity: function Now() constant returns(uint256)

func (*FairswapCaller) Phase

func (_Fairswap *FairswapCaller) Phase(opts *bind.CallOpts) (uint8, error)

Phase is a free data retrieval call binding the contract method 0xb1c9fe6e.

Solidity: function phase() constant returns(uint8)

func (*FairswapCaller) Price

func (_Fairswap *FairswapCaller) Price(opts *bind.CallOpts) (*big.Int, error)

Price is a free data retrieval call binding the contract method 0xa035b1fe.

Solidity: function price() constant returns(uint256)

func (*FairswapCaller) ReceiverAddress

func (_Fairswap *FairswapCaller) ReceiverAddress(opts *bind.CallOpts) (common.Address, error)

ReceiverAddress is a free data retrieval call binding the contract method 0x16fed3e2.

Solidity: function receiverAddress() constant returns(address)

func (*FairswapCaller) ReceiverEntryKey

func (_Fairswap *FairswapCaller) ReceiverEntryKey(opts *bind.CallOpts) ([32]byte, error)

ReceiverEntryKey is a free data retrieval call binding the contract method 0xeaa94830.

Solidity: function receiverEntryKey() constant returns(bytes32)

func (*FairswapCaller) SenderAddress

func (_Fairswap *FairswapCaller) SenderAddress(opts *bind.CallOpts) (common.Address, error)

SenderAddress is a free data retrieval call binding the contract method 0x4fc84791.

Solidity: function senderAddress() constant returns(address)

func (*FairswapCaller) Timeout

func (_Fairswap *FairswapCaller) Timeout(opts *bind.CallOpts) (*big.Int, error)

Timeout is a free data retrieval call binding the contract method 0x70dea79a.

Solidity: function timeout() constant returns(uint256)

type FairswapCallerRaw

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

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

func (*FairswapCallerRaw) Call

func (_Fairswap *FairswapCallerRaw) 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 FairswapCallerSession

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

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

func (*FairswapCallerSession) CircuitGatesOperation

func (_Fairswap *FairswapCallerSession) CircuitGatesOperation(arg0 *big.Int) (*big.Int, error)

CircuitGatesOperation is a free data retrieval call binding the contract method 0x0b90457d.

Solidity: function circuitGatesOperation(uint256 ) constant returns(uint256)

func (*FairswapCallerSession) CommitmentOfKey

func (_Fairswap *FairswapCallerSession) CommitmentOfKey() ([32]byte, error)

CommitmentOfKey is a free data retrieval call binding the contract method 0xca641f86.

Solidity: function commitmentOfKey() constant returns(bytes32)

func (*FairswapCallerSession) EncInputRoot

func (_Fairswap *FairswapCallerSession) EncInputRoot() ([32]byte, error)

EncInputRoot is a free data retrieval call binding the contract method 0x062a1398.

Solidity: function EncInputRoot() constant returns(bytes32)

func (*FairswapCallerSession) Key

func (_Fairswap *FairswapCallerSession) Key() ([32]byte, error)

Key is a free data retrieval call binding the contract method 0x3943380c.

Solidity: function key() constant returns(bytes32)

func (*FairswapCallerSession) Mverify

func (_Fairswap *FairswapCallerSession) Mverify(complaint [][32]byte, _index *big.Int) (bool, error)

Mverify is a free data retrieval call binding the contract method 0xa2630372.

Solidity: function Mverify(bytes32[] complaint, uint256 _index) constant returns(bool)

func (*FairswapCallerSession) Now

func (_Fairswap *FairswapCallerSession) Now() (*big.Int, error)

Now is a free data retrieval call binding the contract method 0x44d4fd19.

Solidity: function Now() constant returns(uint256)

func (*FairswapCallerSession) Phase

func (_Fairswap *FairswapCallerSession) Phase() (uint8, error)

Phase is a free data retrieval call binding the contract method 0xb1c9fe6e.

Solidity: function phase() constant returns(uint8)

func (*FairswapCallerSession) Price

func (_Fairswap *FairswapCallerSession) Price() (*big.Int, error)

Price is a free data retrieval call binding the contract method 0xa035b1fe.

Solidity: function price() constant returns(uint256)

func (*FairswapCallerSession) ReceiverAddress

func (_Fairswap *FairswapCallerSession) ReceiverAddress() (common.Address, error)

ReceiverAddress is a free data retrieval call binding the contract method 0x16fed3e2.

Solidity: function receiverAddress() constant returns(address)

func (*FairswapCallerSession) ReceiverEntryKey

func (_Fairswap *FairswapCallerSession) ReceiverEntryKey() ([32]byte, error)

ReceiverEntryKey is a free data retrieval call binding the contract method 0xeaa94830.

Solidity: function receiverEntryKey() constant returns(bytes32)

func (*FairswapCallerSession) SenderAddress

func (_Fairswap *FairswapCallerSession) SenderAddress() (common.Address, error)

SenderAddress is a free data retrieval call binding the contract method 0x4fc84791.

Solidity: function senderAddress() constant returns(address)

func (*FairswapCallerSession) Timeout

func (_Fairswap *FairswapCallerSession) Timeout() (*big.Int, error)

Timeout is a free data retrieval call binding the contract method 0x70dea79a.

Solidity: function timeout() constant returns(uint256)

type FairswapFilterer

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

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

func NewFairswapFilterer

func NewFairswapFilterer(address common.Address, filterer bind.ContractFilterer) (*FairswapFilterer, error)

NewFairswapFilterer creates a new log filterer instance of Fairswap, bound to a specific deployed contract.

type FairswapRaw

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

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

func (*FairswapRaw) Call

func (_Fairswap *FairswapRaw) 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 (*FairswapRaw) Transact

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

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

func (*FairswapRaw) Transfer

func (_Fairswap *FairswapRaw) 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 FairswapSession

type FairswapSession struct {
	Contract     *Fairswap         // 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
}

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

func (*FairswapSession) Accept

func (_Fairswap *FairswapSession) Accept() (*types.Transaction, error)

Accept is a paid mutator transaction binding the contract method 0x2852b71c.

Solidity: function accept() returns()

func (*FairswapSession) CircuitGatesOperation

func (_Fairswap *FairswapSession) CircuitGatesOperation(arg0 *big.Int) (*big.Int, error)

CircuitGatesOperation is a free data retrieval call binding the contract method 0x0b90457d.

Solidity: function circuitGatesOperation(uint256 ) constant returns(uint256)

func (*FairswapSession) CommitmentOfKey

func (_Fairswap *FairswapSession) CommitmentOfKey() ([32]byte, error)

CommitmentOfKey is a free data retrieval call binding the contract method 0xca641f86.

Solidity: function commitmentOfKey() constant returns(bytes32)

func (*FairswapSession) Complain

func (_Fairswap *FairswapSession) Complain(complaint [][][32]byte, indices []*big.Int) (*types.Transaction, error)

Complain is a paid mutator transaction binding the contract method 0xde30b907.

Solidity: function complain(bytes32[][] complaint, uint256[] indices) returns(bool)

func (*FairswapSession) EncInputRoot

func (_Fairswap *FairswapSession) EncInputRoot() ([32]byte, error)

EncInputRoot is a free data retrieval call binding the contract method 0x062a1398.

Solidity: function EncInputRoot() constant returns(bytes32)

func (*FairswapSession) InitializeRecieverAddress

func (_Fairswap *FairswapSession) InitializeRecieverAddress(recEntryKey [32]byte) (*types.Transaction, error)

InitializeRecieverAddress is a paid mutator transaction binding the contract method 0x9ab164e5.

Solidity: function initializeRecieverAddress(bytes32 recEntryKey) returns()

func (*FairswapSession) Key

func (_Fairswap *FairswapSession) Key() ([32]byte, error)

Key is a free data retrieval call binding the contract method 0x3943380c.

Solidity: function key() constant returns(bytes32)

func (*FairswapSession) Mverify

func (_Fairswap *FairswapSession) Mverify(complaint [][32]byte, _index *big.Int) (bool, error)

Mverify is a free data retrieval call binding the contract method 0xa2630372.

Solidity: function Mverify(bytes32[] complaint, uint256 _index) constant returns(bool)

func (*FairswapSession) NextStage

func (_Fairswap *FairswapSession) NextStage() (*types.Transaction, error)

NextStage is a paid mutator transaction binding the contract method 0xee3743ab.

Solidity: function nextStage() returns()

func (*FairswapSession) Now

func (_Fairswap *FairswapSession) Now() (*big.Int, error)

Now is a free data retrieval call binding the contract method 0x44d4fd19.

Solidity: function Now() constant returns(uint256)

func (*FairswapSession) Phase

func (_Fairswap *FairswapSession) Phase() (uint8, error)

Phase is a free data retrieval call binding the contract method 0xb1c9fe6e.

Solidity: function phase() constant returns(uint8)

func (*FairswapSession) Price

func (_Fairswap *FairswapSession) Price() (*big.Int, error)

Price is a free data retrieval call binding the contract method 0xa035b1fe.

Solidity: function price() constant returns(uint256)

func (*FairswapSession) ReceiverAddress

func (_Fairswap *FairswapSession) ReceiverAddress() (common.Address, error)

ReceiverAddress is a free data retrieval call binding the contract method 0x16fed3e2.

Solidity: function receiverAddress() constant returns(address)

func (*FairswapSession) ReceiverEntryKey

func (_Fairswap *FairswapSession) ReceiverEntryKey() ([32]byte, error)

ReceiverEntryKey is a free data retrieval call binding the contract method 0xeaa94830.

Solidity: function receiverEntryKey() constant returns(bytes32)

func (*FairswapSession) ReceiverGetEther

func (_Fairswap *FairswapSession) ReceiverGetEther() (*types.Transaction, error)

ReceiverGetEther is a paid mutator transaction binding the contract method 0x3e37aeb6.

Solidity: function receiverGetEther() returns()

func (*FairswapSession) RevealKey

func (_Fairswap *FairswapSession) RevealKey(_key [32]byte) (*types.Transaction, error)

RevealKey is a paid mutator transaction binding the contract method 0xd6547236.

Solidity: function revealKey(bytes32 _key) returns()

func (*FairswapSession) SenderAddress

func (_Fairswap *FairswapSession) SenderAddress() (common.Address, error)

SenderAddress is a free data retrieval call binding the contract method 0x4fc84791.

Solidity: function senderAddress() constant returns(address)

func (*FairswapSession) SenderGetEther

func (_Fairswap *FairswapSession) SenderGetEther() (*types.Transaction, error)

SenderGetEther is a paid mutator transaction binding the contract method 0xf6fa345f.

Solidity: function senderGetEther() returns()

func (*FairswapSession) Timeout

func (_Fairswap *FairswapSession) Timeout() (*big.Int, error)

Timeout is a free data retrieval call binding the contract method 0x70dea79a.

Solidity: function timeout() constant returns(uint256)

type FairswapTransactor

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

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

func NewFairswapTransactor

func NewFairswapTransactor(address common.Address, transactor bind.ContractTransactor) (*FairswapTransactor, error)

NewFairswapTransactor creates a new write-only instance of Fairswap, bound to a specific deployed contract.

func (*FairswapTransactor) Accept

func (_Fairswap *FairswapTransactor) Accept(opts *bind.TransactOpts) (*types.Transaction, error)

Accept is a paid mutator transaction binding the contract method 0x2852b71c.

Solidity: function accept() returns()

func (*FairswapTransactor) Complain

func (_Fairswap *FairswapTransactor) Complain(opts *bind.TransactOpts, complaint [][][32]byte, indices []*big.Int) (*types.Transaction, error)

Complain is a paid mutator transaction binding the contract method 0xde30b907.

Solidity: function complain(bytes32[][] complaint, uint256[] indices) returns(bool)

func (*FairswapTransactor) InitializeRecieverAddress

func (_Fairswap *FairswapTransactor) InitializeRecieverAddress(opts *bind.TransactOpts, recEntryKey [32]byte) (*types.Transaction, error)

InitializeRecieverAddress is a paid mutator transaction binding the contract method 0x9ab164e5.

Solidity: function initializeRecieverAddress(bytes32 recEntryKey) returns()

func (*FairswapTransactor) NextStage

func (_Fairswap *FairswapTransactor) NextStage(opts *bind.TransactOpts) (*types.Transaction, error)

NextStage is a paid mutator transaction binding the contract method 0xee3743ab.

Solidity: function nextStage() returns()

func (*FairswapTransactor) ReceiverGetEther

func (_Fairswap *FairswapTransactor) ReceiverGetEther(opts *bind.TransactOpts) (*types.Transaction, error)

ReceiverGetEther is a paid mutator transaction binding the contract method 0x3e37aeb6.

Solidity: function receiverGetEther() returns()

func (*FairswapTransactor) RevealKey

func (_Fairswap *FairswapTransactor) RevealKey(opts *bind.TransactOpts, _key [32]byte) (*types.Transaction, error)

RevealKey is a paid mutator transaction binding the contract method 0xd6547236.

Solidity: function revealKey(bytes32 _key) returns()

func (*FairswapTransactor) SenderGetEther

func (_Fairswap *FairswapTransactor) SenderGetEther(opts *bind.TransactOpts) (*types.Transaction, error)

SenderGetEther is a paid mutator transaction binding the contract method 0xf6fa345f.

Solidity: function senderGetEther() returns()

type FairswapTransactorRaw

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

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

func (*FairswapTransactorRaw) Transact

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

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

func (*FairswapTransactorRaw) Transfer

func (_Fairswap *FairswapTransactorRaw) 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 FairswapTransactorSession

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

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

func (*FairswapTransactorSession) Accept

func (_Fairswap *FairswapTransactorSession) Accept() (*types.Transaction, error)

Accept is a paid mutator transaction binding the contract method 0x2852b71c.

Solidity: function accept() returns()

func (*FairswapTransactorSession) Complain

func (_Fairswap *FairswapTransactorSession) Complain(complaint [][][32]byte, indices []*big.Int) (*types.Transaction, error)

Complain is a paid mutator transaction binding the contract method 0xde30b907.

Solidity: function complain(bytes32[][] complaint, uint256[] indices) returns(bool)

func (*FairswapTransactorSession) InitializeRecieverAddress

func (_Fairswap *FairswapTransactorSession) InitializeRecieverAddress(recEntryKey [32]byte) (*types.Transaction, error)

InitializeRecieverAddress is a paid mutator transaction binding the contract method 0x9ab164e5.

Solidity: function initializeRecieverAddress(bytes32 recEntryKey) returns()

func (*FairswapTransactorSession) NextStage

func (_Fairswap *FairswapTransactorSession) NextStage() (*types.Transaction, error)

NextStage is a paid mutator transaction binding the contract method 0xee3743ab.

Solidity: function nextStage() returns()

func (*FairswapTransactorSession) ReceiverGetEther

func (_Fairswap *FairswapTransactorSession) ReceiverGetEther() (*types.Transaction, error)

ReceiverGetEther is a paid mutator transaction binding the contract method 0x3e37aeb6.

Solidity: function receiverGetEther() returns()

func (*FairswapTransactorSession) RevealKey

func (_Fairswap *FairswapTransactorSession) RevealKey(_key [32]byte) (*types.Transaction, error)

RevealKey is a paid mutator transaction binding the contract method 0xd6547236.

Solidity: function revealKey(bytes32 _key) returns()

func (*FairswapTransactorSession) SenderGetEther

func (_Fairswap *FairswapTransactorSession) SenderGetEther() (*types.Transaction, error)

SenderGetEther is a paid mutator transaction binding the contract method 0xf6fa345f.

Solidity: function senderGetEther() returns()

Jump to

Keyboard shortcuts

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