Documentation
¶
Index ¶
- Variables
- type AgentShares
- type AgentSharesApprovalForAll
- type AgentSharesApprovalForAllIterator
- type AgentSharesCaller
- func (_AgentShares *AgentSharesCaller) BalanceOf(opts *bind.CallOpts, account common.Address, id *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesCaller) BalanceOfBatch(opts *bind.CallOpts, accounts []common.Address, ids []*big.Int) ([]*big.Int, error)
- func (_AgentShares *AgentSharesCaller) BaseToken(opts *bind.CallOpts) (common.Address, error)
- func (_AgentShares *AgentSharesCaller) GetBuyPrice(opts *bind.CallOpts, tokenId *big.Int, amount *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesCaller) GetBuyPriceAfterFee(opts *bind.CallOpts, tokenId *big.Int, amount *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesCaller) GetChainId(opts *bind.CallOpts) (*big.Int, error)
- func (_AgentShares *AgentSharesCaller) GetPrice(opts *bind.CallOpts, supply *big.Int, amount *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesCaller) GetSellPrice(opts *bind.CallOpts, tokenId *big.Int, amount *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesCaller) GetSellPriceAfterFee(opts *bind.CallOpts, tokenId *big.Int, amount *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesCaller) IsApprovedForAll(opts *bind.CallOpts, account common.Address, operator common.Address) (bool, error)
- func (_AgentShares *AgentSharesCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_AgentShares *AgentSharesCaller) ProtocolAdmin(opts *bind.CallOpts) (common.Address, error)
- func (_AgentShares *AgentSharesCaller) ProtocolFeeDestination(opts *bind.CallOpts) (common.Address, error)
- func (_AgentShares *AgentSharesCaller) ProtocolFeePercent(opts *bind.CallOpts) (*big.Int, error)
- func (_AgentShares *AgentSharesCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
- func (_AgentShares *AgentSharesCaller) TokenDeployed(opts *bind.CallOpts) (common.Address, error)
- func (_AgentShares *AgentSharesCaller) TokenSupply(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesCaller) Tokens(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
- func (_AgentShares *AgentSharesCaller) Uri(opts *bind.CallOpts, arg0 *big.Int) (string, error)
- type AgentSharesCallerRaw
- type AgentSharesCallerSession
- func (_AgentShares *AgentSharesCallerSession) BalanceOf(account common.Address, id *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesCallerSession) BalanceOfBatch(accounts []common.Address, ids []*big.Int) ([]*big.Int, error)
- func (_AgentShares *AgentSharesCallerSession) BaseToken() (common.Address, error)
- func (_AgentShares *AgentSharesCallerSession) GetBuyPrice(tokenId *big.Int, amount *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesCallerSession) GetBuyPriceAfterFee(tokenId *big.Int, amount *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesCallerSession) GetChainId() (*big.Int, error)
- func (_AgentShares *AgentSharesCallerSession) GetPrice(supply *big.Int, amount *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesCallerSession) GetSellPrice(tokenId *big.Int, amount *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesCallerSession) GetSellPriceAfterFee(tokenId *big.Int, amount *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesCallerSession) IsApprovedForAll(account common.Address, operator common.Address) (bool, error)
- func (_AgentShares *AgentSharesCallerSession) Owner() (common.Address, error)
- func (_AgentShares *AgentSharesCallerSession) ProtocolAdmin() (common.Address, error)
- func (_AgentShares *AgentSharesCallerSession) ProtocolFeeDestination() (common.Address, error)
- func (_AgentShares *AgentSharesCallerSession) ProtocolFeePercent() (*big.Int, error)
- func (_AgentShares *AgentSharesCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_AgentShares *AgentSharesCallerSession) TokenDeployed() (common.Address, error)
- func (_AgentShares *AgentSharesCallerSession) TokenSupply(arg0 *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesCallerSession) Tokens(arg0 *big.Int) (common.Address, error)
- func (_AgentShares *AgentSharesCallerSession) Uri(arg0 *big.Int) (string, error)
- type AgentSharesFilterer
- func (_AgentShares *AgentSharesFilterer) FilterApprovalForAll(opts *bind.FilterOpts, account []common.Address, operator []common.Address) (*AgentSharesApprovalForAllIterator, error)
- func (_AgentShares *AgentSharesFilterer) FilterInitialized(opts *bind.FilterOpts) (*AgentSharesInitializedIterator, error)
- func (_AgentShares *AgentSharesFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*AgentSharesOwnershipTransferredIterator, error)
- func (_AgentShares *AgentSharesFilterer) FilterTokenClaimed(opts *bind.FilterOpts, tokenId []*big.Int, token []common.Address, ...) (*AgentSharesTokenClaimedIterator, error)
- func (_AgentShares *AgentSharesFilterer) FilterTokenDeployed(opts *bind.FilterOpts, tokenId []*big.Int, token []common.Address) (*AgentSharesTokenDeployedIterator, error)
- func (_AgentShares *AgentSharesFilterer) FilterTrade(opts *bind.FilterOpts) (*AgentSharesTradeIterator, error)
- func (_AgentShares *AgentSharesFilterer) FilterTransferBatch(opts *bind.FilterOpts, operator []common.Address, from []common.Address, ...) (*AgentSharesTransferBatchIterator, error)
- func (_AgentShares *AgentSharesFilterer) FilterTransferSingle(opts *bind.FilterOpts, operator []common.Address, from []common.Address, ...) (*AgentSharesTransferSingleIterator, error)
- func (_AgentShares *AgentSharesFilterer) FilterURI(opts *bind.FilterOpts, id []*big.Int) (*AgentSharesURIIterator, error)
- func (_AgentShares *AgentSharesFilterer) ParseApprovalForAll(log types.Log) (*AgentSharesApprovalForAll, error)
- func (_AgentShares *AgentSharesFilterer) ParseInitialized(log types.Log) (*AgentSharesInitialized, error)
- func (_AgentShares *AgentSharesFilterer) ParseOwnershipTransferred(log types.Log) (*AgentSharesOwnershipTransferred, error)
- func (_AgentShares *AgentSharesFilterer) ParseTokenClaimed(log types.Log) (*AgentSharesTokenClaimed, error)
- func (_AgentShares *AgentSharesFilterer) ParseTokenDeployed(log types.Log) (*AgentSharesTokenDeployed, error)
- func (_AgentShares *AgentSharesFilterer) ParseTrade(log types.Log) (*AgentSharesTrade, error)
- func (_AgentShares *AgentSharesFilterer) ParseTransferBatch(log types.Log) (*AgentSharesTransferBatch, error)
- func (_AgentShares *AgentSharesFilterer) ParseTransferSingle(log types.Log) (*AgentSharesTransferSingle, error)
- func (_AgentShares *AgentSharesFilterer) ParseURI(log types.Log) (*AgentSharesURI, error)
- func (_AgentShares *AgentSharesFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *AgentSharesApprovalForAll, ...) (event.Subscription, error)
- func (_AgentShares *AgentSharesFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *AgentSharesInitialized) (event.Subscription, error)
- func (_AgentShares *AgentSharesFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *AgentSharesOwnershipTransferred, ...) (event.Subscription, error)
- func (_AgentShares *AgentSharesFilterer) WatchTokenClaimed(opts *bind.WatchOpts, sink chan<- *AgentSharesTokenClaimed, tokenId []*big.Int, ...) (event.Subscription, error)
- func (_AgentShares *AgentSharesFilterer) WatchTokenDeployed(opts *bind.WatchOpts, sink chan<- *AgentSharesTokenDeployed, ...) (event.Subscription, error)
- func (_AgentShares *AgentSharesFilterer) WatchTrade(opts *bind.WatchOpts, sink chan<- *AgentSharesTrade) (event.Subscription, error)
- func (_AgentShares *AgentSharesFilterer) WatchTransferBatch(opts *bind.WatchOpts, sink chan<- *AgentSharesTransferBatch, ...) (event.Subscription, error)
- func (_AgentShares *AgentSharesFilterer) WatchTransferSingle(opts *bind.WatchOpts, sink chan<- *AgentSharesTransferSingle, ...) (event.Subscription, error)
- func (_AgentShares *AgentSharesFilterer) WatchURI(opts *bind.WatchOpts, sink chan<- *AgentSharesURI, id []*big.Int) (event.Subscription, error)
- type AgentSharesInitialized
- type AgentSharesInitializedIterator
- type AgentSharesOwnershipTransferred
- type AgentSharesOwnershipTransferredIterator
- type AgentSharesRaw
- func (_AgentShares *AgentSharesRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_AgentShares *AgentSharesRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_AgentShares *AgentSharesRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type AgentSharesSession
- func (_AgentShares *AgentSharesSession) BalanceOf(account common.Address, id *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesSession) BalanceOfBatch(accounts []common.Address, ids []*big.Int) ([]*big.Int, error)
- func (_AgentShares *AgentSharesSession) BaseToken() (common.Address, error)
- func (_AgentShares *AgentSharesSession) BuyShares(tokenId *big.Int, amount *big.Int, supplyMax *big.Int) (*types.Transaction, error)
- func (_AgentShares *AgentSharesSession) ClaimToken(tokenId *big.Int, user common.Address) (*types.Transaction, error)
- func (_AgentShares *AgentSharesSession) DeployToken(tokenId *big.Int, name string, symbol string) (*types.Transaction, error)
- func (_AgentShares *AgentSharesSession) GetBuyPrice(tokenId *big.Int, amount *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesSession) GetBuyPriceAfterFee(tokenId *big.Int, amount *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesSession) GetChainId() (*big.Int, error)
- func (_AgentShares *AgentSharesSession) GetPrice(supply *big.Int, amount *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesSession) GetSellPrice(tokenId *big.Int, amount *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesSession) GetSellPriceAfterFee(tokenId *big.Int, amount *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesSession) Initialize(_baseToken common.Address) (*types.Transaction, error)
- func (_AgentShares *AgentSharesSession) IsApprovedForAll(account common.Address, operator common.Address) (bool, error)
- func (_AgentShares *AgentSharesSession) Multicall(data [][]byte) (*types.Transaction, error)
- func (_AgentShares *AgentSharesSession) Owner() (common.Address, error)
- func (_AgentShares *AgentSharesSession) ProtocolAdmin() (common.Address, error)
- func (_AgentShares *AgentSharesSession) ProtocolFeeDestination() (common.Address, error)
- func (_AgentShares *AgentSharesSession) ProtocolFeePercent() (*big.Int, error)
- func (_AgentShares *AgentSharesSession) RenounceOwnership() (*types.Transaction, error)
- func (_AgentShares *AgentSharesSession) SafeBatchTransferFrom(from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int, ...) (*types.Transaction, error)
- func (_AgentShares *AgentSharesSession) SafeTransferFrom(from common.Address, to common.Address, id *big.Int, amount *big.Int, ...) (*types.Transaction, error)
- func (_AgentShares *AgentSharesSession) SellShares(tokenId *big.Int, amount *big.Int, supplyMin *big.Int) (*types.Transaction, error)
- func (_AgentShares *AgentSharesSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)
- func (_AgentShares *AgentSharesSession) SetFeeDestination(_feeDestination common.Address) (*types.Transaction, error)
- func (_AgentShares *AgentSharesSession) SetProtocolAdmin(_protocolAdmin common.Address) (*types.Transaction, error)
- func (_AgentShares *AgentSharesSession) SetProtocolFeePercent(_feePercent *big.Int) (*types.Transaction, error)
- func (_AgentShares *AgentSharesSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_AgentShares *AgentSharesSession) TokenDeployed() (common.Address, error)
- func (_AgentShares *AgentSharesSession) TokenSupply(arg0 *big.Int) (*big.Int, error)
- func (_AgentShares *AgentSharesSession) Tokens(arg0 *big.Int) (common.Address, error)
- func (_AgentShares *AgentSharesSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_AgentShares *AgentSharesSession) Uri(arg0 *big.Int) (string, error)
- type AgentSharesTokenClaimed
- type AgentSharesTokenClaimedIterator
- type AgentSharesTokenDeployed
- type AgentSharesTokenDeployedIterator
- type AgentSharesTrade
- type AgentSharesTradeIterator
- type AgentSharesTransactor
- func (_AgentShares *AgentSharesTransactor) BuyShares(opts *bind.TransactOpts, tokenId *big.Int, amount *big.Int, supplyMax *big.Int) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactor) ClaimToken(opts *bind.TransactOpts, tokenId *big.Int, user common.Address) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactor) DeployToken(opts *bind.TransactOpts, tokenId *big.Int, name string, symbol string) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactor) Initialize(opts *bind.TransactOpts, _baseToken common.Address) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactor) Multicall(opts *bind.TransactOpts, data [][]byte) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactor) SafeBatchTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, id *big.Int, ...) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactor) SellShares(opts *bind.TransactOpts, tokenId *big.Int, amount *big.Int, supplyMin *big.Int) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactor) SetFeeDestination(opts *bind.TransactOpts, _feeDestination common.Address) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactor) SetProtocolAdmin(opts *bind.TransactOpts, _protocolAdmin common.Address) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactor) SetProtocolFeePercent(opts *bind.TransactOpts, _feePercent *big.Int) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- type AgentSharesTransactorRaw
- type AgentSharesTransactorSession
- func (_AgentShares *AgentSharesTransactorSession) BuyShares(tokenId *big.Int, amount *big.Int, supplyMax *big.Int) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactorSession) ClaimToken(tokenId *big.Int, user common.Address) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactorSession) DeployToken(tokenId *big.Int, name string, symbol string) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactorSession) Initialize(_baseToken common.Address) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactorSession) Multicall(data [][]byte) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactorSession) SafeBatchTransferFrom(from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int, ...) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactorSession) SafeTransferFrom(from common.Address, to common.Address, id *big.Int, amount *big.Int, ...) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactorSession) SellShares(tokenId *big.Int, amount *big.Int, supplyMin *big.Int) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactorSession) SetFeeDestination(_feeDestination common.Address) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactorSession) SetProtocolAdmin(_protocolAdmin common.Address) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactorSession) SetProtocolFeePercent(_feePercent *big.Int) (*types.Transaction, error)
- func (_AgentShares *AgentSharesTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- type AgentSharesTransferBatch
- type AgentSharesTransferBatchIterator
- type AgentSharesTransferSingle
- type AgentSharesTransferSingleIterator
- type AgentSharesURI
- type AgentSharesURIIterator
Constants ¶
This section is empty.
Variables ¶
AgentSharesABI is the input ABI used to generate the binding from. Deprecated: Use AgentSharesMetaData.ABI instead.
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"TokenClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"TokenDeployed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"isBuy\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shareAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"ethAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"protocolAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"supply\",\"type\":\"uint256\"}],\"name\":\"Trade\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"name\":\"TransferBatch\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"TransferSingle\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"URI\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"accounts\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"}],\"name\":\"balanceOfBatch\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"baseToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"supplyMax\",\"type\":\"uint256\"}],\"name\":\"buyShares\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"claimToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"}],\"name\":\"deployToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"getBuyPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"getBuyPriceAfterFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"supply\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"getPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"getSellPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"getSellPriceAfterFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_baseToken\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"protocolAdmin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"protocolFeeDestination\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"protocolFeePercent\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeBatchTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"supplyMin\",\"type\":\"uint256\"}],\"name\":\"sellShares\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeDestination\",\"type\":\"address\"}],\"name\":\"setFeeDestination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_protocolAdmin\",\"type\":\"address\"}],\"name\":\"setProtocolAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_feePercent\",\"type\":\"uint256\"}],\"name\":\"setProtocolFeePercent\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenDeployed\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"tokenSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"tokens\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"uri\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}AgentSharesMetaData contains all meta data concerning the AgentShares contract.
Functions ¶
This section is empty.
Types ¶
type AgentShares ¶
type AgentShares struct {}
AgentShares is an auto generated Go binding around an Ethereum contract.
func NewAgentShares ¶
func NewAgentShares(address common.Address, backend bind.ContractBackend) (*AgentShares, error)
NewAgentShares creates a new instance of AgentShares, bound to a specific deployed contract.
type AgentSharesApprovalForAll ¶
type AgentSharesApprovalForAll struct {}
AgentSharesApprovalForAll represents a ApprovalForAll event raised by the AgentShares contract.
type AgentSharesApprovalForAllIterator ¶
type AgentSharesApprovalForAllIterator struct { // contains filtered or unexported fields }
AgentSharesApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the AgentShares contract.
func (*AgentSharesApprovalForAllIterator) Close ¶
func (it *AgentSharesApprovalForAllIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*AgentSharesApprovalForAllIterator) Error ¶
func (it *AgentSharesApprovalForAllIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*AgentSharesApprovalForAllIterator) Next ¶
func (it *AgentSharesApprovalForAllIterator) 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 AgentSharesCaller ¶
type AgentSharesCaller struct {
// contains filtered or unexported fields
}
AgentSharesCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewAgentSharesCaller ¶
func NewAgentSharesCaller(address common.Address, caller bind.ContractCaller) (*AgentSharesCaller, error)
NewAgentSharesCaller creates a new read-only instance of AgentShares, bound to a specific deployed contract.
func (*AgentSharesCaller) BalanceOf ¶
func (_AgentShares *AgentSharesCaller) BalanceOf(opts *bind.CallOpts, account common.Address, id *big.Int) (*big.Int, error)
BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.
Solidity: function balanceOf(address account, uint256 id) view returns(uint256)
func (*AgentSharesCaller) BalanceOfBatch ¶
func (_AgentShares *AgentSharesCaller) BalanceOfBatch(opts *bind.CallOpts, accounts []common.Address, ids []*big.Int) ([]*big.Int, error)
BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.
Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])
func (*AgentSharesCaller) BaseToken ¶
BaseToken is a free data retrieval call binding the contract method 0xc55dae63.
Solidity: function baseToken() view returns(address)
func (*AgentSharesCaller) GetBuyPrice ¶
func (_AgentShares *AgentSharesCaller) GetBuyPrice(opts *bind.CallOpts, tokenId *big.Int, amount *big.Int) (*big.Int, error)
GetBuyPrice is a free data retrieval call binding the contract method 0xc157253d.
Solidity: function getBuyPrice(uint256 tokenId, uint256 amount) view returns(uint256)
func (*AgentSharesCaller) GetBuyPriceAfterFee ¶
func (_AgentShares *AgentSharesCaller) GetBuyPriceAfterFee(opts *bind.CallOpts, tokenId *big.Int, amount *big.Int) (*big.Int, error)
GetBuyPriceAfterFee is a free data retrieval call binding the contract method 0x063a741f.
Solidity: function getBuyPriceAfterFee(uint256 tokenId, uint256 amount) view returns(uint256)
func (*AgentSharesCaller) GetChainId ¶
GetChainId is a free data retrieval call binding the contract method 0x3408e470.
Solidity: function getChainId() view returns(uint256 chainId)
func (*AgentSharesCaller) GetPrice ¶
func (_AgentShares *AgentSharesCaller) GetPrice(opts *bind.CallOpts, supply *big.Int, amount *big.Int) (*big.Int, error)
GetPrice is a free data retrieval call binding the contract method 0x5cf4ee91.
Solidity: function getPrice(uint256 supply, uint256 amount) pure returns(uint256)
func (*AgentSharesCaller) GetSellPrice ¶
func (_AgentShares *AgentSharesCaller) GetSellPrice(opts *bind.CallOpts, tokenId *big.Int, amount *big.Int) (*big.Int, error)
GetSellPrice is a free data retrieval call binding the contract method 0x9477d85d.
Solidity: function getSellPrice(uint256 tokenId, uint256 amount) view returns(uint256)
func (*AgentSharesCaller) GetSellPriceAfterFee ¶
func (_AgentShares *AgentSharesCaller) GetSellPriceAfterFee(opts *bind.CallOpts, tokenId *big.Int, amount *big.Int) (*big.Int, error)
GetSellPriceAfterFee is a free data retrieval call binding the contract method 0xcd9c7121.
Solidity: function getSellPriceAfterFee(uint256 tokenId, uint256 amount) view returns(uint256)
func (*AgentSharesCaller) IsApprovedForAll ¶
func (_AgentShares *AgentSharesCaller) IsApprovedForAll(opts *bind.CallOpts, account common.Address, operator common.Address) (bool, error)
IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.
Solidity: function isApprovedForAll(address account, address operator) view returns(bool)
func (*AgentSharesCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*AgentSharesCaller) ProtocolAdmin ¶
ProtocolAdmin is a free data retrieval call binding the contract method 0x420f6861.
Solidity: function protocolAdmin() view returns(address)
func (*AgentSharesCaller) ProtocolFeeDestination ¶
func (_AgentShares *AgentSharesCaller) ProtocolFeeDestination(opts *bind.CallOpts) (common.Address, error)
ProtocolFeeDestination is a free data retrieval call binding the contract method 0x4ce7957c.
Solidity: function protocolFeeDestination() view returns(address)
func (*AgentSharesCaller) ProtocolFeePercent ¶
ProtocolFeePercent is a free data retrieval call binding the contract method 0xd6e6eb9f.
Solidity: function protocolFeePercent() view returns(uint256)
func (*AgentSharesCaller) SupportsInterface ¶
func (_AgentShares *AgentSharesCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (*AgentSharesCaller) TokenDeployed ¶
TokenDeployed is a free data retrieval call binding the contract method 0x1039a12d.
Solidity: function tokenDeployed() view returns(address)
func (*AgentSharesCaller) TokenSupply ¶
func (_AgentShares *AgentSharesCaller) TokenSupply(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
TokenSupply is a free data retrieval call binding the contract method 0x2693ebf2.
Solidity: function tokenSupply(uint256 ) view returns(uint256)
type AgentSharesCallerRaw ¶
type AgentSharesCallerRaw struct {
}AgentSharesCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*AgentSharesCallerRaw) Call ¶
func (_AgentShares *AgentSharesCallerRaw) 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 AgentSharesCallerSession ¶
type AgentSharesCallerSession struct {}
AgentSharesCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*AgentSharesCallerSession) BalanceOf ¶
func (_AgentShares *AgentSharesCallerSession) BalanceOf(account common.Address, id *big.Int) (*big.Int, error)
BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.
Solidity: function balanceOf(address account, uint256 id) view returns(uint256)
func (*AgentSharesCallerSession) BalanceOfBatch ¶
func (_AgentShares *AgentSharesCallerSession) BalanceOfBatch(accounts []common.Address, ids []*big.Int) ([]*big.Int, error)
BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.
Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])
func (*AgentSharesCallerSession) BaseToken ¶
func (_AgentShares *AgentSharesCallerSession) BaseToken() (common.Address, error)
BaseToken is a free data retrieval call binding the contract method 0xc55dae63.
Solidity: function baseToken() view returns(address)
func (*AgentSharesCallerSession) GetBuyPrice ¶
func (_AgentShares *AgentSharesCallerSession) GetBuyPrice(tokenId *big.Int, amount *big.Int) (*big.Int, error)
GetBuyPrice is a free data retrieval call binding the contract method 0xc157253d.
Solidity: function getBuyPrice(uint256 tokenId, uint256 amount) view returns(uint256)
func (*AgentSharesCallerSession) GetBuyPriceAfterFee ¶
func (_AgentShares *AgentSharesCallerSession) GetBuyPriceAfterFee(tokenId *big.Int, amount *big.Int) (*big.Int, error)
GetBuyPriceAfterFee is a free data retrieval call binding the contract method 0x063a741f.
Solidity: function getBuyPriceAfterFee(uint256 tokenId, uint256 amount) view returns(uint256)
func (*AgentSharesCallerSession) GetChainId ¶
func (_AgentShares *AgentSharesCallerSession) GetChainId() (*big.Int, error)
GetChainId is a free data retrieval call binding the contract method 0x3408e470.
Solidity: function getChainId() view returns(uint256 chainId)
func (*AgentSharesCallerSession) GetPrice ¶
func (_AgentShares *AgentSharesCallerSession) GetPrice(supply *big.Int, amount *big.Int) (*big.Int, error)
GetPrice is a free data retrieval call binding the contract method 0x5cf4ee91.
Solidity: function getPrice(uint256 supply, uint256 amount) pure returns(uint256)
func (*AgentSharesCallerSession) GetSellPrice ¶
func (_AgentShares *AgentSharesCallerSession) GetSellPrice(tokenId *big.Int, amount *big.Int) (*big.Int, error)
GetSellPrice is a free data retrieval call binding the contract method 0x9477d85d.
Solidity: function getSellPrice(uint256 tokenId, uint256 amount) view returns(uint256)
func (*AgentSharesCallerSession) GetSellPriceAfterFee ¶
func (_AgentShares *AgentSharesCallerSession) GetSellPriceAfterFee(tokenId *big.Int, amount *big.Int) (*big.Int, error)
GetSellPriceAfterFee is a free data retrieval call binding the contract method 0xcd9c7121.
Solidity: function getSellPriceAfterFee(uint256 tokenId, uint256 amount) view returns(uint256)
func (*AgentSharesCallerSession) IsApprovedForAll ¶
func (_AgentShares *AgentSharesCallerSession) IsApprovedForAll(account common.Address, operator common.Address) (bool, error)
IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.
Solidity: function isApprovedForAll(address account, address operator) view returns(bool)
func (*AgentSharesCallerSession) Owner ¶
func (_AgentShares *AgentSharesCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*AgentSharesCallerSession) ProtocolAdmin ¶
func (_AgentShares *AgentSharesCallerSession) ProtocolAdmin() (common.Address, error)
ProtocolAdmin is a free data retrieval call binding the contract method 0x420f6861.
Solidity: function protocolAdmin() view returns(address)
func (*AgentSharesCallerSession) ProtocolFeeDestination ¶
func (_AgentShares *AgentSharesCallerSession) ProtocolFeeDestination() (common.Address, error)
ProtocolFeeDestination is a free data retrieval call binding the contract method 0x4ce7957c.
Solidity: function protocolFeeDestination() view returns(address)
func (*AgentSharesCallerSession) ProtocolFeePercent ¶
func (_AgentShares *AgentSharesCallerSession) ProtocolFeePercent() (*big.Int, error)
ProtocolFeePercent is a free data retrieval call binding the contract method 0xd6e6eb9f.
Solidity: function protocolFeePercent() view returns(uint256)
func (*AgentSharesCallerSession) SupportsInterface ¶
func (_AgentShares *AgentSharesCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (*AgentSharesCallerSession) TokenDeployed ¶
func (_AgentShares *AgentSharesCallerSession) TokenDeployed() (common.Address, error)
TokenDeployed is a free data retrieval call binding the contract method 0x1039a12d.
Solidity: function tokenDeployed() view returns(address)
func (*AgentSharesCallerSession) TokenSupply ¶
TokenSupply is a free data retrieval call binding the contract method 0x2693ebf2.
Solidity: function tokenSupply(uint256 ) view returns(uint256)
type AgentSharesFilterer ¶
type AgentSharesFilterer struct {
// contains filtered or unexported fields
}
AgentSharesFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewAgentSharesFilterer ¶
func NewAgentSharesFilterer(address common.Address, filterer bind.ContractFilterer) (*AgentSharesFilterer, error)
NewAgentSharesFilterer creates a new log filterer instance of AgentShares, bound to a specific deployed contract.
func (*AgentSharesFilterer) FilterApprovalForAll ¶
func (_AgentShares *AgentSharesFilterer) FilterApprovalForAll(opts *bind.FilterOpts, account []common.Address, operator []common.Address) (*AgentSharesApprovalForAllIterator, error)
FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.
Solidity: event ApprovalForAll(address indexed account, address indexed operator, bool approved)
func (*AgentSharesFilterer) FilterInitialized ¶
func (_AgentShares *AgentSharesFilterer) FilterInitialized(opts *bind.FilterOpts) (*AgentSharesInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*AgentSharesFilterer) FilterOwnershipTransferred ¶
func (_AgentShares *AgentSharesFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*AgentSharesOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*AgentSharesFilterer) FilterTokenClaimed ¶
func (_AgentShares *AgentSharesFilterer) FilterTokenClaimed(opts *bind.FilterOpts, tokenId []*big.Int, token []common.Address, user []common.Address) (*AgentSharesTokenClaimedIterator, error)
FilterTokenClaimed is a free log retrieval operation binding the contract event 0xa0126cb27d0e7a0ae1b6240b529bbdaaa427fd657cc72b15acf3ddbac115b66e.
Solidity: event TokenClaimed(uint256 indexed tokenId, address indexed token, address indexed user, uint256 amount)
func (*AgentSharesFilterer) FilterTokenDeployed ¶
func (_AgentShares *AgentSharesFilterer) FilterTokenDeployed(opts *bind.FilterOpts, tokenId []*big.Int, token []common.Address) (*AgentSharesTokenDeployedIterator, error)
FilterTokenDeployed is a free log retrieval operation binding the contract event 0xb0886d5b89c3540effacb4587a5c495172ace26a507fef96fb8ccb8376ae9df5.
Solidity: event TokenDeployed(uint256 indexed tokenId, address indexed token)
func (*AgentSharesFilterer) FilterTrade ¶
func (_AgentShares *AgentSharesFilterer) FilterTrade(opts *bind.FilterOpts) (*AgentSharesTradeIterator, error)
FilterTrade is a free log retrieval operation binding the contract event 0x12d0646903287d48eb117ac55a8bcc90d4357c4180221d5b33e83e73860440ec.
Solidity: event Trade(address trader, uint256 tokenId, bool isBuy, uint256 shareAmount, uint256 ethAmount, uint256 protocolAmount, uint256 supply)
func (*AgentSharesFilterer) FilterTransferBatch ¶
func (_AgentShares *AgentSharesFilterer) FilterTransferBatch(opts *bind.FilterOpts, operator []common.Address, from []common.Address, to []common.Address) (*AgentSharesTransferBatchIterator, error)
FilterTransferBatch is a free log retrieval operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.
Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)
func (*AgentSharesFilterer) FilterTransferSingle ¶
func (_AgentShares *AgentSharesFilterer) FilterTransferSingle(opts *bind.FilterOpts, operator []common.Address, from []common.Address, to []common.Address) (*AgentSharesTransferSingleIterator, error)
FilterTransferSingle is a free log retrieval operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.
Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)
func (*AgentSharesFilterer) FilterURI ¶
func (_AgentShares *AgentSharesFilterer) FilterURI(opts *bind.FilterOpts, id []*big.Int) (*AgentSharesURIIterator, error)
FilterURI is a free log retrieval operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.
Solidity: event URI(string value, uint256 indexed id)
func (*AgentSharesFilterer) ParseApprovalForAll ¶
func (_AgentShares *AgentSharesFilterer) ParseApprovalForAll(log types.Log) (*AgentSharesApprovalForAll, error)
ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.
Solidity: event ApprovalForAll(address indexed account, address indexed operator, bool approved)
func (*AgentSharesFilterer) ParseInitialized ¶
func (_AgentShares *AgentSharesFilterer) ParseInitialized(log types.Log) (*AgentSharesInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*AgentSharesFilterer) ParseOwnershipTransferred ¶
func (_AgentShares *AgentSharesFilterer) ParseOwnershipTransferred(log types.Log) (*AgentSharesOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*AgentSharesFilterer) ParseTokenClaimed ¶
func (_AgentShares *AgentSharesFilterer) ParseTokenClaimed(log types.Log) (*AgentSharesTokenClaimed, error)
ParseTokenClaimed is a log parse operation binding the contract event 0xa0126cb27d0e7a0ae1b6240b529bbdaaa427fd657cc72b15acf3ddbac115b66e.
Solidity: event TokenClaimed(uint256 indexed tokenId, address indexed token, address indexed user, uint256 amount)
func (*AgentSharesFilterer) ParseTokenDeployed ¶
func (_AgentShares *AgentSharesFilterer) ParseTokenDeployed(log types.Log) (*AgentSharesTokenDeployed, error)
ParseTokenDeployed is a log parse operation binding the contract event 0xb0886d5b89c3540effacb4587a5c495172ace26a507fef96fb8ccb8376ae9df5.
Solidity: event TokenDeployed(uint256 indexed tokenId, address indexed token)
func (*AgentSharesFilterer) ParseTrade ¶
func (_AgentShares *AgentSharesFilterer) ParseTrade(log types.Log) (*AgentSharesTrade, error)
ParseTrade is a log parse operation binding the contract event 0x12d0646903287d48eb117ac55a8bcc90d4357c4180221d5b33e83e73860440ec.
Solidity: event Trade(address trader, uint256 tokenId, bool isBuy, uint256 shareAmount, uint256 ethAmount, uint256 protocolAmount, uint256 supply)
func (*AgentSharesFilterer) ParseTransferBatch ¶
func (_AgentShares *AgentSharesFilterer) ParseTransferBatch(log types.Log) (*AgentSharesTransferBatch, error)
ParseTransferBatch is a log parse operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.
Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)
func (*AgentSharesFilterer) ParseTransferSingle ¶
func (_AgentShares *AgentSharesFilterer) ParseTransferSingle(log types.Log) (*AgentSharesTransferSingle, error)
ParseTransferSingle is a log parse operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.
Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)
func (*AgentSharesFilterer) ParseURI ¶
func (_AgentShares *AgentSharesFilterer) ParseURI(log types.Log) (*AgentSharesURI, error)
ParseURI is a log parse operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.
Solidity: event URI(string value, uint256 indexed id)
func (*AgentSharesFilterer) WatchApprovalForAll ¶
func (_AgentShares *AgentSharesFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *AgentSharesApprovalForAll, account []common.Address, operator []common.Address) (event.Subscription, error)
WatchApprovalForAll is a free log subscription operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.
Solidity: event ApprovalForAll(address indexed account, address indexed operator, bool approved)
func (*AgentSharesFilterer) WatchInitialized ¶
func (_AgentShares *AgentSharesFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *AgentSharesInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*AgentSharesFilterer) WatchOwnershipTransferred ¶
func (_AgentShares *AgentSharesFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *AgentSharesOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*AgentSharesFilterer) WatchTokenClaimed ¶
func (_AgentShares *AgentSharesFilterer) WatchTokenClaimed(opts *bind.WatchOpts, sink chan<- *AgentSharesTokenClaimed, tokenId []*big.Int, token []common.Address, user []common.Address) (event.Subscription, error)
WatchTokenClaimed is a free log subscription operation binding the contract event 0xa0126cb27d0e7a0ae1b6240b529bbdaaa427fd657cc72b15acf3ddbac115b66e.
Solidity: event TokenClaimed(uint256 indexed tokenId, address indexed token, address indexed user, uint256 amount)
func (*AgentSharesFilterer) WatchTokenDeployed ¶
func (_AgentShares *AgentSharesFilterer) WatchTokenDeployed(opts *bind.WatchOpts, sink chan<- *AgentSharesTokenDeployed, tokenId []*big.Int, token []common.Address) (event.Subscription, error)
WatchTokenDeployed is a free log subscription operation binding the contract event 0xb0886d5b89c3540effacb4587a5c495172ace26a507fef96fb8ccb8376ae9df5.
Solidity: event TokenDeployed(uint256 indexed tokenId, address indexed token)
func (*AgentSharesFilterer) WatchTrade ¶
func (_AgentShares *AgentSharesFilterer) WatchTrade(opts *bind.WatchOpts, sink chan<- *AgentSharesTrade) (event.Subscription, error)
WatchTrade is a free log subscription operation binding the contract event 0x12d0646903287d48eb117ac55a8bcc90d4357c4180221d5b33e83e73860440ec.
Solidity: event Trade(address trader, uint256 tokenId, bool isBuy, uint256 shareAmount, uint256 ethAmount, uint256 protocolAmount, uint256 supply)
func (*AgentSharesFilterer) WatchTransferBatch ¶
func (_AgentShares *AgentSharesFilterer) WatchTransferBatch(opts *bind.WatchOpts, sink chan<- *AgentSharesTransferBatch, operator []common.Address, from []common.Address, to []common.Address) (event.Subscription, error)
WatchTransferBatch is a free log subscription operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.
Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)
func (*AgentSharesFilterer) WatchTransferSingle ¶
func (_AgentShares *AgentSharesFilterer) WatchTransferSingle(opts *bind.WatchOpts, sink chan<- *AgentSharesTransferSingle, operator []common.Address, from []common.Address, to []common.Address) (event.Subscription, error)
WatchTransferSingle is a free log subscription operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.
Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)
func (*AgentSharesFilterer) WatchURI ¶
func (_AgentShares *AgentSharesFilterer) WatchURI(opts *bind.WatchOpts, sink chan<- *AgentSharesURI, id []*big.Int) (event.Subscription, error)
WatchURI is a free log subscription operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.
Solidity: event URI(string value, uint256 indexed id)
type AgentSharesInitialized ¶
type AgentSharesInitialized struct {}
AgentSharesInitialized represents a Initialized event raised by the AgentShares contract.
type AgentSharesInitializedIterator ¶
type AgentSharesInitializedIterator struct { // contains filtered or unexported fields }
AgentSharesInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the AgentShares contract.
func (*AgentSharesInitializedIterator) Close ¶
func (it *AgentSharesInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*AgentSharesInitializedIterator) Error ¶
func (it *AgentSharesInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*AgentSharesInitializedIterator) Next ¶
func (it *AgentSharesInitializedIterator) 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 AgentSharesOwnershipTransferred ¶
type AgentSharesOwnershipTransferred struct {}
AgentSharesOwnershipTransferred represents a OwnershipTransferred event raised by the AgentShares contract.
type AgentSharesOwnershipTransferredIterator ¶
type AgentSharesOwnershipTransferredIterator struct { // contains filtered or unexported fields }
AgentSharesOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the AgentShares contract.
func (*AgentSharesOwnershipTransferredIterator) Close ¶
func (it *AgentSharesOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*AgentSharesOwnershipTransferredIterator) Error ¶
func (it *AgentSharesOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*AgentSharesOwnershipTransferredIterator) Next ¶
func (it *AgentSharesOwnershipTransferredIterator) 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 AgentSharesRaw ¶
type AgentSharesRaw struct {
}AgentSharesRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*AgentSharesRaw) Call ¶
func (_AgentShares *AgentSharesRaw) 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 (*AgentSharesRaw) Transact ¶
func (_AgentShares *AgentSharesRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*AgentSharesRaw) Transfer ¶
func (_AgentShares *AgentSharesRaw) 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 AgentSharesSession ¶
type AgentSharesSession struct {}
AgentSharesSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*AgentSharesSession) BalanceOf ¶
func (_AgentShares *AgentSharesSession) BalanceOf(account common.Address, id *big.Int) (*big.Int, error)
BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.
Solidity: function balanceOf(address account, uint256 id) view returns(uint256)
func (*AgentSharesSession) BalanceOfBatch ¶
func (_AgentShares *AgentSharesSession) BalanceOfBatch(accounts []common.Address, ids []*big.Int) ([]*big.Int, error)
BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.
Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])
func (*AgentSharesSession) BaseToken ¶
func (_AgentShares *AgentSharesSession) BaseToken() (common.Address, error)
BaseToken is a free data retrieval call binding the contract method 0xc55dae63.
Solidity: function baseToken() view returns(address)
func (*AgentSharesSession) BuyShares ¶
func (_AgentShares *AgentSharesSession) BuyShares(tokenId *big.Int, amount *big.Int, supplyMax *big.Int) (*types.Transaction, error)
BuyShares is a paid mutator transaction binding the contract method 0x7aabf58a.
Solidity: function buyShares(uint256 tokenId, uint256 amount, uint256 supplyMax) returns()
func (*AgentSharesSession) ClaimToken ¶
func (_AgentShares *AgentSharesSession) ClaimToken(tokenId *big.Int, user common.Address) (*types.Transaction, error)
ClaimToken is a paid mutator transaction binding the contract method 0xc49662c5.
Solidity: function claimToken(uint256 tokenId, address user) returns()
func (*AgentSharesSession) DeployToken ¶
func (_AgentShares *AgentSharesSession) DeployToken(tokenId *big.Int, name string, symbol string) (*types.Transaction, error)
DeployToken is a paid mutator transaction binding the contract method 0xda68ed12.
Solidity: function deployToken(uint256 tokenId, string name, string symbol) returns(address)
func (*AgentSharesSession) GetBuyPrice ¶
func (_AgentShares *AgentSharesSession) GetBuyPrice(tokenId *big.Int, amount *big.Int) (*big.Int, error)
GetBuyPrice is a free data retrieval call binding the contract method 0xc157253d.
Solidity: function getBuyPrice(uint256 tokenId, uint256 amount) view returns(uint256)
func (*AgentSharesSession) GetBuyPriceAfterFee ¶
func (_AgentShares *AgentSharesSession) GetBuyPriceAfterFee(tokenId *big.Int, amount *big.Int) (*big.Int, error)
GetBuyPriceAfterFee is a free data retrieval call binding the contract method 0x063a741f.
Solidity: function getBuyPriceAfterFee(uint256 tokenId, uint256 amount) view returns(uint256)
func (*AgentSharesSession) GetChainId ¶
func (_AgentShares *AgentSharesSession) GetChainId() (*big.Int, error)
GetChainId is a free data retrieval call binding the contract method 0x3408e470.
Solidity: function getChainId() view returns(uint256 chainId)
func (*AgentSharesSession) GetPrice ¶
func (_AgentShares *AgentSharesSession) GetPrice(supply *big.Int, amount *big.Int) (*big.Int, error)
GetPrice is a free data retrieval call binding the contract method 0x5cf4ee91.
Solidity: function getPrice(uint256 supply, uint256 amount) pure returns(uint256)
func (*AgentSharesSession) GetSellPrice ¶
func (_AgentShares *AgentSharesSession) GetSellPrice(tokenId *big.Int, amount *big.Int) (*big.Int, error)
GetSellPrice is a free data retrieval call binding the contract method 0x9477d85d.
Solidity: function getSellPrice(uint256 tokenId, uint256 amount) view returns(uint256)
func (*AgentSharesSession) GetSellPriceAfterFee ¶
func (_AgentShares *AgentSharesSession) GetSellPriceAfterFee(tokenId *big.Int, amount *big.Int) (*big.Int, error)
GetSellPriceAfterFee is a free data retrieval call binding the contract method 0xcd9c7121.
Solidity: function getSellPriceAfterFee(uint256 tokenId, uint256 amount) view returns(uint256)
func (*AgentSharesSession) Initialize ¶
func (_AgentShares *AgentSharesSession) Initialize(_baseToken common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address _baseToken) returns()
func (*AgentSharesSession) IsApprovedForAll ¶
func (_AgentShares *AgentSharesSession) IsApprovedForAll(account common.Address, operator common.Address) (bool, error)
IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.
Solidity: function isApprovedForAll(address account, address operator) view returns(bool)
func (*AgentSharesSession) Multicall ¶
func (_AgentShares *AgentSharesSession) Multicall(data [][]byte) (*types.Transaction, error)
Multicall is a paid mutator transaction binding the contract method 0xac9650d8.
Solidity: function multicall(bytes[] data) payable returns(bytes[] results)
func (*AgentSharesSession) Owner ¶
func (_AgentShares *AgentSharesSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*AgentSharesSession) ProtocolAdmin ¶
func (_AgentShares *AgentSharesSession) ProtocolAdmin() (common.Address, error)
ProtocolAdmin is a free data retrieval call binding the contract method 0x420f6861.
Solidity: function protocolAdmin() view returns(address)
func (*AgentSharesSession) ProtocolFeeDestination ¶
func (_AgentShares *AgentSharesSession) ProtocolFeeDestination() (common.Address, error)
ProtocolFeeDestination is a free data retrieval call binding the contract method 0x4ce7957c.
Solidity: function protocolFeeDestination() view returns(address)
func (*AgentSharesSession) ProtocolFeePercent ¶
func (_AgentShares *AgentSharesSession) ProtocolFeePercent() (*big.Int, error)
ProtocolFeePercent is a free data retrieval call binding the contract method 0xd6e6eb9f.
Solidity: function protocolFeePercent() view returns(uint256)
func (*AgentSharesSession) RenounceOwnership ¶
func (_AgentShares *AgentSharesSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*AgentSharesSession) SafeBatchTransferFrom ¶
func (_AgentShares *AgentSharesSession) SafeBatchTransferFrom(from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int, data []byte) (*types.Transaction, error)
SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.
Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data) returns()
func (*AgentSharesSession) SafeTransferFrom ¶
func (_AgentShares *AgentSharesSession) SafeTransferFrom(from common.Address, to common.Address, id *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)
SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.
Solidity: function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes data) returns()
func (*AgentSharesSession) SellShares ¶
func (_AgentShares *AgentSharesSession) SellShares(tokenId *big.Int, amount *big.Int, supplyMin *big.Int) (*types.Transaction, error)
SellShares is a paid mutator transaction binding the contract method 0xd67c6872.
Solidity: function sellShares(uint256 tokenId, uint256 amount, uint256 supplyMin) returns()
func (*AgentSharesSession) SetApprovalForAll ¶
func (_AgentShares *AgentSharesSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)
SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.
Solidity: function setApprovalForAll(address operator, bool approved) returns()
func (*AgentSharesSession) SetFeeDestination ¶
func (_AgentShares *AgentSharesSession) SetFeeDestination(_feeDestination common.Address) (*types.Transaction, error)
SetFeeDestination is a paid mutator transaction binding the contract method 0xfbe53234.
Solidity: function setFeeDestination(address _feeDestination) returns()
func (*AgentSharesSession) SetProtocolAdmin ¶
func (_AgentShares *AgentSharesSession) SetProtocolAdmin(_protocolAdmin common.Address) (*types.Transaction, error)
SetProtocolAdmin is a paid mutator transaction binding the contract method 0x9a09b285.
Solidity: function setProtocolAdmin(address _protocolAdmin) returns()
func (*AgentSharesSession) SetProtocolFeePercent ¶
func (_AgentShares *AgentSharesSession) SetProtocolFeePercent(_feePercent *big.Int) (*types.Transaction, error)
SetProtocolFeePercent is a paid mutator transaction binding the contract method 0xa4983421.
Solidity: function setProtocolFeePercent(uint256 _feePercent) returns()
func (*AgentSharesSession) SupportsInterface ¶
func (_AgentShares *AgentSharesSession) SupportsInterface(interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (*AgentSharesSession) TokenDeployed ¶
func (_AgentShares *AgentSharesSession) TokenDeployed() (common.Address, error)
TokenDeployed is a free data retrieval call binding the contract method 0x1039a12d.
Solidity: function tokenDeployed() view returns(address)
func (*AgentSharesSession) TokenSupply ¶
TokenSupply is a free data retrieval call binding the contract method 0x2693ebf2.
Solidity: function tokenSupply(uint256 ) view returns(uint256)
func (*AgentSharesSession) Tokens ¶
Tokens is a free data retrieval call binding the contract method 0x4f64b2be.
Solidity: function tokens(uint256 ) view returns(address)
func (*AgentSharesSession) TransferOwnership ¶
func (_AgentShares *AgentSharesSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
type AgentSharesTokenClaimed ¶
type AgentSharesTokenClaimed struct {}
AgentSharesTokenClaimed represents a TokenClaimed event raised by the AgentShares contract.
type AgentSharesTokenClaimedIterator ¶
type AgentSharesTokenClaimedIterator struct { // contains filtered or unexported fields }
AgentSharesTokenClaimedIterator is returned from FilterTokenClaimed and is used to iterate over the raw logs and unpacked data for TokenClaimed events raised by the AgentShares contract.
func (*AgentSharesTokenClaimedIterator) Close ¶
func (it *AgentSharesTokenClaimedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*AgentSharesTokenClaimedIterator) Error ¶
func (it *AgentSharesTokenClaimedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*AgentSharesTokenClaimedIterator) Next ¶
func (it *AgentSharesTokenClaimedIterator) 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 AgentSharesTokenDeployed ¶
type AgentSharesTokenDeployed struct {}
AgentSharesTokenDeployed represents a TokenDeployed event raised by the AgentShares contract.
type AgentSharesTokenDeployedIterator ¶
type AgentSharesTokenDeployedIterator struct { // contains filtered or unexported fields }
AgentSharesTokenDeployedIterator is returned from FilterTokenDeployed and is used to iterate over the raw logs and unpacked data for TokenDeployed events raised by the AgentShares contract.
func (*AgentSharesTokenDeployedIterator) Close ¶
func (it *AgentSharesTokenDeployedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*AgentSharesTokenDeployedIterator) Error ¶
func (it *AgentSharesTokenDeployedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*AgentSharesTokenDeployedIterator) Next ¶
func (it *AgentSharesTokenDeployedIterator) 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 AgentSharesTrade ¶
type AgentSharesTrade struct {}
AgentSharesTrade represents a Trade event raised by the AgentShares contract.
type AgentSharesTradeIterator ¶
type AgentSharesTradeIterator struct { // contains filtered or unexported fields }
AgentSharesTradeIterator is returned from FilterTrade and is used to iterate over the raw logs and unpacked data for Trade events raised by the AgentShares contract.
func (*AgentSharesTradeIterator) Close ¶
func (it *AgentSharesTradeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*AgentSharesTradeIterator) Error ¶
func (it *AgentSharesTradeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*AgentSharesTradeIterator) Next ¶
func (it *AgentSharesTradeIterator) 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 AgentSharesTransactor ¶
type AgentSharesTransactor struct {
// contains filtered or unexported fields
}
AgentSharesTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewAgentSharesTransactor ¶
func NewAgentSharesTransactor(address common.Address, transactor bind.ContractTransactor) (*AgentSharesTransactor, error)
NewAgentSharesTransactor creates a new write-only instance of AgentShares, bound to a specific deployed contract.
func (*AgentSharesTransactor) BuyShares ¶
func (_AgentShares *AgentSharesTransactor) BuyShares(opts *bind.TransactOpts, tokenId *big.Int, amount *big.Int, supplyMax *big.Int) (*types.Transaction, error)
BuyShares is a paid mutator transaction binding the contract method 0x7aabf58a.
Solidity: function buyShares(uint256 tokenId, uint256 amount, uint256 supplyMax) returns()
func (*AgentSharesTransactor) ClaimToken ¶
func (_AgentShares *AgentSharesTransactor) ClaimToken(opts *bind.TransactOpts, tokenId *big.Int, user common.Address) (*types.Transaction, error)
ClaimToken is a paid mutator transaction binding the contract method 0xc49662c5.
Solidity: function claimToken(uint256 tokenId, address user) returns()
func (*AgentSharesTransactor) DeployToken ¶
func (_AgentShares *AgentSharesTransactor) DeployToken(opts *bind.TransactOpts, tokenId *big.Int, name string, symbol string) (*types.Transaction, error)
DeployToken is a paid mutator transaction binding the contract method 0xda68ed12.
Solidity: function deployToken(uint256 tokenId, string name, string symbol) returns(address)
func (*AgentSharesTransactor) Initialize ¶
func (_AgentShares *AgentSharesTransactor) Initialize(opts *bind.TransactOpts, _baseToken common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address _baseToken) returns()
func (*AgentSharesTransactor) Multicall ¶
func (_AgentShares *AgentSharesTransactor) Multicall(opts *bind.TransactOpts, data [][]byte) (*types.Transaction, error)
Multicall is a paid mutator transaction binding the contract method 0xac9650d8.
Solidity: function multicall(bytes[] data) payable returns(bytes[] results)
func (*AgentSharesTransactor) RenounceOwnership ¶
func (_AgentShares *AgentSharesTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*AgentSharesTransactor) SafeBatchTransferFrom ¶
func (_AgentShares *AgentSharesTransactor) SafeBatchTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int, data []byte) (*types.Transaction, error)
SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.
Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data) returns()
func (*AgentSharesTransactor) SafeTransferFrom ¶
func (_AgentShares *AgentSharesTransactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, id *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)
SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.
Solidity: function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes data) returns()
func (*AgentSharesTransactor) SellShares ¶
func (_AgentShares *AgentSharesTransactor) SellShares(opts *bind.TransactOpts, tokenId *big.Int, amount *big.Int, supplyMin *big.Int) (*types.Transaction, error)
SellShares is a paid mutator transaction binding the contract method 0xd67c6872.
Solidity: function sellShares(uint256 tokenId, uint256 amount, uint256 supplyMin) returns()
func (*AgentSharesTransactor) SetApprovalForAll ¶
func (_AgentShares *AgentSharesTransactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error)
SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.
Solidity: function setApprovalForAll(address operator, bool approved) returns()
func (*AgentSharesTransactor) SetFeeDestination ¶
func (_AgentShares *AgentSharesTransactor) SetFeeDestination(opts *bind.TransactOpts, _feeDestination common.Address) (*types.Transaction, error)
SetFeeDestination is a paid mutator transaction binding the contract method 0xfbe53234.
Solidity: function setFeeDestination(address _feeDestination) returns()
func (*AgentSharesTransactor) SetProtocolAdmin ¶
func (_AgentShares *AgentSharesTransactor) SetProtocolAdmin(opts *bind.TransactOpts, _protocolAdmin common.Address) (*types.Transaction, error)
SetProtocolAdmin is a paid mutator transaction binding the contract method 0x9a09b285.
Solidity: function setProtocolAdmin(address _protocolAdmin) returns()
func (*AgentSharesTransactor) SetProtocolFeePercent ¶
func (_AgentShares *AgentSharesTransactor) SetProtocolFeePercent(opts *bind.TransactOpts, _feePercent *big.Int) (*types.Transaction, error)
SetProtocolFeePercent is a paid mutator transaction binding the contract method 0xa4983421.
Solidity: function setProtocolFeePercent(uint256 _feePercent) returns()
func (*AgentSharesTransactor) TransferOwnership ¶
func (_AgentShares *AgentSharesTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
type AgentSharesTransactorRaw ¶
type AgentSharesTransactorRaw struct {
}AgentSharesTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*AgentSharesTransactorRaw) Transact ¶
func (_AgentShares *AgentSharesTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*AgentSharesTransactorRaw) Transfer ¶
func (_AgentShares *AgentSharesTransactorRaw) 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 AgentSharesTransactorSession ¶
type AgentSharesTransactorSession struct {}
AgentSharesTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*AgentSharesTransactorSession) BuyShares ¶
func (_AgentShares *AgentSharesTransactorSession) BuyShares(tokenId *big.Int, amount *big.Int, supplyMax *big.Int) (*types.Transaction, error)
BuyShares is a paid mutator transaction binding the contract method 0x7aabf58a.
Solidity: function buyShares(uint256 tokenId, uint256 amount, uint256 supplyMax) returns()
func (*AgentSharesTransactorSession) ClaimToken ¶
func (_AgentShares *AgentSharesTransactorSession) ClaimToken(tokenId *big.Int, user common.Address) (*types.Transaction, error)
ClaimToken is a paid mutator transaction binding the contract method 0xc49662c5.
Solidity: function claimToken(uint256 tokenId, address user) returns()
func (*AgentSharesTransactorSession) DeployToken ¶
func (_AgentShares *AgentSharesTransactorSession) DeployToken(tokenId *big.Int, name string, symbol string) (*types.Transaction, error)
DeployToken is a paid mutator transaction binding the contract method 0xda68ed12.
Solidity: function deployToken(uint256 tokenId, string name, string symbol) returns(address)
func (*AgentSharesTransactorSession) Initialize ¶
func (_AgentShares *AgentSharesTransactorSession) Initialize(_baseToken common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address _baseToken) returns()
func (*AgentSharesTransactorSession) Multicall ¶
func (_AgentShares *AgentSharesTransactorSession) Multicall(data [][]byte) (*types.Transaction, error)
Multicall is a paid mutator transaction binding the contract method 0xac9650d8.
Solidity: function multicall(bytes[] data) payable returns(bytes[] results)
func (*AgentSharesTransactorSession) RenounceOwnership ¶
func (_AgentShares *AgentSharesTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*AgentSharesTransactorSession) SafeBatchTransferFrom ¶
func (_AgentShares *AgentSharesTransactorSession) SafeBatchTransferFrom(from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int, data []byte) (*types.Transaction, error)
SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.
Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data) returns()
func (*AgentSharesTransactorSession) SafeTransferFrom ¶
func (_AgentShares *AgentSharesTransactorSession) SafeTransferFrom(from common.Address, to common.Address, id *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)
SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.
Solidity: function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes data) returns()
func (*AgentSharesTransactorSession) SellShares ¶
func (_AgentShares *AgentSharesTransactorSession) SellShares(tokenId *big.Int, amount *big.Int, supplyMin *big.Int) (*types.Transaction, error)
SellShares is a paid mutator transaction binding the contract method 0xd67c6872.
Solidity: function sellShares(uint256 tokenId, uint256 amount, uint256 supplyMin) returns()
func (*AgentSharesTransactorSession) SetApprovalForAll ¶
func (_AgentShares *AgentSharesTransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)
SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.
Solidity: function setApprovalForAll(address operator, bool approved) returns()
func (*AgentSharesTransactorSession) SetFeeDestination ¶
func (_AgentShares *AgentSharesTransactorSession) SetFeeDestination(_feeDestination common.Address) (*types.Transaction, error)
SetFeeDestination is a paid mutator transaction binding the contract method 0xfbe53234.
Solidity: function setFeeDestination(address _feeDestination) returns()
func (*AgentSharesTransactorSession) SetProtocolAdmin ¶
func (_AgentShares *AgentSharesTransactorSession) SetProtocolAdmin(_protocolAdmin common.Address) (*types.Transaction, error)
SetProtocolAdmin is a paid mutator transaction binding the contract method 0x9a09b285.
Solidity: function setProtocolAdmin(address _protocolAdmin) returns()
func (*AgentSharesTransactorSession) SetProtocolFeePercent ¶
func (_AgentShares *AgentSharesTransactorSession) SetProtocolFeePercent(_feePercent *big.Int) (*types.Transaction, error)
SetProtocolFeePercent is a paid mutator transaction binding the contract method 0xa4983421.
Solidity: function setProtocolFeePercent(uint256 _feePercent) returns()
func (*AgentSharesTransactorSession) TransferOwnership ¶
func (_AgentShares *AgentSharesTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
type AgentSharesTransferBatch ¶
type AgentSharesTransferBatch struct {}
AgentSharesTransferBatch represents a TransferBatch event raised by the AgentShares contract.
type AgentSharesTransferBatchIterator ¶
type AgentSharesTransferBatchIterator struct { // contains filtered or unexported fields }
AgentSharesTransferBatchIterator is returned from FilterTransferBatch and is used to iterate over the raw logs and unpacked data for TransferBatch events raised by the AgentShares contract.
func (*AgentSharesTransferBatchIterator) Close ¶
func (it *AgentSharesTransferBatchIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*AgentSharesTransferBatchIterator) Error ¶
func (it *AgentSharesTransferBatchIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*AgentSharesTransferBatchIterator) Next ¶
func (it *AgentSharesTransferBatchIterator) 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 AgentSharesTransferSingle ¶
type AgentSharesTransferSingle struct {}
AgentSharesTransferSingle represents a TransferSingle event raised by the AgentShares contract.
type AgentSharesTransferSingleIterator ¶
type AgentSharesTransferSingleIterator struct { // contains filtered or unexported fields }
AgentSharesTransferSingleIterator is returned from FilterTransferSingle and is used to iterate over the raw logs and unpacked data for TransferSingle events raised by the AgentShares contract.
func (*AgentSharesTransferSingleIterator) Close ¶
func (it *AgentSharesTransferSingleIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*AgentSharesTransferSingleIterator) Error ¶
func (it *AgentSharesTransferSingleIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*AgentSharesTransferSingleIterator) Next ¶
func (it *AgentSharesTransferSingleIterator) 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 AgentSharesURI ¶
type AgentSharesURI struct {}
AgentSharesURI represents a URI event raised by the AgentShares contract.
type AgentSharesURIIterator ¶
type AgentSharesURIIterator struct { // contains filtered or unexported fields }
AgentSharesURIIterator is returned from FilterURI and is used to iterate over the raw logs and unpacked data for URI events raised by the AgentShares contract.
func (*AgentSharesURIIterator) Close ¶
func (it *AgentSharesURIIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*AgentSharesURIIterator) Error ¶
func (it *AgentSharesURIIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*AgentSharesURIIterator) Next ¶
func (it *AgentSharesURIIterator) 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.