import * as t from 'io-ts'; import { CreateTransactionOptions, FromTo, Payport } from '@faast/payments-common'; import { Transaction as TronWebTransaction, TransactionInfo as TronWebTransactionInfo, Block as TronWebBlock } from 'tronweb'; export { TronWebTransaction, TronWebTransactionInfo, TronWebBlock, CreateTransactionOptions }; export declare type TransactionInfoRaw = TronWebTransaction & TronWebTransactionInfo & { currentBlock: Pick; }; export declare const BaseTronPaymentsConfig: t.IntersectionC<[t.PartialC<{ network: t.Type; logger: import("@faast/ts-common").LoggerC; }>, t.PartialC<{ fullNode: t.StringC; solidityNode: t.StringC; eventServer: t.StringC; }>]>; export declare type BaseTronPaymentsConfig = t.TypeOf; export declare const HdTronPaymentsConfig: t.IntersectionC<[t.IntersectionC<[t.PartialC<{ network: t.Type; logger: import("@faast/ts-common").LoggerC; }>, t.PartialC<{ fullNode: t.StringC; solidityNode: t.StringC; eventServer: t.StringC; }>]>, t.TypeC<{ hdKey: t.StringC; }>]>; export declare type HdTronPaymentsConfig = t.TypeOf; export declare const KeyPairTronPaymentsConfig: t.IntersectionC<[t.IntersectionC<[t.PartialC<{ network: t.Type; logger: import("@faast/ts-common").LoggerC; }>, t.PartialC<{ fullNode: t.StringC; solidityNode: t.StringC; eventServer: t.StringC; }>]>, t.TypeC<{ keyPairs: t.UnionC<[t.ArrayC>, t.RecordC>]>; }>]>; export declare type KeyPairTronPaymentsConfig = t.TypeOf; export declare const TronPaymentsConfig: t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.PartialC<{ network: t.Type; logger: import("@faast/ts-common").LoggerC; }>, t.PartialC<{ fullNode: t.StringC; solidityNode: t.StringC; eventServer: t.StringC; }>]>, t.TypeC<{ hdKey: t.StringC; }>]>, t.IntersectionC<[t.IntersectionC<[t.PartialC<{ network: t.Type; logger: import("@faast/ts-common").LoggerC; }>, t.PartialC<{ fullNode: t.StringC; solidityNode: t.StringC; eventServer: t.StringC; }>]>, t.TypeC<{ keyPairs: t.UnionC<[t.ArrayC>, t.RecordC>]>; }>]>]>; export declare type TronPaymentsConfig = t.TypeOf; export declare const TronUnsignedTransaction: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{ status: t.Type; id: t.UnionC<[t.StringC, t.NullC]>; fromAddress: t.UnionC<[t.StringC, t.NullC]>; toAddress: t.UnionC<[t.StringC, t.NullC]>; fromIndex: t.UnionC<[t.NumberC, t.NullC]>; toIndex: t.UnionC<[t.NumberC, t.NullC]>; amount: t.UnionC<[t.StringC, t.NullC]>; fee: t.UnionC<[t.StringC, t.NullC]>; }>, t.PartialC<{ fromExtraId: t.UnionC<[t.StringC, t.NullC]>; toExtraId: t.UnionC<[t.StringC, t.NullC]>; sequenceNumber: t.UnionC<[t.UnionC<[t.StringC, t.NumberC]>, t.NullC]>; inputUtxos: t.ArrayC, t.PartialC<{ satoshis: t.UnionC<[t.NumberC, t.StringC]>; confirmations: t.NumberC; height: t.StringC; lockTime: t.StringC; coinbase: t.BooleanC; txHex: t.StringC; scriptPubKeyHex: t.StringC; address: t.StringC; spent: t.BooleanC; }>]>>; outputUtxos: t.ArrayC, t.PartialC<{ satoshis: t.UnionC<[t.NumberC, t.StringC]>; confirmations: t.NumberC; height: t.StringC; lockTime: t.StringC; coinbase: t.BooleanC; txHex: t.StringC; scriptPubKeyHex: t.StringC; address: t.StringC; spent: t.BooleanC; }>]>>; externalOutputs: t.ArrayC, t.PartialC<{ extraId: t.UnionC<[t.StringC, t.NullC]>; }>]>>; weight: t.NumberC; }>]>, t.TypeC<{ fromAddress: t.StringC; toAddress: t.StringC; fromIndex: t.NumberC; targetFeeLevel: t.Type; targetFeeRate: t.UnionC<[t.StringC, t.NullC]>; targetFeeRateType: t.UnionC<[t.Type, t.NullC]>; }>, t.PartialC<{ multisigData: t.TypeC<{ m: t.NumberC; accountIds: t.ArrayC; publicKeys: t.ArrayC; signedAccountIds: t.ArrayC; }>; }>]>, t.TypeC<{ status: t.LiteralC; data: t.ObjectC; }>]>, t.TypeC<{ id: t.StringC; amount: t.StringC; fee: t.StringC; }>]>; export declare type TronUnsignedTransaction = t.TypeOf; export declare const TronSignedTransaction: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{ status: t.Type; id: t.UnionC<[t.StringC, t.NullC]>; fromAddress: t.UnionC<[t.StringC, t.NullC]>; toAddress: t.UnionC<[t.StringC, t.NullC]>; fromIndex: t.UnionC<[t.NumberC, t.NullC]>; toIndex: t.UnionC<[t.NumberC, t.NullC]>; amount: t.UnionC<[t.StringC, t.NullC]>; fee: t.UnionC<[t.StringC, t.NullC]>; }>, t.PartialC<{ fromExtraId: t.UnionC<[t.StringC, t.NullC]>; toExtraId: t.UnionC<[t.StringC, t.NullC]>; sequenceNumber: t.UnionC<[t.UnionC<[t.StringC, t.NumberC]>, t.NullC]>; inputUtxos: t.ArrayC, t.PartialC<{ satoshis: t.UnionC<[t.NumberC, t.StringC]>; confirmations: t.NumberC; height: t.StringC; lockTime: t.StringC; coinbase: t.BooleanC; txHex: t.StringC; scriptPubKeyHex: t.StringC; address: t.StringC; spent: t.BooleanC; }>]>>; outputUtxos: t.ArrayC, t.PartialC<{ satoshis: t.UnionC<[t.NumberC, t.StringC]>; confirmations: t.NumberC; height: t.StringC; lockTime: t.StringC; coinbase: t.BooleanC; txHex: t.StringC; scriptPubKeyHex: t.StringC; address: t.StringC; spent: t.BooleanC; }>]>>; externalOutputs: t.ArrayC, t.PartialC<{ extraId: t.UnionC<[t.StringC, t.NullC]>; }>]>>; weight: t.NumberC; }>]>, t.TypeC<{ fromAddress: t.StringC; toAddress: t.StringC; fromIndex: t.NumberC; targetFeeLevel: t.Type; targetFeeRate: t.UnionC<[t.StringC, t.NullC]>; targetFeeRateType: t.UnionC<[t.Type, t.NullC]>; }>, t.PartialC<{ multisigData: t.TypeC<{ m: t.NumberC; accountIds: t.ArrayC; publicKeys: t.ArrayC; signedAccountIds: t.ArrayC; }>; }>]>, t.TypeC<{ status: t.LiteralC; id: t.StringC; amount: t.StringC; fee: t.StringC; data: t.ObjectC; }>]>; export declare type TronSignedTransaction = t.TypeOf; export declare const TronTransactionInfo: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ status: t.Type; id: t.UnionC<[t.StringC, t.NullC]>; fromAddress: t.UnionC<[t.StringC, t.NullC]>; toAddress: t.UnionC<[t.StringC, t.NullC]>; fromIndex: t.UnionC<[t.NumberC, t.NullC]>; toIndex: t.UnionC<[t.NumberC, t.NullC]>; amount: t.UnionC<[t.StringC, t.NullC]>; fee: t.UnionC<[t.StringC, t.NullC]>; }>, t.PartialC<{ fromExtraId: t.UnionC<[t.StringC, t.NullC]>; toExtraId: t.UnionC<[t.StringC, t.NullC]>; sequenceNumber: t.UnionC<[t.UnionC<[t.StringC, t.NumberC]>, t.NullC]>; inputUtxos: t.ArrayC, t.PartialC<{ satoshis: t.UnionC<[t.NumberC, t.StringC]>; confirmations: t.NumberC; height: t.StringC; lockTime: t.StringC; coinbase: t.BooleanC; txHex: t.StringC; scriptPubKeyHex: t.StringC; address: t.StringC; spent: t.BooleanC; }>]>>; outputUtxos: t.ArrayC, t.PartialC<{ satoshis: t.UnionC<[t.NumberC, t.StringC]>; confirmations: t.NumberC; height: t.StringC; lockTime: t.StringC; coinbase: t.BooleanC; txHex: t.StringC; scriptPubKeyHex: t.StringC; address: t.StringC; spent: t.BooleanC; }>]>>; externalOutputs: t.ArrayC, t.PartialC<{ extraId: t.UnionC<[t.StringC, t.NullC]>; }>]>>; weight: t.NumberC; }>]>, t.TypeC<{ id: t.StringC; amount: t.StringC; fee: t.StringC; isExecuted: t.BooleanC; isConfirmed: t.BooleanC; confirmations: t.NumberC; confirmationId: t.UnionC<[t.StringC, t.NullC]>; confirmationTimestamp: t.UnionC<[import("@faast/ts-common").DateC, t.NullC]>; data: t.ObjectC; }>, t.PartialC<{ currentBlockNumber: t.UnionC<[t.StringC, t.NumberC]>; confirmationNumber: t.UnionC<[t.StringC, t.NumberC]>; }>]>; export declare type TronTransactionInfo = t.TypeOf; export declare const TronBroadcastResult: t.IntersectionC<[t.TypeC<{ id: t.StringC; }>, t.TypeC<{ rebroadcast: t.BooleanC; }>]>; export declare type TronBroadcastResult = t.TypeOf; export declare type FromToWithPayport = FromTo & { fromPayport: Payport; toPayport: Payport; };