Documentation ¶
Index ¶
- type API
- func (api *API) AddTokenOwners(ctx context.Context, chainID uint64, contractAddress string, ...) error
- func (api *API) ContractOwner(ctx context.Context, chainID uint64, contractAddress string) (string, error)
- func (api *API) Deploy(ctx context.Context, chainID uint64, deploymentParameters DeploymentParameters, ...) (DeploymentDetails, error)
- func (api *API) DeployCollectiblesEstimate(ctx context.Context) (uint64, error)
- func (api *API) MintTo(ctx context.Context, chainID uint64, contractAddress string, ...) (string, error)
- type Database
- type DeploymentDetails
- type DeploymentParameters
- type Service
- type TokenOwner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
func NewAPI ¶
func NewAPI(rpcClient *rpc.Client, accountsManager *account.GethManager, config *params.NodeConfig, appDb *sql.DB) *API
func (*API) AddTokenOwners ¶ added in v0.145.2
func (*API) ContractOwner ¶ added in v0.141.1
func (*API) Deploy ¶
func (api *API) Deploy(ctx context.Context, chainID uint64, deploymentParameters DeploymentParameters, txArgs transactions.SendTxArgs, password string) (DeploymentDetails, error)
func (*API) DeployCollectiblesEstimate ¶ added in v0.142.9
Returns gas units + 10%
type Database ¶ added in v0.141.1
type Database struct {
// contains filtered or unexported fields
}
func NewCollectiblesDatabase ¶ added in v0.141.1
func (*Database) AddTokenOwners ¶ added in v0.141.1
func (*Database) GetTokenOwners ¶ added in v0.141.1
func (db *Database) GetTokenOwners(chainID uint64, contractAddress string) ([]TokenOwner, error)
type DeploymentDetails ¶
type DeploymentParameters ¶
type DeploymentParameters struct { Name string `json:"name"` Symbol string `json:"symbol"` Supply int `json:"supply"` InfiniteSupply bool `json:"infiniteSupply"` Transferable bool `json:"transferable"` RemoteSelfDestruct bool `json:"remoteSelfDestruct"` TokenURI string `json:"tokenUri"` }
func (*DeploymentParameters) GetInfiniteSupply ¶
func (d *DeploymentParameters) GetInfiniteSupply() *big.Int
infinite supply for ERC721 is 2^256-1
func (*DeploymentParameters) GetSupply ¶
func (d *DeploymentParameters) GetSupply() *big.Int
func (*DeploymentParameters) Validate ¶
func (d *DeploymentParameters) Validate() error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Collectibles service
func NewService ¶
func NewService(rpcClient *rpc.Client, accountsManager *account.GethManager, config *params.NodeConfig, appDb *sql.DB) *Service
Returns a new Collectibles Service.
type TokenOwner ¶ added in v0.141.1
Click to show internal directories.
Click to hide internal directories.