contracts

package
v0.0.0-...-54f9ae5 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AggregatorV3InterfaceABI = AggregatorV3InterfaceMetaData.ABI

AggregatorV3InterfaceABI is the input ABI used to generate the binding from. Deprecated: Use AggregatorV3InterfaceMetaData.ABI instead.

View Source
var AggregatorV3InterfaceMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"description\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint80\",\"name\":\"_roundId\",\"type\":\"uint80\"}],\"name\":\"getRoundData\",\"outputs\":[{\"internalType\":\"uint80\",\"name\":\"roundId\",\"type\":\"uint80\"},{\"internalType\":\"int256\",\"name\":\"answer\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"startedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"updatedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint80\",\"name\":\"answeredInRound\",\"type\":\"uint80\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"latestRoundData\",\"outputs\":[{\"internalType\":\"uint80\",\"name\":\"roundId\",\"type\":\"uint80\"},{\"internalType\":\"int256\",\"name\":\"answer\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"startedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"updatedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint80\",\"name\":\"answeredInRound\",\"type\":\"uint80\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

AggregatorV3InterfaceMetaData contains all meta data concerning the AggregatorV3Interface contract.

View Source
var SplitBillABI = SplitBillMetaData.ABI

SplitBillABI is the input ABI used to generate the binding from. Deprecated: Use SplitBillMetaData.ABI instead.

View Source
var SplitBillBin = SplitBillMetaData.Bin

SplitBillBin is the compiled bytecode used for deploying new contracts. Deprecated: Use SplitBillMetaData.Bin instead.

View Source
var SplitBillMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"payers\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"amountInUSD\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"BillAlreadyPayed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IncorrectAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoPayers\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"WithdrawFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Completed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Payed\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"i_amountPerPayerInUSD\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"i_owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"i_totalAmountInUSD\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pay\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"payer\",\"type\":\"address\"}],\"name\":\"payerStatus\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"hasPayed\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"s_amountPayedInUSD\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
	Bin: "0x60e060405234801561000f575f80fd5b5060405161094838038061094883398101604081905261002e91610102565b81515f0361004f57604051630f95d2d960e11b815260040160405180910390fd5b3360805260a0819052815161006490826101c9565b60c0525f5b82518110156100cb575f60015f858481518110610088576100886101e8565b6020908102919091018101516001600160a01b031682528101919091526040015f20805460ff1916911515919091179055806100c3816101fc565b915050610069565b505050610220565b634e487b7160e01b5f52604160045260245ffd5b80516001600160a01b03811681146100fd575f80fd5b919050565b5f8060408385031215610113575f80fd5b82516001600160401b0380821115610129575f80fd5b818501915085601f83011261013c575f80fd5b8151602082821115610150576101506100d3565b8160051b604051601f19603f83011681018181108682111715610175576101756100d3565b604052928352818301935084810182019289841115610192575f80fd5b948201945b838610156101b7576101a8866100e7565b85529482019493820193610197565b97909101519698969750505050505050565b5f826101e357634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52603260045260245ffd5b5f6001820161021957634e487b7160e01b5f52601160045260245ffd5b5060010190565b60805160a05160c0516106ce61027a5f395f8181609b015281816101ad01528181610221015261037001525f818161013b01528181610258015261031701525f818161016e0152818161028001526103cc01526106ce5ff3fe608060405260043610610073575f3560e01c806387d99d451161004d57806387d99d45146100d8578063b61d276a14610116578063b73f94371461012a578063dba6335f1461015d57610082565b80631b9265b81461008257806328c1d3781461008a5780633ccfd60b146100d057610082565b36610082576100806101a8565b005b6100806101a8565b348015610095575f80fd5b506100bd7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b6100806103c1565b3480156100e3575f80fd5b506101066100f236600461056f565b60016020525f908152604090205460ff1681565b60405190151581526020016100c7565b348015610121575f80fd5b506100bd5f5481565b348015610135575f80fd5b506100bd7f000000000000000000000000000000000000000000000000000000000000000081565b348015610168575f80fd5b506101907f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100c7565b6101da7f0000000000000000000000000000000000000000000000000000000000000000670de0b6b3a76400006105b0565b6101e334610498565b1015610202576040516334b2073960e11b815260040160405180910390fd5b335f9081526001602081905260408220805460ff1916909117905580547f00000000000000000000000000000000000000000000000000000000000000009190819061024f9084906105cd565b90915550505f547f00000000000000000000000000000000000000000000000000000000000000009003610367575f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316476040515f6040518083038185875af1925050503d805f81146102e6576040519150601f19603f3d011682016040523d82523d5f602084013e6102eb565b606091505b50909150508015155f0361031257604051631d42c86760e21b815260040160405180910390fd5b6040517f000000000000000000000000000000000000000000000000000000000000000081527fdfd517ed69f8a0a57d49fe494e4864fac3cfe3585c14c0bfddf39f72463ec3fd9060200160405180910390a1505b604080513381527f000000000000000000000000000000000000000000000000000000000000000060208201527f7be9078cfa949e4b9e15888282e2a07a7fae4958503c18c81db93c5d41352497910160405180910390a1565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461040a576040516330cd747160e01b815260040160405180910390fd5b475f0361042a57604051634a8e036d60e11b815260040160405180910390fd5b6040515f90339047908381818185875af1925050503d805f8114610469576040519150601f19603f3d011682016040523d82523d5f602084013e61046e565b606091505b50909150508015155f0361049557604051631d42c86760e21b815260040160405180910390fd5b50565b5f806104a26104ca565b90505f670de0b6b3a76400006104b885846105b0565b6104c291906105e0565b949350505050565b5f8073694aa1769357215de4fac081bf1f309adc32530690505f816001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610520573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610544919061061d565b505050915050805f03610559575f9250505090565b610568816402540be400610669565b9250505090565b5f6020828403121561057f575f80fd5b81356001600160a01b0381168114610595575f80fd5b9392505050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176105c7576105c761059c565b92915050565b808201808211156105c7576105c761059c565b5f826105fa57634e487b7160e01b5f52601260045260245ffd5b500490565b805169ffffffffffffffffffff81168114610618575f80fd5b919050565b5f805f805f60a08688031215610631575f80fd5b61063a866105ff565b945060208601519350604086015192506060860151915061065d608087016105ff565b90509295509295909350565b8082025f8212600160ff1b841416156106845761068461059c565b81810583148215176105c7576105c761059c56fea264697066735822122042fd2b00c553caa387070b1681c4c5aba59ce5e1aaadf8fdd4955f8989ab64ae64736f6c63430008150033",
}

SplitBillMetaData contains all meta data concerning the SplitBill contract.

Functions

This section is empty.

Types

type AggregatorV3Interface

type AggregatorV3Interface struct {
	AggregatorV3InterfaceCaller     // Read-only binding to the contract
	AggregatorV3InterfaceTransactor // Write-only binding to the contract
	AggregatorV3InterfaceFilterer   // Log filterer for contract events
}

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

func NewAggregatorV3Interface

func NewAggregatorV3Interface(address common.Address, backend bind.ContractBackend) (*AggregatorV3Interface, error)

NewAggregatorV3Interface creates a new instance of AggregatorV3Interface, bound to a specific deployed contract.

type AggregatorV3InterfaceCaller

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

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

func NewAggregatorV3InterfaceCaller

func NewAggregatorV3InterfaceCaller(address common.Address, caller bind.ContractCaller) (*AggregatorV3InterfaceCaller, error)

NewAggregatorV3InterfaceCaller creates a new read-only instance of AggregatorV3Interface, bound to a specific deployed contract.

func (*AggregatorV3InterfaceCaller) Decimals

func (_AggregatorV3Interface *AggregatorV3InterfaceCaller) Decimals(opts *bind.CallOpts) (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*AggregatorV3InterfaceCaller) Description

func (_AggregatorV3Interface *AggregatorV3InterfaceCaller) Description(opts *bind.CallOpts) (string, error)

Description is a free data retrieval call binding the contract method 0x7284e416.

Solidity: function description() view returns(string)

func (*AggregatorV3InterfaceCaller) GetRoundData

func (_AggregatorV3Interface *AggregatorV3InterfaceCaller) GetRoundData(opts *bind.CallOpts, _roundId *big.Int) (struct {
	RoundId         *big.Int
	Answer          *big.Int
	StartedAt       *big.Int
	UpdatedAt       *big.Int
	AnsweredInRound *big.Int
}, error)

GetRoundData is a free data retrieval call binding the contract method 0x9a6fc8f5.

Solidity: function getRoundData(uint80 _roundId) view returns(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

func (*AggregatorV3InterfaceCaller) LatestRoundData

func (_AggregatorV3Interface *AggregatorV3InterfaceCaller) LatestRoundData(opts *bind.CallOpts) (struct {
	RoundId         *big.Int
	Answer          *big.Int
	StartedAt       *big.Int
	UpdatedAt       *big.Int
	AnsweredInRound *big.Int
}, error)

LatestRoundData is a free data retrieval call binding the contract method 0xfeaf968c.

Solidity: function latestRoundData() view returns(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

func (*AggregatorV3InterfaceCaller) Version

func (_AggregatorV3Interface *AggregatorV3InterfaceCaller) Version(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function version() view returns(uint256)

type AggregatorV3InterfaceCallerRaw

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

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

func (*AggregatorV3InterfaceCallerRaw) Call

func (_AggregatorV3Interface *AggregatorV3InterfaceCallerRaw) 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 AggregatorV3InterfaceCallerSession

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

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

func (*AggregatorV3InterfaceCallerSession) Decimals

func (_AggregatorV3Interface *AggregatorV3InterfaceCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*AggregatorV3InterfaceCallerSession) Description

func (_AggregatorV3Interface *AggregatorV3InterfaceCallerSession) Description() (string, error)

Description is a free data retrieval call binding the contract method 0x7284e416.

Solidity: function description() view returns(string)

func (*AggregatorV3InterfaceCallerSession) GetRoundData

func (_AggregatorV3Interface *AggregatorV3InterfaceCallerSession) GetRoundData(_roundId *big.Int) (struct {
	RoundId         *big.Int
	Answer          *big.Int
	StartedAt       *big.Int
	UpdatedAt       *big.Int
	AnsweredInRound *big.Int
}, error)

GetRoundData is a free data retrieval call binding the contract method 0x9a6fc8f5.

Solidity: function getRoundData(uint80 _roundId) view returns(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

func (*AggregatorV3InterfaceCallerSession) LatestRoundData

func (_AggregatorV3Interface *AggregatorV3InterfaceCallerSession) LatestRoundData() (struct {
	RoundId         *big.Int
	Answer          *big.Int
	StartedAt       *big.Int
	UpdatedAt       *big.Int
	AnsweredInRound *big.Int
}, error)

LatestRoundData is a free data retrieval call binding the contract method 0xfeaf968c.

Solidity: function latestRoundData() view returns(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

func (*AggregatorV3InterfaceCallerSession) Version

func (_AggregatorV3Interface *AggregatorV3InterfaceCallerSession) Version() (*big.Int, error)

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

Solidity: function version() view returns(uint256)

type AggregatorV3InterfaceFilterer

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

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

func NewAggregatorV3InterfaceFilterer

func NewAggregatorV3InterfaceFilterer(address common.Address, filterer bind.ContractFilterer) (*AggregatorV3InterfaceFilterer, error)

NewAggregatorV3InterfaceFilterer creates a new log filterer instance of AggregatorV3Interface, bound to a specific deployed contract.

type AggregatorV3InterfaceRaw

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

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

func (*AggregatorV3InterfaceRaw) Call

func (_AggregatorV3Interface *AggregatorV3InterfaceRaw) 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 (*AggregatorV3InterfaceRaw) Transact

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

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

func (*AggregatorV3InterfaceRaw) Transfer

func (_AggregatorV3Interface *AggregatorV3InterfaceRaw) 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 AggregatorV3InterfaceSession

type AggregatorV3InterfaceSession struct {
	Contract     *AggregatorV3Interface // 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
}

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

func (*AggregatorV3InterfaceSession) Decimals

func (_AggregatorV3Interface *AggregatorV3InterfaceSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*AggregatorV3InterfaceSession) Description

func (_AggregatorV3Interface *AggregatorV3InterfaceSession) Description() (string, error)

Description is a free data retrieval call binding the contract method 0x7284e416.

Solidity: function description() view returns(string)

func (*AggregatorV3InterfaceSession) GetRoundData

func (_AggregatorV3Interface *AggregatorV3InterfaceSession) GetRoundData(_roundId *big.Int) (struct {
	RoundId         *big.Int
	Answer          *big.Int
	StartedAt       *big.Int
	UpdatedAt       *big.Int
	AnsweredInRound *big.Int
}, error)

GetRoundData is a free data retrieval call binding the contract method 0x9a6fc8f5.

Solidity: function getRoundData(uint80 _roundId) view returns(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

func (*AggregatorV3InterfaceSession) LatestRoundData

func (_AggregatorV3Interface *AggregatorV3InterfaceSession) LatestRoundData() (struct {
	RoundId         *big.Int
	Answer          *big.Int
	StartedAt       *big.Int
	UpdatedAt       *big.Int
	AnsweredInRound *big.Int
}, error)

LatestRoundData is a free data retrieval call binding the contract method 0xfeaf968c.

Solidity: function latestRoundData() view returns(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

func (*AggregatorV3InterfaceSession) Version

func (_AggregatorV3Interface *AggregatorV3InterfaceSession) Version() (*big.Int, error)

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

Solidity: function version() view returns(uint256)

type AggregatorV3InterfaceTransactor

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

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

func NewAggregatorV3InterfaceTransactor

func NewAggregatorV3InterfaceTransactor(address common.Address, transactor bind.ContractTransactor) (*AggregatorV3InterfaceTransactor, error)

NewAggregatorV3InterfaceTransactor creates a new write-only instance of AggregatorV3Interface, bound to a specific deployed contract.

type AggregatorV3InterfaceTransactorRaw

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

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

func (*AggregatorV3InterfaceTransactorRaw) Transact

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

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

func (*AggregatorV3InterfaceTransactorRaw) Transfer

func (_AggregatorV3Interface *AggregatorV3InterfaceTransactorRaw) 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 AggregatorV3InterfaceTransactorSession

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

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

type SplitBill

type SplitBill struct {
	SplitBillCaller     // Read-only binding to the contract
	SplitBillTransactor // Write-only binding to the contract
	SplitBillFilterer   // Log filterer for contract events
}

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

func DeploySplitBill

func DeploySplitBill(auth *bind.TransactOpts, backend bind.ContractBackend, payers []common.Address, amountInUSD *big.Int) (common.Address, *types.Transaction, *SplitBill, error)

DeploySplitBill deploys a new Ethereum contract, binding an instance of SplitBill to it.

func NewSplitBill

func NewSplitBill(address common.Address, backend bind.ContractBackend) (*SplitBill, error)

NewSplitBill creates a new instance of SplitBill, bound to a specific deployed contract.

type SplitBillCaller

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

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

func NewSplitBillCaller

func NewSplitBillCaller(address common.Address, caller bind.ContractCaller) (*SplitBillCaller, error)

NewSplitBillCaller creates a new read-only instance of SplitBill, bound to a specific deployed contract.

func (*SplitBillCaller) IAmountPerPayerInUSD

func (_SplitBill *SplitBillCaller) IAmountPerPayerInUSD(opts *bind.CallOpts) (*big.Int, error)

IAmountPerPayerInUSD is a free data retrieval call binding the contract method 0x28c1d378.

Solidity: function i_amountPerPayerInUSD() view returns(uint256)

func (*SplitBillCaller) IOwner

func (_SplitBill *SplitBillCaller) IOwner(opts *bind.CallOpts) (common.Address, error)

IOwner is a free data retrieval call binding the contract method 0xdba6335f.

Solidity: function i_owner() view returns(address)

func (*SplitBillCaller) ITotalAmountInUSD

func (_SplitBill *SplitBillCaller) ITotalAmountInUSD(opts *bind.CallOpts) (*big.Int, error)

ITotalAmountInUSD is a free data retrieval call binding the contract method 0xb73f9437.

Solidity: function i_totalAmountInUSD() view returns(uint256)

func (*SplitBillCaller) PayerStatus

func (_SplitBill *SplitBillCaller) PayerStatus(opts *bind.CallOpts, payer common.Address) (bool, error)

PayerStatus is a free data retrieval call binding the contract method 0x87d99d45.

Solidity: function payerStatus(address payer) view returns(bool hasPayed)

func (*SplitBillCaller) SAmountPayedInUSD

func (_SplitBill *SplitBillCaller) SAmountPayedInUSD(opts *bind.CallOpts) (*big.Int, error)

SAmountPayedInUSD is a free data retrieval call binding the contract method 0xb61d276a.

Solidity: function s_amountPayedInUSD() view returns(uint256)

type SplitBillCallerRaw

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

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

func (*SplitBillCallerRaw) Call

func (_SplitBill *SplitBillCallerRaw) 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 SplitBillCallerSession

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

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

func (*SplitBillCallerSession) IAmountPerPayerInUSD

func (_SplitBill *SplitBillCallerSession) IAmountPerPayerInUSD() (*big.Int, error)

IAmountPerPayerInUSD is a free data retrieval call binding the contract method 0x28c1d378.

Solidity: function i_amountPerPayerInUSD() view returns(uint256)

func (*SplitBillCallerSession) IOwner

func (_SplitBill *SplitBillCallerSession) IOwner() (common.Address, error)

IOwner is a free data retrieval call binding the contract method 0xdba6335f.

Solidity: function i_owner() view returns(address)

func (*SplitBillCallerSession) ITotalAmountInUSD

func (_SplitBill *SplitBillCallerSession) ITotalAmountInUSD() (*big.Int, error)

ITotalAmountInUSD is a free data retrieval call binding the contract method 0xb73f9437.

Solidity: function i_totalAmountInUSD() view returns(uint256)

func (*SplitBillCallerSession) PayerStatus

func (_SplitBill *SplitBillCallerSession) PayerStatus(payer common.Address) (bool, error)

PayerStatus is a free data retrieval call binding the contract method 0x87d99d45.

Solidity: function payerStatus(address payer) view returns(bool hasPayed)

func (*SplitBillCallerSession) SAmountPayedInUSD

func (_SplitBill *SplitBillCallerSession) SAmountPayedInUSD() (*big.Int, error)

SAmountPayedInUSD is a free data retrieval call binding the contract method 0xb61d276a.

Solidity: function s_amountPayedInUSD() view returns(uint256)

type SplitBillCompleted

type SplitBillCompleted struct {
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

SplitBillCompleted represents a Completed event raised by the SplitBill contract.

type SplitBillCompletedIterator

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

SplitBillCompletedIterator is returned from FilterCompleted and is used to iterate over the raw logs and unpacked data for Completed events raised by the SplitBill contract.

func (*SplitBillCompletedIterator) Close

func (it *SplitBillCompletedIterator) Close() error

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

func (*SplitBillCompletedIterator) Error

func (it *SplitBillCompletedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SplitBillCompletedIterator) Next

func (it *SplitBillCompletedIterator) 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 SplitBillFilterer

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

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

func NewSplitBillFilterer

func NewSplitBillFilterer(address common.Address, filterer bind.ContractFilterer) (*SplitBillFilterer, error)

NewSplitBillFilterer creates a new log filterer instance of SplitBill, bound to a specific deployed contract.

func (*SplitBillFilterer) FilterCompleted

func (_SplitBill *SplitBillFilterer) FilterCompleted(opts *bind.FilterOpts) (*SplitBillCompletedIterator, error)

FilterCompleted is a free log retrieval operation binding the contract event 0xdfd517ed69f8a0a57d49fe494e4864fac3cfe3585c14c0bfddf39f72463ec3fd.

Solidity: event Completed(uint256 amount)

func (*SplitBillFilterer) FilterPayed

func (_SplitBill *SplitBillFilterer) FilterPayed(opts *bind.FilterOpts) (*SplitBillPayedIterator, error)

FilterPayed is a free log retrieval operation binding the contract event 0x7be9078cfa949e4b9e15888282e2a07a7fae4958503c18c81db93c5d41352497.

Solidity: event Payed(address from, uint256 amount)

func (*SplitBillFilterer) ParseCompleted

func (_SplitBill *SplitBillFilterer) ParseCompleted(log types.Log) (*SplitBillCompleted, error)

ParseCompleted is a log parse operation binding the contract event 0xdfd517ed69f8a0a57d49fe494e4864fac3cfe3585c14c0bfddf39f72463ec3fd.

Solidity: event Completed(uint256 amount)

func (*SplitBillFilterer) ParsePayed

func (_SplitBill *SplitBillFilterer) ParsePayed(log types.Log) (*SplitBillPayed, error)

ParsePayed is a log parse operation binding the contract event 0x7be9078cfa949e4b9e15888282e2a07a7fae4958503c18c81db93c5d41352497.

Solidity: event Payed(address from, uint256 amount)

func (*SplitBillFilterer) WatchCompleted

func (_SplitBill *SplitBillFilterer) WatchCompleted(opts *bind.WatchOpts, sink chan<- *SplitBillCompleted) (event.Subscription, error)

WatchCompleted is a free log subscription operation binding the contract event 0xdfd517ed69f8a0a57d49fe494e4864fac3cfe3585c14c0bfddf39f72463ec3fd.

Solidity: event Completed(uint256 amount)

func (*SplitBillFilterer) WatchPayed

func (_SplitBill *SplitBillFilterer) WatchPayed(opts *bind.WatchOpts, sink chan<- *SplitBillPayed) (event.Subscription, error)

WatchPayed is a free log subscription operation binding the contract event 0x7be9078cfa949e4b9e15888282e2a07a7fae4958503c18c81db93c5d41352497.

Solidity: event Payed(address from, uint256 amount)

type SplitBillPayed

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

SplitBillPayed represents a Payed event raised by the SplitBill contract.

type SplitBillPayedIterator

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

SplitBillPayedIterator is returned from FilterPayed and is used to iterate over the raw logs and unpacked data for Payed events raised by the SplitBill contract.

func (*SplitBillPayedIterator) Close

func (it *SplitBillPayedIterator) Close() error

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

func (*SplitBillPayedIterator) Error

func (it *SplitBillPayedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SplitBillPayedIterator) Next

func (it *SplitBillPayedIterator) 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 SplitBillRaw

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

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

func (*SplitBillRaw) Call

func (_SplitBill *SplitBillRaw) 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 (*SplitBillRaw) Transact

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

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

func (*SplitBillRaw) Transfer

func (_SplitBill *SplitBillRaw) 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 SplitBillSession

type SplitBillSession struct {
	Contract     *SplitBill        // 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
}

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

func (*SplitBillSession) Fallback

func (_SplitBill *SplitBillSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*SplitBillSession) IAmountPerPayerInUSD

func (_SplitBill *SplitBillSession) IAmountPerPayerInUSD() (*big.Int, error)

IAmountPerPayerInUSD is a free data retrieval call binding the contract method 0x28c1d378.

Solidity: function i_amountPerPayerInUSD() view returns(uint256)

func (*SplitBillSession) IOwner

func (_SplitBill *SplitBillSession) IOwner() (common.Address, error)

IOwner is a free data retrieval call binding the contract method 0xdba6335f.

Solidity: function i_owner() view returns(address)

func (*SplitBillSession) ITotalAmountInUSD

func (_SplitBill *SplitBillSession) ITotalAmountInUSD() (*big.Int, error)

ITotalAmountInUSD is a free data retrieval call binding the contract method 0xb73f9437.

Solidity: function i_totalAmountInUSD() view returns(uint256)

func (*SplitBillSession) Pay

func (_SplitBill *SplitBillSession) Pay() (*types.Transaction, error)

Pay is a paid mutator transaction binding the contract method 0x1b9265b8.

Solidity: function pay() payable returns()

func (*SplitBillSession) PayerStatus

func (_SplitBill *SplitBillSession) PayerStatus(payer common.Address) (bool, error)

PayerStatus is a free data retrieval call binding the contract method 0x87d99d45.

Solidity: function payerStatus(address payer) view returns(bool hasPayed)

func (*SplitBillSession) Receive

func (_SplitBill *SplitBillSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*SplitBillSession) SAmountPayedInUSD

func (_SplitBill *SplitBillSession) SAmountPayedInUSD() (*big.Int, error)

SAmountPayedInUSD is a free data retrieval call binding the contract method 0xb61d276a.

Solidity: function s_amountPayedInUSD() view returns(uint256)

func (*SplitBillSession) Withdraw

func (_SplitBill *SplitBillSession) Withdraw() (*types.Transaction, error)

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

Solidity: function withdraw() payable returns()

type SplitBillTransactor

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

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

func NewSplitBillTransactor

func NewSplitBillTransactor(address common.Address, transactor bind.ContractTransactor) (*SplitBillTransactor, error)

NewSplitBillTransactor creates a new write-only instance of SplitBill, bound to a specific deployed contract.

func (*SplitBillTransactor) Fallback

func (_SplitBill *SplitBillTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*SplitBillTransactor) Pay

func (_SplitBill *SplitBillTransactor) Pay(opts *bind.TransactOpts) (*types.Transaction, error)

Pay is a paid mutator transaction binding the contract method 0x1b9265b8.

Solidity: function pay() payable returns()

func (*SplitBillTransactor) Receive

func (_SplitBill *SplitBillTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*SplitBillTransactor) Withdraw

func (_SplitBill *SplitBillTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function withdraw() payable returns()

type SplitBillTransactorRaw

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

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

func (*SplitBillTransactorRaw) Transact

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

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

func (*SplitBillTransactorRaw) Transfer

func (_SplitBill *SplitBillTransactorRaw) 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 SplitBillTransactorSession

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

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

func (*SplitBillTransactorSession) Fallback

func (_SplitBill *SplitBillTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*SplitBillTransactorSession) Pay

func (_SplitBill *SplitBillTransactorSession) Pay() (*types.Transaction, error)

Pay is a paid mutator transaction binding the contract method 0x1b9265b8.

Solidity: function pay() payable returns()

func (*SplitBillTransactorSession) Receive

func (_SplitBill *SplitBillTransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*SplitBillTransactorSession) Withdraw

func (_SplitBill *SplitBillTransactorSession) Withdraw() (*types.Transaction, error)

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

Solidity: function withdraw() payable returns()

Jump to

Keyboard shortcuts

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