Documentation ¶
Overview ¶
Package mintrpc is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterMintHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMintHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MintClient) error
- func RegisterMintHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMintHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MintServer) error
- func RegisterMintJSONCallbacks(...)
- func RegisterMintServer(s grpc.ServiceRegistrar, srv MintServer)
- type BatchState
- type CancelBatchRequest
- type CancelBatchResponse
- func (*CancelBatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CancelBatchResponse) GetBatchKey() []byte
- func (*CancelBatchResponse) ProtoMessage()
- func (x *CancelBatchResponse) ProtoReflect() protoreflect.Message
- func (x *CancelBatchResponse) Reset()
- func (x *CancelBatchResponse) String() string
- type FinalizeBatchRequest
- func (*FinalizeBatchRequest) Descriptor() ([]byte, []int)deprecated
- func (m *FinalizeBatchRequest) GetBatchSibling() isFinalizeBatchRequest_BatchSibling
- func (x *FinalizeBatchRequest) GetBranch() *taprpc.TapBranch
- func (x *FinalizeBatchRequest) GetFeeRate() uint32
- func (x *FinalizeBatchRequest) GetFullTree() *taprpc.TapscriptFullTree
- func (x *FinalizeBatchRequest) GetShortResponse() bool
- func (*FinalizeBatchRequest) ProtoMessage()
- func (x *FinalizeBatchRequest) ProtoReflect() protoreflect.Message
- func (x *FinalizeBatchRequest) Reset()
- func (x *FinalizeBatchRequest) String() string
- type FinalizeBatchRequest_Branch
- type FinalizeBatchRequest_FullTree
- type FinalizeBatchResponse
- func (*FinalizeBatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FinalizeBatchResponse) GetBatch() *MintingBatch
- func (*FinalizeBatchResponse) ProtoMessage()
- func (x *FinalizeBatchResponse) ProtoReflect() protoreflect.Message
- func (x *FinalizeBatchResponse) Reset()
- func (x *FinalizeBatchResponse) String() string
- type FundBatchRequest
- func (*FundBatchRequest) Descriptor() ([]byte, []int)deprecated
- func (m *FundBatchRequest) GetBatchSibling() isFundBatchRequest_BatchSibling
- func (x *FundBatchRequest) GetBranch() *taprpc.TapBranch
- func (x *FundBatchRequest) GetFeeRate() uint32
- func (x *FundBatchRequest) GetFullTree() *taprpc.TapscriptFullTree
- func (x *FundBatchRequest) GetShortResponse() bool
- func (*FundBatchRequest) ProtoMessage()
- func (x *FundBatchRequest) ProtoReflect() protoreflect.Message
- func (x *FundBatchRequest) Reset()
- func (x *FundBatchRequest) String() string
- type FundBatchRequest_Branch
- type FundBatchRequest_FullTree
- type FundBatchResponse
- func (*FundBatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FundBatchResponse) GetBatch() *MintingBatch
- func (*FundBatchResponse) ProtoMessage()
- func (x *FundBatchResponse) ProtoReflect() protoreflect.Message
- func (x *FundBatchResponse) Reset()
- func (x *FundBatchResponse) String() string
- type ListBatchRequest
- func (*ListBatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListBatchRequest) GetBatchKey() []byte
- func (x *ListBatchRequest) GetBatchKeyStr() string
- func (m *ListBatchRequest) GetFilter() isListBatchRequest_Filter
- func (x *ListBatchRequest) GetVerbose() bool
- func (*ListBatchRequest) ProtoMessage()
- func (x *ListBatchRequest) ProtoReflect() protoreflect.Message
- func (x *ListBatchRequest) Reset()
- func (x *ListBatchRequest) String() string
- type ListBatchRequest_BatchKey
- type ListBatchRequest_BatchKeyStr
- type ListBatchResponse
- func (*ListBatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListBatchResponse) GetBatches() []*VerboseBatch
- func (*ListBatchResponse) ProtoMessage()
- func (x *ListBatchResponse) ProtoReflect() protoreflect.Message
- func (x *ListBatchResponse) Reset()
- func (x *ListBatchResponse) String() string
- type MintAsset
- func (*MintAsset) Descriptor() ([]byte, []int)deprecated
- func (x *MintAsset) GetAmount() uint64
- func (x *MintAsset) GetAssetMeta() *taprpc.AssetMeta
- func (x *MintAsset) GetAssetType() taprpc.AssetType
- func (x *MintAsset) GetAssetVersion() taprpc.AssetVersion
- func (x *MintAsset) GetDecimalDisplay() uint32
- func (x *MintAsset) GetGroupAnchor() string
- func (x *MintAsset) GetGroupInternalKey() *taprpc.KeyDescriptor
- func (x *MintAsset) GetGroupKey() []byte
- func (x *MintAsset) GetGroupTapscriptRoot() []byte
- func (x *MintAsset) GetGroupedAsset() bool
- func (x *MintAsset) GetName() string
- func (x *MintAsset) GetNewGroupedAsset() bool
- func (x *MintAsset) GetScriptKey() *taprpc.ScriptKey
- func (*MintAsset) ProtoMessage()
- func (x *MintAsset) ProtoReflect() protoreflect.Message
- func (x *MintAsset) Reset()
- func (x *MintAsset) String() string
- type MintAssetRequest
- func (*MintAssetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MintAssetRequest) GetAsset() *MintAsset
- func (x *MintAssetRequest) GetShortResponse() bool
- func (*MintAssetRequest) ProtoMessage()
- func (x *MintAssetRequest) ProtoReflect() protoreflect.Message
- func (x *MintAssetRequest) Reset()
- func (x *MintAssetRequest) String() string
- type MintAssetResponse
- func (*MintAssetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MintAssetResponse) GetPendingBatch() *MintingBatch
- func (*MintAssetResponse) ProtoMessage()
- func (x *MintAssetResponse) ProtoReflect() protoreflect.Message
- func (x *MintAssetResponse) Reset()
- func (x *MintAssetResponse) String() string
- type MintClient
- type MintEvent
- func (*MintEvent) Descriptor() ([]byte, []int)deprecated
- func (x *MintEvent) GetBatch() *MintingBatch
- func (x *MintEvent) GetBatchState() BatchState
- func (x *MintEvent) GetError() string
- func (x *MintEvent) GetTimestamp() int64
- func (*MintEvent) ProtoMessage()
- func (x *MintEvent) ProtoReflect() protoreflect.Message
- func (x *MintEvent) Reset()
- func (x *MintEvent) String() string
- type MintServer
- type Mint_SubscribeMintEventsClient
- type Mint_SubscribeMintEventsServer
- type MintingBatch
- func (*MintingBatch) Descriptor() ([]byte, []int)deprecated
- func (x *MintingBatch) GetAssets() []*PendingAsset
- func (x *MintingBatch) GetBatchKey() []byte
- func (x *MintingBatch) GetBatchPsbt() []byte
- func (x *MintingBatch) GetBatchTxid() string
- func (x *MintingBatch) GetCreatedAt() int64
- func (x *MintingBatch) GetHeightHint() uint32
- func (x *MintingBatch) GetState() BatchState
- func (*MintingBatch) ProtoMessage()
- func (x *MintingBatch) ProtoReflect() protoreflect.Message
- func (x *MintingBatch) Reset()
- func (x *MintingBatch) String() string
- type PendingAsset
- func (*PendingAsset) Descriptor() ([]byte, []int)deprecated
- func (x *PendingAsset) GetAmount() uint64
- func (x *PendingAsset) GetAssetMeta() *taprpc.AssetMeta
- func (x *PendingAsset) GetAssetType() taprpc.AssetType
- func (x *PendingAsset) GetAssetVersion() taprpc.AssetVersion
- func (x *PendingAsset) GetGroupAnchor() string
- func (x *PendingAsset) GetGroupInternalKey() *taprpc.KeyDescriptor
- func (x *PendingAsset) GetGroupKey() []byte
- func (x *PendingAsset) GetGroupTapscriptRoot() []byte
- func (x *PendingAsset) GetName() string
- func (x *PendingAsset) GetNewGroupedAsset() bool
- func (x *PendingAsset) GetScriptKey() *taprpc.ScriptKey
- func (*PendingAsset) ProtoMessage()
- func (x *PendingAsset) ProtoReflect() protoreflect.Message
- func (x *PendingAsset) Reset()
- func (x *PendingAsset) String() string
- type SealBatchRequest
- func (*SealBatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SealBatchRequest) GetGroupWitnesses() []*taprpc.GroupWitness
- func (x *SealBatchRequest) GetShortResponse() bool
- func (*SealBatchRequest) ProtoMessage()
- func (x *SealBatchRequest) ProtoReflect() protoreflect.Message
- func (x *SealBatchRequest) Reset()
- func (x *SealBatchRequest) String() string
- type SealBatchResponse
- func (*SealBatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SealBatchResponse) GetBatch() *MintingBatch
- func (*SealBatchResponse) ProtoMessage()
- func (x *SealBatchResponse) ProtoReflect() protoreflect.Message
- func (x *SealBatchResponse) Reset()
- func (x *SealBatchResponse) String() string
- type SubscribeMintEventsRequest
- func (*SubscribeMintEventsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeMintEventsRequest) GetShortResponse() bool
- func (*SubscribeMintEventsRequest) ProtoMessage()
- func (x *SubscribeMintEventsRequest) ProtoReflect() protoreflect.Message
- func (x *SubscribeMintEventsRequest) Reset()
- func (x *SubscribeMintEventsRequest) String() string
- type UnimplementedMintServer
- func (UnimplementedMintServer) CancelBatch(context.Context, *CancelBatchRequest) (*CancelBatchResponse, error)
- func (UnimplementedMintServer) FinalizeBatch(context.Context, *FinalizeBatchRequest) (*FinalizeBatchResponse, error)
- func (UnimplementedMintServer) FundBatch(context.Context, *FundBatchRequest) (*FundBatchResponse, error)
- func (UnimplementedMintServer) ListBatches(context.Context, *ListBatchRequest) (*ListBatchResponse, error)
- func (UnimplementedMintServer) MintAsset(context.Context, *MintAssetRequest) (*MintAssetResponse, error)
- func (UnimplementedMintServer) SealBatch(context.Context, *SealBatchRequest) (*SealBatchResponse, error)
- func (UnimplementedMintServer) SubscribeMintEvents(*SubscribeMintEventsRequest, Mint_SubscribeMintEventsServer) error
- type UnsafeMintServer
- type UnsealedAsset
- func (*UnsealedAsset) Descriptor() ([]byte, []int)deprecated
- func (x *UnsealedAsset) GetAsset() *PendingAsset
- func (x *UnsealedAsset) GetGroupKeyRequest() *taprpc.GroupKeyRequest
- func (x *UnsealedAsset) GetGroupVirtualTx() *taprpc.GroupVirtualTx
- func (*UnsealedAsset) ProtoMessage()
- func (x *UnsealedAsset) ProtoReflect() protoreflect.Message
- func (x *UnsealedAsset) Reset()
- func (x *UnsealedAsset) String() string
- type VerboseBatch
- func (*VerboseBatch) Descriptor() ([]byte, []int)deprecated
- func (x *VerboseBatch) GetBatch() *MintingBatch
- func (x *VerboseBatch) GetUnsealedAssets() []*UnsealedAsset
- func (*VerboseBatch) ProtoMessage()
- func (x *VerboseBatch) ProtoReflect() protoreflect.Message
- func (x *VerboseBatch) Reset()
- func (x *VerboseBatch) String() string
Constants ¶
This section is empty.
Variables ¶
var ( BatchState_name = map[int32]string{ 0: "BATCH_STATE_UNKNOWN", 1: "BATCH_STATE_PENDING", 2: "BATCH_STATE_FROZEN", 3: "BATCH_STATE_COMMITTED", 4: "BATCH_STATE_BROADCAST", 5: "BATCH_STATE_CONFIRMED", 6: "BATCH_STATE_FINALIZED", 7: "BATCH_STATE_SEEDLING_CANCELLED", 8: "BATCH_STATE_SPROUT_CANCELLED", } BatchState_value = map[string]int32{ "BATCH_STATE_UNKNOWN": 0, "BATCH_STATE_PENDING": 1, "BATCH_STATE_FROZEN": 2, "BATCH_STATE_COMMITTED": 3, "BATCH_STATE_BROADCAST": 4, "BATCH_STATE_CONFIRMED": 5, "BATCH_STATE_FINALIZED": 6, "BATCH_STATE_SEEDLING_CANCELLED": 7, "BATCH_STATE_SPROUT_CANCELLED": 8, } )
Enum value maps for BatchState.
var File_mintrpc_mint_proto protoreflect.FileDescriptor
var Mint_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mintrpc.Mint", HandlerType: (*MintServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "MintAsset", Handler: _Mint_MintAsset_Handler, }, { MethodName: "FundBatch", Handler: _Mint_FundBatch_Handler, }, { MethodName: "SealBatch", Handler: _Mint_SealBatch_Handler, }, { MethodName: "FinalizeBatch", Handler: _Mint_FinalizeBatch_Handler, }, { MethodName: "CancelBatch", Handler: _Mint_CancelBatch_Handler, }, { MethodName: "ListBatches", Handler: _Mint_ListBatches_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SubscribeMintEvents", Handler: _Mint_SubscribeMintEvents_Handler, ServerStreams: true, }, }, Metadata: "mintrpc/mint.proto", }
Mint_ServiceDesc is the grpc.ServiceDesc for Mint service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMintHandler ¶
RegisterMintHandler registers the http handlers for service Mint to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMintHandlerClient ¶
RegisterMintHandlerClient registers the http handlers for service Mint to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MintClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MintClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MintClient" to call the correct interceptors.
func RegisterMintHandlerFromEndpoint ¶
func RegisterMintHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMintHandlerFromEndpoint is same as RegisterMintHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMintHandlerServer ¶
RegisterMintHandlerServer registers the http handlers for service Mint to "mux". UnaryRPC :call MintServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMintHandlerFromEndpoint instead.
func RegisterMintJSONCallbacks ¶ added in v0.2.1
func RegisterMintServer ¶
func RegisterMintServer(s grpc.ServiceRegistrar, srv MintServer)
Types ¶
type BatchState ¶
type BatchState int32
const ( BatchState_BATCH_STATE_UNKNOWN BatchState = 0 BatchState_BATCH_STATE_PENDING BatchState = 1 BatchState_BATCH_STATE_FROZEN BatchState = 2 BatchState_BATCH_STATE_COMMITTED BatchState = 3 BatchState_BATCH_STATE_BROADCAST BatchState = 4 BatchState_BATCH_STATE_CONFIRMED BatchState = 5 BatchState_BATCH_STATE_FINALIZED BatchState = 6 BatchState_BATCH_STATE_SEEDLING_CANCELLED BatchState = 7 BatchState_BATCH_STATE_SPROUT_CANCELLED BatchState = 8 )
func (BatchState) Descriptor ¶
func (BatchState) Descriptor() protoreflect.EnumDescriptor
func (BatchState) Enum ¶
func (x BatchState) Enum() *BatchState
func (BatchState) EnumDescriptor
deprecated
func (BatchState) EnumDescriptor() ([]byte, []int)
Deprecated: Use BatchState.Descriptor instead.
func (BatchState) Number ¶
func (x BatchState) Number() protoreflect.EnumNumber
func (BatchState) String ¶
func (x BatchState) String() string
func (BatchState) Type ¶
func (BatchState) Type() protoreflect.EnumType
type CancelBatchRequest ¶
type CancelBatchRequest struct {
// contains filtered or unexported fields
}
func (*CancelBatchRequest) Descriptor
deprecated
func (*CancelBatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelBatchRequest.ProtoReflect.Descriptor instead.
func (*CancelBatchRequest) ProtoMessage ¶
func (*CancelBatchRequest) ProtoMessage()
func (*CancelBatchRequest) ProtoReflect ¶
func (x *CancelBatchRequest) ProtoReflect() protoreflect.Message
func (*CancelBatchRequest) Reset ¶
func (x *CancelBatchRequest) Reset()
func (*CancelBatchRequest) String ¶
func (x *CancelBatchRequest) String() string
type CancelBatchResponse ¶
type CancelBatchResponse struct { // The internal public key of the batch. BatchKey []byte `protobuf:"bytes,1,opt,name=batch_key,json=batchKey,proto3" json:"batch_key,omitempty"` // contains filtered or unexported fields }
func (*CancelBatchResponse) Descriptor
deprecated
func (*CancelBatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use CancelBatchResponse.ProtoReflect.Descriptor instead.
func (*CancelBatchResponse) GetBatchKey ¶
func (x *CancelBatchResponse) GetBatchKey() []byte
func (*CancelBatchResponse) ProtoMessage ¶
func (*CancelBatchResponse) ProtoMessage()
func (*CancelBatchResponse) ProtoReflect ¶
func (x *CancelBatchResponse) ProtoReflect() protoreflect.Message
func (*CancelBatchResponse) Reset ¶
func (x *CancelBatchResponse) Reset()
func (*CancelBatchResponse) String ¶
func (x *CancelBatchResponse) String() string
type FinalizeBatchRequest ¶
type FinalizeBatchRequest struct { // If true, then the assets currently in the batch won't be returned in the // response. This is mainly to avoid a lot of data being transmitted and // possibly printed on the command line in the case of a very large batch. ShortResponse bool `protobuf:"varint,1,opt,name=short_response,json=shortResponse,proto3" json:"short_response,omitempty"` // The optional fee rate to use for the minting transaction, in sat/kw. FeeRate uint32 `protobuf:"varint,2,opt,name=fee_rate,json=feeRate,proto3" json:"fee_rate,omitempty"` // The optional tapscript sibling that will be used when deriving the genesis // output for the batch. This sibling is a tapscript tree, which allows the // minter to encumber future transfers of assets in the batch with Tapscript. // // Types that are assignable to BatchSibling: // // *FinalizeBatchRequest_FullTree // *FinalizeBatchRequest_Branch BatchSibling isFinalizeBatchRequest_BatchSibling `protobuf_oneof:"batch_sibling"` // contains filtered or unexported fields }
func (*FinalizeBatchRequest) Descriptor
deprecated
func (*FinalizeBatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use FinalizeBatchRequest.ProtoReflect.Descriptor instead.
func (*FinalizeBatchRequest) GetBatchSibling ¶ added in v0.4.0
func (m *FinalizeBatchRequest) GetBatchSibling() isFinalizeBatchRequest_BatchSibling
func (*FinalizeBatchRequest) GetBranch ¶ added in v0.4.0
func (x *FinalizeBatchRequest) GetBranch() *taprpc.TapBranch
func (*FinalizeBatchRequest) GetFeeRate ¶ added in v0.3.0
func (x *FinalizeBatchRequest) GetFeeRate() uint32
func (*FinalizeBatchRequest) GetFullTree ¶ added in v0.4.0
func (x *FinalizeBatchRequest) GetFullTree() *taprpc.TapscriptFullTree
func (*FinalizeBatchRequest) GetShortResponse ¶ added in v0.3.0
func (x *FinalizeBatchRequest) GetShortResponse() bool
func (*FinalizeBatchRequest) ProtoMessage ¶
func (*FinalizeBatchRequest) ProtoMessage()
func (*FinalizeBatchRequest) ProtoReflect ¶
func (x *FinalizeBatchRequest) ProtoReflect() protoreflect.Message
func (*FinalizeBatchRequest) Reset ¶
func (x *FinalizeBatchRequest) Reset()
func (*FinalizeBatchRequest) String ¶
func (x *FinalizeBatchRequest) String() string
type FinalizeBatchRequest_Branch ¶ added in v0.4.0
type FinalizeBatchRequest_FullTree ¶ added in v0.4.0
type FinalizeBatchRequest_FullTree struct { // An ordered list of TapLeafs, which will be used to construct a // Tapscript tree. FullTree *taprpc.TapscriptFullTree `protobuf:"bytes,3,opt,name=full_tree,json=fullTree,proto3,oneof"` }
type FinalizeBatchResponse ¶
type FinalizeBatchResponse struct { // The finalized batch. Batch *MintingBatch `protobuf:"bytes,1,opt,name=batch,proto3" json:"batch,omitempty"` // contains filtered or unexported fields }
func (*FinalizeBatchResponse) Descriptor
deprecated
func (*FinalizeBatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use FinalizeBatchResponse.ProtoReflect.Descriptor instead.
func (*FinalizeBatchResponse) GetBatch ¶ added in v0.3.0
func (x *FinalizeBatchResponse) GetBatch() *MintingBatch
func (*FinalizeBatchResponse) ProtoMessage ¶
func (*FinalizeBatchResponse) ProtoMessage()
func (*FinalizeBatchResponse) ProtoReflect ¶
func (x *FinalizeBatchResponse) ProtoReflect() protoreflect.Message
func (*FinalizeBatchResponse) Reset ¶
func (x *FinalizeBatchResponse) Reset()
func (*FinalizeBatchResponse) String ¶
func (x *FinalizeBatchResponse) String() string
type FundBatchRequest ¶ added in v0.4.0
type FundBatchRequest struct { // If true, then the assets currently in the batch won't be returned in the // response. This is mainly to avoid a lot of data being transmitted and // possibly printed on the command line in the case of a very large batch. ShortResponse bool `protobuf:"varint,1,opt,name=short_response,json=shortResponse,proto3" json:"short_response,omitempty"` // The optional fee rate to use for the minting transaction, in sat/kw. FeeRate uint32 `protobuf:"varint,2,opt,name=fee_rate,json=feeRate,proto3" json:"fee_rate,omitempty"` // The optional tapscript sibling that will be used when deriving the genesis // output for the batch. This sibling is a tapscript tree, which allows the // minter to encumber future transfers of assets in the batch with Tapscript. // // Types that are assignable to BatchSibling: // // *FundBatchRequest_FullTree // *FundBatchRequest_Branch BatchSibling isFundBatchRequest_BatchSibling `protobuf_oneof:"batch_sibling"` // contains filtered or unexported fields }
func (*FundBatchRequest) Descriptor
deprecated
added in
v0.4.0
func (*FundBatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use FundBatchRequest.ProtoReflect.Descriptor instead.
func (*FundBatchRequest) GetBatchSibling ¶ added in v0.4.0
func (m *FundBatchRequest) GetBatchSibling() isFundBatchRequest_BatchSibling
func (*FundBatchRequest) GetBranch ¶ added in v0.4.0
func (x *FundBatchRequest) GetBranch() *taprpc.TapBranch
func (*FundBatchRequest) GetFeeRate ¶ added in v0.4.0
func (x *FundBatchRequest) GetFeeRate() uint32
func (*FundBatchRequest) GetFullTree ¶ added in v0.4.0
func (x *FundBatchRequest) GetFullTree() *taprpc.TapscriptFullTree
func (*FundBatchRequest) GetShortResponse ¶ added in v0.4.0
func (x *FundBatchRequest) GetShortResponse() bool
func (*FundBatchRequest) ProtoMessage ¶ added in v0.4.0
func (*FundBatchRequest) ProtoMessage()
func (*FundBatchRequest) ProtoReflect ¶ added in v0.4.0
func (x *FundBatchRequest) ProtoReflect() protoreflect.Message
func (*FundBatchRequest) Reset ¶ added in v0.4.0
func (x *FundBatchRequest) Reset()
func (*FundBatchRequest) String ¶ added in v0.4.0
func (x *FundBatchRequest) String() string
type FundBatchRequest_Branch ¶ added in v0.4.0
type FundBatchRequest_FullTree ¶ added in v0.4.0
type FundBatchRequest_FullTree struct { // An ordered list of TapLeafs, which will be used to construct a // Tapscript tree. FullTree *taprpc.TapscriptFullTree `protobuf:"bytes,3,opt,name=full_tree,json=fullTree,proto3,oneof"` }
type FundBatchResponse ¶ added in v0.4.0
type FundBatchResponse struct { // The funded batch. Batch *MintingBatch `protobuf:"bytes,1,opt,name=batch,proto3" json:"batch,omitempty"` // contains filtered or unexported fields }
func (*FundBatchResponse) Descriptor
deprecated
added in
v0.4.0
func (*FundBatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use FundBatchResponse.ProtoReflect.Descriptor instead.
func (*FundBatchResponse) GetBatch ¶ added in v0.4.0
func (x *FundBatchResponse) GetBatch() *MintingBatch
func (*FundBatchResponse) ProtoMessage ¶ added in v0.4.0
func (*FundBatchResponse) ProtoMessage()
func (*FundBatchResponse) ProtoReflect ¶ added in v0.4.0
func (x *FundBatchResponse) ProtoReflect() protoreflect.Message
func (*FundBatchResponse) Reset ¶ added in v0.4.0
func (x *FundBatchResponse) Reset()
func (*FundBatchResponse) String ¶ added in v0.4.0
func (x *FundBatchResponse) String() string
type ListBatchRequest ¶
type ListBatchRequest struct { // The optional batch key of the batch to list. // // Types that are assignable to Filter: // // *ListBatchRequest_BatchKey // *ListBatchRequest_BatchKeyStr Filter isListBatchRequest_Filter `protobuf_oneof:"filter"` // If true, pending asset group information will be shown for the pending // batch. Verbose bool `protobuf:"varint,3,opt,name=verbose,proto3" json:"verbose,omitempty"` // contains filtered or unexported fields }
func (*ListBatchRequest) Descriptor
deprecated
func (*ListBatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListBatchRequest.ProtoReflect.Descriptor instead.
func (*ListBatchRequest) GetBatchKey ¶
func (x *ListBatchRequest) GetBatchKey() []byte
func (*ListBatchRequest) GetBatchKeyStr ¶ added in v0.2.1
func (x *ListBatchRequest) GetBatchKeyStr() string
func (*ListBatchRequest) GetFilter ¶ added in v0.2.1
func (m *ListBatchRequest) GetFilter() isListBatchRequest_Filter
func (*ListBatchRequest) GetVerbose ¶ added in v0.4.0
func (x *ListBatchRequest) GetVerbose() bool
func (*ListBatchRequest) ProtoMessage ¶
func (*ListBatchRequest) ProtoMessage()
func (*ListBatchRequest) ProtoReflect ¶
func (x *ListBatchRequest) ProtoReflect() protoreflect.Message
func (*ListBatchRequest) Reset ¶
func (x *ListBatchRequest) Reset()
func (*ListBatchRequest) String ¶
func (x *ListBatchRequest) String() string
type ListBatchRequest_BatchKey ¶ added in v0.2.1
type ListBatchRequest_BatchKey struct { // The optional batch key of the batch to list, specified as raw bytes // (gRPC only). BatchKey []byte `protobuf:"bytes,1,opt,name=batch_key,json=batchKey,proto3,oneof"` }
type ListBatchRequest_BatchKeyStr ¶ added in v0.2.1
type ListBatchRequest_BatchKeyStr struct { // The optional batch key of the batch to list, specified as a hex // encoded string (use this for REST). BatchKeyStr string `protobuf:"bytes,2,opt,name=batch_key_str,json=batchKeyStr,proto3,oneof"` }
type ListBatchResponse ¶
type ListBatchResponse struct { Batches []*VerboseBatch `protobuf:"bytes,1,rep,name=batches,proto3" json:"batches,omitempty"` // contains filtered or unexported fields }
func (*ListBatchResponse) Descriptor
deprecated
func (*ListBatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListBatchResponse.ProtoReflect.Descriptor instead.
func (*ListBatchResponse) GetBatches ¶
func (x *ListBatchResponse) GetBatches() []*VerboseBatch
func (*ListBatchResponse) ProtoMessage ¶
func (*ListBatchResponse) ProtoMessage()
func (*ListBatchResponse) ProtoReflect ¶
func (x *ListBatchResponse) ProtoReflect() protoreflect.Message
func (*ListBatchResponse) Reset ¶
func (x *ListBatchResponse) Reset()
func (*ListBatchResponse) String ¶
func (x *ListBatchResponse) String() string
type MintAsset ¶
type MintAsset struct { // The version of asset to mint. AssetVersion taprpc.AssetVersion `protobuf:"varint,1,opt,name=asset_version,json=assetVersion,proto3,enum=taprpc.AssetVersion" json:"asset_version,omitempty"` // The type of the asset to be created. AssetType taprpc.AssetType `protobuf:"varint,2,opt,name=asset_type,json=assetType,proto3,enum=taprpc.AssetType" json:"asset_type,omitempty"` // The name, or "tag" of the asset. This will affect the final asset ID. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // A blob that resents metadata related to the asset. This will affect the // final asset ID. AssetMeta *taprpc.AssetMeta `protobuf:"bytes,4,opt,name=asset_meta,json=assetMeta,proto3" json:"asset_meta,omitempty"` // The total amount of units of the new asset that should be created. If the // AssetType is Collectible, then this field cannot be set. Amount uint64 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"` // If true, then the asset will be created with a group key, which allows for // future asset issuance. NewGroupedAsset bool `protobuf:"varint,6,opt,name=new_grouped_asset,json=newGroupedAsset,proto3" json:"new_grouped_asset,omitempty"` // If true, then a group key or group anchor can be set to mint this asset into // an existing asset group. GroupedAsset bool `protobuf:"varint,7,opt,name=grouped_asset,json=groupedAsset,proto3" json:"grouped_asset,omitempty"` // The specific existing group key this asset should be minted with. GroupKey []byte `protobuf:"bytes,8,opt,name=group_key,json=groupKey,proto3" json:"group_key,omitempty"` // The name of the asset in the batch that will anchor a new asset group. // This asset will be minted with the same group key as the anchor asset. GroupAnchor string `protobuf:"bytes,9,opt,name=group_anchor,json=groupAnchor,proto3" json:"group_anchor,omitempty"` // The optional key that will be used as the internal key for an asset group // created with this asset. GroupInternalKey *taprpc.KeyDescriptor `protobuf:"bytes,10,opt,name=group_internal_key,json=groupInternalKey,proto3" json:"group_internal_key,omitempty"` // The optional root of a tapscript tree that will be used when constructing a // new asset group key. This enables future issuance authorized with a script // witness. GroupTapscriptRoot []byte `protobuf:"bytes,11,opt,name=group_tapscript_root,json=groupTapscriptRoot,proto3" json:"group_tapscript_root,omitempty"` // The optional script key to use for the new asset. If no script key is given, // a BIP-86 key will be derived from the underlying wallet. ScriptKey *taprpc.ScriptKey `protobuf:"bytes,12,opt,name=script_key,json=scriptKey,proto3" json:"script_key,omitempty"` // Decimal display dictates the number of decimal places to shift the amount to // the left converting from Taproot Asset integer representation to a // UX-recognizable fractional quantity. // // For example, if the decimal_display value is 2 and there's 100 of those // assets, then a wallet would display the amount as "1.00". This field is // intended as information for wallets that display balances and has no impact // on the behavior of the daemon or any other part of the protocol. This value // is encoded in the MetaData field as a JSON field, therefore it is only // compatible with assets that have a JSON MetaData field. DecimalDisplay uint32 `protobuf:"varint,13,opt,name=decimal_display,json=decimalDisplay,proto3" json:"decimal_display,omitempty"` // contains filtered or unexported fields }
func (*MintAsset) Descriptor
deprecated
func (*MintAsset) GetAssetMeta ¶
func (*MintAsset) GetAssetType ¶
func (*MintAsset) GetAssetVersion ¶ added in v0.3.0
func (x *MintAsset) GetAssetVersion() taprpc.AssetVersion
func (*MintAsset) GetDecimalDisplay ¶ added in v0.4.0
func (*MintAsset) GetGroupAnchor ¶
func (*MintAsset) GetGroupInternalKey ¶ added in v0.4.0
func (x *MintAsset) GetGroupInternalKey() *taprpc.KeyDescriptor
func (*MintAsset) GetGroupKey ¶
func (*MintAsset) GetGroupTapscriptRoot ¶ added in v0.4.0
func (*MintAsset) GetGroupedAsset ¶ added in v0.3.2
func (*MintAsset) GetNewGroupedAsset ¶ added in v0.3.2
func (*MintAsset) GetScriptKey ¶ added in v0.4.0
func (*MintAsset) ProtoMessage ¶
func (*MintAsset) ProtoMessage()
func (*MintAsset) ProtoReflect ¶
func (x *MintAsset) ProtoReflect() protoreflect.Message
type MintAssetRequest ¶
type MintAssetRequest struct { // The asset to be minted. Asset *MintAsset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` // If true, then the assets currently in the batch won't be returned in the // response. This is mainly to avoid a lot of data being transmitted and // possibly printed on the command line in the case of a very large batch. ShortResponse bool `protobuf:"varint,2,opt,name=short_response,json=shortResponse,proto3" json:"short_response,omitempty"` // contains filtered or unexported fields }
func (*MintAssetRequest) Descriptor
deprecated
func (*MintAssetRequest) Descriptor() ([]byte, []int)
Deprecated: Use MintAssetRequest.ProtoReflect.Descriptor instead.
func (*MintAssetRequest) GetAsset ¶
func (x *MintAssetRequest) GetAsset() *MintAsset
func (*MintAssetRequest) GetShortResponse ¶ added in v0.3.0
func (x *MintAssetRequest) GetShortResponse() bool
func (*MintAssetRequest) ProtoMessage ¶
func (*MintAssetRequest) ProtoMessage()
func (*MintAssetRequest) ProtoReflect ¶
func (x *MintAssetRequest) ProtoReflect() protoreflect.Message
func (*MintAssetRequest) Reset ¶
func (x *MintAssetRequest) Reset()
func (*MintAssetRequest) String ¶
func (x *MintAssetRequest) String() string
type MintAssetResponse ¶
type MintAssetResponse struct { // The pending batch the asset was added to. PendingBatch *MintingBatch `protobuf:"bytes,1,opt,name=pending_batch,json=pendingBatch,proto3" json:"pending_batch,omitempty"` // contains filtered or unexported fields }
func (*MintAssetResponse) Descriptor
deprecated
func (*MintAssetResponse) Descriptor() ([]byte, []int)
Deprecated: Use MintAssetResponse.ProtoReflect.Descriptor instead.
func (*MintAssetResponse) GetPendingBatch ¶ added in v0.3.0
func (x *MintAssetResponse) GetPendingBatch() *MintingBatch
func (*MintAssetResponse) ProtoMessage ¶
func (*MintAssetResponse) ProtoMessage()
func (*MintAssetResponse) ProtoReflect ¶
func (x *MintAssetResponse) ProtoReflect() protoreflect.Message
func (*MintAssetResponse) Reset ¶
func (x *MintAssetResponse) Reset()
func (*MintAssetResponse) String ¶
func (x *MintAssetResponse) String() string
type MintClient ¶
type MintClient interface { // tapcli: `assets mint` // MintAsset will attempt to mint the set of assets (async by default to // ensure proper batching) specified in the request. The pending batch is // returned that shows the other pending assets that are part of the next // batch. This call will block until the operation succeeds (asset is staged // in the batch) or fails. MintAsset(ctx context.Context, in *MintAssetRequest, opts ...grpc.CallOption) (*MintAssetResponse, error) // tapcli `assets mint fund` // FundBatch will attempt to fund the current pending batch with a genesis // input, or create a new funded batch if no batch exists yet. This RPC is only // needed if a custom witness is needed to finalize the batch. Otherwise, // FinalizeBatch can be called directly. FundBatch(ctx context.Context, in *FundBatchRequest, opts ...grpc.CallOption) (*FundBatchResponse, error) // tapcli `assets mint seal` // SealBatch will attempt to seal the current pending batch by creating and // validating asset group witness for all assets in the batch. If a witness // is not provided, a signature will be derived to serve as the witness. This // RPC is only needed if any assets in the batch have a custom asset group key // that require an external signer. Otherwise, FinalizeBatch can be called // directly. SealBatch(ctx context.Context, in *SealBatchRequest, opts ...grpc.CallOption) (*SealBatchResponse, error) // tapcli: `assets mint finalize` // FinalizeBatch will attempt to finalize the current pending batch. FinalizeBatch(ctx context.Context, in *FinalizeBatchRequest, opts ...grpc.CallOption) (*FinalizeBatchResponse, error) // tapcli: `assets mint cancel` // CancelBatch will attempt to cancel the current pending batch. CancelBatch(ctx context.Context, in *CancelBatchRequest, opts ...grpc.CallOption) (*CancelBatchResponse, error) // tapcli: `assets mint batches` // ListBatches lists the set of batches submitted to the daemon, including // pending and cancelled batches. ListBatches(ctx context.Context, in *ListBatchRequest, opts ...grpc.CallOption) (*ListBatchResponse, error) // tapcli: `events mint` // SubscribeMintEvents allows a caller to subscribe to mint events for asset // creation batches. SubscribeMintEvents(ctx context.Context, in *SubscribeMintEventsRequest, opts ...grpc.CallOption) (Mint_SubscribeMintEventsClient, error) }
MintClient is the client API for Mint service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMintClient ¶
func NewMintClient(cc grpc.ClientConnInterface) MintClient
type MintEvent ¶ added in v0.4.0
type MintEvent struct { // Execute timestamp (Unix timestamp in microseconds). Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // The last state of the batch that was successfully executed. If error // below is set, then the batch_state is the state that lead to the error // during its execution. BatchState BatchState `protobuf:"varint,2,opt,name=batch_state,json=batchState,proto3,enum=mintrpc.BatchState" json:"batch_state,omitempty"` // The batch that the event is for. Batch *MintingBatch `protobuf:"bytes,3,opt,name=batch,proto3" json:"batch,omitempty"` // An optional error, indicating that executing the batch_state failed. Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*MintEvent) Descriptor
deprecated
added in
v0.4.0
func (*MintEvent) GetBatch ¶ added in v0.4.0
func (x *MintEvent) GetBatch() *MintingBatch
func (*MintEvent) GetBatchState ¶ added in v0.4.0
func (x *MintEvent) GetBatchState() BatchState
func (*MintEvent) GetTimestamp ¶ added in v0.4.0
func (*MintEvent) ProtoMessage ¶ added in v0.4.0
func (*MintEvent) ProtoMessage()
func (*MintEvent) ProtoReflect ¶ added in v0.4.0
func (x *MintEvent) ProtoReflect() protoreflect.Message
type MintServer ¶
type MintServer interface { // tapcli: `assets mint` // MintAsset will attempt to mint the set of assets (async by default to // ensure proper batching) specified in the request. The pending batch is // returned that shows the other pending assets that are part of the next // batch. This call will block until the operation succeeds (asset is staged // in the batch) or fails. MintAsset(context.Context, *MintAssetRequest) (*MintAssetResponse, error) // tapcli `assets mint fund` // FundBatch will attempt to fund the current pending batch with a genesis // input, or create a new funded batch if no batch exists yet. This RPC is only // needed if a custom witness is needed to finalize the batch. Otherwise, // FinalizeBatch can be called directly. FundBatch(context.Context, *FundBatchRequest) (*FundBatchResponse, error) // tapcli `assets mint seal` // SealBatch will attempt to seal the current pending batch by creating and // validating asset group witness for all assets in the batch. If a witness // is not provided, a signature will be derived to serve as the witness. This // RPC is only needed if any assets in the batch have a custom asset group key // that require an external signer. Otherwise, FinalizeBatch can be called // directly. SealBatch(context.Context, *SealBatchRequest) (*SealBatchResponse, error) // tapcli: `assets mint finalize` // FinalizeBatch will attempt to finalize the current pending batch. FinalizeBatch(context.Context, *FinalizeBatchRequest) (*FinalizeBatchResponse, error) // tapcli: `assets mint cancel` // CancelBatch will attempt to cancel the current pending batch. CancelBatch(context.Context, *CancelBatchRequest) (*CancelBatchResponse, error) // tapcli: `assets mint batches` // ListBatches lists the set of batches submitted to the daemon, including // pending and cancelled batches. ListBatches(context.Context, *ListBatchRequest) (*ListBatchResponse, error) // tapcli: `events mint` // SubscribeMintEvents allows a caller to subscribe to mint events for asset // creation batches. SubscribeMintEvents(*SubscribeMintEventsRequest, Mint_SubscribeMintEventsServer) error // contains filtered or unexported methods }
MintServer is the server API for Mint service. All implementations must embed UnimplementedMintServer for forward compatibility
type Mint_SubscribeMintEventsClient ¶ added in v0.4.0
type Mint_SubscribeMintEventsClient interface { Recv() (*MintEvent, error) grpc.ClientStream }
type Mint_SubscribeMintEventsServer ¶ added in v0.4.0
type Mint_SubscribeMintEventsServer interface { Send(*MintEvent) error grpc.ServerStream }
type MintingBatch ¶
type MintingBatch struct { // A public key serialized in compressed format that can be used to uniquely // identify a pending minting batch. Responses that share the same key will be // batched into the same minting transaction. BatchKey []byte `protobuf:"bytes,1,opt,name=batch_key,json=batchKey,proto3" json:"batch_key,omitempty"` // The transaction ID of the batch. Only populated if the batch has been // committed. BatchTxid string `protobuf:"bytes,2,opt,name=batch_txid,json=batchTxid,proto3" json:"batch_txid,omitempty"` // The state of the batch. State BatchState `protobuf:"varint,3,opt,name=state,proto3,enum=mintrpc.BatchState" json:"state,omitempty"` // The assets that are part of the batch. Assets []*PendingAsset `protobuf:"bytes,4,rep,name=assets,proto3" json:"assets,omitempty"` // The time the batch was created as a Unix timestamp (in seconds). CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // The current height of the block chain at the time of the batch creation. HeightHint uint32 `protobuf:"varint,6,opt,name=height_hint,json=heightHint,proto3" json:"height_hint,omitempty"` // The genesis transaction as a PSBT packet. Only populated if the batch has // been committed. BatchPsbt []byte `protobuf:"bytes,7,opt,name=batch_psbt,json=batchPsbt,proto3" json:"batch_psbt,omitempty"` // contains filtered or unexported fields }
func (*MintingBatch) Descriptor
deprecated
func (*MintingBatch) Descriptor() ([]byte, []int)
Deprecated: Use MintingBatch.ProtoReflect.Descriptor instead.
func (*MintingBatch) GetAssets ¶
func (x *MintingBatch) GetAssets() []*PendingAsset
func (*MintingBatch) GetBatchKey ¶
func (x *MintingBatch) GetBatchKey() []byte
func (*MintingBatch) GetBatchPsbt ¶ added in v0.4.0
func (x *MintingBatch) GetBatchPsbt() []byte
func (*MintingBatch) GetBatchTxid ¶ added in v0.3.1
func (x *MintingBatch) GetBatchTxid() string
func (*MintingBatch) GetCreatedAt ¶ added in v0.4.0
func (x *MintingBatch) GetCreatedAt() int64
func (*MintingBatch) GetHeightHint ¶ added in v0.4.0
func (x *MintingBatch) GetHeightHint() uint32
func (*MintingBatch) GetState ¶
func (x *MintingBatch) GetState() BatchState
func (*MintingBatch) ProtoMessage ¶
func (*MintingBatch) ProtoMessage()
func (*MintingBatch) ProtoReflect ¶
func (x *MintingBatch) ProtoReflect() protoreflect.Message
func (*MintingBatch) Reset ¶
func (x *MintingBatch) Reset()
func (*MintingBatch) String ¶
func (x *MintingBatch) String() string
type PendingAsset ¶ added in v0.3.2
type PendingAsset struct { // The version of asset to mint. AssetVersion taprpc.AssetVersion `protobuf:"varint,1,opt,name=asset_version,json=assetVersion,proto3,enum=taprpc.AssetVersion" json:"asset_version,omitempty"` // The type of the asset to be created. AssetType taprpc.AssetType `protobuf:"varint,2,opt,name=asset_type,json=assetType,proto3,enum=taprpc.AssetType" json:"asset_type,omitempty"` // The name, or "tag" of the asset. This will affect the final asset ID. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // A blob that resents metadata related to the asset. This will affect the // final asset ID. AssetMeta *taprpc.AssetMeta `protobuf:"bytes,4,opt,name=asset_meta,json=assetMeta,proto3" json:"asset_meta,omitempty"` // The total amount of units of the new asset that should be created. If the // AssetType is Collectible, then this field cannot be set. Amount uint64 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"` // If true, then the asset will be created with a new group key, which allows // for future asset issuance. NewGroupedAsset bool `protobuf:"varint,6,opt,name=new_grouped_asset,json=newGroupedAsset,proto3" json:"new_grouped_asset,omitempty"` // The specific existing group key this asset should be minted with. GroupKey []byte `protobuf:"bytes,7,opt,name=group_key,json=groupKey,proto3" json:"group_key,omitempty"` // The name of the asset in the batch that will anchor a new asset group. // This asset will be minted with the same group key as the anchor asset. GroupAnchor string `protobuf:"bytes,8,opt,name=group_anchor,json=groupAnchor,proto3" json:"group_anchor,omitempty"` // The optional key that will be used as the internal key for an asset group // created with this asset. GroupInternalKey *taprpc.KeyDescriptor `protobuf:"bytes,9,opt,name=group_internal_key,json=groupInternalKey,proto3" json:"group_internal_key,omitempty"` // The optional root of a tapscript tree that will be used when constructing a // new asset group key. This enables future issuance authorized with a script // witness. GroupTapscriptRoot []byte `protobuf:"bytes,10,opt,name=group_tapscript_root,json=groupTapscriptRoot,proto3" json:"group_tapscript_root,omitempty"` // The optional script key to use for the new asset. If no script key is given, // a BIP-86 key will be derived from the underlying wallet. ScriptKey *taprpc.ScriptKey `protobuf:"bytes,11,opt,name=script_key,json=scriptKey,proto3" json:"script_key,omitempty"` // contains filtered or unexported fields }
func (*PendingAsset) Descriptor
deprecated
added in
v0.3.2
func (*PendingAsset) Descriptor() ([]byte, []int)
Deprecated: Use PendingAsset.ProtoReflect.Descriptor instead.
func (*PendingAsset) GetAmount ¶ added in v0.3.2
func (x *PendingAsset) GetAmount() uint64
func (*PendingAsset) GetAssetMeta ¶ added in v0.3.2
func (x *PendingAsset) GetAssetMeta() *taprpc.AssetMeta
func (*PendingAsset) GetAssetType ¶ added in v0.3.2
func (x *PendingAsset) GetAssetType() taprpc.AssetType
func (*PendingAsset) GetAssetVersion ¶ added in v0.3.2
func (x *PendingAsset) GetAssetVersion() taprpc.AssetVersion
func (*PendingAsset) GetGroupAnchor ¶ added in v0.3.2
func (x *PendingAsset) GetGroupAnchor() string
func (*PendingAsset) GetGroupInternalKey ¶ added in v0.4.0
func (x *PendingAsset) GetGroupInternalKey() *taprpc.KeyDescriptor
func (*PendingAsset) GetGroupKey ¶ added in v0.3.2
func (x *PendingAsset) GetGroupKey() []byte
func (*PendingAsset) GetGroupTapscriptRoot ¶ added in v0.4.0
func (x *PendingAsset) GetGroupTapscriptRoot() []byte
func (*PendingAsset) GetName ¶ added in v0.3.2
func (x *PendingAsset) GetName() string
func (*PendingAsset) GetNewGroupedAsset ¶ added in v0.3.2
func (x *PendingAsset) GetNewGroupedAsset() bool
func (*PendingAsset) GetScriptKey ¶ added in v0.4.0
func (x *PendingAsset) GetScriptKey() *taprpc.ScriptKey
func (*PendingAsset) ProtoMessage ¶ added in v0.3.2
func (*PendingAsset) ProtoMessage()
func (*PendingAsset) ProtoReflect ¶ added in v0.3.2
func (x *PendingAsset) ProtoReflect() protoreflect.Message
func (*PendingAsset) Reset ¶ added in v0.3.2
func (x *PendingAsset) Reset()
func (*PendingAsset) String ¶ added in v0.3.2
func (x *PendingAsset) String() string
type SealBatchRequest ¶ added in v0.4.0
type SealBatchRequest struct { // If true, then the assets currently in the batch won't be returned in the // response. This is mainly to avoid a lot of data being transmitted and // possibly printed on the command line in the case of a very large batch. ShortResponse bool `protobuf:"varint,1,opt,name=short_response,json=shortResponse,proto3" json:"short_response,omitempty"` // The assetID, witness pairs that authorize asset membership in a group. GroupWitnesses []*taprpc.GroupWitness `protobuf:"bytes,2,rep,name=group_witnesses,json=groupWitnesses,proto3" json:"group_witnesses,omitempty"` // contains filtered or unexported fields }
func (*SealBatchRequest) Descriptor
deprecated
added in
v0.4.0
func (*SealBatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SealBatchRequest.ProtoReflect.Descriptor instead.
func (*SealBatchRequest) GetGroupWitnesses ¶ added in v0.4.0
func (x *SealBatchRequest) GetGroupWitnesses() []*taprpc.GroupWitness
func (*SealBatchRequest) GetShortResponse ¶ added in v0.4.0
func (x *SealBatchRequest) GetShortResponse() bool
func (*SealBatchRequest) ProtoMessage ¶ added in v0.4.0
func (*SealBatchRequest) ProtoMessage()
func (*SealBatchRequest) ProtoReflect ¶ added in v0.4.0
func (x *SealBatchRequest) ProtoReflect() protoreflect.Message
func (*SealBatchRequest) Reset ¶ added in v0.4.0
func (x *SealBatchRequest) Reset()
func (*SealBatchRequest) String ¶ added in v0.4.0
func (x *SealBatchRequest) String() string
type SealBatchResponse ¶ added in v0.4.0
type SealBatchResponse struct { // The sealed batch. Batch *MintingBatch `protobuf:"bytes,1,opt,name=batch,proto3" json:"batch,omitempty"` // contains filtered or unexported fields }
func (*SealBatchResponse) Descriptor
deprecated
added in
v0.4.0
func (*SealBatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SealBatchResponse.ProtoReflect.Descriptor instead.
func (*SealBatchResponse) GetBatch ¶ added in v0.4.0
func (x *SealBatchResponse) GetBatch() *MintingBatch
func (*SealBatchResponse) ProtoMessage ¶ added in v0.4.0
func (*SealBatchResponse) ProtoMessage()
func (*SealBatchResponse) ProtoReflect ¶ added in v0.4.0
func (x *SealBatchResponse) ProtoReflect() protoreflect.Message
func (*SealBatchResponse) Reset ¶ added in v0.4.0
func (x *SealBatchResponse) Reset()
func (*SealBatchResponse) String ¶ added in v0.4.0
func (x *SealBatchResponse) String() string
type SubscribeMintEventsRequest ¶ added in v0.4.0
type SubscribeMintEventsRequest struct { // If true, then the assets currently in the batch won't be returned in the // event's batch. This is mainly to avoid a lot of data being transmitted and // possibly printed on the command line in the case of a very large batch. ShortResponse bool `protobuf:"varint,1,opt,name=short_response,json=shortResponse,proto3" json:"short_response,omitempty"` // contains filtered or unexported fields }
func (*SubscribeMintEventsRequest) Descriptor
deprecated
added in
v0.4.0
func (*SubscribeMintEventsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeMintEventsRequest.ProtoReflect.Descriptor instead.
func (*SubscribeMintEventsRequest) GetShortResponse ¶ added in v0.4.0
func (x *SubscribeMintEventsRequest) GetShortResponse() bool
func (*SubscribeMintEventsRequest) ProtoMessage ¶ added in v0.4.0
func (*SubscribeMintEventsRequest) ProtoMessage()
func (*SubscribeMintEventsRequest) ProtoReflect ¶ added in v0.4.0
func (x *SubscribeMintEventsRequest) ProtoReflect() protoreflect.Message
func (*SubscribeMintEventsRequest) Reset ¶ added in v0.4.0
func (x *SubscribeMintEventsRequest) Reset()
func (*SubscribeMintEventsRequest) String ¶ added in v0.4.0
func (x *SubscribeMintEventsRequest) String() string
type UnimplementedMintServer ¶
type UnimplementedMintServer struct { }
UnimplementedMintServer must be embedded to have forward compatible implementations.
func (UnimplementedMintServer) CancelBatch ¶
func (UnimplementedMintServer) CancelBatch(context.Context, *CancelBatchRequest) (*CancelBatchResponse, error)
func (UnimplementedMintServer) FinalizeBatch ¶
func (UnimplementedMintServer) FinalizeBatch(context.Context, *FinalizeBatchRequest) (*FinalizeBatchResponse, error)
func (UnimplementedMintServer) FundBatch ¶ added in v0.4.0
func (UnimplementedMintServer) FundBatch(context.Context, *FundBatchRequest) (*FundBatchResponse, error)
func (UnimplementedMintServer) ListBatches ¶
func (UnimplementedMintServer) ListBatches(context.Context, *ListBatchRequest) (*ListBatchResponse, error)
func (UnimplementedMintServer) MintAsset ¶
func (UnimplementedMintServer) MintAsset(context.Context, *MintAssetRequest) (*MintAssetResponse, error)
func (UnimplementedMintServer) SealBatch ¶ added in v0.4.0
func (UnimplementedMintServer) SealBatch(context.Context, *SealBatchRequest) (*SealBatchResponse, error)
func (UnimplementedMintServer) SubscribeMintEvents ¶ added in v0.4.0
func (UnimplementedMintServer) SubscribeMintEvents(*SubscribeMintEventsRequest, Mint_SubscribeMintEventsServer) error
type UnsafeMintServer ¶
type UnsafeMintServer interface {
// contains filtered or unexported methods
}
UnsafeMintServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MintServer will result in compilation errors.
type UnsealedAsset ¶ added in v0.4.0
type UnsealedAsset struct { // The pending asset with an unsealed asset group. Asset *PendingAsset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` // The group key request for the asset. GroupKeyRequest *taprpc.GroupKeyRequest `protobuf:"bytes,2,opt,name=group_key_request,json=groupKeyRequest,proto3" json:"group_key_request,omitempty"` // The group virtual transaction for the asset. GroupVirtualTx *taprpc.GroupVirtualTx `protobuf:"bytes,3,opt,name=group_virtual_tx,json=groupVirtualTx,proto3" json:"group_virtual_tx,omitempty"` // contains filtered or unexported fields }
func (*UnsealedAsset) Descriptor
deprecated
added in
v0.4.0
func (*UnsealedAsset) Descriptor() ([]byte, []int)
Deprecated: Use UnsealedAsset.ProtoReflect.Descriptor instead.
func (*UnsealedAsset) GetAsset ¶ added in v0.4.0
func (x *UnsealedAsset) GetAsset() *PendingAsset
func (*UnsealedAsset) GetGroupKeyRequest ¶ added in v0.4.0
func (x *UnsealedAsset) GetGroupKeyRequest() *taprpc.GroupKeyRequest
func (*UnsealedAsset) GetGroupVirtualTx ¶ added in v0.4.0
func (x *UnsealedAsset) GetGroupVirtualTx() *taprpc.GroupVirtualTx
func (*UnsealedAsset) ProtoMessage ¶ added in v0.4.0
func (*UnsealedAsset) ProtoMessage()
func (*UnsealedAsset) ProtoReflect ¶ added in v0.4.0
func (x *UnsealedAsset) ProtoReflect() protoreflect.Message
func (*UnsealedAsset) Reset ¶ added in v0.4.0
func (x *UnsealedAsset) Reset()
func (*UnsealedAsset) String ¶ added in v0.4.0
func (x *UnsealedAsset) String() string
type VerboseBatch ¶ added in v0.4.0
type VerboseBatch struct { // The minting batch, without any assets. Batch *MintingBatch `protobuf:"bytes,1,opt,name=batch,proto3" json:"batch,omitempty"` // The assets that are part of the batch. UnsealedAssets []*UnsealedAsset `protobuf:"bytes,2,rep,name=unsealed_assets,json=unsealedAssets,proto3" json:"unsealed_assets,omitempty"` // contains filtered or unexported fields }
func (*VerboseBatch) Descriptor
deprecated
added in
v0.4.0
func (*VerboseBatch) Descriptor() ([]byte, []int)
Deprecated: Use VerboseBatch.ProtoReflect.Descriptor instead.
func (*VerboseBatch) GetBatch ¶ added in v0.4.0
func (x *VerboseBatch) GetBatch() *MintingBatch
func (*VerboseBatch) GetUnsealedAssets ¶ added in v0.4.0
func (x *VerboseBatch) GetUnsealedAssets() []*UnsealedAsset
func (*VerboseBatch) ProtoMessage ¶ added in v0.4.0
func (*VerboseBatch) ProtoMessage()
func (*VerboseBatch) ProtoReflect ¶ added in v0.4.0
func (x *VerboseBatch) ProtoReflect() protoreflect.Message
func (*VerboseBatch) Reset ¶ added in v0.4.0
func (x *VerboseBatch) Reset()
func (*VerboseBatch) String ¶ added in v0.4.0
func (x *VerboseBatch) String() string