@paraspell/descriptors 14.1.0-rc.1 → 14.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { StorageDescriptor, PlainDescriptor, Enum, ApisFromDef, QueryFromPalletsDef, TxFromPalletsDef, EventsFromPalletsDef, ErrorsFromPalletsDef, ConstFromPalletsDef, ViewFnsFromPalletsDef, SS58String, SizedHex, FixedSizeArray } from "polkadot-api";
2
- import type { Ic034j4hb28uuk, ExtensionsCheckMortality, I87rnrnks7g0hm, I4s6vifaf8k998 } from "./common-types";
1
+ import { StorageDescriptor, PlainDescriptor, Enum, ApisFromDef, QueryFromPalletsDef, TxFromPalletsDef, EventsFromPalletsDef, ErrorsFromPalletsDef, ConstFromPalletsDef, ViewFnsFromPalletsDef, SS58String, FixedSizeArray } from "polkadot-api";
2
+ import type { I6aupevm31ir9a } from "./common-types";
3
3
  type AnonymousEnum<T extends {}> = T & {
4
4
  __anonymous: true;
5
5
  };
@@ -25,32 +25,8 @@ type IConstants = {};
25
25
  type IViewFns = {};
26
26
  type IRuntimeCalls = {};
27
27
  export type HydrationDispatchError = unknown;
28
- export type HydrationExtensions = {
29
- "CheckSpecVersion": {
30
- additionalSigned: number;
31
- };
32
- "CheckTxVersion": {
33
- additionalSigned: number;
34
- };
35
- "CheckGenesis": {
36
- additionalSigned: SizedHex<32>;
37
- };
38
- "CheckMortality": {
39
- value: ExtensionsCheckMortality;
40
- additionalSigned: SizedHex<32>;
41
- };
42
- "CheckNonce": {
43
- value: number;
44
- };
45
- "ChargeTransactionPayment": {
46
- value: bigint;
47
- };
48
- "CheckMetadataHash": {
49
- value: Anonymize<I87rnrnks7g0hm>;
50
- additionalSigned: Anonymize<I4s6vifaf8k998>;
51
- };
52
- };
53
- type IRequiredExtensions = PlainDescriptor<"CheckSpecVersion" | "CheckTxVersion" | "CheckGenesis" | "CheckMortality" | "CheckNonce" | "ChargeTransactionPayment" | "CheckMetadataHash">;
28
+ type IAsset = PlainDescriptor<void>;
29
+ export type HydrationExtensions = {};
54
30
  type PalletsTypedef = {
55
31
  __storage: IStorage;
56
32
  __tx: ICalls;
@@ -65,8 +41,8 @@ export type Hydration = {
65
41
  apis: IRuntimeCalls;
66
42
  } & Promise<any>;
67
43
  metadataTypes: Promise<Uint8Array>;
44
+ asset: IAsset;
68
45
  extensions: HydrationExtensions;
69
- requiredExtensions: IRequiredExtensions;
70
46
  getMetadata: () => Promise<Uint8Array>;
71
47
  genesis: string | undefined;
72
48
  };
@@ -79,7 +55,7 @@ export type HydrationEvents = EventsFromPalletsDef<PalletsTypedef>;
79
55
  export type HydrationErrors = ErrorsFromPalletsDef<PalletsTypedef>;
80
56
  export type HydrationConstants = ConstFromPalletsDef<PalletsTypedef>;
81
57
  export type HydrationViewFns = ViewFnsFromPalletsDef<PalletsTypedef>;
82
- export type HydrationCallData = Anonymize<Ic034j4hb28uuk> & {
58
+ export type HydrationCallData = Anonymize<I6aupevm31ir9a> & {
83
59
  value: {
84
60
  type: string;
85
61
  };
@@ -118,7 +94,7 @@ type AllInteractions = {
118
94
  Router: ['Routes'];
119
95
  DynamicFees: ['AssetFee', 'AssetFeeConfiguration'];
120
96
  Staking: ['Staking', 'Positions', 'NextPositionId', 'Votes', 'VotesRewarded', 'PositionVotes', 'ProcessedVotes', 'SixSecBlocksSince'];
121
- Stableswap: ['Pools', 'PoolPegs', 'AssetTradability', 'PoolSnapshots', 'BlockFee', 'ShareIssuance'];
97
+ Stableswap: ['Pools', 'PoolPegs', 'AssetTradability', 'PoolSnapshots', 'BlockFee'];
122
98
  Bonds: ['BondIds', 'Bonds'];
123
99
  LBP: ['PoolData', 'FeeCollectorWithAsset'];
124
100
  XYK: ['ShareToken', 'TotalLiquidity', 'PoolAssets'];
@@ -135,7 +111,7 @@ type AllInteractions = {
135
111
  EVM: ['AccountCodes', 'AccountCodesMetadata', 'AccountStorages'];
136
112
  EVMChainId: ['ChainId'];
137
113
  Ethereum: ['Pending', 'CounterForPending', 'CurrentBlock', 'CurrentReceipts', 'CurrentTransactionStatuses', 'BlockHash'];
138
- EVMAccounts: ['AccountExtension', 'ContractDeployer', 'ApprovedContract', 'MarkedEvmAccounts', 'Allowances', 'NttMinters'];
114
+ EVMAccounts: ['AccountExtension', 'ContractDeployer', 'ApprovedContract', 'MarkedEvmAccounts', 'Allowances'];
139
115
  DynamicEvmFee: ['BaseFeePerGas'];
140
116
  XYKWarehouseLM: ['FarmSequencer', 'DepositSequencer', 'GlobalFarm', 'YieldFarm', 'Deposit', 'ActiveYieldFarm'];
141
117
  DCA: ['ScheduleIdSequencer', 'Schedules', 'ScheduleOwnership', 'RemainingAmounts', 'RetriesOnError', 'ScheduleExecutionBlock', 'ScheduleIdsPerBlock', 'ScheduleExtraGas'];
@@ -192,7 +168,7 @@ type AllInteractions = {
192
168
  LBP: ['create_pool', 'update_pool_data', 'add_liquidity', 'remove_liquidity', 'sell', 'buy'];
193
169
  XYK: ['create_pool', 'add_liquidity', 'add_liquidity_with_limits', 'remove_liquidity', 'remove_liquidity_with_limits', 'sell', 'buy'];
194
170
  Referrals: ['register_code', 'link_code', 'convert', 'claim_rewards', 'set_reward_percentage'];
195
- Liquidation: ['liquidate', 'set_borrowing_contract', 'liquidate_with_pool'];
171
+ Liquidation: ['liquidate', 'set_borrowing_contract'];
196
172
  HSM: ['add_collateral_asset', 'remove_collateral_asset', 'update_collateral_asset', 'sell', 'buy', 'execute_arbitrage', 'set_flash_minter'];
197
173
  Signet: ['set_config', 'withdraw_funds', 'sign', 'sign_bidirectional', 'respond', 'respond_error', 'respond_bidirectional', 'pause', 'unpause'];
198
174
  EthDispenser: ['request_fund', 'set_config', 'pause', 'unpause'];
@@ -203,7 +179,7 @@ type AllInteractions = {
203
179
  Vesting: ['claim', 'vested_transfer', 'update_vesting_schedules', 'claim_for'];
204
180
  EVM: ['withdraw', 'call', 'create', 'create2'];
205
181
  Ethereum: ['transact'];
206
- EVMAccounts: ['bind_evm_address', 'add_contract_deployer', 'remove_contract_deployer', 'renounce_contract_deployer', 'approve_contract', 'disapprove_contract', 'claim_account', 'set_ntt_minter', 'clear_ntt_minter'];
182
+ EVMAccounts: ['bind_evm_address', 'add_contract_deployer', 'remove_contract_deployer', 'renounce_contract_deployer', 'approve_contract', 'disapprove_contract', 'claim_account'];
207
183
  XYKLiquidityMining: ['create_global_farm', 'update_global_farm', 'terminate_global_farm', 'create_yield_farm', 'update_yield_farm', 'stop_yield_farm', 'resume_yield_farm', 'terminate_yield_farm', 'deposit_shares', 'join_farms', 'add_liquidity_and_join_farms', 'redeposit_shares', 'claim_rewards', 'withdraw_shares', 'exit_farms'];
208
184
  DCA: ['schedule', 'terminate', 'unlock_reserves'];
209
185
  Scheduler: ['schedule', 'cancel', 'schedule_named', 'cancel_named', 'schedule_after', 'schedule_named_after', 'set_retry', 'set_retry_named', 'cancel_retry', 'cancel_retry_named'];
@@ -268,7 +244,7 @@ type AllInteractions = {
268
244
  Vesting: ['VestingScheduleAdded', 'Claimed', 'VestingSchedulesUpdated'];
269
245
  EVM: ['Log', 'Created', 'CreatedFailed', 'Executed', 'ExecutedFailed'];
270
246
  Ethereum: ['Executed'];
271
- EVMAccounts: ['Bound', 'DeployerAdded', 'DeployerRemoved', 'ContractApproved', 'ContractDisapproved', 'AccountClaimed', 'NttMinterSet', 'NttMinterCleared'];
247
+ EVMAccounts: ['Bound', 'DeployerAdded', 'DeployerRemoved', 'ContractApproved', 'ContractDisapproved', 'AccountClaimed'];
272
248
  XYKLiquidityMining: ['GlobalFarmCreated', 'GlobalFarmUpdated', 'YieldFarmCreated', 'GlobalFarmTerminated', 'SharesDeposited', 'SharesRedeposited', 'RewardClaimed', 'SharesWithdrawn', 'YieldFarmStopped', 'YieldFarmResumed', 'YieldFarmTerminated', 'YieldFarmUpdated', 'DepositDestroyed'];
273
249
  XYKWarehouseLM: ['GlobalFarmAccRPZUpdated', 'YieldFarmAccRPVSUpdated', 'AllRewardsDistributed'];
274
250
  RelayChainInfo: ['CurrentBlockNumbers'];
@@ -319,13 +295,13 @@ type AllInteractions = {
319
295
  Router: ['TradingLimitReached', 'MaxTradesExceeded', 'PoolNotSupported', 'InsufficientBalance', 'RouteCalculationFailed', 'InvalidRoute', 'RouteUpdateIsNotSuccessful', 'RouteHasNoOracle', 'InvalidRouteExecution', 'NotAllowed'];
320
296
  DynamicFees: ['InvalidFeeParameters'];
321
297
  Staking: ['InsufficientBalance', 'InsufficientStake', 'PositionNotFound', 'MaxVotesReached', 'NotInitialized', 'AlreadyInitialized', 'Arithmetic', 'MissingPotBalance', 'PositionAlreadyExists', 'Forbidden', 'ExistingVotes', 'ExistingProcessedVotes', 'ActiveVotesOngoing', 'BlockedByExternalLock', 'InconsistentState'];
322
- Stableswap: ['IncorrectAssets', 'MaxAssetsExceeded', 'PoolNotFound', 'PoolExists', 'AssetNotInPool', 'ShareAssetNotRegistered', 'ShareAssetInPoolAssets', 'AssetNotRegistered', 'InvalidAssetAmount', 'InsufficientBalance', 'InsufficientShares', 'InsufficientLiquidity', 'InsufficientLiquidityRemaining', 'InsufficientTradingAmount', 'BuyLimitNotReached', 'SellLimitExceeded', 'InvalidInitialLiquidity', 'InvalidAmplification', 'InsufficientShareBalance', 'NotAllowed', 'PastBlock', 'SameAmplification', 'SlippageLimit', 'UnknownDecimals', 'IncorrectInitialPegs', 'MissingTargetPegOracle', 'IncorrectAssetDecimals', 'NoPegSource', 'ZeroAmountOut', 'ZeroAmountIn', 'InvariantError', 'InsufficientShareIssuance', 'UnaccountedShareIssuance'];
298
+ Stableswap: ['IncorrectAssets', 'MaxAssetsExceeded', 'PoolNotFound', 'PoolExists', 'AssetNotInPool', 'ShareAssetNotRegistered', 'ShareAssetInPoolAssets', 'AssetNotRegistered', 'InvalidAssetAmount', 'InsufficientBalance', 'InsufficientShares', 'InsufficientLiquidity', 'InsufficientLiquidityRemaining', 'InsufficientTradingAmount', 'BuyLimitNotReached', 'SellLimitExceeded', 'InvalidInitialLiquidity', 'InvalidAmplification', 'InsufficientShareBalance', 'NotAllowed', 'PastBlock', 'SameAmplification', 'SlippageLimit', 'UnknownDecimals', 'IncorrectInitialPegs', 'MissingTargetPegOracle', 'IncorrectAssetDecimals', 'NoPegSource', 'ZeroAmountOut', 'ZeroAmountIn', 'InvariantError'];
323
299
  Bonds: ['NotRegistered', 'NotMature', 'InvalidMaturity', 'DisallowedAsset', 'AssetNotFound', 'InvalidBondName', 'FailToParseName'];
324
300
  OtcSettlements: ['OrderNotFound', 'NotPartiallyFillable', 'InvalidRoute', 'BalanceInconsistency', 'TradeAmountTooHigh', 'TradeAmountTooLow', 'PriceNotAvailable'];
325
301
  LBP: ['CannotCreatePoolWithSameAssets', 'NotOwner', 'SaleStarted', 'SaleNotEnded', 'SaleIsNotRunning', 'MaxSaleDurationExceeded', 'CannotAddZeroLiquidity', 'InsufficientAssetBalance', 'PoolNotFound', 'PoolAlreadyExists', 'InvalidBlockRange', 'WeightCalculationError', 'InvalidWeight', 'ZeroAmount', 'MaxInRatioExceeded', 'MaxOutRatioExceeded', 'FeeAmountInvalid', 'TradingLimitReached', 'Overflow', 'NothingToUpdate', 'InsufficientLiquidity', 'InsufficientTradingAmount', 'FeeCollectorWithAssetAlreadyUsed'];
326
302
  XYK: ['CannotCreatePoolWithSameAssets', 'InsufficientLiquidity', 'InsufficientTradingAmount', 'ZeroLiquidity', 'InvalidMintedLiquidity', 'InvalidLiquidityAmount', 'AssetAmountExceededLimit', 'AssetAmountNotReachedLimit', 'InsufficientAssetBalance', 'InsufficientPoolAssetBalance', 'InsufficientNativeCurrencyBalance', 'TokenPoolNotFound', 'TokenPoolAlreadyExists', 'AddAssetAmountInvalid', 'RemoveAssetAmountInvalid', 'SellAssetAmountInvalid', 'BuyAssetAmountInvalid', 'FeeAmountInvalid', 'MaxOutRatioExceeded', 'MaxInRatioExceeded', 'Overflow', 'CannotCreatePool', 'SlippageLimit'];
327
303
  Referrals: ['TooLong', 'TooShort', 'InvalidCharacter', 'AlreadyExists', 'InvalidCode', 'AlreadyLinked', 'ZeroAmount', 'LinkNotAllowed', 'IncorrectRewardCalculation', 'IncorrectRewardPercentage', 'AlreadyRegistered', 'PriceNotFound', 'ConversionMinTradingAmountNotReached', 'ConversionZeroAmountReceived'];
328
- Liquidation: ['AssetConversionFailed', 'LiquidationCallFailed', 'InvalidRoute', 'NotProfitable', 'FlashMinterNotSet', 'InvalidLiquidationData', 'UnsupportedDebtAsset', 'NoGigaHdxPosition', 'RealizeYieldFailed', 'LiquidationAccountNotBound', 'ClearVotingLocksFailed', 'BorrowFailed', 'SeizeFailed', 'GigaHdxPoolNotSet', 'NoPoolDebt', 'RepayFailed', 'PoolAddressMismatch'];
304
+ Liquidation: ['AssetConversionFailed', 'LiquidationCallFailed', 'InvalidRoute', 'NotProfitable', 'FlashMinterNotSet', 'InvalidLiquidationData', 'UnsupportedDebtAsset', 'NoGigaHdxPosition', 'RealizeYieldFailed', 'LiquidationAccountNotBound', 'ClearVotingLocksFailed', 'BorrowFailed', 'SeizeFailed', 'GigaHdxPoolNotSet', 'NoPoolDebt', 'RepayFailed'];
329
305
  HSM: ['AssetNotApproved', 'AssetAlreadyApproved', 'PoolAlreadyHasCollateral', 'InvalidAssetPair', 'MaxBuyPriceExceeded', 'MaxBuyBackExceeded', 'MaxHoldingExceeded', 'SlippageLimitExceeded', 'InvalidEVMInteraction', 'DecimalRetrievalFailed', 'NoArbitrageOpportunity', 'AssetNotFound', 'InvalidPoolState', 'CollateralNotEmpty', 'AssetNotInPool', 'HollarNotInPool', 'InsufficientCollateralBalance', 'HollarContractAddressNotFound', 'MaxNumberOfCollateralsReached', 'FlashMinterNotSet', 'InvalidArbitrageData'];
330
306
  Signet: ['NotConfigured', 'Paused', 'InsufficientFunds', 'InvalidTransaction', 'InvalidInputLength', 'DataTooLong', 'InvalidAddress', 'InvalidGasPrice'];
331
307
  EthDispenser: ['NotConfigured', 'DuplicateRequest', 'Serialization', 'InvalidOutput', 'InvalidRequestId', 'Paused', 'AmountTooSmall', 'AmountTooLarge', 'InvalidAddress', 'FaucetBalanceBelowThreshold', 'NotEnoughFeeFunds', 'NotEnoughFaucetFunds', 'InvalidConfig'];
@@ -336,7 +312,7 @@ type AllInteractions = {
336
312
  Vesting: ['ZeroVestingPeriod', 'ZeroVestingPeriodCount', 'InsufficientBalanceToLock', 'TooManyVestingSchedules', 'AmountLow', 'MaxVestingSchedulesExceeded'];
337
313
  EVM: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce', 'GasLimitTooLow', 'GasLimitExceedsBlockLimit', 'InvalidChainId', 'InvalidSignature', 'Reentrancy', 'TransactionMustComeFromEOA', 'Undefined', 'CreateOriginNotAllowed', 'TransactionGasLimitExceedsCap'];
338
314
  Ethereum: ['InvalidSignature', 'PreLogExists'];
339
- EVMAccounts: ['TruncatedAccountAlreadyUsed', 'AddressAlreadyBound', 'BoundAddressCannotBeUsed', 'AddressNotWhitelisted', 'InvalidSignature', 'AccountAlreadyExists', 'InsufficientAssetBalance', 'InvalidMinterAddress'];
315
+ EVMAccounts: ['TruncatedAccountAlreadyUsed', 'AddressAlreadyBound', 'BoundAddressCannotBeUsed', 'AddressNotWhitelisted', 'InvalidSignature', 'AccountAlreadyExists', 'InsufficientAssetBalance'];
340
316
  XYKLiquidityMining: ['CantFindDepositOwner', 'InsufficientXykSharesBalance', 'XykPoolDoesntExist', 'NotDepositOwner', 'CantGetXykAssets', 'DepositDataNotFound', 'ZeroClaimedRewards', 'AssetNotInAssetPair', 'InvalidAssetPair', 'AssetNotRegistered', 'FailToGetPotId', 'NoFarmsSpecified', 'FailedToValueShares'];
341
317
  XYKWarehouseLM: ['GlobalFarmNotFound', 'YieldFarmNotFound', 'DoubleClaimInPeriod', 'LiquidityMiningCanceled', 'LiquidityMiningIsActive', 'LiquidityMiningIsNotStopped', 'Forbidden', 'InvalidMultiplier', 'YieldFarmAlreadyExists', 'InvalidInitialRewardPercentage', 'GlobalFarmIsNotEmpty', 'MissingIncentivizedAsset', 'InsufficientRewardCurrencyBalance', 'InvalidBlocksPerPeriod', 'InvalidYieldPerPeriod', 'InvalidTotalRewards', 'InvalidPlannedYieldingPeriods', 'MaxEntriesPerDeposit', 'DoubleLock', 'YieldFarmEntryNotFound', 'GlobalFarmIsFull', 'InvalidMinDeposit', 'InvalidPriceAdjustment', 'ErrorGetAccountId', 'IncorrectValuedShares', 'RewardCurrencyNotRegistered', 'IncentivizedAssetNotRegistered', 'AmmPoolIdMismatch', 'InconsistentState'];
342
318
  DCA: ['ScheduleNotFound', 'MinTradeAmountNotReached', 'Forbidden', 'BlockNumberIsNotInFuture', 'PriceUnstable', 'Bumped', 'CalculatingPriceError', 'TotalAmountIsSmallerThanMinBudget', 'BudgetTooLow', 'NoFreeBlockFound', 'ManuallyTerminated', 'MaxRetryReached', 'TradeLimitReached', 'SlippageLimitReached', 'NoParentHashFound', 'InvalidState', 'PeriodTooShort', 'StabilityThresholdTooHigh', 'HasActiveSchedules', 'NoReservesLocked'];