|
|
|
@ -1565,29 +1565,32 @@ class AuthorizeCoinJoin(protobuf.MessageType):
|
|
|
|
|
MESSAGE_WIRE_TYPE = 51
|
|
|
|
|
FIELDS = {
|
|
|
|
|
1: protobuf.Field("coordinator", "string", repeated=False, required=True),
|
|
|
|
|
2: protobuf.Field("max_total_fee", "uint64", repeated=False, required=True),
|
|
|
|
|
3: protobuf.Field("fee_per_anonymity", "uint32", repeated=False, required=False),
|
|
|
|
|
4: protobuf.Field("address_n", "uint32", repeated=True, required=False),
|
|
|
|
|
5: protobuf.Field("coin_name", "string", repeated=False, required=False),
|
|
|
|
|
6: protobuf.Field("script_type", "InputScriptType", repeated=False, required=False),
|
|
|
|
|
11: protobuf.Field("amount_unit", "AmountUnit", repeated=False, required=False),
|
|
|
|
|
2: protobuf.Field("max_rounds", "uint64", repeated=False, required=True),
|
|
|
|
|
3: protobuf.Field("max_coordinator_fee_rate", "uint32", repeated=False, required=True),
|
|
|
|
|
4: protobuf.Field("max_fee_per_kvbyte", "uint32", repeated=False, required=True),
|
|
|
|
|
5: protobuf.Field("address_n", "uint32", repeated=True, required=False),
|
|
|
|
|
6: protobuf.Field("coin_name", "string", repeated=False, required=False),
|
|
|
|
|
7: protobuf.Field("script_type", "InputScriptType", repeated=False, required=False),
|
|
|
|
|
8: protobuf.Field("amount_unit", "AmountUnit", repeated=False, required=False),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
|
self,
|
|
|
|
|
*,
|
|
|
|
|
coordinator: "str",
|
|
|
|
|
max_total_fee: "int",
|
|
|
|
|
max_rounds: "int",
|
|
|
|
|
max_coordinator_fee_rate: "int",
|
|
|
|
|
max_fee_per_kvbyte: "int",
|
|
|
|
|
address_n: Optional[Sequence["int"]] = None,
|
|
|
|
|
fee_per_anonymity: Optional["int"] = 0,
|
|
|
|
|
coin_name: Optional["str"] = 'Bitcoin',
|
|
|
|
|
script_type: Optional["InputScriptType"] = InputScriptType.SPENDADDRESS,
|
|
|
|
|
amount_unit: Optional["AmountUnit"] = AmountUnit.BITCOIN,
|
|
|
|
|
) -> None:
|
|
|
|
|
self.address_n: Sequence["int"] = address_n if address_n is not None else []
|
|
|
|
|
self.coordinator = coordinator
|
|
|
|
|
self.max_total_fee = max_total_fee
|
|
|
|
|
self.fee_per_anonymity = fee_per_anonymity
|
|
|
|
|
self.max_rounds = max_rounds
|
|
|
|
|
self.max_coordinator_fee_rate = max_coordinator_fee_rate
|
|
|
|
|
self.max_fee_per_kvbyte = max_fee_per_kvbyte
|
|
|
|
|
self.coin_name = coin_name
|
|
|
|
|
self.script_type = script_type
|
|
|
|
|
self.amount_unit = amount_unit
|
|
|
|
|