Skip to content

Commit 6bcc9b4

Browse files
committed
taprpc: add minting batch txid to MintingBatch
1 parent 9939102 commit 6bcc9b4

File tree

3 files changed

+105
-83
lines changed

3 files changed

+105
-83
lines changed

taprpc/mintrpc/mint.pb.go

Lines changed: 89 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

taprpc/mintrpc/mint.proto

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,17 @@ message MintingBatch {
102102
*/
103103
bytes batch_key = 1;
104104

105-
// The assets that are part of the batch.
106-
repeated MintAsset assets = 2;
105+
/*
106+
The transaction ID of the batch. Only populated if the batch has been
107+
committed.
108+
*/
109+
string batch_txid = 2;
107110

108111
// The state of the batch.
109112
BatchState state = 3;
113+
114+
// The assets that are part of the batch.
115+
repeated MintAsset assets = 4;
110116
}
111117

112118
enum BatchState {

taprpc/mintrpc/mint.swagger.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,16 +288,20 @@
288288
"format": "byte",
289289
"description": "A public key serialized in compressed format that can be used to uniquely\nidentify a pending minting batch. Responses that share the same key will be\nbatched into the same minting transaction."
290290
},
291+
"batch_txid": {
292+
"type": "string",
293+
"description": "The transaction ID of the batch. Only populated if the batch has been\ncommitted."
294+
},
295+
"state": {
296+
"$ref": "#/definitions/mintrpcBatchState",
297+
"description": "The state of the batch."
298+
},
291299
"assets": {
292300
"type": "array",
293301
"items": {
294302
"$ref": "#/definitions/mintrpcMintAsset"
295303
},
296304
"description": "The assets that are part of the batch."
297-
},
298-
"state": {
299-
"$ref": "#/definitions/mintrpcBatchState",
300-
"description": "The state of the batch."
301305
}
302306
}
303307
},

0 commit comments

Comments
 (0)