Skip to content

Commit

Permalink
taprpc: add missing tapcli cmds for RPC endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
jharveyb committed Nov 28, 2023
1 parent 077f8c4 commit 2869883
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 9 deletions.
4 changes: 2 additions & 2 deletions taprpc/assetwalletrpc/assetwallet.proto
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ service AssetWallet {
*/
rpc NextScriptKey (NextScriptKeyRequest) returns (NextScriptKeyResponse);

/*
/* tapcli: `proofs proveownership`
ProveAssetOwnership creates an ownership proof embedded in an asset
transition proof. That ownership proof is a signed virtual transaction
spending the asset with a valid witness to prove the prover owns the keys
Expand All @@ -58,7 +58,7 @@ service AssetWallet {
rpc ProveAssetOwnership (ProveAssetOwnershipRequest)
returns (ProveAssetOwnershipResponse);

/*
/* tapcli: `proofs verifyownership`
VerifyAssetOwnership verifies the asset ownership proof embedded in the
given transition proof of an asset and returns true if the proof is valid.
*/
Expand Down
4 changes: 2 additions & 2 deletions taprpc/assetwalletrpc/assetwallet.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"/v1/taproot-assets/wallet/ownership/prove": {
"post": {
"summary": "ProveAssetOwnership creates an ownership proof embedded in an asset\ntransition proof. That ownership proof is a signed virtual transaction\nspending the asset with a valid witness to prove the prover owns the keys\nthat can spend the asset.",
"summary": "tapcli: `proofs proveownership`\nProveAssetOwnership creates an ownership proof embedded in an asset\ntransition proof. That ownership proof is a signed virtual transaction\nspending the asset with a valid witness to prove the prover owns the keys\nthat can spend the asset.",
"operationId": "AssetWallet_ProveAssetOwnership",
"responses": {
"200": {
Expand Down Expand Up @@ -84,7 +84,7 @@
},
"/v1/taproot-assets/wallet/ownership/verify": {
"post": {
"summary": "VerifyAssetOwnership verifies the asset ownership proof embedded in the\ngiven transition proof of an asset and returns true if the proof is valid.",
"summary": "tapcli: `proofs verifyownership`\nVerifyAssetOwnership verifies the asset ownership proof embedded in the\ngiven transition proof of an asset and returns true if the proof is valid.",
"operationId": "AssetWallet_VerifyAssetOwnership",
"responses": {
"200": {
Expand Down
4 changes: 4 additions & 0 deletions taprpc/assetwalletrpc/assetwallet_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion taprpc/taprootassets.proto
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ service TaprootAssets {
rpc SubscribeReceiveAssetEventNtfns (SubscribeReceiveAssetEventNtfnsRequest)
returns (stream ReceiveAssetEvent);

/*
/* tapcli: `assets meta`
FetchAssetMeta allows a caller to fetch the reveal meta data for an asset
either by the asset ID for that asset, or a meta hash.
*/
Expand Down
4 changes: 2 additions & 2 deletions taprpc/taprootassets.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
},
"/v1/taproot-assets/assets/meta/asset-id/{asset_id_str}": {
"get": {
"summary": "FetchAssetMeta allows a caller to fetch the reveal meta data for an asset\neither by the asset ID for that asset, or a meta hash.",
"summary": "tapcli: `assets meta`\nFetchAssetMeta allows a caller to fetch the reveal meta data for an asset\neither by the asset ID for that asset, or a meta hash.",
"operationId": "TaprootAssets_FetchAssetMeta",
"responses": {
"200": {
Expand Down Expand Up @@ -348,7 +348,7 @@
},
"/v1/taproot-assets/assets/meta/hash/{meta_hash_str}": {
"get": {
"summary": "FetchAssetMeta allows a caller to fetch the reveal meta data for an asset\neither by the asset ID for that asset, or a meta hash.",
"summary": "tapcli: `assets meta`\nFetchAssetMeta allows a caller to fetch the reveal meta data for an asset\neither by the asset ID for that asset, or a meta hash.",
"operationId": "TaprootAssets_FetchAssetMeta2",
"responses": {
"200": {
Expand Down
2 changes: 2 additions & 0 deletions taprpc/taprootassets_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion taprpc/universerpc/universe.proto
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ service Universe {
rpc SetFederationSyncConfig (SetFederationSyncConfigRequest)
returns (SetFederationSyncConfigResponse);

/*
/* tapcli: `universe federation config info`
QueryFederationSyncConfig queries the universe federation sync configuration
settings.
*/
Expand Down
2 changes: 1 addition & 1 deletion taprpc/universerpc/universe.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@
},
"/v1/taproot-assets/universe/sync/config": {
"get": {
"summary": "QueryFederationSyncConfig queries the universe federation sync configuration\nsettings.",
"summary": "tapcli: `universe federation config info`\nQueryFederationSyncConfig queries the universe federation sync configuration\nsettings.",
"operationId": "Universe_QueryFederationSyncConfig",
"responses": {
"200": {
Expand Down
2 changes: 2 additions & 0 deletions taprpc/universerpc/universe_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2869883

Please sign in to comment.