2022-01-14 19:45:30 +01:00
|
|
|
syntax = "proto3";
|
|
|
|
package cln;
|
|
|
|
|
|
|
|
message Amount {
|
2022-01-16 16:39:47 +01:00
|
|
|
uint64 msat = 1;
|
2022-01-14 19:45:30 +01:00
|
|
|
}
|
|
|
|
|
2022-04-01 06:12:45 +02:00
|
|
|
message AmountOrAll {
|
|
|
|
oneof value {
|
|
|
|
Amount amount = 1;
|
|
|
|
bool all = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
message AmountOrAny {
|
|
|
|
oneof value {
|
|
|
|
Amount amount = 1;
|
|
|
|
bool any = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-14 19:45:30 +01:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2022-04-01 06:12:45 +02:00
|
|
|
message ChannelStateChangeCause {}
|
|
|
|
|
2022-04-01 06:13:34 +02:00
|
|
|
message Outpoint {
|
2022-04-01 06:12:45 +02:00
|
|
|
bytes txid = 1;
|
|
|
|
uint32 outnum = 2;
|
2022-04-01 06:12:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
message Feerate {
|
|
|
|
oneof style {
|
|
|
|
bool slow = 1;
|
|
|
|
bool normal = 2;
|
|
|
|
bool urgent = 3;
|
|
|
|
uint32 perkb = 4;
|
|
|
|
uint32 perkw = 5;
|
|
|
|
}
|
2022-04-01 06:12:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
message OutputDesc {
|
|
|
|
string address = 1;
|
|
|
|
Amount amount = 2;
|
2022-04-01 06:12:45 +02:00
|
|
|
}
|