/** * These io-ts codecs validate and decode JSON Raiden messages * They include BigNumber strings validation, enum validation (if needed), Address checksum * validation, etc, and converting everything to its respective object, where needed. */ import * as t from 'io-ts'; export declare enum MessageType { DELIVERED = "Delivered", PROCESSED = "Processed", SECRET_REQUEST = "SecretRequest", SECRET_REVEAL = "RevealSecret", LOCKED_TRANSFER = "LockedTransfer", UNLOCK = "Unlock", LOCK_EXPIRED = "LockExpired", WITHDRAW_REQUEST = "WithdrawRequest", WITHDRAW_CONFIRMATION = "WithdrawConfirmation", WITHDRAW_EXPIRED = "WithdrawExpired", PFS_CAPACITY_UPDATE = "PFSCapacityUpdate", PFS_FEE_UPDATE = "PFSFeeUpdate", MONITOR_REQUEST = "RequestMonitoring" } declare const _Delivered: t.ReadonlyC; delivered_message_identifier: import("../utils/types").UIntC<8>; }>>; export interface Delivered extends t.TypeOf { } export interface DeliveredC extends t.Type> { } export declare const Delivered: DeliveredC; declare const _Processed: t.ReadonlyC; }>, t.ReadonlyC; }>>]>>; export interface Processed extends t.TypeOf { } export interface ProcessedC extends t.Type> { } export declare const Processed: ProcessedC; declare const _SecretRequest: t.ReadonlyC; payment_identifier: import("../utils/types").UIntC<8>; secrethash: import("../utils/types").HexStringC<32>; amount: import("../utils/types").UIntC<32>; expiration: import("../utils/types").UIntC<32>; }>, t.ReadonlyC; }>>]>>; export interface SecretRequest extends t.TypeOf { } export interface SecretRequestC extends t.Type> { } export declare const SecretRequest: SecretRequestC; declare const _SecretReveal: t.ReadonlyC; secret: import("../utils/types").HexStringC<32>; }>, t.ReadonlyC; }>>]>>; export interface SecretReveal extends t.TypeOf { } export interface SecretRevealC extends t.Type> { } export declare const SecretReveal: SecretRevealC; declare const _RouteMetadata: t.ReadonlyC; }>, t.PartialC<{ address_metadata: t.RefinementType>, Readonly<{ [x: string]: import("../services/types").AddressMetadata; }>, Readonly<{ [x: string]: Readonly<{ user_id: string; displayname: string; capabilities: string; }>; }>, unknown>; }>]>>; export interface RouteMetadata extends t.TypeOf { } export interface RouteMetadataC extends t.Type> { } export declare const RouteMetadata: RouteMetadataC; declare const _Metadata: t.ReadonlyC; }>>; export interface Metadata extends t.TypeOf { } export interface MetadataC extends t.Type> { } export declare const Metadata: MetadataC; declare const _LockedTransfer: t.ReadonlyC; }>, t.ReadonlyC; token: import("../utils/types").AddressC; recipient: import("../utils/types").AddressC; lock: t.IntersectionC<[t.TypeC<{ amount: import("../utils/types").UIntC<32>; expiration: import("../utils/types").UIntC<32>; secrethash: import("../utils/types").HexStringC<32>; }>, t.PartialC<{ registered: t.LiteralC; }>]>; target: import("../utils/types").AddressC; initiator: import("../utils/types").AddressC; metadata: t.UnknownC; }>, t.ReadonlyC; token_network_address: import("../utils/types").AddressC; channel_identifier: import("../utils/types").UIntC<32>; nonce: import("../utils/types").UIntC<8>; transferred_amount: import("../utils/types").UIntC<32>; locked_amount: import("../utils/types").UIntC<32>; locksroot: import("../utils/types").HexStringC<32>; }>, t.ReadonlyC; }>>]>>]>>]>>; export interface LockedTransfer extends t.TypeOf { } export interface LockedTransferC extends t.Type> { } export declare const LockedTransfer: LockedTransferC; declare const _Unlock: t.ReadonlyC; payment_identifier: import("../utils/types").UIntC<8>; secret: import("../utils/types").HexStringC<32>; }>, t.ReadonlyC; token_network_address: import("../utils/types").AddressC; channel_identifier: import("../utils/types").UIntC<32>; nonce: import("../utils/types").UIntC<8>; transferred_amount: import("../utils/types").UIntC<32>; locked_amount: import("../utils/types").UIntC<32>; locksroot: import("../utils/types").HexStringC<32>; }>, t.ReadonlyC; }>>]>>]>>; export interface Unlock extends t.TypeOf { } export interface UnlockC extends t.Type> { } export declare const Unlock: UnlockC; declare const _LockExpired: t.ReadonlyC; recipient: import("../utils/types").AddressC; secrethash: import("../utils/types").HexStringC<32>; }>, t.ReadonlyC; token_network_address: import("../utils/types").AddressC; channel_identifier: import("../utils/types").UIntC<32>; nonce: import("../utils/types").UIntC<8>; transferred_amount: import("../utils/types").UIntC<32>; locked_amount: import("../utils/types").UIntC<32>; locksroot: import("../utils/types").HexStringC<32>; }>, t.ReadonlyC; }>>]>>]>>; export interface LockExpired extends t.TypeOf { } export interface LockExpiredC extends t.Type> { } export declare const LockExpired: LockExpiredC; declare const _WithdrawRequest: t.ReadonlyC; }>, t.PartialC<{ coop_settle: t.BooleanC; }>, t.ReadonlyC; token_network_address: import("../utils/types").AddressC; channel_identifier: import("../utils/types").UIntC<32>; participant: import("../utils/types").AddressC; total_withdraw: import("../utils/types").UIntC<32>; nonce: import("../utils/types").UIntC<8>; expiration: import("../utils/types").UIntC<32>; }>>, t.ReadonlyC; }>>]>>; export interface WithdrawRequest extends t.TypeOf { } export interface WithdrawRequestC extends t.Type> { } export declare const WithdrawRequest: WithdrawRequestC; declare const _WithdrawConfirmation: t.ReadonlyC; }>, t.ReadonlyC; token_network_address: import("../utils/types").AddressC; channel_identifier: import("../utils/types").UIntC<32>; participant: import("../utils/types").AddressC; total_withdraw: import("../utils/types").UIntC<32>; nonce: import("../utils/types").UIntC<8>; expiration: import("../utils/types").UIntC<32>; }>>, t.ReadonlyC; }>>]>>; export interface WithdrawConfirmation extends t.TypeOf { } export interface WithdrawConfirmationC extends t.Type> { } export declare const WithdrawConfirmation: WithdrawConfirmationC; declare const _WithdrawExpired: t.ReadonlyC; }>, t.ReadonlyC; token_network_address: import("../utils/types").AddressC; channel_identifier: import("../utils/types").UIntC<32>; participant: import("../utils/types").AddressC; total_withdraw: import("../utils/types").UIntC<32>; nonce: import("../utils/types").UIntC<8>; expiration: import("../utils/types").UIntC<32>; }>>, t.ReadonlyC; }>>]>>; export interface WithdrawExpired extends t.TypeOf { } export interface WithdrawExpiredC extends t.Type> { } export declare const WithdrawExpired: WithdrawExpiredC; declare const _PFSCapacityUpdate: t.ReadonlyC; canonical_identifier: t.ReadonlyC; token_network_address: import("../utils/types").AddressC; channel_identifier: import("../utils/types").UIntC<32>; }>>; updating_participant: import("../utils/types").AddressC; other_participant: import("../utils/types").AddressC; updating_nonce: import("../utils/types").UIntC<8>; other_nonce: import("../utils/types").UIntC<8>; updating_capacity: import("../utils/types").UIntC<32>; other_capacity: import("../utils/types").UIntC<32>; reveal_timeout: import("../utils/types").UIntC<32>; }>>; export interface PFSCapacityUpdate extends t.TypeOf { } export interface PFSCapacityUpdateC extends t.Type> { } export declare const PFSCapacityUpdate: PFSCapacityUpdateC; declare const _PFSFeeUpdate: t.ReadonlyC; canonical_identifier: t.ReadonlyC; token_network_address: import("../utils/types").AddressC; channel_identifier: import("../utils/types").UIntC<32>; }>>; updating_participant: import("../utils/types").AddressC; timestamp: t.StringC; fee_schedule: t.TypeC<{ cap_fees: t.BooleanC; imbalance_penalty: t.UnionC<[t.NullC, t.ReadonlyArrayC, import("../utils/types").UIntC<32>]>>>]>; proportional: import("../utils/types").IntC<32>; flat: import("../utils/types").IntC<32>; }>; }>>; export interface PFSFeeUpdate extends t.TypeOf { } export interface PFSFeeUpdateC extends t.Type> { } export declare const PFSFeeUpdate: PFSFeeUpdateC; declare const _MonitorRequest: t.ReadonlyC; balance_proof: t.TypeC<{ chain_id: import("../utils/types").UIntC<32>; token_network_address: import("../utils/types").AddressC; channel_identifier: import("../utils/types").UIntC<32>; nonce: import("../utils/types").UIntC<8>; balance_hash: import("../utils/types").HexStringC<32>; additional_hash: import("../utils/types").HexStringC<32>; signature: import("../utils/types").HexStringC<65>; }>; monitoring_service_contract_address: import("../utils/types").AddressC; non_closing_participant: import("../utils/types").AddressC; non_closing_signature: import("../utils/types").HexStringC<65>; reward_amount: import("../utils/types").UIntC<32>; }>>; export interface MonitorRequest extends t.TypeOf { } export interface MonitorRequestC extends t.Type> { } export declare const MonitorRequest: MonitorRequestC; declare const messages: [DeliveredC, ProcessedC, SecretRequestC, SecretRevealC, LockedTransferC, UnlockC, LockExpiredC, WithdrawRequestC, WithdrawConfirmationC, WithdrawExpiredC, PFSCapacityUpdateC, PFSFeeUpdateC, MonitorRequestC]; export declare type Message = t.TypeOf; export interface MessageC extends t.UnionC { } export declare const Message: MessageC; export declare type EnvelopeMessage = LockedTransfer | Unlock | LockExpired; export {};