mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
0354a7fdb1
This is likely inherited from bitcoind, and a bit awkward for us, so we parse it into a classic struct, but serialize it back into the bitcoind format when talking to the RPC.
47 lines
681 B
Protocol Buffer
47 lines
681 B
Protocol Buffer
syntax = "proto3";
|
|
package cln;
|
|
|
|
message Amount {
|
|
uint64 msat = 1;
|
|
}
|
|
|
|
enum ChannelSide {
|
|
IN = 0;
|
|
OUT = 1;
|
|
}
|
|
|
|
enum ChannelState {
|
|
Openingd = 0;
|
|
ChanneldAwaitingLockin = 1;
|
|
ChanneldNormal = 2;
|
|
ChanneldShuttingDown = 3;
|
|
ClosingdSigexchange = 4;
|
|
ClosingdComplete = 5;
|
|
AwaitingUnilateral = 6;
|
|
FundingSpendSeen = 7;
|
|
Onchain = 8;
|
|
DualopendOpenInit = 9;
|
|
DualopendAwaitingLockin = 10;
|
|
}
|
|
|
|
message ChannelStateChangeCause {}
|
|
|
|
message Utxo {
|
|
bytes txid = 1;
|
|
uint32 outnum = 2;
|
|
}
|
|
|
|
message Feerate {
|
|
oneof style {
|
|
bool slow = 1;
|
|
bool normal = 2;
|
|
bool urgent = 3;
|
|
uint32 perkb = 4;
|
|
uint32 perkw = 5;
|
|
}
|
|
}
|
|
|
|
message OutputDesc {
|
|
string address = 1;
|
|
Amount amount = 2;
|
|
} |