lnrpc: add DestOutput to the protobuf

This commit is contained in:
Bjarne Magnussen 2021-07-12 11:46:20 +02:00
parent d43cdcf9a0
commit 188b39268d
No known key found for this signature in database
GPG Key ID: B0A9ADF6B24CE67F
4 changed files with 4333 additions and 3966 deletions

File diff suppressed because it is too large Load Diff

View File

@ -620,6 +620,38 @@ message Utxo {
int64 confirmations = 6;
}
enum OutputScriptType {
SCRIPT_TYPE_PUBKEY_HASH = 0;
SCRIPT_TYPE_SCRIPT_HASH = 1;
SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH = 2;
SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH = 3;
SCRIPT_TYPE_PUBKEY = 4;
SCRIPT_TYPE_MULTISIG = 5;
SCRIPT_TYPE_NULLDATA = 6;
SCRIPT_TYPE_NON_STANDARD = 7;
SCRIPT_TYPE_WITNESS_UNKNOWN = 8;
}
message OutputDetail {
// The type of the output
OutputScriptType output_type = 1;
// The address
string address = 2;
// The pkscript in hex
string pk_script = 3;
// The output index used in the raw transaction
int64 output_index = 4;
// The value of the output coin in satoshis
int64 amount = 5;
// Denotes if the output is controlled by the internal wallet
bool is_our_address = 6;
}
message Transaction {
// The transaction hash
string tx_hash = 1;
@ -642,8 +674,12 @@ message Transaction {
// Fees paid for this transaction
int64 total_fees = 7;
// Addresses that received funds for this transaction
repeated string dest_addresses = 8;
// Addresses that received funds for this transaction. Deprecated as it is
// now incorporated in the output_details field.
repeated string dest_addresses = 8 [deprecated = true];
// Outputs that received funds for this transaction
repeated OutputDetail output_details = 11;
// The raw transaction hex.
string raw_tx_hex = 9;

View File

@ -5430,6 +5430,52 @@
}
}
},
"lnrpcOutputDetail": {
"type": "object",
"properties": {
"output_type": {
"$ref": "#/definitions/lnrpcOutputScriptType",
"title": "The type of the output"
},
"address": {
"type": "string",
"title": "The address"
},
"pk_script": {
"type": "string",
"title": "The pkscript in hex"
},
"output_index": {
"type": "string",
"format": "int64",
"title": "The output index used in the raw transaction"
},
"amount": {
"type": "string",
"format": "int64",
"title": "The value of the output coin in satoshis"
},
"is_our_address": {
"type": "boolean",
"title": "Denotes if the output is controlled by the internal wallet"
}
}
},
"lnrpcOutputScriptType": {
"type": "string",
"enum": [
"SCRIPT_TYPE_PUBKEY_HASH",
"SCRIPT_TYPE_SCRIPT_HASH",
"SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH",
"SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH",
"SCRIPT_TYPE_PUBKEY",
"SCRIPT_TYPE_MULTISIG",
"SCRIPT_TYPE_NULLDATA",
"SCRIPT_TYPE_NON_STANDARD",
"SCRIPT_TYPE_WITNESS_UNKNOWN"
],
"default": "SCRIPT_TYPE_PUBKEY_HASH"
},
"lnrpcPayReq": {
"type": "object",
"properties": {
@ -6411,7 +6457,14 @@
"items": {
"type": "string"
},
"title": "Addresses that received funds for this transaction"
"description": "Addresses that received funds for this transaction. Deprecated as it is\nnow incorporated in the output_details field."
},
"output_details": {
"type": "array",
"items": {
"$ref": "#/definitions/lnrpcOutputDetail"
},
"title": "Outputs that received funds for this transaction"
},
"raw_tx_hex": {
"type": "string",

View File

@ -720,6 +720,52 @@
}
}
},
"lnrpcOutputDetail": {
"type": "object",
"properties": {
"output_type": {
"$ref": "#/definitions/lnrpcOutputScriptType",
"title": "The type of the output"
},
"address": {
"type": "string",
"title": "The address"
},
"pk_script": {
"type": "string",
"title": "The pkscript in hex"
},
"output_index": {
"type": "string",
"format": "int64",
"title": "The output index used in the raw transaction"
},
"amount": {
"type": "string",
"format": "int64",
"title": "The value of the output coin in satoshis"
},
"is_our_address": {
"type": "boolean",
"title": "Denotes if the output is controlled by the internal wallet"
}
}
},
"lnrpcOutputScriptType": {
"type": "string",
"enum": [
"SCRIPT_TYPE_PUBKEY_HASH",
"SCRIPT_TYPE_SCRIPT_HASH",
"SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH",
"SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH",
"SCRIPT_TYPE_PUBKEY",
"SCRIPT_TYPE_MULTISIG",
"SCRIPT_TYPE_NULLDATA",
"SCRIPT_TYPE_NON_STANDARD",
"SCRIPT_TYPE_WITNESS_UNKNOWN"
],
"default": "SCRIPT_TYPE_PUBKEY_HASH"
},
"lnrpcTransaction": {
"type": "object",
"properties": {
@ -761,7 +807,14 @@
"items": {
"type": "string"
},
"title": "Addresses that received funds for this transaction"
"description": "Addresses that received funds for this transaction. Deprecated as it is\nnow incorporated in the output_details field."
},
"output_details": {
"type": "array",
"items": {
"$ref": "#/definitions/lnrpcOutputDetail"
},
"title": "Outputs that received funds for this transaction"
},
"raw_tx_hex": {
"type": "string",