import type { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; import type { Compact } from '@polkadot/types'; import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics'; import type { AnyNumber } from '@polkadot/types/types'; import type { AmountOf, CurrencyIdOf } from '@reef-defi/types/interfaces/primitives'; import type { BalanceOf, Call, LookupSource } from '@reef-defi/types/interfaces/runtime'; declare module '@polkadot/api/types/submittable' { interface AugmentedSubmittables { currencies: { /** * Transfer some balance to another account under `currency_id`. * * The dispatch origin for this call must be `Signed` by the * transactor. **/ transfer: AugmentedSubmittable<(dest: LookupSource | { Id: any; } | { Index: any; } | { Raw: any; } | { Address32: any; } | { Address20: any; } | string | Uint8Array, currencyId: CurrencyIdOf | { Token: any; } | { DEXShare: any; } | { ERC20: any; } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [LookupSource, CurrencyIdOf, Compact]>; /** * Transfer some native currency to another account. * * The dispatch origin for this call must be `Signed` by the * transactor. **/ transferNativeCurrency: AugmentedSubmittable<(dest: LookupSource | { Id: any; } | { Index: any; } | { Raw: any; } | { Address32: any; } | { Address20: any; } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [LookupSource, Compact]>; /** * update amount of account `who` under `currency_id`. * * The dispatch origin of this call must be _Root_. **/ updateBalance: AugmentedSubmittable<(who: LookupSource | { Id: any; } | { Index: any; } | { Raw: any; } | { Address32: any; } | { Address20: any; } | string | Uint8Array, currencyId: CurrencyIdOf | { Token: any; } | { DEXShare: any; } | { ERC20: any; } | string | Uint8Array, amount: AmountOf | AnyNumber | Uint8Array) => SubmittableExtrinsic, [LookupSource, CurrencyIdOf, AmountOf]>; /** * Generic tx **/ [key: string]: SubmittableExtrinsicFunction; }; } interface SubmittableExtrinsics extends AugmentedSubmittables { (extrinsic: Call | Extrinsic | Uint8Array | string): SubmittableExtrinsic; [key: string]: SubmittableModuleExtrinsics; } }