Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion api-spec/openapi/swagger/ark/v1/indexer.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,15 @@
"type": "object",
"$ref": "#/definitions/v1IndexerVtxo"
}
},
"tx": {
"type": "string"
},
"checkpointTxs": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/v1IndexerTxData"
}
}
}
},
Expand Down Expand Up @@ -1006,6 +1015,17 @@
}
}
},
"v1IndexerTxData": {
"type": "object",
"properties": {
"txid": {
"type": "string"
},
"tx": {
"type": "string"
}
}
},
"v1IndexerTxHistoryRecord": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1070,7 +1090,7 @@
"isSwept": {
"type": "boolean"
},
"isRedeemed": {
"isUnrolled": {
"type": "boolean"
},
"isSpent": {
Expand All @@ -1084,6 +1104,12 @@
"items": {
"type": "string"
}
},
"settledBy": {
"type": "string"
},
"arkTxid": {
"type": "string"
}
}
},
Expand Down
36 changes: 30 additions & 6 deletions api-spec/openapi/swagger/ark/v1/service.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,12 +831,26 @@
}
}
},
"v1TxData": {
"type": "object",
"properties": {
"txid": {
"type": "string"
},
"tx": {
"type": "string"
}
}
},
"v1TxNotification": {
"type": "object",
"properties": {
"txid": {
"type": "string"
},
"tx": {
"type": "string"
},
"spentVtxos": {
"type": "array",
"items": {
Expand All @@ -851,8 +865,12 @@
"$ref": "#/definitions/v1Vtxo"
}
},
"hex": {
"type": "string"
"checkpointTxs": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/v1TxData"
},
"description": "This field is set only in case of offchain tx.\n\nkey: outpoint, value: checkpoint txid"
}
}
},
Expand Down Expand Up @@ -883,20 +901,26 @@
"type": "string"
}
},
"preconfirmed": {
"isPreconfirmed": {
"type": "boolean"
},
"swept": {
"isSwept": {
"type": "boolean"
},
"redeemed": {
"isUnrolled": {
"type": "boolean"
},
"spent": {
"isSpent": {
"type": "boolean"
},
"spentBy": {
"type": "string"
},
"settledBy": {
"type": "string"
},
"arkTxid": {
"type": "string"
}
}
}
Expand Down
11 changes: 10 additions & 1 deletion api-spec/protobuf/ark/v1/indexer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,12 @@ message IndexerVtxo {
string script = 5;
bool is_preconfirmed = 6;
bool is_swept = 7;
bool is_redeemed = 8;
bool is_unrolled = 8;
bool is_spent = 9;
string spent_by = 10;
repeated string commitment_txids = 11;
string settled_by = 12;
string ark_txid = 13;
}

message IndexerChain {
Expand Down Expand Up @@ -353,4 +355,11 @@ message GetSubscriptionResponse {
repeated string scripts = 2;
repeated IndexerVtxo new_vtxos = 3;
repeated IndexerVtxo spent_vtxos = 4;
string tx = 5;
map<string, IndexerTxData> checkpoint_txs = 6;
}

message IndexerTxData {
string txid = 1;
string tx = 2;
}
23 changes: 16 additions & 7 deletions api-spec/protobuf/ark/v1/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,27 @@ message Vtxo {
int64 created_at = 4;
int64 expires_at = 5;
repeated string commitment_txids = 6;
bool preconfirmed = 7;
bool swept = 8;
bool redeemed = 9;
bool spent = 10;
bool is_preconfirmed = 7;
bool is_swept = 8;
bool is_unrolled = 9;
bool is_spent = 10;
string spent_by = 11;
string settled_by = 12;
string ark_txid = 13;
}

message TxData {
string txid = 1;
string tx = 2;
}

message TxNotification {
string txid = 1;
repeated Vtxo spent_vtxos = 2;
repeated Vtxo spendable_vtxos = 3;
string hex = 5;
string tx = 2;
repeated Vtxo spent_vtxos = 3;
repeated Vtxo spendable_vtxos = 4;
// This field is set only in case of offchain tx.
map<string, TxData> checkpoint_txs = 5; // key: outpoint, value: checkpoint txid
}

message Tapscripts {
Expand Down
28 changes: 4 additions & 24 deletions api-spec/protobuf/gen/ark/v1/admin.pb.gw.go

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

Loading
Loading