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 (x *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 (x *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() *VerboseBatch
- 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 (x *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) GetEnableSupplyCommitments() bool
- func (x *MintAsset) GetExternalGroupKey() *taprpc.ExternalKey
- 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 (x *SealBatchRequest) GetSignedGroupVirtualPsbts() []string
- 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) GetGroupVirtualPsbt() string
- 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 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 valid to be assigned 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 ¶
func (x *FinalizeBatchRequest) GetBatchSibling() isFinalizeBatchRequest_BatchSibling
func (*FinalizeBatchRequest) GetBranch ¶
func (x *FinalizeBatchRequest) GetBranch() *taprpc.TapBranch
func (*FinalizeBatchRequest) GetFeeRate ¶
func (x *FinalizeBatchRequest) GetFeeRate() uint32
func (*FinalizeBatchRequest) GetFullTree ¶
func (x *FinalizeBatchRequest) GetFullTree() *taprpc.TapscriptFullTree
func (*FinalizeBatchRequest) GetShortResponse ¶
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_FullTree ¶
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 ¶
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 ¶
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 valid to be assigned to BatchSibling:
//
// *FundBatchRequest_FullTree
// *FundBatchRequest_Branch
BatchSibling isFundBatchRequest_BatchSibling `protobuf_oneof:"batch_sibling"`
// contains filtered or unexported fields
}
func (*FundBatchRequest) Descriptor
deprecated
func (*FundBatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use FundBatchRequest.ProtoReflect.Descriptor instead.
func (*FundBatchRequest) GetBatchSibling ¶
func (x *FundBatchRequest) GetBatchSibling() isFundBatchRequest_BatchSibling
func (*FundBatchRequest) GetBranch ¶
func (x *FundBatchRequest) GetBranch() *taprpc.TapBranch
func (*FundBatchRequest) GetFeeRate ¶
func (x *FundBatchRequest) GetFeeRate() uint32
func (*FundBatchRequest) GetFullTree ¶
func (x *FundBatchRequest) GetFullTree() *taprpc.TapscriptFullTree
func (*FundBatchRequest) GetShortResponse ¶
func (x *FundBatchRequest) GetShortResponse() bool
func (*FundBatchRequest) ProtoMessage ¶
func (*FundBatchRequest) ProtoMessage()
func (*FundBatchRequest) ProtoReflect ¶
func (x *FundBatchRequest) ProtoReflect() protoreflect.Message
func (*FundBatchRequest) Reset ¶
func (x *FundBatchRequest) Reset()
func (*FundBatchRequest) String ¶
func (x *FundBatchRequest) String() string
type FundBatchRequest_Branch ¶
type FundBatchRequest_FullTree ¶
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 ¶
type FundBatchResponse struct {
// The funded batch.
Batch *VerboseBatch `protobuf:"bytes,1,opt,name=batch,proto3" json:"batch,omitempty"`
// contains filtered or unexported fields
}
func (*FundBatchResponse) Descriptor
deprecated
func (*FundBatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use FundBatchResponse.ProtoReflect.Descriptor instead.
func (*FundBatchResponse) GetBatch ¶
func (x *FundBatchResponse) GetBatch() *VerboseBatch
func (*FundBatchResponse) ProtoMessage ¶
func (*FundBatchResponse) ProtoMessage()
func (*FundBatchResponse) ProtoReflect ¶
func (x *FundBatchResponse) ProtoReflect() protoreflect.Message
func (*FundBatchResponse) Reset ¶
func (x *FundBatchResponse) Reset()
func (*FundBatchResponse) String ¶
func (x *FundBatchResponse) String() string
type ListBatchRequest ¶
type ListBatchRequest struct {
// The optional batch key of the batch to list.
//
// Types that are valid to be assigned to Filter:
//
// *ListBatchRequest_BatchKey
// *ListBatchRequest_BatchKeyStr
Filter isListBatchRequest_Filter `protobuf_oneof:"filter"`
// If true, pending asset group details will be included for any funded,
// non-empty pending batch. Unfunded or empty batches will be excluded.
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 ¶
func (x *ListBatchRequest) GetBatchKeyStr() string
func (*ListBatchRequest) GetFilter ¶
func (x *ListBatchRequest) GetFilter() isListBatchRequest_Filter
func (*ListBatchRequest) GetVerbose ¶
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 ¶
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 ¶
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.
//
// If this field is set then external_group_key must be unset, and vice versa.
GroupInternalKey *taprpc.KeyDescriptor `protobuf:"bytes,10,opt,name=group_internal_key,json=groupInternalKey,proto3" json:"group_internal_key,omitempty"`
// An optional root of a Tapscript tree used when constructing a new asset
// group key. This allows for future asset issuance authorized using a
// script witness.
//
// If an external group key is provided, the V1 scheme for group key script
// construction will be used, which supports PSBT signing. In this scheme,
// the user-supplied Tapscript root is extended by two levels of Tapscript
// siblings that commit to the group anchor's asset ID. As a result, the
// provided Tapscript root becomes a branch within a larger Tapscript tree,
// and the final Tapscript root will differ from the one specified here.
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"`
// The external group key is an optional field that allows specifying an
// external signing key for the group virtual transaction during minting.
// This key enables signing operations to be performed externally, outside
// the daemon.
//
// If this field is set then group_internal_key must be unset, and vice versa.
ExternalGroupKey *taprpc.ExternalKey `protobuf:"bytes,14,opt,name=external_group_key,json=externalGroupKey,proto3" json:"external_group_key,omitempty"`
// Enables the supply commitments feature for a new asset group.
//
// Supply commitments are minter‑controlled, on‑chain attestations that
// anchor and verify the evolving aggregate supply state of an asset group.
//
// When enabled, the batch must be a single asset group (all assets share the
// same group key). Valid only for creating a new asset group (the first
// minting tranche).
EnableSupplyCommitments bool `` /* 134-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*MintAsset) Descriptor
deprecated
func (*MintAsset) GetAssetMeta ¶
func (*MintAsset) GetAssetType ¶
func (*MintAsset) GetAssetVersion ¶
func (x *MintAsset) GetAssetVersion() taprpc.AssetVersion
func (*MintAsset) GetDecimalDisplay ¶
func (*MintAsset) GetEnableSupplyCommitments ¶ added in v1.0.10
func (*MintAsset) GetExternalGroupKey ¶
func (x *MintAsset) GetExternalGroupKey() *taprpc.ExternalKey
func (*MintAsset) GetGroupAnchor ¶
func (*MintAsset) GetGroupInternalKey ¶
func (x *MintAsset) GetGroupInternalKey() *taprpc.KeyDescriptor
func (*MintAsset) GetGroupKey ¶
func (*MintAsset) GetGroupTapscriptRoot ¶
func (*MintAsset) GetGroupedAsset ¶
func (*MintAsset) GetNewGroupedAsset ¶
func (*MintAsset) GetScriptKey ¶
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 ¶
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 ¶
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 ¶
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
func (*MintEvent) GetBatch ¶
func (x *MintEvent) GetBatch() *MintingBatch
func (*MintEvent) GetBatchState ¶
func (x *MintEvent) GetBatchState() BatchState
func (*MintEvent) GetTimestamp ¶
func (*MintEvent) ProtoMessage ¶
func (*MintEvent) ProtoMessage()
func (*MintEvent) ProtoReflect ¶
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 ¶
type Mint_SubscribeMintEventsClient interface {
Recv() (*MintEvent, error)
grpc.ClientStream
}
type Mint_SubscribeMintEventsServer ¶
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 ¶
func (x *MintingBatch) GetBatchPsbt() []byte
func (*MintingBatch) GetBatchTxid ¶
func (x *MintingBatch) GetBatchTxid() string
func (*MintingBatch) GetCreatedAt ¶
func (x *MintingBatch) GetCreatedAt() int64
func (*MintingBatch) GetHeightHint ¶
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 ¶
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
func (*PendingAsset) Descriptor() ([]byte, []int)
Deprecated: Use PendingAsset.ProtoReflect.Descriptor instead.
func (*PendingAsset) GetAmount ¶
func (x *PendingAsset) GetAmount() uint64
func (*PendingAsset) GetAssetMeta ¶
func (x *PendingAsset) GetAssetMeta() *taprpc.AssetMeta
func (*PendingAsset) GetAssetType ¶
func (x *PendingAsset) GetAssetType() taprpc.AssetType
func (*PendingAsset) GetAssetVersion ¶
func (x *PendingAsset) GetAssetVersion() taprpc.AssetVersion
func (*PendingAsset) GetGroupAnchor ¶
func (x *PendingAsset) GetGroupAnchor() string
func (*PendingAsset) GetGroupInternalKey ¶
func (x *PendingAsset) GetGroupInternalKey() *taprpc.KeyDescriptor
func (*PendingAsset) GetGroupKey ¶
func (x *PendingAsset) GetGroupKey() []byte
func (*PendingAsset) GetGroupTapscriptRoot ¶
func (x *PendingAsset) GetGroupTapscriptRoot() []byte
func (*PendingAsset) GetName ¶
func (x *PendingAsset) GetName() string
func (*PendingAsset) GetNewGroupedAsset ¶
func (x *PendingAsset) GetNewGroupedAsset() bool
func (*PendingAsset) GetScriptKey ¶
func (x *PendingAsset) GetScriptKey() *taprpc.ScriptKey
func (*PendingAsset) ProtoMessage ¶
func (*PendingAsset) ProtoMessage()
func (*PendingAsset) ProtoReflect ¶
func (x *PendingAsset) ProtoReflect() protoreflect.Message
func (*PendingAsset) Reset ¶
func (x *PendingAsset) Reset()
func (*PendingAsset) String ¶
func (x *PendingAsset) String() string
type SealBatchRequest ¶
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.
// This field should not be used in conjunction with
// `signed_group_virtual_psbts`; use one or the other.
GroupWitnesses []*taprpc.GroupWitness `protobuf:"bytes,2,rep,name=group_witnesses,json=groupWitnesses,proto3" json:"group_witnesses,omitempty"`
// The base64 encoded signed group virtual PSBTs.
// This field should not be used in conjunction with `group_witnesses`;
// use one or the other.
SignedGroupVirtualPsbts []string `` /* 134-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*SealBatchRequest) Descriptor
deprecated
func (*SealBatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SealBatchRequest.ProtoReflect.Descriptor instead.
func (*SealBatchRequest) GetGroupWitnesses ¶
func (x *SealBatchRequest) GetGroupWitnesses() []*taprpc.GroupWitness
func (*SealBatchRequest) GetShortResponse ¶
func (x *SealBatchRequest) GetShortResponse() bool
func (*SealBatchRequest) GetSignedGroupVirtualPsbts ¶
func (x *SealBatchRequest) GetSignedGroupVirtualPsbts() []string
func (*SealBatchRequest) ProtoMessage ¶
func (*SealBatchRequest) ProtoMessage()
func (*SealBatchRequest) ProtoReflect ¶
func (x *SealBatchRequest) ProtoReflect() protoreflect.Message
func (*SealBatchRequest) Reset ¶
func (x *SealBatchRequest) Reset()
func (*SealBatchRequest) String ¶
func (x *SealBatchRequest) String() string
type SealBatchResponse ¶
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
func (*SealBatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SealBatchResponse.ProtoReflect.Descriptor instead.
func (*SealBatchResponse) GetBatch ¶
func (x *SealBatchResponse) GetBatch() *MintingBatch
func (*SealBatchResponse) ProtoMessage ¶
func (*SealBatchResponse) ProtoMessage()
func (*SealBatchResponse) ProtoReflect ¶
func (x *SealBatchResponse) ProtoReflect() protoreflect.Message
func (*SealBatchResponse) Reset ¶
func (x *SealBatchResponse) Reset()
func (*SealBatchResponse) String ¶
func (x *SealBatchResponse) String() string
type SubscribeMintEventsRequest ¶
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
func (*SubscribeMintEventsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeMintEventsRequest.ProtoReflect.Descriptor instead.
func (*SubscribeMintEventsRequest) GetShortResponse ¶
func (x *SubscribeMintEventsRequest) GetShortResponse() bool
func (*SubscribeMintEventsRequest) ProtoMessage ¶
func (*SubscribeMintEventsRequest) ProtoMessage()
func (*SubscribeMintEventsRequest) ProtoReflect ¶
func (x *SubscribeMintEventsRequest) ProtoReflect() protoreflect.Message
func (*SubscribeMintEventsRequest) Reset ¶
func (x *SubscribeMintEventsRequest) Reset()
func (*SubscribeMintEventsRequest) String ¶
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 ¶
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 ¶
func (UnimplementedMintServer) SealBatch(context.Context, *SealBatchRequest) (*SealBatchResponse, error)
func (UnimplementedMintServer) SubscribeMintEvents ¶
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 ¶
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"`
// The byte serialized PSBT equivalent of the group virtual transaction.
GroupVirtualPsbt string `protobuf:"bytes,4,opt,name=group_virtual_psbt,json=groupVirtualPsbt,proto3" json:"group_virtual_psbt,omitempty"`
// contains filtered or unexported fields
}
func (*UnsealedAsset) Descriptor
deprecated
func (*UnsealedAsset) Descriptor() ([]byte, []int)
Deprecated: Use UnsealedAsset.ProtoReflect.Descriptor instead.
func (*UnsealedAsset) GetAsset ¶
func (x *UnsealedAsset) GetAsset() *PendingAsset
func (*UnsealedAsset) GetGroupKeyRequest ¶
func (x *UnsealedAsset) GetGroupKeyRequest() *taprpc.GroupKeyRequest
func (*UnsealedAsset) GetGroupVirtualPsbt ¶
func (x *UnsealedAsset) GetGroupVirtualPsbt() string
func (*UnsealedAsset) GetGroupVirtualTx ¶
func (x *UnsealedAsset) GetGroupVirtualTx() *taprpc.GroupVirtualTx
func (*UnsealedAsset) ProtoMessage ¶
func (*UnsealedAsset) ProtoMessage()
func (*UnsealedAsset) ProtoReflect ¶
func (x *UnsealedAsset) ProtoReflect() protoreflect.Message
func (*UnsealedAsset) Reset ¶
func (x *UnsealedAsset) Reset()
func (*UnsealedAsset) String ¶
func (x *UnsealedAsset) String() string
type VerboseBatch ¶
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
func (*VerboseBatch) Descriptor() ([]byte, []int)
Deprecated: Use VerboseBatch.ProtoReflect.Descriptor instead.
func (*VerboseBatch) GetBatch ¶
func (x *VerboseBatch) GetBatch() *MintingBatch
func (*VerboseBatch) GetUnsealedAssets ¶
func (x *VerboseBatch) GetUnsealedAssets() []*UnsealedAsset
func (*VerboseBatch) ProtoMessage ¶
func (*VerboseBatch) ProtoMessage()
func (*VerboseBatch) ProtoReflect ¶
func (x *VerboseBatch) ProtoReflect() protoreflect.Message
func (*VerboseBatch) Reset ¶
func (x *VerboseBatch) Reset()
func (*VerboseBatch) String ¶
func (x *VerboseBatch) String() string