modelregistry

package
v0.0.0-...-2515fb6 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ModelRegistryABI = ModelRegistryMetaData.ABI

ModelRegistryABI is the input ABI used to generate the binding from. Deprecated: Use ModelRegistryMetaData.ABI instead.

View Source
var ModelRegistryMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"delegatee\",\"type\":\"address\"}],\"name\":\"InsufficientRightsForOperation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ModelHasActiveBids\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ModelHasAlreadyDeregistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ModelNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmount\",\"type\":\"uint256\"}],\"name\":\"ModelStakeTooLow\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account_\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"storageSlot\",\"type\":\"bytes32\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"modelId\",\"type\":\"bytes32\"}],\"name\":\"ModelDeregistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"modelMinimumStake\",\"type\":\"uint256\"}],\"name\":\"ModelMinimumStakeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"modelId\",\"type\":\"bytes32\"}],\"name\":\"ModelRegisteredUpdated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"BIDS_STORAGE_SLOT\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DELEGATION_RULES_MARKETPLACE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DELEGATION_RULES_MODEL\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DELEGATION_RULES_PROVIDER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DELEGATION_RULES_SESSION\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DELEGATION_STORAGE_SLOT\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DIAMOND_OWNABLE_STORAGE_SLOT\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MODELS_STORAGE_SLOT\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"__ModelRegistry_init\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"offset_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit_\",\"type\":\"uint256\"}],\"name\":\"getActiveModelIds\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"bidId_\",\"type\":\"bytes32\"}],\"name\":\"getBid\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"modelId\",\"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\":\"structIBidStorage.Bid\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"modelId_\",\"type\":\"bytes32\"}],\"name\":\"getIsModelActive\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"modelId_\",\"type\":\"bytes32\"}],\"name\":\"getModel\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"ipfsCID\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string[]\",\"name\":\"tags\",\"type\":\"string[]\"},{\"internalType\":\"uint128\",\"name\":\"createdAt\",\"type\":\"uint128\"},{\"internalType\":\"bool\",\"name\":\"isDeleted\",\"type\":\"bool\"}],\"internalType\":\"structIModelStorage.Model\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"modelId_\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"offset_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit_\",\"type\":\"uint256\"}],\"name\":\"getModelActiveBids\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"modelId_\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"offset_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit_\",\"type\":\"uint256\"}],\"name\":\"getModelBids\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account_\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"baseModelId_\",\"type\":\"bytes32\"}],\"name\":\"getModelId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"offset_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit_\",\"type\":\"uint256\"}],\"name\":\"getModelIds\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getModelMinimumStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit_\",\"type\":\"uint256\"}],\"name\":\"getProviderActiveBids\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit_\",\"type\":\"uint256\"}],\"name\":\"getProviderBids\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"bidId_\",\"type\":\"bytes32\"}],\"name\":\"isBidActive\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"delegatee_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"delegator_\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"rights_\",\"type\":\"bytes32\"}],\"name\":\"isRightsDelegated\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"modelId_\",\"type\":\"bytes32\"}],\"name\":\"modelDeregister\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"modelOwner_\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"baseModelId_\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"ipfsCID_\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"fee_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount_\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string[]\",\"name\":\"tags_\",\"type\":\"string[]\"}],\"name\":\"modelRegister\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"modelMinimumStake_\",\"type\":\"uint256\"}],\"name\":\"modelSetMinStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

ModelRegistryMetaData contains all meta data concerning the ModelRegistry contract.

Functions

This section is empty.

Types

type IBidStorageBid

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

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

type IModelStorageModel

type IModelStorageModel struct {
	IpfsCID   [32]byte
	Fee       *big.Int
	Stake     *big.Int
	Owner     common.Address
	Name      string
	Tags      []string
	CreatedAt *big.Int
	IsDeleted bool
}

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

type ModelRegistry

type ModelRegistry struct {
	ModelRegistryCaller     // Read-only binding to the contract
	ModelRegistryTransactor // Write-only binding to the contract
	ModelRegistryFilterer   // Log filterer for contract events
}

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

func NewModelRegistry

func NewModelRegistry(address common.Address, backend bind.ContractBackend) (*ModelRegistry, error)

NewModelRegistry creates a new instance of ModelRegistry, bound to a specific deployed contract.

type ModelRegistryCaller

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

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

func NewModelRegistryCaller

func NewModelRegistryCaller(address common.Address, caller bind.ContractCaller) (*ModelRegistryCaller, error)

NewModelRegistryCaller creates a new read-only instance of ModelRegistry, bound to a specific deployed contract.

func (*ModelRegistryCaller) BIDSSTORAGESLOT

func (_ModelRegistry *ModelRegistryCaller) BIDSSTORAGESLOT(opts *bind.CallOpts) ([32]byte, error)

BIDSSTORAGESLOT is a free data retrieval call binding the contract method 0x266ccff0.

Solidity: function BIDS_STORAGE_SLOT() view returns(bytes32)

func (*ModelRegistryCaller) DELEGATIONRULESMARKETPLACE

func (_ModelRegistry *ModelRegistryCaller) DELEGATIONRULESMARKETPLACE(opts *bind.CallOpts) ([32]byte, error)

DELEGATIONRULESMARKETPLACE is a free data retrieval call binding the contract method 0xad34a150.

Solidity: function DELEGATION_RULES_MARKETPLACE() view returns(bytes32)

func (*ModelRegistryCaller) DELEGATIONRULESMODEL

func (_ModelRegistry *ModelRegistryCaller) DELEGATIONRULESMODEL(opts *bind.CallOpts) ([32]byte, error)

DELEGATIONRULESMODEL is a free data retrieval call binding the contract method 0x86878047.

Solidity: function DELEGATION_RULES_MODEL() view returns(bytes32)

func (*ModelRegistryCaller) DELEGATIONRULESPROVIDER

func (_ModelRegistry *ModelRegistryCaller) DELEGATIONRULESPROVIDER(opts *bind.CallOpts) ([32]byte, error)

DELEGATIONRULESPROVIDER is a free data retrieval call binding the contract method 0x58aeef93.

Solidity: function DELEGATION_RULES_PROVIDER() view returns(bytes32)

func (*ModelRegistryCaller) DELEGATIONRULESSESSION

func (_ModelRegistry *ModelRegistryCaller) DELEGATIONRULESSESSION(opts *bind.CallOpts) ([32]byte, error)

DELEGATIONRULESSESSION is a free data retrieval call binding the contract method 0xd1b43638.

Solidity: function DELEGATION_RULES_SESSION() view returns(bytes32)

func (*ModelRegistryCaller) DELEGATIONSTORAGESLOT

func (_ModelRegistry *ModelRegistryCaller) DELEGATIONSTORAGESLOT(opts *bind.CallOpts) ([32]byte, error)

DELEGATIONSTORAGESLOT is a free data retrieval call binding the contract method 0xdd9b48cb.

Solidity: function DELEGATION_STORAGE_SLOT() view returns(bytes32)

func (*ModelRegistryCaller) DIAMONDOWNABLESTORAGESLOT

func (_ModelRegistry *ModelRegistryCaller) DIAMONDOWNABLESTORAGESLOT(opts *bind.CallOpts) ([32]byte, error)

DIAMONDOWNABLESTORAGESLOT is a free data retrieval call binding the contract method 0x4ac3371e.

Solidity: function DIAMOND_OWNABLE_STORAGE_SLOT() view returns(bytes32)

func (*ModelRegistryCaller) GetActiveModelIds

func (_ModelRegistry *ModelRegistryCaller) GetActiveModelIds(opts *bind.CallOpts, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetActiveModelIds is a free data retrieval call binding the contract method 0x3839d3dc.

Solidity: function getActiveModelIds(uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*ModelRegistryCaller) GetBid

func (_ModelRegistry *ModelRegistryCaller) GetBid(opts *bind.CallOpts, bidId_ [32]byte) (IBidStorageBid, error)

GetBid is a free data retrieval call binding the contract method 0x91704e1e.

Solidity: function getBid(bytes32 bidId_) view returns((address,bytes32,uint256,uint256,uint128,uint128))

func (*ModelRegistryCaller) GetIsModelActive

func (_ModelRegistry *ModelRegistryCaller) GetIsModelActive(opts *bind.CallOpts, modelId_ [32]byte) (bool, error)

GetIsModelActive is a free data retrieval call binding the contract method 0xca74b5f3.

Solidity: function getIsModelActive(bytes32 modelId_) view returns(bool)

func (*ModelRegistryCaller) GetModel

func (_ModelRegistry *ModelRegistryCaller) GetModel(opts *bind.CallOpts, modelId_ [32]byte) (IModelStorageModel, error)

GetModel is a free data retrieval call binding the contract method 0x21e7c498.

Solidity: function getModel(bytes32 modelId_) view returns((bytes32,uint256,uint256,address,string,string[],uint128,bool))

func (*ModelRegistryCaller) GetModelActiveBids

func (_ModelRegistry *ModelRegistryCaller) GetModelActiveBids(opts *bind.CallOpts, modelId_ [32]byte, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetModelActiveBids is a free data retrieval call binding the contract method 0x8a683b6e.

Solidity: function getModelActiveBids(bytes32 modelId_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*ModelRegistryCaller) GetModelBids

func (_ModelRegistry *ModelRegistryCaller) GetModelBids(opts *bind.CallOpts, modelId_ [32]byte, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetModelBids is a free data retrieval call binding the contract method 0xfade17b1.

Solidity: function getModelBids(bytes32 modelId_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*ModelRegistryCaller) GetModelId

func (_ModelRegistry *ModelRegistryCaller) GetModelId(opts *bind.CallOpts, account_ common.Address, baseModelId_ [32]byte) ([32]byte, error)

GetModelId is a free data retrieval call binding the contract method 0xbb93d26a.

Solidity: function getModelId(address account_, bytes32 baseModelId_) pure returns(bytes32)

func (*ModelRegistryCaller) GetModelIds

func (_ModelRegistry *ModelRegistryCaller) GetModelIds(opts *bind.CallOpts, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetModelIds is a free data retrieval call binding the contract method 0x08d0aab4.

Solidity: function getModelIds(uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*ModelRegistryCaller) GetModelMinimumStake

func (_ModelRegistry *ModelRegistryCaller) GetModelMinimumStake(opts *bind.CallOpts) (*big.Int, error)

GetModelMinimumStake is a free data retrieval call binding the contract method 0xf647ba3d.

Solidity: function getModelMinimumStake() view returns(uint256)

func (*ModelRegistryCaller) GetProviderActiveBids

func (_ModelRegistry *ModelRegistryCaller) GetProviderActiveBids(opts *bind.CallOpts, provider_ common.Address, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetProviderActiveBids is a free data retrieval call binding the contract method 0xaf5b77ca.

Solidity: function getProviderActiveBids(address provider_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*ModelRegistryCaller) GetProviderBids

func (_ModelRegistry *ModelRegistryCaller) GetProviderBids(opts *bind.CallOpts, provider_ common.Address, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetProviderBids is a free data retrieval call binding the contract method 0x59d435c4.

Solidity: function getProviderBids(address provider_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*ModelRegistryCaller) GetRegistry

func (_ModelRegistry *ModelRegistryCaller) GetRegistry(opts *bind.CallOpts) (common.Address, error)

GetRegistry is a free data retrieval call binding the contract method 0x5ab1bd53.

Solidity: function getRegistry() view returns(address)

func (*ModelRegistryCaller) GetToken

func (_ModelRegistry *ModelRegistryCaller) GetToken(opts *bind.CallOpts) (common.Address, error)

GetToken is a free data retrieval call binding the contract method 0x21df0da7.

Solidity: function getToken() view returns(address)

func (*ModelRegistryCaller) IsBidActive

func (_ModelRegistry *ModelRegistryCaller) IsBidActive(opts *bind.CallOpts, bidId_ [32]byte) (bool, error)

IsBidActive is a free data retrieval call binding the contract method 0x1345df58.

Solidity: function isBidActive(bytes32 bidId_) view returns(bool)

func (*ModelRegistryCaller) IsRightsDelegated

func (_ModelRegistry *ModelRegistryCaller) IsRightsDelegated(opts *bind.CallOpts, delegatee_ common.Address, delegator_ common.Address, rights_ [32]byte) (bool, error)

IsRightsDelegated is a free data retrieval call binding the contract method 0x54126b8f.

Solidity: function isRightsDelegated(address delegatee_, address delegator_, bytes32 rights_) view returns(bool)

func (*ModelRegistryCaller) MODELSSTORAGESLOT

func (_ModelRegistry *ModelRegistryCaller) MODELSSTORAGESLOT(opts *bind.CallOpts) ([32]byte, error)

MODELSSTORAGESLOT is a free data retrieval call binding the contract method 0x6f276c1e.

Solidity: function MODELS_STORAGE_SLOT() view returns(bytes32)

func (*ModelRegistryCaller) Owner

func (_ModelRegistry *ModelRegistryCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

type ModelRegistryCallerRaw

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

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

func (*ModelRegistryCallerRaw) Call

func (_ModelRegistry *ModelRegistryCallerRaw) 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 ModelRegistryCallerSession

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

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

func (*ModelRegistryCallerSession) BIDSSTORAGESLOT

func (_ModelRegistry *ModelRegistryCallerSession) BIDSSTORAGESLOT() ([32]byte, error)

BIDSSTORAGESLOT is a free data retrieval call binding the contract method 0x266ccff0.

Solidity: function BIDS_STORAGE_SLOT() view returns(bytes32)

func (*ModelRegistryCallerSession) DELEGATIONRULESMARKETPLACE

func (_ModelRegistry *ModelRegistryCallerSession) DELEGATIONRULESMARKETPLACE() ([32]byte, error)

DELEGATIONRULESMARKETPLACE is a free data retrieval call binding the contract method 0xad34a150.

Solidity: function DELEGATION_RULES_MARKETPLACE() view returns(bytes32)

func (*ModelRegistryCallerSession) DELEGATIONRULESMODEL

func (_ModelRegistry *ModelRegistryCallerSession) DELEGATIONRULESMODEL() ([32]byte, error)

DELEGATIONRULESMODEL is a free data retrieval call binding the contract method 0x86878047.

Solidity: function DELEGATION_RULES_MODEL() view returns(bytes32)

func (*ModelRegistryCallerSession) DELEGATIONRULESPROVIDER

func (_ModelRegistry *ModelRegistryCallerSession) DELEGATIONRULESPROVIDER() ([32]byte, error)

DELEGATIONRULESPROVIDER is a free data retrieval call binding the contract method 0x58aeef93.

Solidity: function DELEGATION_RULES_PROVIDER() view returns(bytes32)

func (*ModelRegistryCallerSession) DELEGATIONRULESSESSION

func (_ModelRegistry *ModelRegistryCallerSession) DELEGATIONRULESSESSION() ([32]byte, error)

DELEGATIONRULESSESSION is a free data retrieval call binding the contract method 0xd1b43638.

Solidity: function DELEGATION_RULES_SESSION() view returns(bytes32)

func (*ModelRegistryCallerSession) DELEGATIONSTORAGESLOT

func (_ModelRegistry *ModelRegistryCallerSession) DELEGATIONSTORAGESLOT() ([32]byte, error)

DELEGATIONSTORAGESLOT is a free data retrieval call binding the contract method 0xdd9b48cb.

Solidity: function DELEGATION_STORAGE_SLOT() view returns(bytes32)

func (*ModelRegistryCallerSession) DIAMONDOWNABLESTORAGESLOT

func (_ModelRegistry *ModelRegistryCallerSession) DIAMONDOWNABLESTORAGESLOT() ([32]byte, error)

DIAMONDOWNABLESTORAGESLOT is a free data retrieval call binding the contract method 0x4ac3371e.

Solidity: function DIAMOND_OWNABLE_STORAGE_SLOT() view returns(bytes32)

func (*ModelRegistryCallerSession) GetActiveModelIds

func (_ModelRegistry *ModelRegistryCallerSession) GetActiveModelIds(offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetActiveModelIds is a free data retrieval call binding the contract method 0x3839d3dc.

Solidity: function getActiveModelIds(uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*ModelRegistryCallerSession) GetBid

func (_ModelRegistry *ModelRegistryCallerSession) GetBid(bidId_ [32]byte) (IBidStorageBid, error)

GetBid is a free data retrieval call binding the contract method 0x91704e1e.

Solidity: function getBid(bytes32 bidId_) view returns((address,bytes32,uint256,uint256,uint128,uint128))

func (*ModelRegistryCallerSession) GetIsModelActive

func (_ModelRegistry *ModelRegistryCallerSession) GetIsModelActive(modelId_ [32]byte) (bool, error)

GetIsModelActive is a free data retrieval call binding the contract method 0xca74b5f3.

Solidity: function getIsModelActive(bytes32 modelId_) view returns(bool)

func (*ModelRegistryCallerSession) GetModel

func (_ModelRegistry *ModelRegistryCallerSession) GetModel(modelId_ [32]byte) (IModelStorageModel, error)

GetModel is a free data retrieval call binding the contract method 0x21e7c498.

Solidity: function getModel(bytes32 modelId_) view returns((bytes32,uint256,uint256,address,string,string[],uint128,bool))

func (*ModelRegistryCallerSession) GetModelActiveBids

func (_ModelRegistry *ModelRegistryCallerSession) GetModelActiveBids(modelId_ [32]byte, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetModelActiveBids is a free data retrieval call binding the contract method 0x8a683b6e.

Solidity: function getModelActiveBids(bytes32 modelId_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*ModelRegistryCallerSession) GetModelBids

func (_ModelRegistry *ModelRegistryCallerSession) GetModelBids(modelId_ [32]byte, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetModelBids is a free data retrieval call binding the contract method 0xfade17b1.

Solidity: function getModelBids(bytes32 modelId_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*ModelRegistryCallerSession) GetModelId

func (_ModelRegistry *ModelRegistryCallerSession) GetModelId(account_ common.Address, baseModelId_ [32]byte) ([32]byte, error)

GetModelId is a free data retrieval call binding the contract method 0xbb93d26a.

Solidity: function getModelId(address account_, bytes32 baseModelId_) pure returns(bytes32)

func (*ModelRegistryCallerSession) GetModelIds

func (_ModelRegistry *ModelRegistryCallerSession) GetModelIds(offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetModelIds is a free data retrieval call binding the contract method 0x08d0aab4.

Solidity: function getModelIds(uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*ModelRegistryCallerSession) GetModelMinimumStake

func (_ModelRegistry *ModelRegistryCallerSession) GetModelMinimumStake() (*big.Int, error)

GetModelMinimumStake is a free data retrieval call binding the contract method 0xf647ba3d.

Solidity: function getModelMinimumStake() view returns(uint256)

func (*ModelRegistryCallerSession) GetProviderActiveBids

func (_ModelRegistry *ModelRegistryCallerSession) GetProviderActiveBids(provider_ common.Address, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetProviderActiveBids is a free data retrieval call binding the contract method 0xaf5b77ca.

Solidity: function getProviderActiveBids(address provider_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*ModelRegistryCallerSession) GetProviderBids

func (_ModelRegistry *ModelRegistryCallerSession) GetProviderBids(provider_ common.Address, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetProviderBids is a free data retrieval call binding the contract method 0x59d435c4.

Solidity: function getProviderBids(address provider_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*ModelRegistryCallerSession) GetRegistry

func (_ModelRegistry *ModelRegistryCallerSession) GetRegistry() (common.Address, error)

GetRegistry is a free data retrieval call binding the contract method 0x5ab1bd53.

Solidity: function getRegistry() view returns(address)

func (*ModelRegistryCallerSession) GetToken

func (_ModelRegistry *ModelRegistryCallerSession) GetToken() (common.Address, error)

GetToken is a free data retrieval call binding the contract method 0x21df0da7.

Solidity: function getToken() view returns(address)

func (*ModelRegistryCallerSession) IsBidActive

func (_ModelRegistry *ModelRegistryCallerSession) IsBidActive(bidId_ [32]byte) (bool, error)

IsBidActive is a free data retrieval call binding the contract method 0x1345df58.

Solidity: function isBidActive(bytes32 bidId_) view returns(bool)

func (*ModelRegistryCallerSession) IsRightsDelegated

func (_ModelRegistry *ModelRegistryCallerSession) IsRightsDelegated(delegatee_ common.Address, delegator_ common.Address, rights_ [32]byte) (bool, error)

IsRightsDelegated is a free data retrieval call binding the contract method 0x54126b8f.

Solidity: function isRightsDelegated(address delegatee_, address delegator_, bytes32 rights_) view returns(bool)

func (*ModelRegistryCallerSession) MODELSSTORAGESLOT

func (_ModelRegistry *ModelRegistryCallerSession) MODELSSTORAGESLOT() ([32]byte, error)

MODELSSTORAGESLOT is a free data retrieval call binding the contract method 0x6f276c1e.

Solidity: function MODELS_STORAGE_SLOT() view returns(bytes32)

func (*ModelRegistryCallerSession) Owner

func (_ModelRegistry *ModelRegistryCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

type ModelRegistryFilterer

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

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

func NewModelRegistryFilterer

func NewModelRegistryFilterer(address common.Address, filterer bind.ContractFilterer) (*ModelRegistryFilterer, error)

NewModelRegistryFilterer creates a new log filterer instance of ModelRegistry, bound to a specific deployed contract.

func (*ModelRegistryFilterer) FilterInitialized

func (_ModelRegistry *ModelRegistryFilterer) FilterInitialized(opts *bind.FilterOpts) (*ModelRegistryInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0xdc73717d728bcfa015e8117438a65319aa06e979ca324afa6e1ea645c28ea15d.

Solidity: event Initialized(bytes32 storageSlot)

func (*ModelRegistryFilterer) FilterModelDeregistered

func (_ModelRegistry *ModelRegistryFilterer) FilterModelDeregistered(opts *bind.FilterOpts, owner []common.Address, modelId [][32]byte) (*ModelRegistryModelDeregisteredIterator, error)

FilterModelDeregistered is a free log retrieval operation binding the contract event 0x79a9f3017f26694a70f688c1e37f4add042a050660c62fc8351f760b153b888b.

Solidity: event ModelDeregistered(address indexed owner, bytes32 indexed modelId)

func (*ModelRegistryFilterer) FilterModelMinimumStakeUpdated

func (_ModelRegistry *ModelRegistryFilterer) FilterModelMinimumStakeUpdated(opts *bind.FilterOpts) (*ModelRegistryModelMinimumStakeUpdatedIterator, error)

FilterModelMinimumStakeUpdated is a free log retrieval operation binding the contract event 0x136e2b2828baa18257e8eef3c26df62481c7b16303ca0ebe4202865df5e97d7e.

Solidity: event ModelMinimumStakeUpdated(uint256 modelMinimumStake)

func (*ModelRegistryFilterer) FilterModelRegisteredUpdated

func (_ModelRegistry *ModelRegistryFilterer) FilterModelRegisteredUpdated(opts *bind.FilterOpts, owner []common.Address, modelId [][32]byte) (*ModelRegistryModelRegisteredUpdatedIterator, error)

FilterModelRegisteredUpdated is a free log retrieval operation binding the contract event 0xda9282a68d90c36d31d780a69a65da6c35191a5d8cdd37bd1a1a5aa9fb168e77.

Solidity: event ModelRegisteredUpdated(address indexed owner, bytes32 indexed modelId)

func (*ModelRegistryFilterer) ParseInitialized

func (_ModelRegistry *ModelRegistryFilterer) ParseInitialized(log types.Log) (*ModelRegistryInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0xdc73717d728bcfa015e8117438a65319aa06e979ca324afa6e1ea645c28ea15d.

Solidity: event Initialized(bytes32 storageSlot)

func (*ModelRegistryFilterer) ParseModelDeregistered

func (_ModelRegistry *ModelRegistryFilterer) ParseModelDeregistered(log types.Log) (*ModelRegistryModelDeregistered, error)

ParseModelDeregistered is a log parse operation binding the contract event 0x79a9f3017f26694a70f688c1e37f4add042a050660c62fc8351f760b153b888b.

Solidity: event ModelDeregistered(address indexed owner, bytes32 indexed modelId)

func (*ModelRegistryFilterer) ParseModelMinimumStakeUpdated

func (_ModelRegistry *ModelRegistryFilterer) ParseModelMinimumStakeUpdated(log types.Log) (*ModelRegistryModelMinimumStakeUpdated, error)

ParseModelMinimumStakeUpdated is a log parse operation binding the contract event 0x136e2b2828baa18257e8eef3c26df62481c7b16303ca0ebe4202865df5e97d7e.

Solidity: event ModelMinimumStakeUpdated(uint256 modelMinimumStake)

func (*ModelRegistryFilterer) ParseModelRegisteredUpdated

func (_ModelRegistry *ModelRegistryFilterer) ParseModelRegisteredUpdated(log types.Log) (*ModelRegistryModelRegisteredUpdated, error)

ParseModelRegisteredUpdated is a log parse operation binding the contract event 0xda9282a68d90c36d31d780a69a65da6c35191a5d8cdd37bd1a1a5aa9fb168e77.

Solidity: event ModelRegisteredUpdated(address indexed owner, bytes32 indexed modelId)

func (*ModelRegistryFilterer) WatchInitialized

func (_ModelRegistry *ModelRegistryFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *ModelRegistryInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0xdc73717d728bcfa015e8117438a65319aa06e979ca324afa6e1ea645c28ea15d.

Solidity: event Initialized(bytes32 storageSlot)

func (*ModelRegistryFilterer) WatchModelDeregistered

func (_ModelRegistry *ModelRegistryFilterer) WatchModelDeregistered(opts *bind.WatchOpts, sink chan<- *ModelRegistryModelDeregistered, owner []common.Address, modelId [][32]byte) (event.Subscription, error)

WatchModelDeregistered is a free log subscription operation binding the contract event 0x79a9f3017f26694a70f688c1e37f4add042a050660c62fc8351f760b153b888b.

Solidity: event ModelDeregistered(address indexed owner, bytes32 indexed modelId)

func (*ModelRegistryFilterer) WatchModelMinimumStakeUpdated

func (_ModelRegistry *ModelRegistryFilterer) WatchModelMinimumStakeUpdated(opts *bind.WatchOpts, sink chan<- *ModelRegistryModelMinimumStakeUpdated) (event.Subscription, error)

WatchModelMinimumStakeUpdated is a free log subscription operation binding the contract event 0x136e2b2828baa18257e8eef3c26df62481c7b16303ca0ebe4202865df5e97d7e.

Solidity: event ModelMinimumStakeUpdated(uint256 modelMinimumStake)

func (*ModelRegistryFilterer) WatchModelRegisteredUpdated

func (_ModelRegistry *ModelRegistryFilterer) WatchModelRegisteredUpdated(opts *bind.WatchOpts, sink chan<- *ModelRegistryModelRegisteredUpdated, owner []common.Address, modelId [][32]byte) (event.Subscription, error)

WatchModelRegisteredUpdated is a free log subscription operation binding the contract event 0xda9282a68d90c36d31d780a69a65da6c35191a5d8cdd37bd1a1a5aa9fb168e77.

Solidity: event ModelRegisteredUpdated(address indexed owner, bytes32 indexed modelId)

type ModelRegistryInitialized

type ModelRegistryInitialized struct {
	StorageSlot [32]byte
	Raw         types.Log // Blockchain specific contextual infos
}

ModelRegistryInitialized represents a Initialized event raised by the ModelRegistry contract.

type ModelRegistryInitializedIterator

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

ModelRegistryInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the ModelRegistry contract.

func (*ModelRegistryInitializedIterator) Close

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

func (*ModelRegistryInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ModelRegistryInitializedIterator) 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 ModelRegistryModelDeregistered

type ModelRegistryModelDeregistered struct {
	Owner   common.Address
	ModelId [32]byte
	Raw     types.Log // Blockchain specific contextual infos
}

ModelRegistryModelDeregistered represents a ModelDeregistered event raised by the ModelRegistry contract.

type ModelRegistryModelDeregisteredIterator

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

ModelRegistryModelDeregisteredIterator is returned from FilterModelDeregistered and is used to iterate over the raw logs and unpacked data for ModelDeregistered events raised by the ModelRegistry contract.

func (*ModelRegistryModelDeregisteredIterator) Close

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

func (*ModelRegistryModelDeregisteredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ModelRegistryModelDeregisteredIterator) 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 ModelRegistryModelMinimumStakeUpdated

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

ModelRegistryModelMinimumStakeUpdated represents a ModelMinimumStakeUpdated event raised by the ModelRegistry contract.

type ModelRegistryModelMinimumStakeUpdatedIterator

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

ModelRegistryModelMinimumStakeUpdatedIterator is returned from FilterModelMinimumStakeUpdated and is used to iterate over the raw logs and unpacked data for ModelMinimumStakeUpdated events raised by the ModelRegistry contract.

func (*ModelRegistryModelMinimumStakeUpdatedIterator) Close

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

func (*ModelRegistryModelMinimumStakeUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ModelRegistryModelMinimumStakeUpdatedIterator) 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 ModelRegistryModelRegisteredUpdated

type ModelRegistryModelRegisteredUpdated struct {
	Owner   common.Address
	ModelId [32]byte
	Raw     types.Log // Blockchain specific contextual infos
}

ModelRegistryModelRegisteredUpdated represents a ModelRegisteredUpdated event raised by the ModelRegistry contract.

type ModelRegistryModelRegisteredUpdatedIterator

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

ModelRegistryModelRegisteredUpdatedIterator is returned from FilterModelRegisteredUpdated and is used to iterate over the raw logs and unpacked data for ModelRegisteredUpdated events raised by the ModelRegistry contract.

func (*ModelRegistryModelRegisteredUpdatedIterator) Close

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

func (*ModelRegistryModelRegisteredUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ModelRegistryModelRegisteredUpdatedIterator) 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 ModelRegistryRaw

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

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

func (*ModelRegistryRaw) Call

func (_ModelRegistry *ModelRegistryRaw) 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 (*ModelRegistryRaw) Transact

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

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

func (*ModelRegistryRaw) Transfer

func (_ModelRegistry *ModelRegistryRaw) 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 ModelRegistrySession

type ModelRegistrySession struct {
	Contract     *ModelRegistry    // 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
}

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

func (*ModelRegistrySession) BIDSSTORAGESLOT

func (_ModelRegistry *ModelRegistrySession) BIDSSTORAGESLOT() ([32]byte, error)

BIDSSTORAGESLOT is a free data retrieval call binding the contract method 0x266ccff0.

Solidity: function BIDS_STORAGE_SLOT() view returns(bytes32)

func (*ModelRegistrySession) DELEGATIONRULESMARKETPLACE

func (_ModelRegistry *ModelRegistrySession) DELEGATIONRULESMARKETPLACE() ([32]byte, error)

DELEGATIONRULESMARKETPLACE is a free data retrieval call binding the contract method 0xad34a150.

Solidity: function DELEGATION_RULES_MARKETPLACE() view returns(bytes32)

func (*ModelRegistrySession) DELEGATIONRULESMODEL

func (_ModelRegistry *ModelRegistrySession) DELEGATIONRULESMODEL() ([32]byte, error)

DELEGATIONRULESMODEL is a free data retrieval call binding the contract method 0x86878047.

Solidity: function DELEGATION_RULES_MODEL() view returns(bytes32)

func (*ModelRegistrySession) DELEGATIONRULESPROVIDER

func (_ModelRegistry *ModelRegistrySession) DELEGATIONRULESPROVIDER() ([32]byte, error)

DELEGATIONRULESPROVIDER is a free data retrieval call binding the contract method 0x58aeef93.

Solidity: function DELEGATION_RULES_PROVIDER() view returns(bytes32)

func (*ModelRegistrySession) DELEGATIONRULESSESSION

func (_ModelRegistry *ModelRegistrySession) DELEGATIONRULESSESSION() ([32]byte, error)

DELEGATIONRULESSESSION is a free data retrieval call binding the contract method 0xd1b43638.

Solidity: function DELEGATION_RULES_SESSION() view returns(bytes32)

func (*ModelRegistrySession) DELEGATIONSTORAGESLOT

func (_ModelRegistry *ModelRegistrySession) DELEGATIONSTORAGESLOT() ([32]byte, error)

DELEGATIONSTORAGESLOT is a free data retrieval call binding the contract method 0xdd9b48cb.

Solidity: function DELEGATION_STORAGE_SLOT() view returns(bytes32)

func (*ModelRegistrySession) DIAMONDOWNABLESTORAGESLOT

func (_ModelRegistry *ModelRegistrySession) DIAMONDOWNABLESTORAGESLOT() ([32]byte, error)

DIAMONDOWNABLESTORAGESLOT is a free data retrieval call binding the contract method 0x4ac3371e.

Solidity: function DIAMOND_OWNABLE_STORAGE_SLOT() view returns(bytes32)

func (*ModelRegistrySession) GetActiveModelIds

func (_ModelRegistry *ModelRegistrySession) GetActiveModelIds(offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetActiveModelIds is a free data retrieval call binding the contract method 0x3839d3dc.

Solidity: function getActiveModelIds(uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*ModelRegistrySession) GetBid

func (_ModelRegistry *ModelRegistrySession) GetBid(bidId_ [32]byte) (IBidStorageBid, error)

GetBid is a free data retrieval call binding the contract method 0x91704e1e.

Solidity: function getBid(bytes32 bidId_) view returns((address,bytes32,uint256,uint256,uint128,uint128))

func (*ModelRegistrySession) GetIsModelActive

func (_ModelRegistry *ModelRegistrySession) GetIsModelActive(modelId_ [32]byte) (bool, error)

GetIsModelActive is a free data retrieval call binding the contract method 0xca74b5f3.

Solidity: function getIsModelActive(bytes32 modelId_) view returns(bool)

func (*ModelRegistrySession) GetModel

func (_ModelRegistry *ModelRegistrySession) GetModel(modelId_ [32]byte) (IModelStorageModel, error)

GetModel is a free data retrieval call binding the contract method 0x21e7c498.

Solidity: function getModel(bytes32 modelId_) view returns((bytes32,uint256,uint256,address,string,string[],uint128,bool))

func (*ModelRegistrySession) GetModelActiveBids

func (_ModelRegistry *ModelRegistrySession) GetModelActiveBids(modelId_ [32]byte, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetModelActiveBids is a free data retrieval call binding the contract method 0x8a683b6e.

Solidity: function getModelActiveBids(bytes32 modelId_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*ModelRegistrySession) GetModelBids

func (_ModelRegistry *ModelRegistrySession) GetModelBids(modelId_ [32]byte, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetModelBids is a free data retrieval call binding the contract method 0xfade17b1.

Solidity: function getModelBids(bytes32 modelId_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*ModelRegistrySession) GetModelId

func (_ModelRegistry *ModelRegistrySession) GetModelId(account_ common.Address, baseModelId_ [32]byte) ([32]byte, error)

GetModelId is a free data retrieval call binding the contract method 0xbb93d26a.

Solidity: function getModelId(address account_, bytes32 baseModelId_) pure returns(bytes32)

func (*ModelRegistrySession) GetModelIds

func (_ModelRegistry *ModelRegistrySession) GetModelIds(offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetModelIds is a free data retrieval call binding the contract method 0x08d0aab4.

Solidity: function getModelIds(uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*ModelRegistrySession) GetModelMinimumStake

func (_ModelRegistry *ModelRegistrySession) GetModelMinimumStake() (*big.Int, error)

GetModelMinimumStake is a free data retrieval call binding the contract method 0xf647ba3d.

Solidity: function getModelMinimumStake() view returns(uint256)

func (*ModelRegistrySession) GetProviderActiveBids

func (_ModelRegistry *ModelRegistrySession) GetProviderActiveBids(provider_ common.Address, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetProviderActiveBids is a free data retrieval call binding the contract method 0xaf5b77ca.

Solidity: function getProviderActiveBids(address provider_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*ModelRegistrySession) GetProviderBids

func (_ModelRegistry *ModelRegistrySession) GetProviderBids(provider_ common.Address, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetProviderBids is a free data retrieval call binding the contract method 0x59d435c4.

Solidity: function getProviderBids(address provider_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*ModelRegistrySession) GetRegistry

func (_ModelRegistry *ModelRegistrySession) GetRegistry() (common.Address, error)

GetRegistry is a free data retrieval call binding the contract method 0x5ab1bd53.

Solidity: function getRegistry() view returns(address)

func (*ModelRegistrySession) GetToken

func (_ModelRegistry *ModelRegistrySession) GetToken() (common.Address, error)

GetToken is a free data retrieval call binding the contract method 0x21df0da7.

Solidity: function getToken() view returns(address)

func (*ModelRegistrySession) IsBidActive

func (_ModelRegistry *ModelRegistrySession) IsBidActive(bidId_ [32]byte) (bool, error)

IsBidActive is a free data retrieval call binding the contract method 0x1345df58.

Solidity: function isBidActive(bytes32 bidId_) view returns(bool)

func (*ModelRegistrySession) IsRightsDelegated

func (_ModelRegistry *ModelRegistrySession) IsRightsDelegated(delegatee_ common.Address, delegator_ common.Address, rights_ [32]byte) (bool, error)

IsRightsDelegated is a free data retrieval call binding the contract method 0x54126b8f.

Solidity: function isRightsDelegated(address delegatee_, address delegator_, bytes32 rights_) view returns(bool)

func (*ModelRegistrySession) MODELSSTORAGESLOT

func (_ModelRegistry *ModelRegistrySession) MODELSSTORAGESLOT() ([32]byte, error)

MODELSSTORAGESLOT is a free data retrieval call binding the contract method 0x6f276c1e.

Solidity: function MODELS_STORAGE_SLOT() view returns(bytes32)

func (*ModelRegistrySession) ModelDeregister

func (_ModelRegistry *ModelRegistrySession) ModelDeregister(modelId_ [32]byte) (*types.Transaction, error)

ModelDeregister is a paid mutator transaction binding the contract method 0xd5a245f1.

Solidity: function modelDeregister(bytes32 modelId_) returns()

func (*ModelRegistrySession) ModelRegister

func (_ModelRegistry *ModelRegistrySession) ModelRegister(modelOwner_ common.Address, baseModelId_ [32]byte, ipfsCID_ [32]byte, fee_ *big.Int, amount_ *big.Int, name_ string, tags_ []string) (*types.Transaction, error)

ModelRegister is a paid mutator transaction binding the contract method 0x21dea0a0.

Solidity: function modelRegister(address modelOwner_, bytes32 baseModelId_, bytes32 ipfsCID_, uint256 fee_, uint256 amount_, string name_, string[] tags_) returns()

func (*ModelRegistrySession) ModelRegistryInit

func (_ModelRegistry *ModelRegistrySession) ModelRegistryInit() (*types.Transaction, error)

ModelRegistryInit is a paid mutator transaction binding the contract method 0xd69bdf30.

Solidity: function __ModelRegistry_init() returns()

func (*ModelRegistrySession) ModelSetMinStake

func (_ModelRegistry *ModelRegistrySession) ModelSetMinStake(modelMinimumStake_ *big.Int) (*types.Transaction, error)

ModelSetMinStake is a paid mutator transaction binding the contract method 0x78998329.

Solidity: function modelSetMinStake(uint256 modelMinimumStake_) returns()

func (*ModelRegistrySession) Owner

func (_ModelRegistry *ModelRegistrySession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

type ModelRegistryTransactor

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

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

func NewModelRegistryTransactor

func NewModelRegistryTransactor(address common.Address, transactor bind.ContractTransactor) (*ModelRegistryTransactor, error)

NewModelRegistryTransactor creates a new write-only instance of ModelRegistry, bound to a specific deployed contract.

func (*ModelRegistryTransactor) ModelDeregister

func (_ModelRegistry *ModelRegistryTransactor) ModelDeregister(opts *bind.TransactOpts, modelId_ [32]byte) (*types.Transaction, error)

ModelDeregister is a paid mutator transaction binding the contract method 0xd5a245f1.

Solidity: function modelDeregister(bytes32 modelId_) returns()

func (*ModelRegistryTransactor) ModelRegister

func (_ModelRegistry *ModelRegistryTransactor) ModelRegister(opts *bind.TransactOpts, modelOwner_ common.Address, baseModelId_ [32]byte, ipfsCID_ [32]byte, fee_ *big.Int, amount_ *big.Int, name_ string, tags_ []string) (*types.Transaction, error)

ModelRegister is a paid mutator transaction binding the contract method 0x21dea0a0.

Solidity: function modelRegister(address modelOwner_, bytes32 baseModelId_, bytes32 ipfsCID_, uint256 fee_, uint256 amount_, string name_, string[] tags_) returns()

func (*ModelRegistryTransactor) ModelRegistryInit

func (_ModelRegistry *ModelRegistryTransactor) ModelRegistryInit(opts *bind.TransactOpts) (*types.Transaction, error)

ModelRegistryInit is a paid mutator transaction binding the contract method 0xd69bdf30.

Solidity: function __ModelRegistry_init() returns()

func (*ModelRegistryTransactor) ModelSetMinStake

func (_ModelRegistry *ModelRegistryTransactor) ModelSetMinStake(opts *bind.TransactOpts, modelMinimumStake_ *big.Int) (*types.Transaction, error)

ModelSetMinStake is a paid mutator transaction binding the contract method 0x78998329.

Solidity: function modelSetMinStake(uint256 modelMinimumStake_) returns()

type ModelRegistryTransactorRaw

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

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

func (*ModelRegistryTransactorRaw) Transact

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

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

func (*ModelRegistryTransactorRaw) Transfer

func (_ModelRegistry *ModelRegistryTransactorRaw) 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 ModelRegistryTransactorSession

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

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

func (*ModelRegistryTransactorSession) ModelDeregister

func (_ModelRegistry *ModelRegistryTransactorSession) ModelDeregister(modelId_ [32]byte) (*types.Transaction, error)

ModelDeregister is a paid mutator transaction binding the contract method 0xd5a245f1.

Solidity: function modelDeregister(bytes32 modelId_) returns()

func (*ModelRegistryTransactorSession) ModelRegister

func (_ModelRegistry *ModelRegistryTransactorSession) ModelRegister(modelOwner_ common.Address, baseModelId_ [32]byte, ipfsCID_ [32]byte, fee_ *big.Int, amount_ *big.Int, name_ string, tags_ []string) (*types.Transaction, error)

ModelRegister is a paid mutator transaction binding the contract method 0x21dea0a0.

Solidity: function modelRegister(address modelOwner_, bytes32 baseModelId_, bytes32 ipfsCID_, uint256 fee_, uint256 amount_, string name_, string[] tags_) returns()

func (*ModelRegistryTransactorSession) ModelRegistryInit

func (_ModelRegistry *ModelRegistryTransactorSession) ModelRegistryInit() (*types.Transaction, error)

ModelRegistryInit is a paid mutator transaction binding the contract method 0xd69bdf30.

Solidity: function __ModelRegistry_init() returns()

func (*ModelRegistryTransactorSession) ModelSetMinStake

func (_ModelRegistry *ModelRegistryTransactorSession) ModelSetMinStake(modelMinimumStake_ *big.Int) (*types.Transaction, error)

ModelSetMinStake is a paid mutator transaction binding the contract method 0x78998329.

Solidity: function modelSetMinStake(uint256 modelMinimumStake_) returns()

Jump to

Keyboard shortcuts

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