Versions in this module Expand all Collapse all v0 v0.0.15 Sep 23, 2022 v0.0.14 Sep 23, 2022 Changes in this version + func NewPubSubFilterer(tx *txs.Tx) pubsub.Filterer + type AssetDefinition struct + Denomination json.Uint8 + InitialState map[string][]interface{} + Memo string + Name string + Symbol string + type AssetIDChangeAddr struct + type Balance struct + AssetID string + Balance json.Uint64 + type BuildGenesisArgs struct + Encoding formatting.Encoding + GenesisData map[string]AssetDefinition + NetworkID json.Uint32 + type BuildGenesisReply struct + Bytes string + Encoding formatting.Encoding + type Client interface + ConfirmTx func(ctx context.Context, txID ids.ID, freq time.Duration, options ...rpc.Option) (choices.Status, error) + CreateAddress func(ctx context.Context, user api.UserPass, options ...rpc.Option) (ids.ShortID, error) + CreateAsset func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + CreateFixedCapAsset func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + CreateNFTAsset func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + CreateVariableCapAsset func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + Export func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + ExportKey func(ctx context.Context, user api.UserPass, addr ids.ShortID, ...) (*crypto.PrivateKeySECP256K1R, error) + GetAllBalances func(ctx context.Context, addr ids.ShortID, includePartial bool, ...) ([]Balance, error) + GetAssetDescription func(ctx context.Context, assetID string, options ...rpc.Option) (*GetAssetDescriptionReply, error) + GetAtomicUTXOs func(ctx context.Context, addrs []ids.ShortID, sourceChain string, limit uint32, ...) ([][]byte, ids.ShortID, ids.ID, error) + GetBalance func(ctx context.Context, addr ids.ShortID, assetID string, includePartial bool, ...) (*GetBalanceReply, error) + GetTx func(ctx context.Context, txID ids.ID, options ...rpc.Option) ([]byte, error) + GetTxStatus func(ctx context.Context, txID ids.ID, options ...rpc.Option) (choices.Status, error) + GetUTXOs func(ctx context.Context, addrs []ids.ShortID, limit uint32, ...) ([][]byte, ids.ShortID, ids.ID, error) + Import func(ctx context.Context, user api.UserPass, to ids.ShortID, sourceChain string, ...) (ids.ID, error) + ImportKey func(ctx context.Context, user api.UserPass, ...) (ids.ShortID, error) + IssueStopVertex func(ctx context.Context, options ...rpc.Option) error + ListAddresses func(ctx context.Context, user api.UserPass, options ...rpc.Option) ([]ids.ShortID, error) + Mint func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + MintNFT func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + SendNFT func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + func NewClient(uri, chain string) Client + type ClientHolder struct + Address ids.ShortID + Amount uint64 + type ClientOwners struct + Minters []ids.ShortID + Threshold uint32 + type ClientSendOutput struct + Amount uint64 + AssetID string + To ids.ShortID + type Config struct + IndexAllowIncomplete bool + IndexTransactions bool + type CreateAssetArgs struct + Denomination byte + InitialHolders []*Holder + MinterSets []Owners + Name string + Symbol string + type CreateNFTAssetArgs struct + MinterSets []Owners + Name string + Symbol string + type ExportArgs struct + Amount json.Uint64 + AssetID string + TargetChain string + To string + type ExportKeyArgs struct + Address string + type ExportKeyReply struct + PrivateKey *crypto.PrivateKeySECP256K1R + type Factory struct + BlueberryTime time.Time + CreateAssetTxFee uint64 + TxFee uint64 + func (f *Factory) IsBlueberryActivated(timestamp time.Time) bool + func (f *Factory) New(*snow.Context) (interface{}, error) + type FormattedAssetID struct + AssetID ids.ID + type Genesis struct + Txs []*GenesisAsset + func (g *Genesis) IsSortedAndUnique() bool + func (g *Genesis) Len() int + func (g *Genesis) Less(i, j int) bool + func (g *Genesis) Sort() + func (g *Genesis) Swap(i, j int) + type GenesisAsset struct + Alias string + type GetAddressTxsArgs struct + AssetID string + Cursor json.Uint64 + PageSize json.Uint64 + type GetAddressTxsReply struct + Cursor json.Uint64 + TxIDs []ids.ID + type GetAllBalancesArgs struct + IncludePartial bool + type GetAllBalancesReply struct + Balances []Balance + type GetAssetDescriptionArgs struct + AssetID string + type GetAssetDescriptionReply struct + Denomination json.Uint8 + Name string + Symbol string + type GetBalanceArgs struct + Address string + AssetID string + IncludePartial bool + type GetBalanceReply struct + Balance json.Uint64 + UTXOIDs []avax.UTXOID + type GetTxStatusReply struct + Status choices.Status + type Holder struct + Address string + Amount json.Uint64 + type ImportArgs struct + SourceChain string + To string + type ImportKeyArgs struct + PrivateKey *crypto.PrivateKeySECP256K1R + type ImportKeyReply struct + Address string + type MintArgs struct + Amount json.Uint64 + AssetID string + To string + type MintNFTArgs struct + AssetID string + Encoding formatting.Encoding + Payload string + To string + type Owners struct + Minters []string + Threshold json.Uint32 + type SendArgs struct + Memo string + type SendMultipleArgs struct + Memo string + Outputs []SendOutput + type SendNFTArgs struct + AssetID string + GroupID json.Uint32 + To string + type SendOutput struct + Amount json.Uint64 + AssetID string + To string + type Service struct + func (service *Service) CreateAddress(r *http.Request, args *api.UserPass, reply *api.JSONAddress) error + func (service *Service) CreateAsset(r *http.Request, args *CreateAssetArgs, reply *AssetIDChangeAddr) error + func (service *Service) CreateFixedCapAsset(r *http.Request, args *CreateAssetArgs, reply *AssetIDChangeAddr) error + func (service *Service) CreateNFTAsset(r *http.Request, args *CreateNFTAssetArgs, reply *AssetIDChangeAddr) error + func (service *Service) CreateVariableCapAsset(r *http.Request, args *CreateAssetArgs, reply *AssetIDChangeAddr) error + func (service *Service) Export(_ *http.Request, args *ExportArgs, reply *api.JSONTxIDChangeAddr) error + func (service *Service) ExportKey(r *http.Request, args *ExportKeyArgs, reply *ExportKeyReply) error + func (service *Service) GetAddressTxs(r *http.Request, args *GetAddressTxsArgs, reply *GetAddressTxsReply) error + func (service *Service) GetAllBalances(r *http.Request, args *GetAllBalancesArgs, reply *GetAllBalancesReply) error + func (service *Service) GetAssetDescription(_ *http.Request, args *GetAssetDescriptionArgs, ...) error + func (service *Service) GetBalance(r *http.Request, args *GetBalanceArgs, reply *GetBalanceReply) error + func (service *Service) GetTx(r *http.Request, args *api.GetTxArgs, reply *api.GetTxReply) error + func (service *Service) GetTxStatus(r *http.Request, args *api.JSONTxID, reply *GetTxStatusReply) error + func (service *Service) GetUTXOs(r *http.Request, args *api.GetUTXOsArgs, reply *api.GetUTXOsReply) error + func (service *Service) Import(_ *http.Request, args *ImportArgs, reply *api.JSONTxID) error + func (service *Service) ImportKey(r *http.Request, args *ImportKeyArgs, reply *api.JSONAddress) error + func (service *Service) IssueStopVertex(_ *http.Request, _ *struct{}, _ *struct{}) error + func (service *Service) IssueTx(r *http.Request, args *api.FormattedTx, reply *api.JSONTxID) error + func (service *Service) ListAddresses(_ *http.Request, args *api.UserPass, response *api.JSONAddresses) error + func (service *Service) Mint(r *http.Request, args *MintArgs, reply *api.JSONTxIDChangeAddr) error + func (service *Service) MintNFT(r *http.Request, args *MintNFTArgs, reply *api.JSONTxIDChangeAddr) error + func (service *Service) Send(r *http.Request, args *SendArgs, reply *api.JSONTxIDChangeAddr) error + func (service *Service) SendMultiple(r *http.Request, args *SendMultipleArgs, reply *api.JSONTxIDChangeAddr) error + func (service *Service) SendNFT(r *http.Request, args *SendNFTArgs, reply *api.JSONTxIDChangeAddr) error + type StaticClient interface + BuildGenesis func(ctx context.Context, args *BuildGenesisArgs, options ...rpc.Option) (*BuildGenesisReply, error) + func NewStaticClient(uri string) StaticClient + type StaticService struct + func CreateStaticService() *StaticService + func (ss *StaticService) BuildGenesis(_ *http.Request, args *BuildGenesisArgs, reply *BuildGenesisReply) error + type TxCachedState struct + type UniqueTx struct + func (tx *UniqueTx) Accept() error + func (tx *UniqueTx) Bytes() []byte + func (tx *UniqueTx) Dependencies() ([]snowstorm.Tx, error) + func (tx *UniqueTx) Evict() + func (tx *UniqueTx) HasWhitelist() bool + func (tx *UniqueTx) ID() ids.ID + func (tx *UniqueTx) InputIDs() []ids.ID + func (tx *UniqueTx) InputUTXOs() []*avax.UTXOID + func (tx *UniqueTx) Key() interface{} + func (tx *UniqueTx) Reject() error + func (tx *UniqueTx) SemanticVerify() error + func (tx *UniqueTx) Status() choices.Status + func (tx *UniqueTx) SyntacticVerify() error + func (tx *UniqueTx) UTXOs() []*avax.UTXO + func (tx *UniqueTx) Verify() error + func (tx *UniqueTx) Whitelist() (ids.Set, error) + type VM struct + func (vm *VM) AppGossip(nodeID ids.NodeID, msg []byte) error + func (vm *VM) AppRequest(nodeID ids.NodeID, requestID uint32, deadline time.Time, request []byte) error + func (vm *VM) AppRequestFailed(nodeID ids.NodeID, requestID uint32) error + func (vm *VM) AppResponse(nodeID ids.NodeID, requestID uint32, response []byte) error + func (vm *VM) Connected(nodeID ids.NodeID, nodeVersion *version.Application) error + func (vm *VM) CreateHandlers() (map[string]*common.HTTPHandler, error) + func (vm *VM) CreateStaticHandlers() (map[string]*common.HTTPHandler, error) + func (vm *VM) DeduplicateTx(tx *UniqueTx) *UniqueTx + func (vm *VM) Disconnected(nodeID ids.NodeID) error + func (vm *VM) FlushTxs() + func (vm *VM) GetTx(txID ids.ID) (snowstorm.Tx, error) + func (vm *VM) HealthCheck() (interface{}, error) + func (vm *VM) Initialize(ctx *snow.Context, dbManager manager.Manager, genesisBytes []byte, ...) error + func (vm *VM) IssueTx(b []byte) (ids.ID, error) + func (vm *VM) LoadUser(username string, password string, addrsToUse ids.ShortSet) ([]*avax.UTXO, *secp256k1fx.Keychain, error) + func (vm *VM) Mint(utxos []*avax.UTXO, kc *secp256k1fx.Keychain, amounts map[ids.ID]uint64, ...) ([]*txs.Operation, [][]*crypto.PrivateKeySECP256K1R, error) + func (vm *VM) MintNFT(utxos []*avax.UTXO, kc *secp256k1fx.Keychain, assetID ids.ID, payload []byte, ...) ([]*txs.Operation, [][]*crypto.PrivateKeySECP256K1R, error) + func (vm *VM) ParseTx(b []byte) (snowstorm.Tx, error) + func (vm *VM) PendingTxs() []snowstorm.Tx + func (vm *VM) SetState(state snow.State) error + func (vm *VM) Shutdown() error + func (vm *VM) Spend(utxos []*avax.UTXO, kc *secp256k1fx.Keychain, amounts map[ids.ID]uint64) (map[ids.ID]uint64, []*avax.TransferableInput, [][]*crypto.PrivateKeySECP256K1R, ...) + func (vm *VM) SpendAll(utxos []*avax.UTXO, kc *secp256k1fx.Keychain) (map[ids.ID]uint64, []*avax.TransferableInput, [][]*crypto.PrivateKeySECP256K1R, ...) + func (vm *VM) SpendNFT(utxos []*avax.UTXO, kc *secp256k1fx.Keychain, assetID ids.ID, groupID uint32, ...) ([]*txs.Operation, [][]*crypto.PrivateKeySECP256K1R, error) + func (vm *VM) Version() (string, error) + type WalletClient interface + IssueTx func(ctx context.Context, tx []byte, options ...rpc.Option) (ids.ID, error) + Send func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + SendMultiple func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + func NewWalletClient(uri, chain string) WalletClient + type WalletService struct + func (w *WalletService) IssueTx(r *http.Request, args *api.FormattedTx, reply *api.JSONTxID) error + func (w *WalletService) Send(r *http.Request, args *SendArgs, reply *api.JSONTxIDChangeAddr) error + func (w *WalletService) SendMultiple(r *http.Request, args *SendMultipleArgs, reply *api.JSONTxIDChangeAddr) error