@acala-network/types
Version:
Acala types for @polkadot/api
1,050 lines • 152 kB
TypeScript
import '@polkadot/api-base/types/submittable';
import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
import type { BTreeMap, Bytes, Compact, Null, Option, U8aFixed, Vec, bool, i128, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, Call, H160, H256, MultiAddress } from '@polkadot/types/interfaces/runtime';
import type { AcalaPrimitivesAuthoritysOriginId, AcalaPrimitivesCurrencyAssetMetadata, AcalaPrimitivesCurrencyCurrencyId, AcalaRuntimeOriginCaller, AcalaRuntimeRuntimeParameters, AcalaRuntimeScheduledTasks, AcalaRuntimeSessionKeys, CumulusPrimitivesCoreAggregateMessageOrigin, CumulusPrimitivesParachainInherentParachainInherentData, EthereumTransactionAccessListItem, EthereumTransactionTransactionAction, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, ModuleHomaModuleUnlockChunk, ModuleHomaValidatorListSlashInfo, ModuleSupportDexAggregatedSwapPath, ModuleSupportDexSwapLimit, ModuleSupportIncentivesPoolId, ModuleXcmInterfaceModuleXcmInterfaceOperation, OrmlTraitsChangeOption, OrmlTraitsChangeU128, OrmlVestingVestingSchedule, PalletBalancesAdjustmentDirection, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletMultisigTimepoint, RuntimeCommonProxyType, SpWeightsWeightV2Weight, StagingXcmExecutorAssetTransferTransferType, StagingXcmV4Location, XcmV3WeightLimit, XcmVersionedAsset, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
declare module '@polkadot/api-base/types/submittable' {
interface AugmentedSubmittables<ApiType extends ApiTypes> {
acalaOracle: {
feedValues: AugmentedSubmittable<(values: Vec<ITuple<[AcalaPrimitivesCurrencyCurrencyId, u128]>> | ([AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, u128 | AnyNumber | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AcalaPrimitivesCurrencyCurrencyId, u128]>>]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
aggregatedDex: {
swapWithExactSupply: AugmentedSubmittable<(paths: Vec<ModuleSupportDexAggregatedSwapPath> | (ModuleSupportDexAggregatedSwapPath | {
Dex: any;
} | {
Taiga: any;
} | string | Uint8Array)[], supplyAmount: Compact<u128> | AnyNumber | Uint8Array, minTargetAmount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<ModuleSupportDexAggregatedSwapPath>, Compact<u128>, Compact<u128>]>;
swapWithExactTarget: AugmentedSubmittable<(paths: Vec<ModuleSupportDexAggregatedSwapPath> | (ModuleSupportDexAggregatedSwapPath | {
Dex: any;
} | {
Taiga: any;
} | string | Uint8Array)[], targetAmount: Compact<u128> | AnyNumber | Uint8Array, maxSupplyAmount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<ModuleSupportDexAggregatedSwapPath>, Compact<u128>, Compact<u128>]>;
updateAggregatedSwapPaths: AugmentedSubmittable<(updates: Vec<ITuple<[ITuple<[AcalaPrimitivesCurrencyCurrencyId, AcalaPrimitivesCurrencyCurrencyId]>, Option<Vec<ModuleSupportDexAggregatedSwapPath>>]>> | ([ITuple<[AcalaPrimitivesCurrencyCurrencyId, AcalaPrimitivesCurrencyCurrencyId]> | [AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array], Option<Vec<ModuleSupportDexAggregatedSwapPath>> | null | Uint8Array | Vec<ModuleSupportDexAggregatedSwapPath> | (ModuleSupportDexAggregatedSwapPath | {
Dex: any;
} | {
Taiga: any;
} | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[ITuple<[AcalaPrimitivesCurrencyCurrencyId, AcalaPrimitivesCurrencyCurrencyId]>, Option<Vec<ModuleSupportDexAggregatedSwapPath>>]>>]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
assetRegistry: {
registerErc20Asset: AugmentedSubmittable<(contract: H160 | string | Uint8Array, minimalBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, u128]>;
registerForeignAsset: AugmentedSubmittable<(location: XcmVersionedLocation | {
V2: any;
} | {
V3: any;
} | {
V4: any;
} | string | Uint8Array, metadata: AcalaPrimitivesCurrencyAssetMetadata | {
name?: any;
symbol?: any;
decimals?: any;
minimalBalance?: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, AcalaPrimitivesCurrencyAssetMetadata]>;
registerNativeAsset: AugmentedSubmittable<(currencyId: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, metadata: AcalaPrimitivesCurrencyAssetMetadata | {
name?: any;
symbol?: any;
decimals?: any;
minimalBalance?: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyCurrencyId, AcalaPrimitivesCurrencyAssetMetadata]>;
registerStableAsset: AugmentedSubmittable<(metadata: AcalaPrimitivesCurrencyAssetMetadata | {
name?: any;
symbol?: any;
decimals?: any;
minimalBalance?: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyAssetMetadata]>;
updateErc20Asset: AugmentedSubmittable<(contract: H160 | string | Uint8Array, metadata: AcalaPrimitivesCurrencyAssetMetadata | {
name?: any;
symbol?: any;
decimals?: any;
minimalBalance?: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, AcalaPrimitivesCurrencyAssetMetadata]>;
updateForeignAsset: AugmentedSubmittable<(foreignAssetId: u16 | AnyNumber | Uint8Array, location: XcmVersionedLocation | {
V2: any;
} | {
V3: any;
} | {
V4: any;
} | string | Uint8Array, metadata: AcalaPrimitivesCurrencyAssetMetadata | {
name?: any;
symbol?: any;
decimals?: any;
minimalBalance?: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, XcmVersionedLocation, AcalaPrimitivesCurrencyAssetMetadata]>;
updateNativeAsset: AugmentedSubmittable<(currencyId: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, metadata: AcalaPrimitivesCurrencyAssetMetadata | {
name?: any;
symbol?: any;
decimals?: any;
minimalBalance?: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyCurrencyId, AcalaPrimitivesCurrencyAssetMetadata]>;
updateStableAsset: AugmentedSubmittable<(stableAssetId: u32 | AnyNumber | Uint8Array, metadata: AcalaPrimitivesCurrencyAssetMetadata | {
name?: any;
symbol?: any;
decimals?: any;
minimalBalance?: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AcalaPrimitivesCurrencyAssetMetadata]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
auction: {
bid: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Compact<u128>]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
auctionManager: {
cancel: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
authority: {
authorizeCall: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, caller: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [Call, Option<AccountId32>]>;
cancelScheduledDispatch: AugmentedSubmittable<(initialOrigin: AcalaRuntimeOriginCaller | {
system: any;
} | {
Void: any;
} | {
PolkadotXcm: any;
} | {
CumulusXcm: any;
} | {
Authority: any;
} | {
GeneralCouncil: any;
} | {
FinancialCouncil: any;
} | {
HomaCouncil: any;
} | {
TechnicalCommittee: any;
} | string | Uint8Array, taskId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaRuntimeOriginCaller, u32]>;
delayScheduledDispatch: AugmentedSubmittable<(initialOrigin: AcalaRuntimeOriginCaller | {
system: any;
} | {
Void: any;
} | {
PolkadotXcm: any;
} | {
CumulusXcm: any;
} | {
Authority: any;
} | {
GeneralCouncil: any;
} | {
FinancialCouncil: any;
} | {
HomaCouncil: any;
} | {
TechnicalCommittee: any;
} | string | Uint8Array, taskId: u32 | AnyNumber | Uint8Array, additionalDelay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaRuntimeOriginCaller, u32, u32]>;
dispatchAs: AugmentedSubmittable<(asOrigin: AcalaPrimitivesAuthoritysOriginId | 'Root' | 'Treasury' | 'HonzonTreasury' | 'HomaTreasury' | 'TreasuryReserve' | number | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesAuthoritysOriginId, Call]>;
fastTrackScheduledDispatch: AugmentedSubmittable<(initialOrigin: AcalaRuntimeOriginCaller | {
system: any;
} | {
Void: any;
} | {
PolkadotXcm: any;
} | {
CumulusXcm: any;
} | {
Authority: any;
} | {
GeneralCouncil: any;
} | {
FinancialCouncil: any;
} | {
HomaCouncil: any;
} | {
TechnicalCommittee: any;
} | string | Uint8Array, taskId: u32 | AnyNumber | Uint8Array, when: FrameSupportScheduleDispatchTime | {
At: any;
} | {
After: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaRuntimeOriginCaller, u32, FrameSupportScheduleDispatchTime]>;
removeAuthorizedCall: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
scheduleDispatch: AugmentedSubmittable<(when: FrameSupportScheduleDispatchTime | {
At: any;
} | {
After: any;
} | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, withDelayedOrigin: bool | boolean | Uint8Array, call: FrameSupportPreimagesBounded | {
Legacy: any;
} | {
Inline: any;
} | {
Lookup: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportScheduleDispatchTime, u8, bool, FrameSupportPreimagesBounded]>;
triggerCall: AugmentedSubmittable<(hash: H256 | string | Uint8Array, callWeightBound: SpWeightsWeightV2Weight | {
refTime?: any;
proofSize?: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, SpWeightsWeightV2Weight]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
balances: {
burn: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, bool]>;
forceAdjustTotalIssuance: AugmentedSubmittable<(direction: PalletBalancesAdjustmentDirection | 'Increase' | 'Decrease' | number | Uint8Array, delta: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBalancesAdjustmentDirection, Compact<u128>]>;
forceSetBalance: AugmentedSubmittable<(who: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, dest: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;
forceUnreserve: AugmentedSubmittable<(who: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
transferAll: AugmentedSubmittable<(dest: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
bounties: {
acceptCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
approveBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
awardBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
claimBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
closeBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
extendBountyExpiry: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Bytes]>;
proposeBounty: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Bytes]>;
proposeCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, curator: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, Compact<u128>]>;
unassignCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
cdpEngine: {
deregisterLiquidationContract: AugmentedSubmittable<(address: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;
liquidate: AugmentedSubmittable<(currencyId: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, who: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyCurrencyId, MultiAddress]>;
registerLiquidationContract: AugmentedSubmittable<(address: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;
setCollateralParams: AugmentedSubmittable<(currencyId: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, interestRatePerSec: OrmlTraitsChangeOption | {
NoChange: any;
} | {
NewValue: any;
} | string | Uint8Array, liquidationRatio: OrmlTraitsChangeOption | {
NoChange: any;
} | {
NewValue: any;
} | string | Uint8Array, liquidationPenalty: OrmlTraitsChangeOption | {
NoChange: any;
} | {
NewValue: any;
} | string | Uint8Array, requiredCollateralRatio: OrmlTraitsChangeOption | {
NoChange: any;
} | {
NewValue: any;
} | string | Uint8Array, maximumTotalDebitValue: OrmlTraitsChangeU128 | {
NoChange: any;
} | {
NewValue: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyCurrencyId, OrmlTraitsChangeOption, OrmlTraitsChangeOption, OrmlTraitsChangeOption, OrmlTraitsChangeOption, OrmlTraitsChangeU128]>;
settle: AugmentedSubmittable<(currencyId: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, who: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyCurrencyId, MultiAddress]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
cdpTreasury: {
auctionCollateral: AugmentedSubmittable<(currencyId: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array, target: Compact<u128> | AnyNumber | Uint8Array, splited: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyCurrencyId, Compact<u128>, Compact<u128>, bool]>;
exchangeCollateralToStable: AugmentedSubmittable<(currencyId: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, swapLimit: ModuleSupportDexSwapLimit | {
ExactSupply: any;
} | {
ExactTarget: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyCurrencyId, ModuleSupportDexSwapLimit]>;
extractSurplusToTreasury: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
setDebitOffsetBuffer: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
setExpectedCollateralAuctionSize: AugmentedSubmittable<(currencyId: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, size: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyCurrencyId, Compact<u128>]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
collatorSelection: {
leaveIntent: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
registerAsCandidate: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
registerCandidate: AugmentedSubmittable<(newCandidate: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
setCandidacyBond: AugmentedSubmittable<(bond: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
setDesiredCandidates: AugmentedSubmittable<(max: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
setInvulnerables: AugmentedSubmittable<(updated: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
withdrawBond: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
currencies: {
forceRemoveLock: AugmentedSubmittable<(who: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, currencyId: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, lockId: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, AcalaPrimitivesCurrencyCurrencyId, U8aFixed]>;
forceSetLock: AugmentedSubmittable<(who: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, currencyId: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array, lockId: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, AcalaPrimitivesCurrencyCurrencyId, Compact<u128>, U8aFixed]>;
sweepDust: AugmentedSubmittable<(currencyId: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, accounts: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyCurrencyId, Vec<AccountId32>]>;
transfer: AugmentedSubmittable<(dest: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, currencyId: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, AcalaPrimitivesCurrencyCurrencyId, Compact<u128>]>;
transferNativeCurrency: AugmentedSubmittable<(dest: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
updateBalance: AugmentedSubmittable<(who: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, currencyId: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, amount: i128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, AcalaPrimitivesCurrencyCurrencyId, i128]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
democracy: {
blacklist: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, maybeRefIndex: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [H256, Option<u32>]>;
cancelProposal: AugmentedSubmittable<(propIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
cancelReferendum: AugmentedSubmittable<(refIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
clearPublicProposals: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
delegate: AugmentedSubmittable<(to: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, conviction: PalletDemocracyConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletDemocracyConviction, u128]>;
emergencyCancel: AugmentedSubmittable<(refIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
externalPropose: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | {
Legacy: any;
} | {
Inline: any;
} | {
Lookup: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded]>;
externalProposeDefault: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | {
Legacy: any;
} | {
Inline: any;
} | {
Lookup: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded]>;
externalProposeMajority: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | {
Legacy: any;
} | {
Inline: any;
} | {
Lookup: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded]>;
fastTrack: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, votingPeriod: u32 | AnyNumber | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32, u32]>;
propose: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | {
Legacy: any;
} | {
Inline: any;
} | {
Lookup: any;
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded, Compact<u128>]>;
removeOtherVote: AugmentedSubmittable<(target: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
removeVote: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
second: AugmentedSubmittable<(proposal: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
setMetadata: AugmentedSubmittable<(owner: PalletDemocracyMetadataOwner | {
External: any;
} | {
Proposal: any;
} | {
Referendum: any;
} | string | Uint8Array, maybeHash: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [PalletDemocracyMetadataOwner, Option<H256>]>;
undelegate: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
unlock: AugmentedSubmittable<(target: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
vetoExternal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
vote: AugmentedSubmittable<(refIndex: Compact<u32> | AnyNumber | Uint8Array, vote: PalletDemocracyVoteAccountVote | {
Standard: any;
} | {
Split: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletDemocracyVoteAccountVote]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
dex: {
abortProvisioning: AugmentedSubmittable<(currencyIdA: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, currencyIdB: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyCurrencyId, AcalaPrimitivesCurrencyCurrencyId]>;
addLiquidity: AugmentedSubmittable<(currencyIdA: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, currencyIdB: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, maxAmountA: Compact<u128> | AnyNumber | Uint8Array, maxAmountB: Compact<u128> | AnyNumber | Uint8Array, minShareIncrement: Compact<u128> | AnyNumber | Uint8Array, stakeIncrementShare: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyCurrencyId, AcalaPrimitivesCurrencyCurrencyId, Compact<u128>, Compact<u128>, Compact<u128>, bool]>;
addProvision: AugmentedSubmittable<(currencyIdA: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, currencyIdB: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, amountA: Compact<u128> | AnyNumber | Uint8Array, amountB: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyCurrencyId, AcalaPrimitivesCurrencyCurrencyId, Compact<u128>, Compact<u128>]>;
claimDexShare: AugmentedSubmittable<(owner: AccountId32 | string | Uint8Array, currencyIdA: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, currencyIdB: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AcalaPrimitivesCurrencyCurrencyId, AcalaPrimitivesCurrencyCurrencyId]>;
disableTradingPair: AugmentedSubmittable<(currencyIdA: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, currencyIdB: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyCurrencyId, AcalaPrimitivesCurrencyCurrencyId]>;
enableTradingPair: AugmentedSubmittable<(currencyIdA: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, currencyIdB: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyCurrencyId, AcalaPrimitivesCurrencyCurrencyId]>;
endProvisioning: AugmentedSubmittable<(currencyIdA: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, currencyIdB: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyCurrencyId, AcalaPrimitivesCurrencyCurrencyId]>;
listProvisioning: AugmentedSubmittable<(currencyIdA: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, currencyIdB: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, minContributionA: Compact<u128> | AnyNumber | Uint8Array, minContributionB: Compact<u128> | AnyNumber | Uint8Array, targetProvisionA: Compact<u128> | AnyNumber | Uint8Array, targetProvisionB: Compact<u128> | AnyNumber | Uint8Array, notBefore: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyCurrencyId, AcalaPrimitivesCurrencyCurrencyId, Compact<u128>, Compact<u128>, Compact<u128>, Compact<u128>, Compact<u32>]>;
refundProvision: AugmentedSubmittable<(owner: AccountId32 | string | Uint8Array, currencyIdA: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, currencyIdB: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AcalaPrimitivesCurrencyCurrencyId, AcalaPrimitivesCurrencyCurrencyId]>;
removeLiquidity: AugmentedSubmittable<(currencyIdA: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, currencyIdB: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, removeShare: Compact<u128> | AnyNumber | Uint8Array, minWithdrawnA: Compact<u128> | AnyNumber | Uint8Array, minWithdrawnB: Compact<u128> | AnyNumber | Uint8Array, byUnstake: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyCurrencyId, AcalaPrimitivesCurrencyCurrencyId, Compact<u128>, Compact<u128>, Compact<u128>, bool]>;
swapWithExactSupply: AugmentedSubmittable<(path: Vec<AcalaPrimitivesCurrencyCurrencyId> | (AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array)[], supplyAmount: Compact<u128> | AnyNumber | Uint8Array, minTargetAmount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AcalaPrimitivesCurrencyCurrencyId>, Compact<u128>, Compact<u128>]>;
swapWithExactTarget: AugmentedSubmittable<(path: Vec<AcalaPrimitivesCurrencyCurrencyId> | (AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array)[], targetAmount: Compact<u128> | AnyNumber | Uint8Array, maxSupplyAmount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AcalaPrimitivesCurrencyCurrencyId>, Compact<u128>, Compact<u128>]>;
updateProvisioningParameters: AugmentedSubmittable<(currencyIdA: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, currencyIdB: AcalaPrimitivesCurrencyCurrencyId | {
Token: any;
} | {
DexShare: any;
} | {
Erc20: any;
} | {
StableAssetPoolToken: any;
} | {
LiquidCrowdloan: any;
} | {
ForeignAsset: any;
} | string | Uint8Array, minContributionA: Compact<u128> | AnyNumber | Uint8Array, minContributionB: Compact<u128> | AnyNumber | Uint8Array, targetProvisionA: Compact<u128> | AnyNumber | Uint8Array, targetProvisionB: Compact<u128> | AnyNumber | Uint8Array, notBefore: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AcalaPrimitivesCurrencyCurrencyId, AcalaPrimitivesCurrencyCurrencyId, Compact<u128>, Compact<u128>, Compact<u128>, Compact<u128>, Compact<u32>]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
dexOracle: {
disableAveragePrice: Augmen