marketplace

package
v0.0.0-...-25c9f67 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MarketplaceABI = MarketplaceMetaData.ABI

MarketplaceABI is the input ABI used to generate the binding from. Deprecated: Use MarketplaceMetaData.ABI instead.

View Source
var MarketplaceMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"ActiveBidNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BidNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BidTaken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"KeyExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"KeyNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ModelOrAgentNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_contractOwner\",\"type\":\"address\"}],\"name\":\"NotContractOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotEnoughBalance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotSenderOrOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ProviderNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroKey\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"modelAgentId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"name\":\"BidDeleted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"modelAgentId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"name\":\"BidPosted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bidFee\",\"type\":\"uint256\"}],\"name\":\"FeeUpdated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"bidFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"bidId\",\"type\":\"bytes32\"}],\"name\":\"bidMap\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"modelAgentId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"pricePerSecond\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"createdAt\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"deletedAt\",\"type\":\"uint128\"}],\"internalType\":\"structBid\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"bidId\",\"type\":\"bytes32\"}],\"name\":\"deleteModelAgentBid\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"modelAgentId\",\"type\":\"bytes32\"}],\"name\":\"getActiveBidsByModelAgent\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"modelAgentId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"pricePerSecond\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"createdAt\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"deletedAt\",\"type\":\"uint128\"}],\"internalType\":\"structBid[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"}],\"name\":\"getActiveBidsByProvider\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"modelAgentId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"pricePerSecond\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"createdAt\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"deletedAt\",\"type\":\"uint128\"}],\"internalType\":\"structBid[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"modelAgentId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"limit\",\"type\":\"uint8\"}],\"name\":\"getBidsByModelAgent\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"modelAgentId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"pricePerSecond\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"createdAt\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"deletedAt\",\"type\":\"uint128\"}],\"internalType\":\"structBid[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"limit\",\"type\":\"uint8\"}],\"name\":\"getBidsByProvider\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"modelAgentId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"pricePerSecond\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"createdAt\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"deletedAt\",\"type\":\"uint128\"}],\"internalType\":\"structBid[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"providerAddr\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"modelId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"pricePerSecond\",\"type\":\"uint256\"}],\"name\":\"postModelBid\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"bidId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_bidFee\",\"type\":\"uint256\"}],\"name\":\"setBidFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

MarketplaceMetaData contains all meta data concerning the Marketplace contract.

Functions

This section is empty.

Types

type Bid

type Bid struct {
	Provider       common.Address
	ModelAgentId   [32]byte
	PricePerSecond *big.Int
	Nonce          *big.Int
	CreatedAt      *big.Int
	DeletedAt      *big.Int
}

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

type Marketplace

type Marketplace struct {
	MarketplaceCaller     // Read-only binding to the contract
	MarketplaceTransactor // Write-only binding to the contract
	MarketplaceFilterer   // Log filterer for contract events
}

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

func NewMarketplace

func NewMarketplace(address common.Address, backend bind.ContractBackend) (*Marketplace, error)

NewMarketplace creates a new instance of Marketplace, bound to a specific deployed contract.

type MarketplaceBidDeleted

type MarketplaceBidDeleted struct {
	Provider     common.Address
	ModelAgentId [32]byte
	Nonce        *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

MarketplaceBidDeleted represents a BidDeleted event raised by the Marketplace contract.

type MarketplaceBidDeletedIterator

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

MarketplaceBidDeletedIterator is returned from FilterBidDeleted and is used to iterate over the raw logs and unpacked data for BidDeleted events raised by the Marketplace contract.

func (*MarketplaceBidDeletedIterator) Close

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

func (*MarketplaceBidDeletedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*MarketplaceBidDeletedIterator) 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 MarketplaceBidPosted

type MarketplaceBidPosted struct {
	Provider     common.Address
	ModelAgentId [32]byte
	Nonce        *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

MarketplaceBidPosted represents a BidPosted event raised by the Marketplace contract.

type MarketplaceBidPostedIterator

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

MarketplaceBidPostedIterator is returned from FilterBidPosted and is used to iterate over the raw logs and unpacked data for BidPosted events raised by the Marketplace contract.

func (*MarketplaceBidPostedIterator) Close

func (it *MarketplaceBidPostedIterator) Close() error

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

func (*MarketplaceBidPostedIterator) Error

func (it *MarketplaceBidPostedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MarketplaceBidPostedIterator) 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 MarketplaceCaller

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

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

func NewMarketplaceCaller

func NewMarketplaceCaller(address common.Address, caller bind.ContractCaller) (*MarketplaceCaller, error)

NewMarketplaceCaller creates a new read-only instance of Marketplace, bound to a specific deployed contract.

func (*MarketplaceCaller) BidFee

func (_Marketplace *MarketplaceCaller) BidFee(opts *bind.CallOpts) (*big.Int, error)

BidFee is a free data retrieval call binding the contract method 0xe14a2115.

Solidity: function bidFee() view returns(uint256)

func (*MarketplaceCaller) BidMap

func (_Marketplace *MarketplaceCaller) BidMap(opts *bind.CallOpts, bidId [32]byte) (Bid, error)

BidMap is a free data retrieval call binding the contract method 0xf141c9a3.

Solidity: function bidMap(bytes32 bidId) view returns((address,bytes32,uint256,uint256,uint128,uint128))

func (*MarketplaceCaller) GetActiveBidsByModelAgent

func (_Marketplace *MarketplaceCaller) GetActiveBidsByModelAgent(opts *bind.CallOpts, modelAgentId [32]byte) ([]Bid, error)

GetActiveBidsByModelAgent is a free data retrieval call binding the contract method 0x873d94d5.

Solidity: function getActiveBidsByModelAgent(bytes32 modelAgentId) view returns((address,bytes32,uint256,uint256,uint128,uint128)[])

func (*MarketplaceCaller) GetActiveBidsByProvider

func (_Marketplace *MarketplaceCaller) GetActiveBidsByProvider(opts *bind.CallOpts, provider common.Address) ([]Bid, error)

GetActiveBidsByProvider is a free data retrieval call binding the contract method 0x9fdaffd0.

Solidity: function getActiveBidsByProvider(address provider) view returns((address,bytes32,uint256,uint256,uint128,uint128)[])

func (*MarketplaceCaller) GetBidsByModelAgent

func (_Marketplace *MarketplaceCaller) GetBidsByModelAgent(opts *bind.CallOpts, modelAgentId [32]byte, offset *big.Int, limit uint8) ([][32]byte, []Bid, error)

GetBidsByModelAgent is a free data retrieval call binding the contract method 0xa87665ec.

Solidity: function getBidsByModelAgent(bytes32 modelAgentId, uint256 offset, uint8 limit) view returns(bytes32[], (address,bytes32,uint256,uint256,uint128,uint128)[])

func (*MarketplaceCaller) GetBidsByProvider

func (_Marketplace *MarketplaceCaller) GetBidsByProvider(opts *bind.CallOpts, provider common.Address, offset *big.Int, limit uint8) ([][32]byte, []Bid, error)

GetBidsByProvider is a free data retrieval call binding the contract method 0x2f817685.

Solidity: function getBidsByProvider(address provider, uint256 offset, uint8 limit) view returns(bytes32[], (address,bytes32,uint256,uint256,uint128,uint128)[])

type MarketplaceCallerRaw

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

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

func (*MarketplaceCallerRaw) Call

func (_Marketplace *MarketplaceCallerRaw) 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 MarketplaceCallerSession

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

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

func (*MarketplaceCallerSession) BidFee

func (_Marketplace *MarketplaceCallerSession) BidFee() (*big.Int, error)

BidFee is a free data retrieval call binding the contract method 0xe14a2115.

Solidity: function bidFee() view returns(uint256)

func (*MarketplaceCallerSession) BidMap

func (_Marketplace *MarketplaceCallerSession) BidMap(bidId [32]byte) (Bid, error)

BidMap is a free data retrieval call binding the contract method 0xf141c9a3.

Solidity: function bidMap(bytes32 bidId) view returns((address,bytes32,uint256,uint256,uint128,uint128))

func (*MarketplaceCallerSession) GetActiveBidsByModelAgent

func (_Marketplace *MarketplaceCallerSession) GetActiveBidsByModelAgent(modelAgentId [32]byte) ([]Bid, error)

GetActiveBidsByModelAgent is a free data retrieval call binding the contract method 0x873d94d5.

Solidity: function getActiveBidsByModelAgent(bytes32 modelAgentId) view returns((address,bytes32,uint256,uint256,uint128,uint128)[])

func (*MarketplaceCallerSession) GetActiveBidsByProvider

func (_Marketplace *MarketplaceCallerSession) GetActiveBidsByProvider(provider common.Address) ([]Bid, error)

GetActiveBidsByProvider is a free data retrieval call binding the contract method 0x9fdaffd0.

Solidity: function getActiveBidsByProvider(address provider) view returns((address,bytes32,uint256,uint256,uint128,uint128)[])

func (*MarketplaceCallerSession) GetBidsByModelAgent

func (_Marketplace *MarketplaceCallerSession) GetBidsByModelAgent(modelAgentId [32]byte, offset *big.Int, limit uint8) ([][32]byte, []Bid, error)

GetBidsByModelAgent is a free data retrieval call binding the contract method 0xa87665ec.

Solidity: function getBidsByModelAgent(bytes32 modelAgentId, uint256 offset, uint8 limit) view returns(bytes32[], (address,bytes32,uint256,uint256,uint128,uint128)[])

func (*MarketplaceCallerSession) GetBidsByProvider

func (_Marketplace *MarketplaceCallerSession) GetBidsByProvider(provider common.Address, offset *big.Int, limit uint8) ([][32]byte, []Bid, error)

GetBidsByProvider is a free data retrieval call binding the contract method 0x2f817685.

Solidity: function getBidsByProvider(address provider, uint256 offset, uint8 limit) view returns(bytes32[], (address,bytes32,uint256,uint256,uint128,uint128)[])

type MarketplaceFeeUpdated

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

MarketplaceFeeUpdated represents a FeeUpdated event raised by the Marketplace contract.

type MarketplaceFeeUpdatedIterator

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

MarketplaceFeeUpdatedIterator is returned from FilterFeeUpdated and is used to iterate over the raw logs and unpacked data for FeeUpdated events raised by the Marketplace contract.

func (*MarketplaceFeeUpdatedIterator) Close

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

func (*MarketplaceFeeUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*MarketplaceFeeUpdatedIterator) 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 MarketplaceFilterer

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

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

func NewMarketplaceFilterer

func NewMarketplaceFilterer(address common.Address, filterer bind.ContractFilterer) (*MarketplaceFilterer, error)

NewMarketplaceFilterer creates a new log filterer instance of Marketplace, bound to a specific deployed contract.

func (*MarketplaceFilterer) FilterBidDeleted

func (_Marketplace *MarketplaceFilterer) FilterBidDeleted(opts *bind.FilterOpts, provider []common.Address, modelAgentId [][32]byte) (*MarketplaceBidDeletedIterator, error)

FilterBidDeleted is a free log retrieval operation binding the contract event 0x096f970f504563bca8ac4419b4299946965221e396c34aea149ac84947b9242f.

Solidity: event BidDeleted(address indexed provider, bytes32 indexed modelAgentId, uint256 nonce)

func (*MarketplaceFilterer) FilterBidPosted

func (_Marketplace *MarketplaceFilterer) FilterBidPosted(opts *bind.FilterOpts, provider []common.Address, modelAgentId [][32]byte) (*MarketplaceBidPostedIterator, error)

FilterBidPosted is a free log retrieval operation binding the contract event 0xd138adff73af2621d26114cd9ee4f20dcd39ed78f9e0004215ed49aa22753ebe.

Solidity: event BidPosted(address indexed provider, bytes32 indexed modelAgentId, uint256 nonce)

func (*MarketplaceFilterer) FilterFeeUpdated

func (_Marketplace *MarketplaceFilterer) FilterFeeUpdated(opts *bind.FilterOpts) (*MarketplaceFeeUpdatedIterator, error)

FilterFeeUpdated is a free log retrieval operation binding the contract event 0x8c4d35e54a3f2ef1134138fd8ea3daee6a3c89e10d2665996babdf70261e2c76.

Solidity: event FeeUpdated(uint256 bidFee)

func (*MarketplaceFilterer) ParseBidDeleted

func (_Marketplace *MarketplaceFilterer) ParseBidDeleted(log types.Log) (*MarketplaceBidDeleted, error)

ParseBidDeleted is a log parse operation binding the contract event 0x096f970f504563bca8ac4419b4299946965221e396c34aea149ac84947b9242f.

Solidity: event BidDeleted(address indexed provider, bytes32 indexed modelAgentId, uint256 nonce)

func (*MarketplaceFilterer) ParseBidPosted

func (_Marketplace *MarketplaceFilterer) ParseBidPosted(log types.Log) (*MarketplaceBidPosted, error)

ParseBidPosted is a log parse operation binding the contract event 0xd138adff73af2621d26114cd9ee4f20dcd39ed78f9e0004215ed49aa22753ebe.

Solidity: event BidPosted(address indexed provider, bytes32 indexed modelAgentId, uint256 nonce)

func (*MarketplaceFilterer) ParseFeeUpdated

func (_Marketplace *MarketplaceFilterer) ParseFeeUpdated(log types.Log) (*MarketplaceFeeUpdated, error)

ParseFeeUpdated is a log parse operation binding the contract event 0x8c4d35e54a3f2ef1134138fd8ea3daee6a3c89e10d2665996babdf70261e2c76.

Solidity: event FeeUpdated(uint256 bidFee)

func (*MarketplaceFilterer) WatchBidDeleted

func (_Marketplace *MarketplaceFilterer) WatchBidDeleted(opts *bind.WatchOpts, sink chan<- *MarketplaceBidDeleted, provider []common.Address, modelAgentId [][32]byte) (event.Subscription, error)

WatchBidDeleted is a free log subscription operation binding the contract event 0x096f970f504563bca8ac4419b4299946965221e396c34aea149ac84947b9242f.

Solidity: event BidDeleted(address indexed provider, bytes32 indexed modelAgentId, uint256 nonce)

func (*MarketplaceFilterer) WatchBidPosted

func (_Marketplace *MarketplaceFilterer) WatchBidPosted(opts *bind.WatchOpts, sink chan<- *MarketplaceBidPosted, provider []common.Address, modelAgentId [][32]byte) (event.Subscription, error)

WatchBidPosted is a free log subscription operation binding the contract event 0xd138adff73af2621d26114cd9ee4f20dcd39ed78f9e0004215ed49aa22753ebe.

Solidity: event BidPosted(address indexed provider, bytes32 indexed modelAgentId, uint256 nonce)

func (*MarketplaceFilterer) WatchFeeUpdated

func (_Marketplace *MarketplaceFilterer) WatchFeeUpdated(opts *bind.WatchOpts, sink chan<- *MarketplaceFeeUpdated) (event.Subscription, error)

WatchFeeUpdated is a free log subscription operation binding the contract event 0x8c4d35e54a3f2ef1134138fd8ea3daee6a3c89e10d2665996babdf70261e2c76.

Solidity: event FeeUpdated(uint256 bidFee)

type MarketplaceRaw

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

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

func (*MarketplaceRaw) Call

func (_Marketplace *MarketplaceRaw) 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 (*MarketplaceRaw) Transact

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

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

func (*MarketplaceRaw) Transfer

func (_Marketplace *MarketplaceRaw) 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 MarketplaceSession

type MarketplaceSession struct {
	Contract     *Marketplace      // 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
}

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

func (*MarketplaceSession) BidFee

func (_Marketplace *MarketplaceSession) BidFee() (*big.Int, error)

BidFee is a free data retrieval call binding the contract method 0xe14a2115.

Solidity: function bidFee() view returns(uint256)

func (*MarketplaceSession) BidMap

func (_Marketplace *MarketplaceSession) BidMap(bidId [32]byte) (Bid, error)

BidMap is a free data retrieval call binding the contract method 0xf141c9a3.

Solidity: function bidMap(bytes32 bidId) view returns((address,bytes32,uint256,uint256,uint128,uint128))

func (*MarketplaceSession) DeleteModelAgentBid

func (_Marketplace *MarketplaceSession) DeleteModelAgentBid(bidId [32]byte) (*types.Transaction, error)

DeleteModelAgentBid is a paid mutator transaction binding the contract method 0x42856b75.

Solidity: function deleteModelAgentBid(bytes32 bidId) returns()

func (*MarketplaceSession) GetActiveBidsByModelAgent

func (_Marketplace *MarketplaceSession) GetActiveBidsByModelAgent(modelAgentId [32]byte) ([]Bid, error)

GetActiveBidsByModelAgent is a free data retrieval call binding the contract method 0x873d94d5.

Solidity: function getActiveBidsByModelAgent(bytes32 modelAgentId) view returns((address,bytes32,uint256,uint256,uint128,uint128)[])

func (*MarketplaceSession) GetActiveBidsByProvider

func (_Marketplace *MarketplaceSession) GetActiveBidsByProvider(provider common.Address) ([]Bid, error)

GetActiveBidsByProvider is a free data retrieval call binding the contract method 0x9fdaffd0.

Solidity: function getActiveBidsByProvider(address provider) view returns((address,bytes32,uint256,uint256,uint128,uint128)[])

func (*MarketplaceSession) GetBidsByModelAgent

func (_Marketplace *MarketplaceSession) GetBidsByModelAgent(modelAgentId [32]byte, offset *big.Int, limit uint8) ([][32]byte, []Bid, error)

GetBidsByModelAgent is a free data retrieval call binding the contract method 0xa87665ec.

Solidity: function getBidsByModelAgent(bytes32 modelAgentId, uint256 offset, uint8 limit) view returns(bytes32[], (address,bytes32,uint256,uint256,uint128,uint128)[])

func (*MarketplaceSession) GetBidsByProvider

func (_Marketplace *MarketplaceSession) GetBidsByProvider(provider common.Address, offset *big.Int, limit uint8) ([][32]byte, []Bid, error)

GetBidsByProvider is a free data retrieval call binding the contract method 0x2f817685.

Solidity: function getBidsByProvider(address provider, uint256 offset, uint8 limit) view returns(bytes32[], (address,bytes32,uint256,uint256,uint128,uint128)[])

func (*MarketplaceSession) PostModelBid

func (_Marketplace *MarketplaceSession) PostModelBid(providerAddr common.Address, modelId [32]byte, pricePerSecond *big.Int) (*types.Transaction, error)

PostModelBid is a paid mutator transaction binding the contract method 0xede96bb1.

Solidity: function postModelBid(address providerAddr, bytes32 modelId, uint256 pricePerSecond) returns(bytes32 bidId)

func (*MarketplaceSession) SetBidFee

func (_Marketplace *MarketplaceSession) SetBidFee(_bidFee *big.Int) (*types.Transaction, error)

SetBidFee is a paid mutator transaction binding the contract method 0x013869bf.

Solidity: function setBidFee(uint256 _bidFee) returns()

func (*MarketplaceSession) Withdraw

func (_Marketplace *MarketplaceSession) Withdraw(addr common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address addr, uint256 amount) returns()

type MarketplaceTransactor

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

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

func NewMarketplaceTransactor

func NewMarketplaceTransactor(address common.Address, transactor bind.ContractTransactor) (*MarketplaceTransactor, error)

NewMarketplaceTransactor creates a new write-only instance of Marketplace, bound to a specific deployed contract.

func (*MarketplaceTransactor) DeleteModelAgentBid

func (_Marketplace *MarketplaceTransactor) DeleteModelAgentBid(opts *bind.TransactOpts, bidId [32]byte) (*types.Transaction, error)

DeleteModelAgentBid is a paid mutator transaction binding the contract method 0x42856b75.

Solidity: function deleteModelAgentBid(bytes32 bidId) returns()

func (*MarketplaceTransactor) PostModelBid

func (_Marketplace *MarketplaceTransactor) PostModelBid(opts *bind.TransactOpts, providerAddr common.Address, modelId [32]byte, pricePerSecond *big.Int) (*types.Transaction, error)

PostModelBid is a paid mutator transaction binding the contract method 0xede96bb1.

Solidity: function postModelBid(address providerAddr, bytes32 modelId, uint256 pricePerSecond) returns(bytes32 bidId)

func (*MarketplaceTransactor) SetBidFee

func (_Marketplace *MarketplaceTransactor) SetBidFee(opts *bind.TransactOpts, _bidFee *big.Int) (*types.Transaction, error)

SetBidFee is a paid mutator transaction binding the contract method 0x013869bf.

Solidity: function setBidFee(uint256 _bidFee) returns()

func (*MarketplaceTransactor) Withdraw

func (_Marketplace *MarketplaceTransactor) Withdraw(opts *bind.TransactOpts, addr common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address addr, uint256 amount) returns()

type MarketplaceTransactorRaw

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

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

func (*MarketplaceTransactorRaw) Transact

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

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

func (*MarketplaceTransactorRaw) Transfer

func (_Marketplace *MarketplaceTransactorRaw) 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 MarketplaceTransactorSession

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

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

func (*MarketplaceTransactorSession) DeleteModelAgentBid

func (_Marketplace *MarketplaceTransactorSession) DeleteModelAgentBid(bidId [32]byte) (*types.Transaction, error)

DeleteModelAgentBid is a paid mutator transaction binding the contract method 0x42856b75.

Solidity: function deleteModelAgentBid(bytes32 bidId) returns()

func (*MarketplaceTransactorSession) PostModelBid

func (_Marketplace *MarketplaceTransactorSession) PostModelBid(providerAddr common.Address, modelId [32]byte, pricePerSecond *big.Int) (*types.Transaction, error)

PostModelBid is a paid mutator transaction binding the contract method 0xede96bb1.

Solidity: function postModelBid(address providerAddr, bytes32 modelId, uint256 pricePerSecond) returns(bytes32 bidId)

func (*MarketplaceTransactorSession) SetBidFee

func (_Marketplace *MarketplaceTransactorSession) SetBidFee(_bidFee *big.Int) (*types.Transaction, error)

SetBidFee is a paid mutator transaction binding the contract method 0x013869bf.

Solidity: function setBidFee(uint256 _bidFee) returns()

func (*MarketplaceTransactorSession) Withdraw

func (_Marketplace *MarketplaceTransactorSession) Withdraw(addr common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address addr, uint256 amount) returns()

Jump to

Keyboard shortcuts

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