universerpc

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 19 Imported by: 2

Documentation

Overview

Package universerpc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ProofType_name = map[int32]string{
		0: "PROOF_TYPE_UNSPECIFIED",
		1: "PROOF_TYPE_ISSUANCE",
		2: "PROOF_TYPE_TRANSFER",
	}
	ProofType_value = map[string]int32{
		"PROOF_TYPE_UNSPECIFIED": 0,
		"PROOF_TYPE_ISSUANCE":    1,
		"PROOF_TYPE_TRANSFER":    2,
	}
)

Enum value maps for ProofType.

View Source
var (
	UniverseSyncMode_name = map[int32]string{
		0: "SYNC_ISSUANCE_ONLY",
		1: "SYNC_FULL",
	}
	UniverseSyncMode_value = map[string]int32{
		"SYNC_ISSUANCE_ONLY": 0,
		"SYNC_FULL":          1,
	}
)

Enum value maps for UniverseSyncMode.

View Source
var (
	AssetQuerySort_name = map[int32]string{
		0: "SORT_BY_NONE",
		1: "SORT_BY_ASSET_NAME",
		2: "SORT_BY_ASSET_ID",
		3: "SORT_BY_ASSET_TYPE",
		4: "SORT_BY_TOTAL_SYNCS",
		5: "SORT_BY_TOTAL_PROOFS",
		6: "SORT_BY_GENESIS_HEIGHT",
		7: "SORT_BY_TOTAL_SUPPLY",
	}
	AssetQuerySort_value = map[string]int32{
		"SORT_BY_NONE":           0,
		"SORT_BY_ASSET_NAME":     1,
		"SORT_BY_ASSET_ID":       2,
		"SORT_BY_ASSET_TYPE":     3,
		"SORT_BY_TOTAL_SYNCS":    4,
		"SORT_BY_TOTAL_PROOFS":   5,
		"SORT_BY_GENESIS_HEIGHT": 6,
		"SORT_BY_TOTAL_SUPPLY":   7,
	}
)

Enum value maps for AssetQuerySort.

View Source
var (
	SortDirection_name = map[int32]string{
		0: "SORT_DIRECTION_ASC",
		1: "SORT_DIRECTION_DESC",
	}
	SortDirection_value = map[string]int32{
		"SORT_DIRECTION_ASC":  0,
		"SORT_DIRECTION_DESC": 1,
	}
)

Enum value maps for SortDirection.

View Source
var (
	AssetTypeFilter_name = map[int32]string{
		0: "FILTER_ASSET_NONE",
		1: "FILTER_ASSET_NORMAL",
		2: "FILTER_ASSET_COLLECTIBLE",
	}
	AssetTypeFilter_value = map[string]int32{
		"FILTER_ASSET_NONE":        0,
		"FILTER_ASSET_NORMAL":      1,
		"FILTER_ASSET_COLLECTIBLE": 2,
	}
)

Enum value maps for AssetTypeFilter.

View Source
var File_universerpc_universe_proto protoreflect.FileDescriptor
View Source
var Universe_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "universerpc.Universe",
	HandlerType: (*UniverseServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "MultiverseRoot",
			Handler:    _Universe_MultiverseRoot_Handler,
		},
		{
			MethodName: "AssetRoots",
			Handler:    _Universe_AssetRoots_Handler,
		},
		{
			MethodName: "QueryAssetRoots",
			Handler:    _Universe_QueryAssetRoots_Handler,
		},
		{
			MethodName: "DeleteAssetRoot",
			Handler:    _Universe_DeleteAssetRoot_Handler,
		},
		{
			MethodName: "AssetLeafKeys",
			Handler:    _Universe_AssetLeafKeys_Handler,
		},
		{
			MethodName: "AssetLeaves",
			Handler:    _Universe_AssetLeaves_Handler,
		},
		{
			MethodName: "QueryProof",
			Handler:    _Universe_QueryProof_Handler,
		},
		{
			MethodName: "InsertProof",
			Handler:    _Universe_InsertProof_Handler,
		},
		{
			MethodName: "PushProof",
			Handler:    _Universe_PushProof_Handler,
		},
		{
			MethodName: "Info",
			Handler:    _Universe_Info_Handler,
		},
		{
			MethodName: "SyncUniverse",
			Handler:    _Universe_SyncUniverse_Handler,
		},
		{
			MethodName: "ListFederationServers",
			Handler:    _Universe_ListFederationServers_Handler,
		},
		{
			MethodName: "AddFederationServer",
			Handler:    _Universe_AddFederationServer_Handler,
		},
		{
			MethodName: "DeleteFederationServer",
			Handler:    _Universe_DeleteFederationServer_Handler,
		},
		{
			MethodName: "UniverseStats",
			Handler:    _Universe_UniverseStats_Handler,
		},
		{
			MethodName: "QueryAssetStats",
			Handler:    _Universe_QueryAssetStats_Handler,
		},
		{
			MethodName: "QueryEvents",
			Handler:    _Universe_QueryEvents_Handler,
		},
		{
			MethodName: "SetFederationSyncConfig",
			Handler:    _Universe_SetFederationSyncConfig_Handler,
		},
		{
			MethodName: "QueryFederationSyncConfig",
			Handler:    _Universe_QueryFederationSyncConfig_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "universerpc/universe.proto",
}

Universe_ServiceDesc is the grpc.ServiceDesc for Universe service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterUniverseHandler

func RegisterUniverseHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterUniverseHandler registers the http handlers for service Universe to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterUniverseHandlerClient

func RegisterUniverseHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UniverseClient) error

RegisterUniverseHandlerClient registers the http handlers for service Universe to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UniverseClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UniverseClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UniverseClient" to call the correct interceptors.

func RegisterUniverseHandlerFromEndpoint

func RegisterUniverseHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterUniverseHandlerFromEndpoint is same as RegisterUniverseHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterUniverseHandlerServer

func RegisterUniverseHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UniverseServer) error

RegisterUniverseHandlerServer registers the http handlers for service Universe to "mux". UnaryRPC :call UniverseServer 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 RegisterUniverseHandlerFromEndpoint instead.

func RegisterUniverseJSONCallbacks added in v0.2.1

func RegisterUniverseJSONCallbacks(registry map[string]func(ctx context.Context,
	conn *grpc.ClientConn, reqJSON string, callback func(string, error)))

func RegisterUniverseServer

func RegisterUniverseServer(s grpc.ServiceRegistrar, srv UniverseServer)

Types

type AddFederationServerRequest

type AddFederationServerRequest struct {
	Servers []*UniverseFederationServer `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"`
	// contains filtered or unexported fields
}

func (*AddFederationServerRequest) Descriptor deprecated

func (*AddFederationServerRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddFederationServerRequest.ProtoReflect.Descriptor instead.

func (*AddFederationServerRequest) GetServers

func (*AddFederationServerRequest) ProtoMessage

func (*AddFederationServerRequest) ProtoMessage()

func (*AddFederationServerRequest) ProtoReflect

func (*AddFederationServerRequest) Reset

func (x *AddFederationServerRequest) Reset()

func (*AddFederationServerRequest) String

func (x *AddFederationServerRequest) String() string

type AddFederationServerResponse

type AddFederationServerResponse struct {
	// contains filtered or unexported fields
}

func (*AddFederationServerResponse) Descriptor deprecated

func (*AddFederationServerResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddFederationServerResponse.ProtoReflect.Descriptor instead.

func (*AddFederationServerResponse) ProtoMessage

func (*AddFederationServerResponse) ProtoMessage()

func (*AddFederationServerResponse) ProtoReflect

func (*AddFederationServerResponse) Reset

func (x *AddFederationServerResponse) Reset()

func (*AddFederationServerResponse) String

func (x *AddFederationServerResponse) String() string

type AssetFederationSyncConfig added in v0.3.0

type AssetFederationSyncConfig struct {

	// id is the ID of the universe to configure.
	Id *ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// allow_sync_insert is a boolean that indicates whether leaves from
	// universes of the given proof type have may be inserted via federation
	// sync.
	AllowSyncInsert bool `protobuf:"varint,2,opt,name=allow_sync_insert,json=allowSyncInsert,proto3" json:"allow_sync_insert,omitempty"`
	// allow_sync_export is a boolean that indicates whether leaves from
	// universes of the given proof type have may be exported via federation
	// sync.
	AllowSyncExport bool `protobuf:"varint,3,opt,name=allow_sync_export,json=allowSyncExport,proto3" json:"allow_sync_export,omitempty"`
	// contains filtered or unexported fields
}

AssetFederationSyncConfig is an asset universe specific configuration for federation syncing.

func (*AssetFederationSyncConfig) Descriptor deprecated added in v0.3.0

func (*AssetFederationSyncConfig) Descriptor() ([]byte, []int)

Deprecated: Use AssetFederationSyncConfig.ProtoReflect.Descriptor instead.

func (*AssetFederationSyncConfig) GetAllowSyncExport added in v0.3.0

func (x *AssetFederationSyncConfig) GetAllowSyncExport() bool

func (*AssetFederationSyncConfig) GetAllowSyncInsert added in v0.3.0

func (x *AssetFederationSyncConfig) GetAllowSyncInsert() bool

func (*AssetFederationSyncConfig) GetId added in v0.3.0

func (x *AssetFederationSyncConfig) GetId() *ID

func (*AssetFederationSyncConfig) ProtoMessage added in v0.3.0

func (*AssetFederationSyncConfig) ProtoMessage()

func (*AssetFederationSyncConfig) ProtoReflect added in v0.3.0

func (*AssetFederationSyncConfig) Reset added in v0.3.0

func (x *AssetFederationSyncConfig) Reset()

func (*AssetFederationSyncConfig) String added in v0.3.0

func (x *AssetFederationSyncConfig) String() string

type AssetKey

type AssetKey struct {

	// The outpoint of the asset key, either as a single hex encoded string, or
	// an unrolled outpoint.
	//
	// Types that are assignable to Outpoint:
	//
	//	*AssetKey_OpStr
	//	*AssetKey_Op
	Outpoint isAssetKey_Outpoint `protobuf_oneof:"outpoint"`
	// The script key of the asset.
	//
	// Types that are assignable to ScriptKey:
	//
	//	*AssetKey_ScriptKeyBytes
	//	*AssetKey_ScriptKeyStr
	ScriptKey isAssetKey_ScriptKey `protobuf_oneof:"script_key"`
	// contains filtered or unexported fields
}

func MarshalAssetKey added in v0.3.0

func MarshalAssetKey(outPoint wire.OutPoint,
	scriptKeyPubKey *btcec.PublicKey) *AssetKey

MarshalAssetKey returns an RPC ready AssetKey.

func (*AssetKey) Descriptor deprecated

func (*AssetKey) Descriptor() ([]byte, []int)

Deprecated: Use AssetKey.ProtoReflect.Descriptor instead.

func (*AssetKey) GetOp

func (x *AssetKey) GetOp() *Outpoint

func (*AssetKey) GetOpStr

func (x *AssetKey) GetOpStr() string

func (*AssetKey) GetOutpoint

func (m *AssetKey) GetOutpoint() isAssetKey_Outpoint

func (*AssetKey) GetScriptKey

func (m *AssetKey) GetScriptKey() isAssetKey_ScriptKey

func (*AssetKey) GetScriptKeyBytes

func (x *AssetKey) GetScriptKeyBytes() []byte

func (*AssetKey) GetScriptKeyStr

func (x *AssetKey) GetScriptKeyStr() string

func (*AssetKey) ProtoMessage

func (*AssetKey) ProtoMessage()

func (*AssetKey) ProtoReflect

func (x *AssetKey) ProtoReflect() protoreflect.Message

func (*AssetKey) Reset

func (x *AssetKey) Reset()

func (*AssetKey) String

func (x *AssetKey) String() string

type AssetKey_Op

type AssetKey_Op struct {
	Op *Outpoint `protobuf:"bytes,2,opt,name=op,proto3,oneof"`
}

type AssetKey_OpStr

type AssetKey_OpStr struct {
	OpStr string `protobuf:"bytes,1,opt,name=op_str,json=opStr,proto3,oneof"`
}

type AssetKey_ScriptKeyBytes

type AssetKey_ScriptKeyBytes struct {
	ScriptKeyBytes []byte `protobuf:"bytes,3,opt,name=script_key_bytes,json=scriptKeyBytes,proto3,oneof"`
}

type AssetKey_ScriptKeyStr

type AssetKey_ScriptKeyStr struct {
	ScriptKeyStr string `protobuf:"bytes,4,opt,name=script_key_str,json=scriptKeyStr,proto3,oneof"`
}

type AssetLeaf

type AssetLeaf struct {

	// The asset included in the leaf.
	Asset *taprpc.Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
	// The asset issuance or transfer proof, which proves that the asset
	// specified above was issued or transferred properly. This is always just
	// an individual mint/transfer proof and never a proof file.
	Proof []byte `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetLeaf) Descriptor deprecated

func (*AssetLeaf) Descriptor() ([]byte, []int)

Deprecated: Use AssetLeaf.ProtoReflect.Descriptor instead.

func (*AssetLeaf) GetAsset

func (x *AssetLeaf) GetAsset() *taprpc.Asset

func (*AssetLeaf) GetProof added in v0.3.1

func (x *AssetLeaf) GetProof() []byte

func (*AssetLeaf) ProtoMessage

func (*AssetLeaf) ProtoMessage()

func (*AssetLeaf) ProtoReflect

func (x *AssetLeaf) ProtoReflect() protoreflect.Message

func (*AssetLeaf) Reset

func (x *AssetLeaf) Reset()

func (*AssetLeaf) String

func (x *AssetLeaf) String() string

type AssetLeafKeyResponse

type AssetLeafKeyResponse struct {

	// The set of asset leaf keys for the given asset ID or group key.
	AssetKeys []*AssetKey `protobuf:"bytes,1,rep,name=asset_keys,json=assetKeys,proto3" json:"asset_keys,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetLeafKeyResponse) Descriptor deprecated

func (*AssetLeafKeyResponse) Descriptor() ([]byte, []int)

Deprecated: Use AssetLeafKeyResponse.ProtoReflect.Descriptor instead.

func (*AssetLeafKeyResponse) GetAssetKeys

func (x *AssetLeafKeyResponse) GetAssetKeys() []*AssetKey

func (*AssetLeafKeyResponse) ProtoMessage

func (*AssetLeafKeyResponse) ProtoMessage()

func (*AssetLeafKeyResponse) ProtoReflect

func (x *AssetLeafKeyResponse) ProtoReflect() protoreflect.Message

func (*AssetLeafKeyResponse) Reset

func (x *AssetLeafKeyResponse) Reset()

func (*AssetLeafKeyResponse) String

func (x *AssetLeafKeyResponse) String() string

type AssetLeafKeysRequest added in v0.3.1

type AssetLeafKeysRequest struct {

	// The ID of the asset to query for.
	Id *ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The offset for the page.
	Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	// The length limit for the page.
	Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	// The direction of the page.
	Direction SortDirection `protobuf:"varint,4,opt,name=direction,proto3,enum=universerpc.SortDirection" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetLeafKeysRequest) Descriptor deprecated added in v0.3.1

func (*AssetLeafKeysRequest) Descriptor() ([]byte, []int)

Deprecated: Use AssetLeafKeysRequest.ProtoReflect.Descriptor instead.

func (*AssetLeafKeysRequest) GetDirection added in v0.3.1

func (x *AssetLeafKeysRequest) GetDirection() SortDirection

func (*AssetLeafKeysRequest) GetId added in v0.3.1

func (x *AssetLeafKeysRequest) GetId() *ID

func (*AssetLeafKeysRequest) GetLimit added in v0.3.1

func (x *AssetLeafKeysRequest) GetLimit() int32

func (*AssetLeafKeysRequest) GetOffset added in v0.3.1

func (x *AssetLeafKeysRequest) GetOffset() int32

func (*AssetLeafKeysRequest) ProtoMessage added in v0.3.1

func (*AssetLeafKeysRequest) ProtoMessage()

func (*AssetLeafKeysRequest) ProtoReflect added in v0.3.1

func (x *AssetLeafKeysRequest) ProtoReflect() protoreflect.Message

func (*AssetLeafKeysRequest) Reset added in v0.3.1

func (x *AssetLeafKeysRequest) Reset()

func (*AssetLeafKeysRequest) String added in v0.3.1

func (x *AssetLeafKeysRequest) String() string

type AssetLeafResponse

type AssetLeafResponse struct {

	// The set of asset leaves for the given asset ID or group key.
	Leaves []*AssetLeaf `protobuf:"bytes,1,rep,name=leaves,proto3" json:"leaves,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetLeafResponse) Descriptor deprecated

func (*AssetLeafResponse) Descriptor() ([]byte, []int)

Deprecated: Use AssetLeafResponse.ProtoReflect.Descriptor instead.

func (*AssetLeafResponse) GetLeaves

func (x *AssetLeafResponse) GetLeaves() []*AssetLeaf

func (*AssetLeafResponse) ProtoMessage

func (*AssetLeafResponse) ProtoMessage()

func (*AssetLeafResponse) ProtoReflect

func (x *AssetLeafResponse) ProtoReflect() protoreflect.Message

func (*AssetLeafResponse) Reset

func (x *AssetLeafResponse) Reset()

func (*AssetLeafResponse) String

func (x *AssetLeafResponse) String() string

type AssetProof

type AssetProof struct {

	// The ID of the asset to insert the proof for.
	Key *UniverseKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// The asset leaf to insert into the Universe tree.
	AssetLeaf *AssetLeaf `protobuf:"bytes,4,opt,name=asset_leaf,json=assetLeaf,proto3" json:"asset_leaf,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetProof) Descriptor deprecated

func (*AssetProof) Descriptor() ([]byte, []int)

Deprecated: Use AssetProof.ProtoReflect.Descriptor instead.

func (*AssetProof) GetAssetLeaf

func (x *AssetProof) GetAssetLeaf() *AssetLeaf

func (*AssetProof) GetKey

func (x *AssetProof) GetKey() *UniverseKey

func (*AssetProof) ProtoMessage

func (*AssetProof) ProtoMessage()

func (*AssetProof) ProtoReflect

func (x *AssetProof) ProtoReflect() protoreflect.Message

func (*AssetProof) Reset

func (x *AssetProof) Reset()

func (*AssetProof) String

func (x *AssetProof) String() string

type AssetProofResponse

type AssetProofResponse struct {

	// The original request for the issuance proof.
	Req *UniverseKey `protobuf:"bytes,1,opt,name=req,proto3" json:"req,omitempty"`
	// The Universe root that includes this asset leaf.
	UniverseRoot *UniverseRoot `protobuf:"bytes,2,opt,name=universe_root,json=universeRoot,proto3" json:"universe_root,omitempty"`
	// An inclusion proof for the asset leaf included below. The value is that
	// issuance proof itself, with a sum value of the amount of the asset.
	UniverseInclusionProof []byte `` /* 129-byte string literal not displayed */
	// The asset leaf itself, which includes the asset and the issuance proof.
	AssetLeaf *AssetLeaf `protobuf:"bytes,4,opt,name=asset_leaf,json=assetLeaf,proto3" json:"asset_leaf,omitempty"`
	// MultiverseRoot is the root of the multiverse tree that includes this
	// asset leaf.
	MultiverseRoot *MerkleSumNode `protobuf:"bytes,5,opt,name=multiverse_root,json=multiverseRoot,proto3" json:"multiverse_root,omitempty"`
	// MultiverseInclusionProof is the inclusion proof for the asset leaf in the
	// multiverse.
	MultiverseInclusionProof []byte `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*AssetProofResponse) Descriptor deprecated

func (*AssetProofResponse) Descriptor() ([]byte, []int)

Deprecated: Use AssetProofResponse.ProtoReflect.Descriptor instead.

func (*AssetProofResponse) GetAssetLeaf

func (x *AssetProofResponse) GetAssetLeaf() *AssetLeaf

func (*AssetProofResponse) GetMultiverseInclusionProof added in v0.3.0

func (x *AssetProofResponse) GetMultiverseInclusionProof() []byte

func (*AssetProofResponse) GetMultiverseRoot added in v0.3.0

func (x *AssetProofResponse) GetMultiverseRoot() *MerkleSumNode

func (*AssetProofResponse) GetReq

func (x *AssetProofResponse) GetReq() *UniverseKey

func (*AssetProofResponse) GetUniverseInclusionProof

func (x *AssetProofResponse) GetUniverseInclusionProof() []byte

func (*AssetProofResponse) GetUniverseRoot

func (x *AssetProofResponse) GetUniverseRoot() *UniverseRoot

func (*AssetProofResponse) ProtoMessage

func (*AssetProofResponse) ProtoMessage()

func (*AssetProofResponse) ProtoReflect

func (x *AssetProofResponse) ProtoReflect() protoreflect.Message

func (*AssetProofResponse) Reset

func (x *AssetProofResponse) Reset()

func (*AssetProofResponse) String

func (x *AssetProofResponse) String() string

type AssetQuerySort

type AssetQuerySort int32
const (
	AssetQuerySort_SORT_BY_NONE           AssetQuerySort = 0
	AssetQuerySort_SORT_BY_ASSET_NAME     AssetQuerySort = 1
	AssetQuerySort_SORT_BY_ASSET_ID       AssetQuerySort = 2
	AssetQuerySort_SORT_BY_ASSET_TYPE     AssetQuerySort = 3
	AssetQuerySort_SORT_BY_TOTAL_SYNCS    AssetQuerySort = 4
	AssetQuerySort_SORT_BY_TOTAL_PROOFS   AssetQuerySort = 5
	AssetQuerySort_SORT_BY_GENESIS_HEIGHT AssetQuerySort = 6
	AssetQuerySort_SORT_BY_TOTAL_SUPPLY   AssetQuerySort = 7
)

func (AssetQuerySort) Descriptor

func (AssetQuerySort) Enum

func (x AssetQuerySort) Enum() *AssetQuerySort

func (AssetQuerySort) EnumDescriptor deprecated

func (AssetQuerySort) EnumDescriptor() ([]byte, []int)

Deprecated: Use AssetQuerySort.Descriptor instead.

func (AssetQuerySort) Number

func (AssetQuerySort) String

func (x AssetQuerySort) String() string

func (AssetQuerySort) Type

type AssetRootQuery

type AssetRootQuery struct {

	// An ID value to uniquely identify a Universe root.
	Id *ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetRootQuery) Descriptor deprecated

func (*AssetRootQuery) Descriptor() ([]byte, []int)

Deprecated: Use AssetRootQuery.ProtoReflect.Descriptor instead.

func (*AssetRootQuery) GetId

func (x *AssetRootQuery) GetId() *ID

func (*AssetRootQuery) ProtoMessage

func (*AssetRootQuery) ProtoMessage()

func (*AssetRootQuery) ProtoReflect

func (x *AssetRootQuery) ProtoReflect() protoreflect.Message

func (*AssetRootQuery) Reset

func (x *AssetRootQuery) Reset()

func (*AssetRootQuery) String

func (x *AssetRootQuery) String() string

type AssetRootRequest

type AssetRootRequest struct {

	// If true, then the response will include the amounts for each asset ID
	// of grouped assets.
	WithAmountsById bool `protobuf:"varint,1,opt,name=with_amounts_by_id,json=withAmountsById,proto3" json:"with_amounts_by_id,omitempty"`
	// The offset for the page.
	Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	// The length limit for the page.
	Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	// The direction of the page.
	Direction SortDirection `protobuf:"varint,4,opt,name=direction,proto3,enum=universerpc.SortDirection" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetRootRequest) Descriptor deprecated

func (*AssetRootRequest) Descriptor() ([]byte, []int)

Deprecated: Use AssetRootRequest.ProtoReflect.Descriptor instead.

func (*AssetRootRequest) GetDirection added in v0.3.1

func (x *AssetRootRequest) GetDirection() SortDirection

func (*AssetRootRequest) GetLimit added in v0.3.1

func (x *AssetRootRequest) GetLimit() int32

func (*AssetRootRequest) GetOffset added in v0.3.1

func (x *AssetRootRequest) GetOffset() int32

func (*AssetRootRequest) GetWithAmountsById added in v0.3.1

func (x *AssetRootRequest) GetWithAmountsById() bool

func (*AssetRootRequest) ProtoMessage

func (*AssetRootRequest) ProtoMessage()

func (*AssetRootRequest) ProtoReflect

func (x *AssetRootRequest) ProtoReflect() protoreflect.Message

func (*AssetRootRequest) Reset

func (x *AssetRootRequest) Reset()

func (*AssetRootRequest) String

func (x *AssetRootRequest) String() string

type AssetRootResponse

type AssetRootResponse struct {

	// A map of the set of known universe roots for each asset. The key in the
	// map is the 32-byte asset_id or group key hash.
	UniverseRoots map[string]*UniverseRoot `` /* 188-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*AssetRootResponse) Descriptor deprecated

func (*AssetRootResponse) Descriptor() ([]byte, []int)

Deprecated: Use AssetRootResponse.ProtoReflect.Descriptor instead.

func (*AssetRootResponse) GetUniverseRoots

func (x *AssetRootResponse) GetUniverseRoots() map[string]*UniverseRoot

func (*AssetRootResponse) ProtoMessage

func (*AssetRootResponse) ProtoMessage()

func (*AssetRootResponse) ProtoReflect

func (x *AssetRootResponse) ProtoReflect() protoreflect.Message

func (*AssetRootResponse) Reset

func (x *AssetRootResponse) Reset()

func (*AssetRootResponse) String

func (x *AssetRootResponse) String() string

type AssetStatsAsset added in v0.3.0

type AssetStatsAsset struct {
	AssetId          []byte           `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	GenesisPoint     string           `protobuf:"bytes,2,opt,name=genesis_point,json=genesisPoint,proto3" json:"genesis_point,omitempty"`
	TotalSupply      int64            `protobuf:"varint,3,opt,name=total_supply,json=totalSupply,proto3" json:"total_supply,omitempty"`
	AssetName        string           `protobuf:"bytes,4,opt,name=asset_name,json=assetName,proto3" json:"asset_name,omitempty"`
	AssetType        taprpc.AssetType `protobuf:"varint,5,opt,name=asset_type,json=assetType,proto3,enum=taprpc.AssetType" json:"asset_type,omitempty"`
	GenesisHeight    int32            `protobuf:"varint,6,opt,name=genesis_height,json=genesisHeight,proto3" json:"genesis_height,omitempty"`
	GenesisTimestamp int64            `protobuf:"varint,7,opt,name=genesis_timestamp,json=genesisTimestamp,proto3" json:"genesis_timestamp,omitempty"`
	AnchorPoint      string           `protobuf:"bytes,8,opt,name=anchor_point,json=anchorPoint,proto3" json:"anchor_point,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetStatsAsset) Descriptor deprecated added in v0.3.0

func (*AssetStatsAsset) Descriptor() ([]byte, []int)

Deprecated: Use AssetStatsAsset.ProtoReflect.Descriptor instead.

func (*AssetStatsAsset) GetAnchorPoint added in v0.3.2

func (x *AssetStatsAsset) GetAnchorPoint() string

func (*AssetStatsAsset) GetAssetId added in v0.3.0

func (x *AssetStatsAsset) GetAssetId() []byte

func (*AssetStatsAsset) GetAssetName added in v0.3.0

func (x *AssetStatsAsset) GetAssetName() string

func (*AssetStatsAsset) GetAssetType added in v0.3.0

func (x *AssetStatsAsset) GetAssetType() taprpc.AssetType

func (*AssetStatsAsset) GetGenesisHeight added in v0.3.0

func (x *AssetStatsAsset) GetGenesisHeight() int32

func (*AssetStatsAsset) GetGenesisPoint added in v0.3.0

func (x *AssetStatsAsset) GetGenesisPoint() string

func (*AssetStatsAsset) GetGenesisTimestamp added in v0.3.0

func (x *AssetStatsAsset) GetGenesisTimestamp() int64

func (*AssetStatsAsset) GetTotalSupply added in v0.3.0

func (x *AssetStatsAsset) GetTotalSupply() int64

func (*AssetStatsAsset) ProtoMessage added in v0.3.0

func (*AssetStatsAsset) ProtoMessage()

func (*AssetStatsAsset) ProtoReflect added in v0.3.0

func (x *AssetStatsAsset) ProtoReflect() protoreflect.Message

func (*AssetStatsAsset) Reset added in v0.3.0

func (x *AssetStatsAsset) Reset()

func (*AssetStatsAsset) String added in v0.3.0

func (x *AssetStatsAsset) String() string

type AssetStatsQuery

type AssetStatsQuery struct {
	AssetNameFilter string          `protobuf:"bytes,1,opt,name=asset_name_filter,json=assetNameFilter,proto3" json:"asset_name_filter,omitempty"`
	AssetIdFilter   []byte          `protobuf:"bytes,2,opt,name=asset_id_filter,json=assetIdFilter,proto3" json:"asset_id_filter,omitempty"`
	AssetTypeFilter AssetTypeFilter `` /* 142-byte string literal not displayed */
	SortBy          AssetQuerySort  `protobuf:"varint,4,opt,name=sort_by,json=sortBy,proto3,enum=universerpc.AssetQuerySort" json:"sort_by,omitempty"`
	Offset          int32           `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"`
	Limit           int32           `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"`
	Direction       SortDirection   `protobuf:"varint,7,opt,name=direction,proto3,enum=universerpc.SortDirection" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetStatsQuery) Descriptor deprecated

func (*AssetStatsQuery) Descriptor() ([]byte, []int)

Deprecated: Use AssetStatsQuery.ProtoReflect.Descriptor instead.

func (*AssetStatsQuery) GetAssetIdFilter

func (x *AssetStatsQuery) GetAssetIdFilter() []byte

func (*AssetStatsQuery) GetAssetNameFilter

func (x *AssetStatsQuery) GetAssetNameFilter() string

func (*AssetStatsQuery) GetAssetTypeFilter

func (x *AssetStatsQuery) GetAssetTypeFilter() AssetTypeFilter

func (*AssetStatsQuery) GetDirection added in v0.3.0

func (x *AssetStatsQuery) GetDirection() SortDirection

func (*AssetStatsQuery) GetLimit

func (x *AssetStatsQuery) GetLimit() int32

func (*AssetStatsQuery) GetOffset

func (x *AssetStatsQuery) GetOffset() int32

func (*AssetStatsQuery) GetSortBy

func (x *AssetStatsQuery) GetSortBy() AssetQuerySort

func (*AssetStatsQuery) ProtoMessage

func (*AssetStatsQuery) ProtoMessage()

func (*AssetStatsQuery) ProtoReflect

func (x *AssetStatsQuery) ProtoReflect() protoreflect.Message

func (*AssetStatsQuery) Reset

func (x *AssetStatsQuery) Reset()

func (*AssetStatsQuery) String

func (x *AssetStatsQuery) String() string

type AssetStatsSnapshot

type AssetStatsSnapshot struct {

	// The group key of the asset group. If this is empty, then the asset is
	// not part of a group.
	GroupKey []byte `protobuf:"bytes,1,opt,name=group_key,json=groupKey,proto3" json:"group_key,omitempty"`
	// The total supply of the asset group. If the asset is not part of an asset
	// group then this is always zero.
	GroupSupply int64 `protobuf:"varint,2,opt,name=group_supply,json=groupSupply,proto3" json:"group_supply,omitempty"`
	// The group anchor that was used to group assets together into an asset
	// group. This is only set if the asset is part of an asset group.
	GroupAnchor *AssetStatsAsset `protobuf:"bytes,3,opt,name=group_anchor,json=groupAnchor,proto3" json:"group_anchor,omitempty"`
	// If the asset is not part of an asset group, then this is the asset the
	// stats below refer to.
	Asset *AssetStatsAsset `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"`
	// The total number of syncs either for the asset group or the single asset
	// if it is not part of a group.
	TotalSyncs int64 `protobuf:"varint,5,opt,name=total_syncs,json=totalSyncs,proto3" json:"total_syncs,omitempty"`
	// The total number of proofs either for the asset group or the single asset
	// if it is not part of a group.
	TotalProofs int64 `protobuf:"varint,6,opt,name=total_proofs,json=totalProofs,proto3" json:"total_proofs,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetStatsSnapshot) Descriptor deprecated

func (*AssetStatsSnapshot) Descriptor() ([]byte, []int)

Deprecated: Use AssetStatsSnapshot.ProtoReflect.Descriptor instead.

func (*AssetStatsSnapshot) GetAsset added in v0.3.0

func (x *AssetStatsSnapshot) GetAsset() *AssetStatsAsset

func (*AssetStatsSnapshot) GetGroupAnchor added in v0.3.0

func (x *AssetStatsSnapshot) GetGroupAnchor() *AssetStatsAsset

func (*AssetStatsSnapshot) GetGroupKey added in v0.2.3

func (x *AssetStatsSnapshot) GetGroupKey() []byte

func (*AssetStatsSnapshot) GetGroupSupply added in v0.3.0

func (x *AssetStatsSnapshot) GetGroupSupply() int64

func (*AssetStatsSnapshot) GetTotalProofs

func (x *AssetStatsSnapshot) GetTotalProofs() int64

func (*AssetStatsSnapshot) GetTotalSyncs

func (x *AssetStatsSnapshot) GetTotalSyncs() int64

func (*AssetStatsSnapshot) ProtoMessage

func (*AssetStatsSnapshot) ProtoMessage()

func (*AssetStatsSnapshot) ProtoReflect

func (x *AssetStatsSnapshot) ProtoReflect() protoreflect.Message

func (*AssetStatsSnapshot) Reset

func (x *AssetStatsSnapshot) Reset()

func (*AssetStatsSnapshot) String

func (x *AssetStatsSnapshot) String() string

type AssetTypeFilter

type AssetTypeFilter int32
const (
	AssetTypeFilter_FILTER_ASSET_NONE        AssetTypeFilter = 0
	AssetTypeFilter_FILTER_ASSET_NORMAL      AssetTypeFilter = 1
	AssetTypeFilter_FILTER_ASSET_COLLECTIBLE AssetTypeFilter = 2
)

func (AssetTypeFilter) Descriptor

func (AssetTypeFilter) Enum

func (x AssetTypeFilter) Enum() *AssetTypeFilter

func (AssetTypeFilter) EnumDescriptor deprecated

func (AssetTypeFilter) EnumDescriptor() ([]byte, []int)

Deprecated: Use AssetTypeFilter.Descriptor instead.

func (AssetTypeFilter) Number

func (AssetTypeFilter) String

func (x AssetTypeFilter) String() string

func (AssetTypeFilter) Type

type DeleteFederationServerRequest

type DeleteFederationServerRequest struct {
	Servers []*UniverseFederationServer `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteFederationServerRequest) Descriptor deprecated

func (*DeleteFederationServerRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteFederationServerRequest.ProtoReflect.Descriptor instead.

func (*DeleteFederationServerRequest) GetServers

func (*DeleteFederationServerRequest) ProtoMessage

func (*DeleteFederationServerRequest) ProtoMessage()

func (*DeleteFederationServerRequest) ProtoReflect

func (*DeleteFederationServerRequest) Reset

func (x *DeleteFederationServerRequest) Reset()

func (*DeleteFederationServerRequest) String

type DeleteFederationServerResponse

type DeleteFederationServerResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteFederationServerResponse) Descriptor deprecated

func (*DeleteFederationServerResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteFederationServerResponse.ProtoReflect.Descriptor instead.

func (*DeleteFederationServerResponse) ProtoMessage

func (*DeleteFederationServerResponse) ProtoMessage()

func (*DeleteFederationServerResponse) ProtoReflect

func (*DeleteFederationServerResponse) Reset

func (x *DeleteFederationServerResponse) Reset()

func (*DeleteFederationServerResponse) String

type DeleteRootQuery added in v0.2.1

type DeleteRootQuery struct {

	// An ID value to uniquely identify a Universe root.
	Id *ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRootQuery) Descriptor deprecated added in v0.2.1

func (*DeleteRootQuery) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRootQuery.ProtoReflect.Descriptor instead.

func (*DeleteRootQuery) GetId added in v0.2.1

func (x *DeleteRootQuery) GetId() *ID

func (*DeleteRootQuery) ProtoMessage added in v0.2.1

func (*DeleteRootQuery) ProtoMessage()

func (*DeleteRootQuery) ProtoReflect added in v0.2.1

func (x *DeleteRootQuery) ProtoReflect() protoreflect.Message

func (*DeleteRootQuery) Reset added in v0.2.1

func (x *DeleteRootQuery) Reset()

func (*DeleteRootQuery) String added in v0.2.1

func (x *DeleteRootQuery) String() string

type DeleteRootResponse added in v0.2.1

type DeleteRootResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteRootResponse) Descriptor deprecated added in v0.2.1

func (*DeleteRootResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRootResponse.ProtoReflect.Descriptor instead.

func (*DeleteRootResponse) ProtoMessage added in v0.2.1

func (*DeleteRootResponse) ProtoMessage()

func (*DeleteRootResponse) ProtoReflect added in v0.2.1

func (x *DeleteRootResponse) ProtoReflect() protoreflect.Message

func (*DeleteRootResponse) Reset added in v0.2.1

func (x *DeleteRootResponse) Reset()

func (*DeleteRootResponse) String added in v0.2.1

func (x *DeleteRootResponse) String() string

type GlobalFederationSyncConfig added in v0.3.0

type GlobalFederationSyncConfig struct {

	// proof_type is the universe proof type which this config applies to.
	ProofType ProofType `protobuf:"varint,1,opt,name=proof_type,json=proofType,proto3,enum=universerpc.ProofType" json:"proof_type,omitempty"`
	// allow_sync_insert is a boolean that indicates whether leaves from
	// universes of the given proof type have may be inserted via federation
	// sync.
	AllowSyncInsert bool `protobuf:"varint,2,opt,name=allow_sync_insert,json=allowSyncInsert,proto3" json:"allow_sync_insert,omitempty"`
	// allow_sync_export is a boolean that indicates whether leaves from
	// universes of the given proof type have may be exported via federation
	// sync.
	AllowSyncExport bool `protobuf:"varint,3,opt,name=allow_sync_export,json=allowSyncExport,proto3" json:"allow_sync_export,omitempty"`
	// contains filtered or unexported fields
}

GlobalFederationSyncConfig is a global proof type specific configuration for universe federation syncing.

func (*GlobalFederationSyncConfig) Descriptor deprecated added in v0.3.0

func (*GlobalFederationSyncConfig) Descriptor() ([]byte, []int)

Deprecated: Use GlobalFederationSyncConfig.ProtoReflect.Descriptor instead.

func (*GlobalFederationSyncConfig) GetAllowSyncExport added in v0.3.0

func (x *GlobalFederationSyncConfig) GetAllowSyncExport() bool

func (*GlobalFederationSyncConfig) GetAllowSyncInsert added in v0.3.0

func (x *GlobalFederationSyncConfig) GetAllowSyncInsert() bool

func (*GlobalFederationSyncConfig) GetProofType added in v0.3.0

func (x *GlobalFederationSyncConfig) GetProofType() ProofType

func (*GlobalFederationSyncConfig) ProtoMessage added in v0.3.0

func (*GlobalFederationSyncConfig) ProtoMessage()

func (*GlobalFederationSyncConfig) ProtoReflect added in v0.3.0

func (*GlobalFederationSyncConfig) Reset added in v0.3.0

func (x *GlobalFederationSyncConfig) Reset()

func (*GlobalFederationSyncConfig) String added in v0.3.0

func (x *GlobalFederationSyncConfig) String() string

type GroupedUniverseEvents added in v0.2.3

type GroupedUniverseEvents struct {

	// The date the events occurred on, formatted as YYYY-MM-DD.
	Date           string `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
	SyncEvents     uint64 `protobuf:"varint,2,opt,name=sync_events,json=syncEvents,proto3" json:"sync_events,omitempty"`
	NewProofEvents uint64 `protobuf:"varint,3,opt,name=new_proof_events,json=newProofEvents,proto3" json:"new_proof_events,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupedUniverseEvents) Descriptor deprecated added in v0.2.3

func (*GroupedUniverseEvents) Descriptor() ([]byte, []int)

Deprecated: Use GroupedUniverseEvents.ProtoReflect.Descriptor instead.

func (*GroupedUniverseEvents) GetDate added in v0.2.3

func (x *GroupedUniverseEvents) GetDate() string

func (*GroupedUniverseEvents) GetNewProofEvents added in v0.2.3

func (x *GroupedUniverseEvents) GetNewProofEvents() uint64

func (*GroupedUniverseEvents) GetSyncEvents added in v0.2.3

func (x *GroupedUniverseEvents) GetSyncEvents() uint64

func (*GroupedUniverseEvents) ProtoMessage added in v0.2.3

func (*GroupedUniverseEvents) ProtoMessage()

func (*GroupedUniverseEvents) ProtoReflect added in v0.2.3

func (x *GroupedUniverseEvents) ProtoReflect() protoreflect.Message

func (*GroupedUniverseEvents) Reset added in v0.2.3

func (x *GroupedUniverseEvents) Reset()

func (*GroupedUniverseEvents) String added in v0.2.3

func (x *GroupedUniverseEvents) String() string

type ID

type ID struct {

	// Types that are assignable to Id:
	//
	//	*ID_AssetId
	//	*ID_AssetIdStr
	//	*ID_GroupKey
	//	*ID_GroupKeyStr
	Id        isID_Id   `protobuf_oneof:"id"`
	ProofType ProofType `protobuf:"varint,5,opt,name=proof_type,json=proofType,proto3,enum=universerpc.ProofType" json:"proof_type,omitempty"`
	// contains filtered or unexported fields
}

func MarshalUniverseID added in v0.3.0

func MarshalUniverseID(assetIDBytes []byte, groupKeyBytes []byte) *ID

MarshalUniverseID returns an RPC ready universe ID.

func (*ID) Descriptor deprecated

func (*ID) Descriptor() ([]byte, []int)

Deprecated: Use ID.ProtoReflect.Descriptor instead.

func (*ID) GetAssetId

func (x *ID) GetAssetId() []byte

func (*ID) GetAssetIdStr

func (x *ID) GetAssetIdStr() string

func (*ID) GetGroupKey

func (x *ID) GetGroupKey() []byte

func (*ID) GetGroupKeyStr

func (x *ID) GetGroupKeyStr() string

func (*ID) GetId

func (m *ID) GetId() isID_Id

func (*ID) GetProofType added in v0.3.0

func (x *ID) GetProofType() ProofType

func (*ID) ProtoMessage

func (*ID) ProtoMessage()

func (*ID) ProtoReflect

func (x *ID) ProtoReflect() protoreflect.Message

func (*ID) Reset

func (x *ID) Reset()

func (*ID) String

func (x *ID) String() string

type ID_AssetId

type ID_AssetId struct {
	// The 32-byte asset ID specified as raw bytes (gRPC only).
	AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3,oneof"`
}

type ID_AssetIdStr

type ID_AssetIdStr struct {
	// The 32-byte asset ID encoded as a hex string (use this for REST).
	AssetIdStr string `protobuf:"bytes,2,opt,name=asset_id_str,json=assetIdStr,proto3,oneof"`
}

type ID_GroupKey

type ID_GroupKey struct {
	// The 32-byte asset group key specified as raw bytes (gRPC only).
	GroupKey []byte `protobuf:"bytes,3,opt,name=group_key,json=groupKey,proto3,oneof"`
}

type ID_GroupKeyStr

type ID_GroupKeyStr struct {
	// The 32-byte asset group key encoded as hex string (use this for
	// REST).
	GroupKeyStr string `protobuf:"bytes,4,opt,name=group_key_str,json=groupKeyStr,proto3,oneof"`
}

type InfoRequest added in v0.2.1

type InfoRequest struct {
	// contains filtered or unexported fields
}

func (*InfoRequest) Descriptor deprecated added in v0.2.1

func (*InfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use InfoRequest.ProtoReflect.Descriptor instead.

func (*InfoRequest) ProtoMessage added in v0.2.1

func (*InfoRequest) ProtoMessage()

func (*InfoRequest) ProtoReflect added in v0.2.1

func (x *InfoRequest) ProtoReflect() protoreflect.Message

func (*InfoRequest) Reset added in v0.2.1

func (x *InfoRequest) Reset()

func (*InfoRequest) String added in v0.2.1

func (x *InfoRequest) String() string

type InfoResponse added in v0.2.1

type InfoResponse struct {

	// A pseudo-random runtime ID for the current instance of the Universe
	// server, changes with each restart. Mainly used to identify identical
	// servers when they are exposed under different hostnames/ports.
	RuntimeId int64 `protobuf:"varint,1,opt,name=runtime_id,json=runtimeId,proto3" json:"runtime_id,omitempty"`
	// contains filtered or unexported fields
}

func (*InfoResponse) Descriptor deprecated added in v0.2.1

func (*InfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead.

func (*InfoResponse) GetRuntimeId added in v0.2.1

func (x *InfoResponse) GetRuntimeId() int64

func (*InfoResponse) ProtoMessage added in v0.2.1

func (*InfoResponse) ProtoMessage()

func (*InfoResponse) ProtoReflect added in v0.2.1

func (x *InfoResponse) ProtoReflect() protoreflect.Message

func (*InfoResponse) Reset added in v0.2.1

func (x *InfoResponse) Reset()

func (*InfoResponse) String added in v0.2.1

func (x *InfoResponse) String() string

type ListFederationServersRequest

type ListFederationServersRequest struct {
	// contains filtered or unexported fields
}

func (*ListFederationServersRequest) Descriptor deprecated

func (*ListFederationServersRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListFederationServersRequest.ProtoReflect.Descriptor instead.

func (*ListFederationServersRequest) ProtoMessage

func (*ListFederationServersRequest) ProtoMessage()

func (*ListFederationServersRequest) ProtoReflect

func (*ListFederationServersRequest) Reset

func (x *ListFederationServersRequest) Reset()

func (*ListFederationServersRequest) String

type ListFederationServersResponse

type ListFederationServersResponse struct {
	Servers []*UniverseFederationServer `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFederationServersResponse) Descriptor deprecated

func (*ListFederationServersResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListFederationServersResponse.ProtoReflect.Descriptor instead.

func (*ListFederationServersResponse) GetServers

func (*ListFederationServersResponse) ProtoMessage

func (*ListFederationServersResponse) ProtoMessage()

func (*ListFederationServersResponse) ProtoReflect

func (*ListFederationServersResponse) Reset

func (x *ListFederationServersResponse) Reset()

func (*ListFederationServersResponse) String

type MerkleSumNode

type MerkleSumNode struct {

	// The MS-SMT root hash for the branch node.
	RootHash []byte `protobuf:"bytes,1,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"`
	// The root sum of the branch node. This is hashed to create the root_hash
	// along with the left and right siblings. This value represents the total
	// known supply of the asset.
	RootSum int64 `protobuf:"varint,2,opt,name=root_sum,json=rootSum,proto3" json:"root_sum,omitempty"`
	// contains filtered or unexported fields
}

func (*MerkleSumNode) Descriptor deprecated

func (*MerkleSumNode) Descriptor() ([]byte, []int)

Deprecated: Use MerkleSumNode.ProtoReflect.Descriptor instead.

func (*MerkleSumNode) GetRootHash

func (x *MerkleSumNode) GetRootHash() []byte

func (*MerkleSumNode) GetRootSum

func (x *MerkleSumNode) GetRootSum() int64

func (*MerkleSumNode) ProtoMessage

func (*MerkleSumNode) ProtoMessage()

func (*MerkleSumNode) ProtoReflect

func (x *MerkleSumNode) ProtoReflect() protoreflect.Message

func (*MerkleSumNode) Reset

func (x *MerkleSumNode) Reset()

func (*MerkleSumNode) String

func (x *MerkleSumNode) String() string

type MultiverseRootRequest added in v0.4.0

type MultiverseRootRequest struct {

	// The proof type to calculate the multiverse root for.
	ProofType ProofType `protobuf:"varint,1,opt,name=proof_type,json=proofType,proto3,enum=universerpc.ProofType" json:"proof_type,omitempty"`
	// An optional list of universe IDs to include in the multiverse root. If
	// none are specified, then all known universes of the given proof type are
	// included. NOTE: The proof type within the IDs must either be unspecified
	// or match the proof type above.
	SpecificIds []*ID `protobuf:"bytes,2,rep,name=specific_ids,json=specificIds,proto3" json:"specific_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*MultiverseRootRequest) Descriptor deprecated added in v0.4.0

func (*MultiverseRootRequest) Descriptor() ([]byte, []int)

Deprecated: Use MultiverseRootRequest.ProtoReflect.Descriptor instead.

func (*MultiverseRootRequest) GetProofType added in v0.4.0

func (x *MultiverseRootRequest) GetProofType() ProofType

func (*MultiverseRootRequest) GetSpecificIds added in v0.4.0

func (x *MultiverseRootRequest) GetSpecificIds() []*ID

func (*MultiverseRootRequest) ProtoMessage added in v0.4.0

func (*MultiverseRootRequest) ProtoMessage()

func (*MultiverseRootRequest) ProtoReflect added in v0.4.0

func (x *MultiverseRootRequest) ProtoReflect() protoreflect.Message

func (*MultiverseRootRequest) Reset added in v0.4.0

func (x *MultiverseRootRequest) Reset()

func (*MultiverseRootRequest) String added in v0.4.0

func (x *MultiverseRootRequest) String() string

type MultiverseRootResponse added in v0.4.0

type MultiverseRootResponse struct {

	// The root of the multiverse tree.
	MultiverseRoot *MerkleSumNode `protobuf:"bytes,1,opt,name=multiverse_root,json=multiverseRoot,proto3" json:"multiverse_root,omitempty"`
	// contains filtered or unexported fields
}

func (*MultiverseRootResponse) Descriptor deprecated added in v0.4.0

func (*MultiverseRootResponse) Descriptor() ([]byte, []int)

Deprecated: Use MultiverseRootResponse.ProtoReflect.Descriptor instead.

func (*MultiverseRootResponse) GetMultiverseRoot added in v0.4.0

func (x *MultiverseRootResponse) GetMultiverseRoot() *MerkleSumNode

func (*MultiverseRootResponse) ProtoMessage added in v0.4.0

func (*MultiverseRootResponse) ProtoMessage()

func (*MultiverseRootResponse) ProtoReflect added in v0.4.0

func (x *MultiverseRootResponse) ProtoReflect() protoreflect.Message

func (*MultiverseRootResponse) Reset added in v0.4.0

func (x *MultiverseRootResponse) Reset()

func (*MultiverseRootResponse) String added in v0.4.0

func (x *MultiverseRootResponse) String() string

type Outpoint

type Outpoint struct {

	// The output as a hex encoded (and reversed!) string.
	HashStr string `protobuf:"bytes,1,opt,name=hash_str,json=hashStr,proto3" json:"hash_str,omitempty"`
	// The index of the output.
	Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func MarshalOutpoint added in v0.3.0

func MarshalOutpoint(outPoint wire.OutPoint) *Outpoint

MarshalOutpoint marshals a wire.OutPoint into an RPC ready Outpoint.

TODO(ffranr): Move this package's Outpoint type and this marshal function to somewhere more general.

func (*Outpoint) Descriptor deprecated

func (*Outpoint) Descriptor() ([]byte, []int)

Deprecated: Use Outpoint.ProtoReflect.Descriptor instead.

func (*Outpoint) GetHashStr

func (x *Outpoint) GetHashStr() string

func (*Outpoint) GetIndex

func (x *Outpoint) GetIndex() int32

func (*Outpoint) ProtoMessage

func (*Outpoint) ProtoMessage()

func (*Outpoint) ProtoReflect

func (x *Outpoint) ProtoReflect() protoreflect.Message

func (*Outpoint) Reset

func (x *Outpoint) Reset()

func (*Outpoint) String

func (x *Outpoint) String() string

type ProofType added in v0.3.0

type ProofType int32
const (
	ProofType_PROOF_TYPE_UNSPECIFIED ProofType = 0
	ProofType_PROOF_TYPE_ISSUANCE    ProofType = 1
	ProofType_PROOF_TYPE_TRANSFER    ProofType = 2
)

func (ProofType) Descriptor added in v0.3.0

func (ProofType) Descriptor() protoreflect.EnumDescriptor

func (ProofType) Enum added in v0.3.0

func (x ProofType) Enum() *ProofType

func (ProofType) EnumDescriptor deprecated added in v0.3.0

func (ProofType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProofType.Descriptor instead.

func (ProofType) Number added in v0.3.0

func (x ProofType) Number() protoreflect.EnumNumber

func (ProofType) String added in v0.3.0

func (x ProofType) String() string

func (ProofType) Type added in v0.3.0

type PushProofRequest added in v0.4.0

type PushProofRequest struct {

	// The ID of the asset to push the proof for.
	Key *UniverseKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// The universe server to push the proof to.
	Server *UniverseFederationServer `protobuf:"bytes,2,opt,name=server,proto3" json:"server,omitempty"`
	// contains filtered or unexported fields
}

func (*PushProofRequest) Descriptor deprecated added in v0.4.0

func (*PushProofRequest) Descriptor() ([]byte, []int)

Deprecated: Use PushProofRequest.ProtoReflect.Descriptor instead.

func (*PushProofRequest) GetKey added in v0.4.0

func (x *PushProofRequest) GetKey() *UniverseKey

func (*PushProofRequest) GetServer added in v0.4.0

func (*PushProofRequest) ProtoMessage added in v0.4.0

func (*PushProofRequest) ProtoMessage()

func (*PushProofRequest) ProtoReflect added in v0.4.0

func (x *PushProofRequest) ProtoReflect() protoreflect.Message

func (*PushProofRequest) Reset added in v0.4.0

func (x *PushProofRequest) Reset()

func (*PushProofRequest) String added in v0.4.0

func (x *PushProofRequest) String() string

type PushProofResponse added in v0.4.0

type PushProofResponse struct {

	// The ID of the asset a push was requested for.
	Key *UniverseKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*PushProofResponse) Descriptor deprecated added in v0.4.0

func (*PushProofResponse) Descriptor() ([]byte, []int)

Deprecated: Use PushProofResponse.ProtoReflect.Descriptor instead.

func (*PushProofResponse) GetKey added in v0.4.0

func (x *PushProofResponse) GetKey() *UniverseKey

func (*PushProofResponse) ProtoMessage added in v0.4.0

func (*PushProofResponse) ProtoMessage()

func (*PushProofResponse) ProtoReflect added in v0.4.0

func (x *PushProofResponse) ProtoReflect() protoreflect.Message

func (*PushProofResponse) Reset added in v0.4.0

func (x *PushProofResponse) Reset()

func (*PushProofResponse) String added in v0.4.0

func (x *PushProofResponse) String() string

type QueryEventsRequest added in v0.2.3

type QueryEventsRequest struct {
	StartTimestamp int64 `protobuf:"varint,1,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,omitempty"`
	EndTimestamp   int64 `protobuf:"varint,2,opt,name=end_timestamp,json=endTimestamp,proto3" json:"end_timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryEventsRequest) Descriptor deprecated added in v0.2.3

func (*QueryEventsRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryEventsRequest.ProtoReflect.Descriptor instead.

func (*QueryEventsRequest) GetEndTimestamp added in v0.2.3

func (x *QueryEventsRequest) GetEndTimestamp() int64

func (*QueryEventsRequest) GetStartTimestamp added in v0.2.3

func (x *QueryEventsRequest) GetStartTimestamp() int64

func (*QueryEventsRequest) ProtoMessage added in v0.2.3

func (*QueryEventsRequest) ProtoMessage()

func (*QueryEventsRequest) ProtoReflect added in v0.2.3

func (x *QueryEventsRequest) ProtoReflect() protoreflect.Message

func (*QueryEventsRequest) Reset added in v0.2.3

func (x *QueryEventsRequest) Reset()

func (*QueryEventsRequest) String added in v0.2.3

func (x *QueryEventsRequest) String() string

type QueryEventsResponse added in v0.2.3

type QueryEventsResponse struct {
	Events []*GroupedUniverseEvents `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryEventsResponse) Descriptor deprecated added in v0.2.3

func (*QueryEventsResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryEventsResponse.ProtoReflect.Descriptor instead.

func (*QueryEventsResponse) GetEvents added in v0.2.3

func (x *QueryEventsResponse) GetEvents() []*GroupedUniverseEvents

func (*QueryEventsResponse) ProtoMessage added in v0.2.3

func (*QueryEventsResponse) ProtoMessage()

func (*QueryEventsResponse) ProtoReflect added in v0.2.3

func (x *QueryEventsResponse) ProtoReflect() protoreflect.Message

func (*QueryEventsResponse) Reset added in v0.2.3

func (x *QueryEventsResponse) Reset()

func (*QueryEventsResponse) String added in v0.2.3

func (x *QueryEventsResponse) String() string

type QueryFederationSyncConfigRequest added in v0.3.0

type QueryFederationSyncConfigRequest struct {

	// Target universe ID(s).
	Id []*ID `protobuf:"bytes,1,rep,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryFederationSyncConfigRequest) Descriptor deprecated added in v0.3.0

func (*QueryFederationSyncConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryFederationSyncConfigRequest.ProtoReflect.Descriptor instead.

func (*QueryFederationSyncConfigRequest) GetId added in v0.3.0

func (x *QueryFederationSyncConfigRequest) GetId() []*ID

func (*QueryFederationSyncConfigRequest) ProtoMessage added in v0.3.0

func (*QueryFederationSyncConfigRequest) ProtoMessage()

func (*QueryFederationSyncConfigRequest) ProtoReflect added in v0.3.0

func (*QueryFederationSyncConfigRequest) Reset added in v0.3.0

func (*QueryFederationSyncConfigRequest) String added in v0.3.0

type QueryFederationSyncConfigResponse added in v0.3.0

type QueryFederationSyncConfigResponse struct {
	GlobalSyncConfigs []*GlobalFederationSyncConfig `protobuf:"bytes,1,rep,name=global_sync_configs,json=globalSyncConfigs,proto3" json:"global_sync_configs,omitempty"`
	AssetSyncConfigs  []*AssetFederationSyncConfig  `protobuf:"bytes,2,rep,name=asset_sync_configs,json=assetSyncConfigs,proto3" json:"asset_sync_configs,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryFederationSyncConfigResponse) Descriptor deprecated added in v0.3.0

func (*QueryFederationSyncConfigResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryFederationSyncConfigResponse.ProtoReflect.Descriptor instead.

func (*QueryFederationSyncConfigResponse) GetAssetSyncConfigs added in v0.3.0

func (*QueryFederationSyncConfigResponse) GetGlobalSyncConfigs added in v0.3.0

func (*QueryFederationSyncConfigResponse) ProtoMessage added in v0.3.0

func (*QueryFederationSyncConfigResponse) ProtoMessage()

func (*QueryFederationSyncConfigResponse) ProtoReflect added in v0.3.0

func (*QueryFederationSyncConfigResponse) Reset added in v0.3.0

func (*QueryFederationSyncConfigResponse) String added in v0.3.0

type QueryRootResponse

type QueryRootResponse struct {

	// The issuance universe root for the given asset ID or group key.
	IssuanceRoot *UniverseRoot `protobuf:"bytes,1,opt,name=issuance_root,json=issuanceRoot,proto3" json:"issuance_root,omitempty"`
	// The transfer universe root for the given asset ID or group key.
	TransferRoot *UniverseRoot `protobuf:"bytes,2,opt,name=transfer_root,json=transferRoot,proto3" json:"transfer_root,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRootResponse) Descriptor deprecated

func (*QueryRootResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryRootResponse.ProtoReflect.Descriptor instead.

func (*QueryRootResponse) GetIssuanceRoot added in v0.3.0

func (x *QueryRootResponse) GetIssuanceRoot() *UniverseRoot

func (*QueryRootResponse) GetTransferRoot added in v0.3.0

func (x *QueryRootResponse) GetTransferRoot() *UniverseRoot

func (*QueryRootResponse) ProtoMessage

func (*QueryRootResponse) ProtoMessage()

func (*QueryRootResponse) ProtoReflect

func (x *QueryRootResponse) ProtoReflect() protoreflect.Message

func (*QueryRootResponse) Reset

func (x *QueryRootResponse) Reset()

func (*QueryRootResponse) String

func (x *QueryRootResponse) String() string

type SetFederationSyncConfigRequest added in v0.3.0

type SetFederationSyncConfigRequest struct {
	GlobalSyncConfigs []*GlobalFederationSyncConfig `protobuf:"bytes,1,rep,name=global_sync_configs,json=globalSyncConfigs,proto3" json:"global_sync_configs,omitempty"`
	AssetSyncConfigs  []*AssetFederationSyncConfig  `protobuf:"bytes,2,rep,name=asset_sync_configs,json=assetSyncConfigs,proto3" json:"asset_sync_configs,omitempty"`
	// contains filtered or unexported fields
}

func (*SetFederationSyncConfigRequest) Descriptor deprecated added in v0.3.0

func (*SetFederationSyncConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetFederationSyncConfigRequest.ProtoReflect.Descriptor instead.

func (*SetFederationSyncConfigRequest) GetAssetSyncConfigs added in v0.3.0

func (x *SetFederationSyncConfigRequest) GetAssetSyncConfigs() []*AssetFederationSyncConfig

func (*SetFederationSyncConfigRequest) GetGlobalSyncConfigs added in v0.3.0

func (x *SetFederationSyncConfigRequest) GetGlobalSyncConfigs() []*GlobalFederationSyncConfig

func (*SetFederationSyncConfigRequest) ProtoMessage added in v0.3.0

func (*SetFederationSyncConfigRequest) ProtoMessage()

func (*SetFederationSyncConfigRequest) ProtoReflect added in v0.3.0

func (*SetFederationSyncConfigRequest) Reset added in v0.3.0

func (x *SetFederationSyncConfigRequest) Reset()

func (*SetFederationSyncConfigRequest) String added in v0.3.0

type SetFederationSyncConfigResponse added in v0.3.0

type SetFederationSyncConfigResponse struct {
	// contains filtered or unexported fields
}

func (*SetFederationSyncConfigResponse) Descriptor deprecated added in v0.3.0

func (*SetFederationSyncConfigResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetFederationSyncConfigResponse.ProtoReflect.Descriptor instead.

func (*SetFederationSyncConfigResponse) ProtoMessage added in v0.3.0

func (*SetFederationSyncConfigResponse) ProtoMessage()

func (*SetFederationSyncConfigResponse) ProtoReflect added in v0.3.0

func (*SetFederationSyncConfigResponse) Reset added in v0.3.0

func (*SetFederationSyncConfigResponse) String added in v0.3.0

type SortDirection added in v0.3.0

type SortDirection int32
const (
	SortDirection_SORT_DIRECTION_ASC  SortDirection = 0
	SortDirection_SORT_DIRECTION_DESC SortDirection = 1
)

func (SortDirection) Descriptor added in v0.3.0

func (SortDirection) Enum added in v0.3.0

func (x SortDirection) Enum() *SortDirection

func (SortDirection) EnumDescriptor deprecated added in v0.3.0

func (SortDirection) EnumDescriptor() ([]byte, []int)

Deprecated: Use SortDirection.Descriptor instead.

func (SortDirection) Number added in v0.3.0

func (SortDirection) String added in v0.3.0

func (x SortDirection) String() string

func (SortDirection) Type added in v0.3.0

type StatsRequest

type StatsRequest struct {
	// contains filtered or unexported fields
}

func (*StatsRequest) Descriptor deprecated

func (*StatsRequest) Descriptor() ([]byte, []int)

Deprecated: Use StatsRequest.ProtoReflect.Descriptor instead.

func (*StatsRequest) ProtoMessage

func (*StatsRequest) ProtoMessage()

func (*StatsRequest) ProtoReflect

func (x *StatsRequest) ProtoReflect() protoreflect.Message

func (*StatsRequest) Reset

func (x *StatsRequest) Reset()

func (*StatsRequest) String

func (x *StatsRequest) String() string

type StatsResponse

type StatsResponse struct {
	NumTotalAssets int64 `protobuf:"varint,1,opt,name=num_total_assets,json=numTotalAssets,proto3" json:"num_total_assets,omitempty"`
	NumTotalGroups int64 `protobuf:"varint,2,opt,name=num_total_groups,json=numTotalGroups,proto3" json:"num_total_groups,omitempty"`
	NumTotalSyncs  int64 `protobuf:"varint,3,opt,name=num_total_syncs,json=numTotalSyncs,proto3" json:"num_total_syncs,omitempty"`
	NumTotalProofs int64 `protobuf:"varint,4,opt,name=num_total_proofs,json=numTotalProofs,proto3" json:"num_total_proofs,omitempty"`
	// contains filtered or unexported fields
}

func (*StatsResponse) Descriptor deprecated

func (*StatsResponse) Descriptor() ([]byte, []int)

Deprecated: Use StatsResponse.ProtoReflect.Descriptor instead.

func (*StatsResponse) GetNumTotalAssets

func (x *StatsResponse) GetNumTotalAssets() int64

func (*StatsResponse) GetNumTotalGroups added in v0.3.0

func (x *StatsResponse) GetNumTotalGroups() int64

func (*StatsResponse) GetNumTotalProofs

func (x *StatsResponse) GetNumTotalProofs() int64

func (*StatsResponse) GetNumTotalSyncs

func (x *StatsResponse) GetNumTotalSyncs() int64

func (*StatsResponse) ProtoMessage

func (*StatsResponse) ProtoMessage()

func (*StatsResponse) ProtoReflect

func (x *StatsResponse) ProtoReflect() protoreflect.Message

func (*StatsResponse) Reset

func (x *StatsResponse) Reset()

func (*StatsResponse) String

func (x *StatsResponse) String() string

type SyncRequest

type SyncRequest struct {

	// TODO(roasbeef): accept connection type? so can pass along self-signed
	// cert, also brontide based RPC handshake
	UniverseHost string `protobuf:"bytes,1,opt,name=universe_host,json=universeHost,proto3" json:"universe_host,omitempty"`
	// The sync mode. This determines what type of proofs are synced.
	SyncMode UniverseSyncMode `protobuf:"varint,2,opt,name=sync_mode,json=syncMode,proto3,enum=universerpc.UniverseSyncMode" json:"sync_mode,omitempty"`
	// The set of assets to sync. If none are specified, then all assets are
	// synced.
	SyncTargets []*SyncTarget `protobuf:"bytes,3,rep,name=sync_targets,json=syncTargets,proto3" json:"sync_targets,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncRequest) Descriptor deprecated

func (*SyncRequest) Descriptor() ([]byte, []int)

Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead.

func (*SyncRequest) GetSyncMode

func (x *SyncRequest) GetSyncMode() UniverseSyncMode

func (*SyncRequest) GetSyncTargets

func (x *SyncRequest) GetSyncTargets() []*SyncTarget

func (*SyncRequest) GetUniverseHost

func (x *SyncRequest) GetUniverseHost() string

func (*SyncRequest) ProtoMessage

func (*SyncRequest) ProtoMessage()

func (*SyncRequest) ProtoReflect

func (x *SyncRequest) ProtoReflect() protoreflect.Message

func (*SyncRequest) Reset

func (x *SyncRequest) Reset()

func (*SyncRequest) String

func (x *SyncRequest) String() string

type SyncResponse

type SyncResponse struct {

	// The set of synced asset Universes.
	SyncedUniverses []*SyncedUniverse `protobuf:"bytes,1,rep,name=synced_universes,json=syncedUniverses,proto3" json:"synced_universes,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncResponse) Descriptor deprecated

func (*SyncResponse) Descriptor() ([]byte, []int)

Deprecated: Use SyncResponse.ProtoReflect.Descriptor instead.

func (*SyncResponse) GetSyncedUniverses

func (x *SyncResponse) GetSyncedUniverses() []*SyncedUniverse

func (*SyncResponse) ProtoMessage

func (*SyncResponse) ProtoMessage()

func (*SyncResponse) ProtoReflect

func (x *SyncResponse) ProtoReflect() protoreflect.Message

func (*SyncResponse) Reset

func (x *SyncResponse) Reset()

func (*SyncResponse) String

func (x *SyncResponse) String() string

type SyncTarget

type SyncTarget struct {
	Id *ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncTarget) Descriptor deprecated

func (*SyncTarget) Descriptor() ([]byte, []int)

Deprecated: Use SyncTarget.ProtoReflect.Descriptor instead.

func (*SyncTarget) GetId

func (x *SyncTarget) GetId() *ID

func (*SyncTarget) ProtoMessage

func (*SyncTarget) ProtoMessage()

func (*SyncTarget) ProtoReflect

func (x *SyncTarget) ProtoReflect() protoreflect.Message

func (*SyncTarget) Reset

func (x *SyncTarget) Reset()

func (*SyncTarget) String

func (x *SyncTarget) String() string

type SyncedUniverse

type SyncedUniverse struct {

	// The old Universe root for the synced asset.
	OldAssetRoot *UniverseRoot `protobuf:"bytes,1,opt,name=old_asset_root,json=oldAssetRoot,proto3" json:"old_asset_root,omitempty"`
	// The new Universe root for the synced asset.
	NewAssetRoot *UniverseRoot `protobuf:"bytes,2,opt,name=new_asset_root,json=newAssetRoot,proto3" json:"new_asset_root,omitempty"`
	// The set of new asset leaves that were synced.
	NewAssetLeaves []*AssetLeaf `protobuf:"bytes,3,rep,name=new_asset_leaves,json=newAssetLeaves,proto3" json:"new_asset_leaves,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncedUniverse) Descriptor deprecated

func (*SyncedUniverse) Descriptor() ([]byte, []int)

Deprecated: Use SyncedUniverse.ProtoReflect.Descriptor instead.

func (*SyncedUniverse) GetNewAssetLeaves

func (x *SyncedUniverse) GetNewAssetLeaves() []*AssetLeaf

func (*SyncedUniverse) GetNewAssetRoot

func (x *SyncedUniverse) GetNewAssetRoot() *UniverseRoot

func (*SyncedUniverse) GetOldAssetRoot

func (x *SyncedUniverse) GetOldAssetRoot() *UniverseRoot

func (*SyncedUniverse) ProtoMessage

func (*SyncedUniverse) ProtoMessage()

func (*SyncedUniverse) ProtoReflect

func (x *SyncedUniverse) ProtoReflect() protoreflect.Message

func (*SyncedUniverse) Reset

func (x *SyncedUniverse) Reset()

func (*SyncedUniverse) String

func (x *SyncedUniverse) String() string

type UnimplementedUniverseServer

type UnimplementedUniverseServer struct {
}

UnimplementedUniverseServer must be embedded to have forward compatible implementations.

func (UnimplementedUniverseServer) AssetLeafKeys

func (UnimplementedUniverseServer) AssetLeaves

func (UnimplementedUniverseServer) AssetRoots

func (UnimplementedUniverseServer) DeleteAssetRoot added in v0.2.1

func (UnimplementedUniverseServer) Info added in v0.2.1

func (UnimplementedUniverseServer) InsertProof

func (UnimplementedUniverseServer) MultiverseRoot added in v0.4.0

func (UnimplementedUniverseServer) PushProof added in v0.4.0

func (UnimplementedUniverseServer) QueryAssetRoots

func (UnimplementedUniverseServer) QueryAssetStats

func (UnimplementedUniverseServer) QueryEvents added in v0.2.3

func (UnimplementedUniverseServer) QueryFederationSyncConfig added in v0.3.0

func (UnimplementedUniverseServer) QueryProof

func (UnimplementedUniverseServer) SetFederationSyncConfig added in v0.3.0

func (UnimplementedUniverseServer) SyncUniverse

func (UnimplementedUniverseServer) UniverseStats

type UniverseAssetStats

type UniverseAssetStats struct {
	AssetStats []*AssetStatsSnapshot `protobuf:"bytes,1,rep,name=asset_stats,json=assetStats,proto3" json:"asset_stats,omitempty"`
	// contains filtered or unexported fields
}

func (*UniverseAssetStats) Descriptor deprecated

func (*UniverseAssetStats) Descriptor() ([]byte, []int)

Deprecated: Use UniverseAssetStats.ProtoReflect.Descriptor instead.

func (*UniverseAssetStats) GetAssetStats

func (x *UniverseAssetStats) GetAssetStats() []*AssetStatsSnapshot

func (*UniverseAssetStats) ProtoMessage

func (*UniverseAssetStats) ProtoMessage()

func (*UniverseAssetStats) ProtoReflect

func (x *UniverseAssetStats) ProtoReflect() protoreflect.Message

func (*UniverseAssetStats) Reset

func (x *UniverseAssetStats) Reset()

func (*UniverseAssetStats) String

func (x *UniverseAssetStats) String() string

type UniverseClient

type UniverseClient interface {
	// tapcli: `universe multiverse`
	// MultiverseRoot returns the root of the multiverse tree. This is useful to
	// determine the equality of two multiverse trees, since the root can directly
	// be compared to another multiverse root to find out if a sync is required.
	MultiverseRoot(ctx context.Context, in *MultiverseRootRequest, opts ...grpc.CallOption) (*MultiverseRootResponse, error)
	// tapcli: `universe roots`
	// AssetRoots queries for the known Universe roots associated with each known
	// asset. These roots represent the supply/audit state for each known asset.
	AssetRoots(ctx context.Context, in *AssetRootRequest, opts ...grpc.CallOption) (*AssetRootResponse, error)
	// tapcli: `universe roots`
	// QueryAssetRoots attempts to locate the current Universe root for a specific
	// asset. This asset can be identified by its asset ID or group key.
	QueryAssetRoots(ctx context.Context, in *AssetRootQuery, opts ...grpc.CallOption) (*QueryRootResponse, error)
	// tapcli: `universe delete`
	// DeleteAssetRoot deletes the Universe root for a specific asset, including
	// all asoociated universe keys, leaves, and events.
	DeleteAssetRoot(ctx context.Context, in *DeleteRootQuery, opts ...grpc.CallOption) (*DeleteRootResponse, error)
	// tapcli: `universe keys`
	// AssetLeafKeys queries for the set of Universe keys associated with a given
	// asset_id or group_key. Each key takes the form: (outpoint, script_key),
	// where outpoint is an outpoint in the Bitcoin blockchain that anchors a
	// valid Taproot Asset commitment, and script_key is the script_key of
	// the asset within the Taproot Asset commitment for the given asset_id or
	// group_key.
	AssetLeafKeys(ctx context.Context, in *AssetLeafKeysRequest, opts ...grpc.CallOption) (*AssetLeafKeyResponse, error)
	// tapcli: `universe leaves`
	// AssetLeaves queries for the set of asset leaves (the values in the Universe
	// MS-SMT tree) for a given asset_id or group_key. These represents either
	// asset issuance events (they have a genesis witness) or asset transfers that
	// took place on chain. The leaves contain a normal Taproot Asset proof, as
	// well as details for the asset.
	AssetLeaves(ctx context.Context, in *ID, opts ...grpc.CallOption) (*AssetLeafResponse, error)
	// tapcli: `universe proofs query`
	// QueryProof attempts to query for an issuance or transfer proof for a given
	// asset based on its UniverseKey. A UniverseKey is composed of the Universe
	// ID (asset_id/group_key) and also a leaf key (outpoint || script_key). If
	// found, then the issuance proof is returned that includes an inclusion proof
	// to the known Universe root, as well as a Taproot Asset state transition or
	// issuance proof for the said asset.
	QueryProof(ctx context.Context, in *UniverseKey, opts ...grpc.CallOption) (*AssetProofResponse, error)
	// tapcli: `universe proofs insert`
	// InsertProof attempts to insert a new issuance or transfer proof into the
	// Universe tree specified by the UniverseKey. If valid, then the proof is
	// inserted into the database, with a new Universe root returned for the
	// updated asset_id/group_key.
	InsertProof(ctx context.Context, in *AssetProof, opts ...grpc.CallOption) (*AssetProofResponse, error)
	// tapcli: `universe proofs push`
	// PushProof attempts to query the local universe for a proof specified by a
	// UniverseKey. If found, a connection is made to a remote Universe server to
	// attempt to upload the asset leaf.
	PushProof(ctx context.Context, in *PushProofRequest, opts ...grpc.CallOption) (*PushProofResponse, error)
	// tapcli: `universe info`
	// Info returns a set of information about the current state of the Universe.
	Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error)
	// tapcli: `universe sync`
	// SyncUniverse takes host information for a remote Universe server, then
	// attempts to synchronize either only the set of specified asset_ids, or all
	// assets if none are specified. The sync process will attempt to query for
	// the latest known root for each asset, performing tree based reconciliation
	// to arrive at a new shared root.
	SyncUniverse(ctx context.Context, in *SyncRequest, opts ...grpc.CallOption) (*SyncResponse, error)
	// tapcli: `universe federation list`
	// ListFederationServers lists the set of servers that make up the federation
	// of the local Universe server. This servers are used to push out new proofs,
	// and also periodically call sync new proofs from the remote server.
	ListFederationServers(ctx context.Context, in *ListFederationServersRequest, opts ...grpc.CallOption) (*ListFederationServersResponse, error)
	// tapcli: `universe federation add`
	// AddFederationServer adds a new server to the federation of the local
	// Universe server. Once a server is added, this call can also optionally be
	// used to trigger a sync of the remote server.
	AddFederationServer(ctx context.Context, in *AddFederationServerRequest, opts ...grpc.CallOption) (*AddFederationServerResponse, error)
	// tapcli: `universe federation del`
	// DeleteFederationServer removes a server from the federation of the local
	// Universe server.
	DeleteFederationServer(ctx context.Context, in *DeleteFederationServerRequest, opts ...grpc.CallOption) (*DeleteFederationServerResponse, error)
	// tapcli: `universe stats`
	// UniverseStats returns a set of aggregate statistics for the current state
	// of the Universe. Stats returned include: total number of syncs, total
	// number of proofs, and total number of known assets.
	UniverseStats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatsResponse, error)
	// tapcli `universe stats assets`
	// QueryAssetStats returns a set of statistics for a given set of assets.
	// Stats can be queried for all assets, or based on the: asset ID, name, or
	// asset type. Pagination is supported via the offset and limit params.
	// Results can also be sorted based on any of the main query params.
	QueryAssetStats(ctx context.Context, in *AssetStatsQuery, opts ...grpc.CallOption) (*UniverseAssetStats, error)
	// tapcli `universe stats events`
	// QueryEvents returns the number of sync and proof events for a given time
	// period, grouped by day.
	QueryEvents(ctx context.Context, in *QueryEventsRequest, opts ...grpc.CallOption) (*QueryEventsResponse, error)
	// SetFederationSyncConfig sets the configuration of the universe federation
	// sync.
	SetFederationSyncConfig(ctx context.Context, in *SetFederationSyncConfigRequest, opts ...grpc.CallOption) (*SetFederationSyncConfigResponse, error)
	// tapcli: `universe federation config info`
	// QueryFederationSyncConfig queries the universe federation sync configuration
	// settings.
	QueryFederationSyncConfig(ctx context.Context, in *QueryFederationSyncConfigRequest, opts ...grpc.CallOption) (*QueryFederationSyncConfigResponse, error)
}

UniverseClient is the client API for Universe 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 NewUniverseClient

func NewUniverseClient(cc grpc.ClientConnInterface) UniverseClient

type UniverseFederationServer

type UniverseFederationServer struct {
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Id   int32  `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*UniverseFederationServer) Descriptor deprecated

func (*UniverseFederationServer) Descriptor() ([]byte, []int)

Deprecated: Use UniverseFederationServer.ProtoReflect.Descriptor instead.

func (*UniverseFederationServer) GetHost

func (x *UniverseFederationServer) GetHost() string

func (*UniverseFederationServer) GetId

func (x *UniverseFederationServer) GetId() int32

func (*UniverseFederationServer) ProtoMessage

func (*UniverseFederationServer) ProtoMessage()

func (*UniverseFederationServer) ProtoReflect

func (x *UniverseFederationServer) ProtoReflect() protoreflect.Message

func (*UniverseFederationServer) Reset

func (x *UniverseFederationServer) Reset()

func (*UniverseFederationServer) String

func (x *UniverseFederationServer) String() string

type UniverseKey

type UniverseKey struct {

	// The ID of the asset to query for.
	Id *ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The asset key to query for.
	LeafKey *AssetKey `protobuf:"bytes,2,opt,name=leaf_key,json=leafKey,proto3" json:"leaf_key,omitempty"`
	// contains filtered or unexported fields
}

func (*UniverseKey) Descriptor deprecated

func (*UniverseKey) Descriptor() ([]byte, []int)

Deprecated: Use UniverseKey.ProtoReflect.Descriptor instead.

func (*UniverseKey) GetId

func (x *UniverseKey) GetId() *ID

func (*UniverseKey) GetLeafKey

func (x *UniverseKey) GetLeafKey() *AssetKey

func (*UniverseKey) ProtoMessage

func (*UniverseKey) ProtoMessage()

func (*UniverseKey) ProtoReflect

func (x *UniverseKey) ProtoReflect() protoreflect.Message

func (*UniverseKey) Reset

func (x *UniverseKey) Reset()

func (*UniverseKey) String

func (x *UniverseKey) String() string

type UniverseRoot

type UniverseRoot struct {
	Id *ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The merkle sum sparse merkle tree root associated with the above
	// universe ID.
	MssmtRoot *MerkleSumNode `protobuf:"bytes,3,opt,name=mssmt_root,json=mssmtRoot,proto3" json:"mssmt_root,omitempty"`
	// The name of the asset.
	AssetName string `protobuf:"bytes,4,opt,name=asset_name,json=assetName,proto3" json:"asset_name,omitempty"`
	// A map of hex encoded asset IDs to the number of units minted for that
	// asset. This only contains more than one entry for grouped assets and in
	// that case represents the whole list of assets currently known to exist
	// within the group. For single (non-grouped) assets, this is equal to the
	// asset ID above and the sum in the mssmt_root. A hex encoded string is
	// used as the map key because gRPC does not support using raw bytes for a
	// map key.
	AmountsByAssetId map[string]uint64 `` /* 202-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UniverseRoot) Descriptor deprecated

func (*UniverseRoot) Descriptor() ([]byte, []int)

Deprecated: Use UniverseRoot.ProtoReflect.Descriptor instead.

func (*UniverseRoot) GetAmountsByAssetId added in v0.3.0

func (x *UniverseRoot) GetAmountsByAssetId() map[string]uint64

func (*UniverseRoot) GetAssetName

func (x *UniverseRoot) GetAssetName() string

func (*UniverseRoot) GetId

func (x *UniverseRoot) GetId() *ID

func (*UniverseRoot) GetMssmtRoot

func (x *UniverseRoot) GetMssmtRoot() *MerkleSumNode

func (*UniverseRoot) ProtoMessage

func (*UniverseRoot) ProtoMessage()

func (*UniverseRoot) ProtoReflect

func (x *UniverseRoot) ProtoReflect() protoreflect.Message

func (*UniverseRoot) Reset

func (x *UniverseRoot) Reset()

func (*UniverseRoot) String

func (x *UniverseRoot) String() string

type UniverseServer

type UniverseServer interface {
	// tapcli: `universe multiverse`
	// MultiverseRoot returns the root of the multiverse tree. This is useful to
	// determine the equality of two multiverse trees, since the root can directly
	// be compared to another multiverse root to find out if a sync is required.
	MultiverseRoot(context.Context, *MultiverseRootRequest) (*MultiverseRootResponse, error)
	// tapcli: `universe roots`
	// AssetRoots queries for the known Universe roots associated with each known
	// asset. These roots represent the supply/audit state for each known asset.
	AssetRoots(context.Context, *AssetRootRequest) (*AssetRootResponse, error)
	// tapcli: `universe roots`
	// QueryAssetRoots attempts to locate the current Universe root for a specific
	// asset. This asset can be identified by its asset ID or group key.
	QueryAssetRoots(context.Context, *AssetRootQuery) (*QueryRootResponse, error)
	// tapcli: `universe delete`
	// DeleteAssetRoot deletes the Universe root for a specific asset, including
	// all asoociated universe keys, leaves, and events.
	DeleteAssetRoot(context.Context, *DeleteRootQuery) (*DeleteRootResponse, error)
	// tapcli: `universe keys`
	// AssetLeafKeys queries for the set of Universe keys associated with a given
	// asset_id or group_key. Each key takes the form: (outpoint, script_key),
	// where outpoint is an outpoint in the Bitcoin blockchain that anchors a
	// valid Taproot Asset commitment, and script_key is the script_key of
	// the asset within the Taproot Asset commitment for the given asset_id or
	// group_key.
	AssetLeafKeys(context.Context, *AssetLeafKeysRequest) (*AssetLeafKeyResponse, error)
	// tapcli: `universe leaves`
	// AssetLeaves queries for the set of asset leaves (the values in the Universe
	// MS-SMT tree) for a given asset_id or group_key. These represents either
	// asset issuance events (they have a genesis witness) or asset transfers that
	// took place on chain. The leaves contain a normal Taproot Asset proof, as
	// well as details for the asset.
	AssetLeaves(context.Context, *ID) (*AssetLeafResponse, error)
	// tapcli: `universe proofs query`
	// QueryProof attempts to query for an issuance or transfer proof for a given
	// asset based on its UniverseKey. A UniverseKey is composed of the Universe
	// ID (asset_id/group_key) and also a leaf key (outpoint || script_key). If
	// found, then the issuance proof is returned that includes an inclusion proof
	// to the known Universe root, as well as a Taproot Asset state transition or
	// issuance proof for the said asset.
	QueryProof(context.Context, *UniverseKey) (*AssetProofResponse, error)
	// tapcli: `universe proofs insert`
	// InsertProof attempts to insert a new issuance or transfer proof into the
	// Universe tree specified by the UniverseKey. If valid, then the proof is
	// inserted into the database, with a new Universe root returned for the
	// updated asset_id/group_key.
	InsertProof(context.Context, *AssetProof) (*AssetProofResponse, error)
	// tapcli: `universe proofs push`
	// PushProof attempts to query the local universe for a proof specified by a
	// UniverseKey. If found, a connection is made to a remote Universe server to
	// attempt to upload the asset leaf.
	PushProof(context.Context, *PushProofRequest) (*PushProofResponse, error)
	// tapcli: `universe info`
	// Info returns a set of information about the current state of the Universe.
	Info(context.Context, *InfoRequest) (*InfoResponse, error)
	// tapcli: `universe sync`
	// SyncUniverse takes host information for a remote Universe server, then
	// attempts to synchronize either only the set of specified asset_ids, or all
	// assets if none are specified. The sync process will attempt to query for
	// the latest known root for each asset, performing tree based reconciliation
	// to arrive at a new shared root.
	SyncUniverse(context.Context, *SyncRequest) (*SyncResponse, error)
	// tapcli: `universe federation list`
	// ListFederationServers lists the set of servers that make up the federation
	// of the local Universe server. This servers are used to push out new proofs,
	// and also periodically call sync new proofs from the remote server.
	ListFederationServers(context.Context, *ListFederationServersRequest) (*ListFederationServersResponse, error)
	// tapcli: `universe federation add`
	// AddFederationServer adds a new server to the federation of the local
	// Universe server. Once a server is added, this call can also optionally be
	// used to trigger a sync of the remote server.
	AddFederationServer(context.Context, *AddFederationServerRequest) (*AddFederationServerResponse, error)
	// tapcli: `universe federation del`
	// DeleteFederationServer removes a server from the federation of the local
	// Universe server.
	DeleteFederationServer(context.Context, *DeleteFederationServerRequest) (*DeleteFederationServerResponse, error)
	// tapcli: `universe stats`
	// UniverseStats returns a set of aggregate statistics for the current state
	// of the Universe. Stats returned include: total number of syncs, total
	// number of proofs, and total number of known assets.
	UniverseStats(context.Context, *StatsRequest) (*StatsResponse, error)
	// tapcli `universe stats assets`
	// QueryAssetStats returns a set of statistics for a given set of assets.
	// Stats can be queried for all assets, or based on the: asset ID, name, or
	// asset type. Pagination is supported via the offset and limit params.
	// Results can also be sorted based on any of the main query params.
	QueryAssetStats(context.Context, *AssetStatsQuery) (*UniverseAssetStats, error)
	// tapcli `universe stats events`
	// QueryEvents returns the number of sync and proof events for a given time
	// period, grouped by day.
	QueryEvents(context.Context, *QueryEventsRequest) (*QueryEventsResponse, error)
	// SetFederationSyncConfig sets the configuration of the universe federation
	// sync.
	SetFederationSyncConfig(context.Context, *SetFederationSyncConfigRequest) (*SetFederationSyncConfigResponse, error)
	// tapcli: `universe federation config info`
	// QueryFederationSyncConfig queries the universe federation sync configuration
	// settings.
	QueryFederationSyncConfig(context.Context, *QueryFederationSyncConfigRequest) (*QueryFederationSyncConfigResponse, error)
	// contains filtered or unexported methods
}

UniverseServer is the server API for Universe service. All implementations must embed UnimplementedUniverseServer for forward compatibility

type UniverseSyncMode

type UniverseSyncMode int32
const (
	// A sync node that indicates that only new asset creation (minting) proofs
	// should be synced.
	UniverseSyncMode_SYNC_ISSUANCE_ONLY UniverseSyncMode = 0
	// A syncing mode that indicates that all asset proofs should be synced.
	// This includes normal transfers as well.
	UniverseSyncMode_SYNC_FULL UniverseSyncMode = 1
)

func (UniverseSyncMode) Descriptor

func (UniverseSyncMode) Enum

func (UniverseSyncMode) EnumDescriptor deprecated

func (UniverseSyncMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use UniverseSyncMode.Descriptor instead.

func (UniverseSyncMode) Number

func (UniverseSyncMode) String

func (x UniverseSyncMode) String() string

func (UniverseSyncMode) Type

type UnsafeUniverseServer

type UnsafeUniverseServer interface {
	// contains filtered or unexported methods
}

UnsafeUniverseServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UniverseServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL