Skip to content

Commit

Permalink
Merge remote-tracking branch origin/master into debug-round-musig-failed
Browse files Browse the repository at this point in the history
  • Loading branch information
louisinger committed Sep 19, 2024
2 parents 1bb1e28 + 10ef0db commit b8cbf77
Show file tree
Hide file tree
Showing 82 changed files with 3,375 additions and 2,547 deletions.
71 changes: 31 additions & 40 deletions api-spec/openapi/swagger/ark/v1/service.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -475,21 +475,6 @@
}
}
},
"v1BoardingInput": {
"type": "object",
"properties": {
"txid": {
"type": "string"
},
"vout": {
"type": "integer",
"format": "int64"
},
"descriptor": {
"type": "string"
}
}
},
"v1ClaimPaymentRequest": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -668,11 +653,11 @@
"v1Input": {
"type": "object",
"properties": {
"vtxoInput": {
"$ref": "#/definitions/v1VtxoInput"
"outpoint": {
"$ref": "#/definitions/v1Outpoint"
},
"boardingInput": {
"$ref": "#/definitions/v1BoardingInput"
"descriptor": {
"type": "string"
}
}
},
Expand Down Expand Up @@ -709,12 +694,28 @@
}
}
},
"v1Outpoint": {
"type": "object",
"properties": {
"txid": {
"type": "string"
},
"vout": {
"type": "integer",
"format": "int64"
}
}
},
"v1Output": {
"type": "object",
"properties": {
"address": {
"type": "string",
"description": "Either the offchain or onchain address."
"title": "onchain"
},
"descriptor": {
"type": "string",
"title": "offchain"
},
"amount": {
"type": "string",
Expand Down Expand Up @@ -838,12 +839,6 @@
"poolTx": {
"type": "string"
},
"forfeitTxs": {
"type": "array",
"items": {
"type": "string"
}
},
"congestionTree": {
"$ref": "#/definitions/v1Tree"
},
Expand All @@ -852,6 +847,10 @@
"items": {
"type": "string"
}
},
"minRelayFeeRate": {
"type": "string",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -970,10 +969,10 @@
"type": "object",
"properties": {
"outpoint": {
"$ref": "#/definitions/v1Input"
"$ref": "#/definitions/v1Outpoint"
},
"receiver": {
"$ref": "#/definitions/v1Output"
"descriptor": {
"type": "string"
},
"spent": {
"type": "boolean"
Expand All @@ -996,18 +995,10 @@
},
"pendingData": {
"$ref": "#/definitions/v1PendingPayment"
}
}
},
"v1VtxoInput": {
"type": "object",
"properties": {
"txid": {
"type": "string"
},
"vout": {
"type": "integer",
"format": "int64"
"amount": {
"type": "string",
"format": "uint64"
}
}
}
Expand Down
33 changes: 14 additions & 19 deletions api-spec/protobuf/ark/v1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ message GetInfoResponse {
message RoundFinalizationEvent {
string id = 1;
string pool_tx = 2;
repeated string forfeit_txs = 3;
Tree congestion_tree = 4;
repeated string connectors = 5;
Tree congestion_tree = 3;
repeated string connectors = 4;
int64 min_relay_fee_rate = 5;
}

message RoundFinalizedEvent {
Expand Down Expand Up @@ -244,29 +244,23 @@ message Round {
RoundStage stage = 8;
}

message VtxoInput {
message Outpoint {
string txid = 1;
uint32 vout = 2;
}

message BoardingInput {
string txid = 1;
uint32 vout = 2;
string descriptor = 3;
}

message Input {
oneof input {
VtxoInput vtxo_input = 1;
BoardingInput boarding_input = 2;
}
Outpoint outpoint = 1;
string descriptor = 2;
}

message Output {
// Either the offchain or onchain address.
string address = 1;
oneof destination {
string address = 1; // onchain
string descriptor = 2; // offchain
}
// Amount to send in satoshis.
uint64 amount = 2;
uint64 amount = 3;
}

message Tree {
Expand All @@ -284,15 +278,16 @@ message Node {
}

message Vtxo {
Input outpoint = 1;
Output receiver = 2;
Outpoint outpoint = 1;
string descriptor = 2;
bool spent = 3;
string pool_txid = 4;
string spent_by = 5;
int64 expire_at = 6;
bool swept = 7;
bool pending = 8;
PendingPayment pending_data = 9;
uint64 amount = 10;
}

message PendingPayment {
Expand Down
3 changes: 2 additions & 1 deletion 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

0 comments on commit b8cbf77

Please sign in to comment.