@paraspell/descriptors 14.0.0 → 14.1.0-rc.1
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.
- package/dist/ahp.d.ts +42 -18
- package/dist/ahp_metadata-zM1M2eiK.js +3 -0
- package/dist/bridgeHub.d.ts +29 -5
- package/dist/{bridgeHub_metadata-Li64-Pg1.js → bridgeHub_metadata-DyoXb_6R.js} +1 -1
- package/dist/common-types.d.ts +407 -32
- package/dist/hydration.d.ts +38 -14
- package/dist/hydration_metadata-DYhdNf0W.js +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +20 -19
- package/dist/metadataTypes-CUg9Gk37.js +3 -0
- package/dist/metadataTypes.d.ts +1 -1
- package/dist/moonbeam.d.ts +28 -4
- package/package.json +3 -3
- package/dist/ahp_metadata-CN_MTTeF.js +0 -3
- package/dist/hydration_metadata-0UTkhPaM.js +0 -3
- package/dist/metadataTypes-uOlhw_Gc.js +0 -3
package/dist/hydration.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StorageDescriptor, PlainDescriptor, Enum, ApisFromDef, QueryFromPalletsDef, TxFromPalletsDef, EventsFromPalletsDef, ErrorsFromPalletsDef, ConstFromPalletsDef, ViewFnsFromPalletsDef, SS58String, FixedSizeArray } from "polkadot-api";
|
|
2
|
-
import type {
|
|
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";
|
|
3
3
|
type AnonymousEnum<T extends {}> = T & {
|
|
4
4
|
__anonymous: true;
|
|
5
5
|
};
|
|
@@ -25,8 +25,32 @@ type IConstants = {};
|
|
|
25
25
|
type IViewFns = {};
|
|
26
26
|
type IRuntimeCalls = {};
|
|
27
27
|
export type HydrationDispatchError = unknown;
|
|
28
|
-
type
|
|
29
|
-
|
|
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">;
|
|
30
54
|
type PalletsTypedef = {
|
|
31
55
|
__storage: IStorage;
|
|
32
56
|
__tx: ICalls;
|
|
@@ -41,8 +65,8 @@ export type Hydration = {
|
|
|
41
65
|
apis: IRuntimeCalls;
|
|
42
66
|
} & Promise<any>;
|
|
43
67
|
metadataTypes: Promise<Uint8Array>;
|
|
44
|
-
asset: IAsset;
|
|
45
68
|
extensions: HydrationExtensions;
|
|
69
|
+
requiredExtensions: IRequiredExtensions;
|
|
46
70
|
getMetadata: () => Promise<Uint8Array>;
|
|
47
71
|
genesis: string | undefined;
|
|
48
72
|
};
|
|
@@ -55,7 +79,7 @@ export type HydrationEvents = EventsFromPalletsDef<PalletsTypedef>;
|
|
|
55
79
|
export type HydrationErrors = ErrorsFromPalletsDef<PalletsTypedef>;
|
|
56
80
|
export type HydrationConstants = ConstFromPalletsDef<PalletsTypedef>;
|
|
57
81
|
export type HydrationViewFns = ViewFnsFromPalletsDef<PalletsTypedef>;
|
|
58
|
-
export type HydrationCallData = Anonymize<
|
|
82
|
+
export type HydrationCallData = Anonymize<Ic034j4hb28uuk> & {
|
|
59
83
|
value: {
|
|
60
84
|
type: string;
|
|
61
85
|
};
|
|
@@ -94,7 +118,7 @@ type AllInteractions = {
|
|
|
94
118
|
Router: ['Routes'];
|
|
95
119
|
DynamicFees: ['AssetFee', 'AssetFeeConfiguration'];
|
|
96
120
|
Staking: ['Staking', 'Positions', 'NextPositionId', 'Votes', 'VotesRewarded', 'PositionVotes', 'ProcessedVotes', 'SixSecBlocksSince'];
|
|
97
|
-
Stableswap: ['Pools', 'PoolPegs', 'AssetTradability', 'PoolSnapshots', 'BlockFee'];
|
|
121
|
+
Stableswap: ['Pools', 'PoolPegs', 'AssetTradability', 'PoolSnapshots', 'BlockFee', 'ShareIssuance'];
|
|
98
122
|
Bonds: ['BondIds', 'Bonds'];
|
|
99
123
|
LBP: ['PoolData', 'FeeCollectorWithAsset'];
|
|
100
124
|
XYK: ['ShareToken', 'TotalLiquidity', 'PoolAssets'];
|
|
@@ -111,7 +135,7 @@ type AllInteractions = {
|
|
|
111
135
|
EVM: ['AccountCodes', 'AccountCodesMetadata', 'AccountStorages'];
|
|
112
136
|
EVMChainId: ['ChainId'];
|
|
113
137
|
Ethereum: ['Pending', 'CounterForPending', 'CurrentBlock', 'CurrentReceipts', 'CurrentTransactionStatuses', 'BlockHash'];
|
|
114
|
-
EVMAccounts: ['AccountExtension', 'ContractDeployer', 'ApprovedContract', 'MarkedEvmAccounts', 'Allowances'];
|
|
138
|
+
EVMAccounts: ['AccountExtension', 'ContractDeployer', 'ApprovedContract', 'MarkedEvmAccounts', 'Allowances', 'NttMinters'];
|
|
115
139
|
DynamicEvmFee: ['BaseFeePerGas'];
|
|
116
140
|
XYKWarehouseLM: ['FarmSequencer', 'DepositSequencer', 'GlobalFarm', 'YieldFarm', 'Deposit', 'ActiveYieldFarm'];
|
|
117
141
|
DCA: ['ScheduleIdSequencer', 'Schedules', 'ScheduleOwnership', 'RemainingAmounts', 'RetriesOnError', 'ScheduleExecutionBlock', 'ScheduleIdsPerBlock', 'ScheduleExtraGas'];
|
|
@@ -168,7 +192,7 @@ type AllInteractions = {
|
|
|
168
192
|
LBP: ['create_pool', 'update_pool_data', 'add_liquidity', 'remove_liquidity', 'sell', 'buy'];
|
|
169
193
|
XYK: ['create_pool', 'add_liquidity', 'add_liquidity_with_limits', 'remove_liquidity', 'remove_liquidity_with_limits', 'sell', 'buy'];
|
|
170
194
|
Referrals: ['register_code', 'link_code', 'convert', 'claim_rewards', 'set_reward_percentage'];
|
|
171
|
-
Liquidation: ['liquidate', 'set_borrowing_contract'];
|
|
195
|
+
Liquidation: ['liquidate', 'set_borrowing_contract', 'liquidate_with_pool'];
|
|
172
196
|
HSM: ['add_collateral_asset', 'remove_collateral_asset', 'update_collateral_asset', 'sell', 'buy', 'execute_arbitrage', 'set_flash_minter'];
|
|
173
197
|
Signet: ['set_config', 'withdraw_funds', 'sign', 'sign_bidirectional', 'respond', 'respond_error', 'respond_bidirectional', 'pause', 'unpause'];
|
|
174
198
|
EthDispenser: ['request_fund', 'set_config', 'pause', 'unpause'];
|
|
@@ -179,7 +203,7 @@ type AllInteractions = {
|
|
|
179
203
|
Vesting: ['claim', 'vested_transfer', 'update_vesting_schedules', 'claim_for'];
|
|
180
204
|
EVM: ['withdraw', 'call', 'create', 'create2'];
|
|
181
205
|
Ethereum: ['transact'];
|
|
182
|
-
EVMAccounts: ['bind_evm_address', 'add_contract_deployer', 'remove_contract_deployer', 'renounce_contract_deployer', 'approve_contract', 'disapprove_contract', 'claim_account'];
|
|
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'];
|
|
183
207
|
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'];
|
|
184
208
|
DCA: ['schedule', 'terminate', 'unlock_reserves'];
|
|
185
209
|
Scheduler: ['schedule', 'cancel', 'schedule_named', 'cancel_named', 'schedule_after', 'schedule_named_after', 'set_retry', 'set_retry_named', 'cancel_retry', 'cancel_retry_named'];
|
|
@@ -244,7 +268,7 @@ type AllInteractions = {
|
|
|
244
268
|
Vesting: ['VestingScheduleAdded', 'Claimed', 'VestingSchedulesUpdated'];
|
|
245
269
|
EVM: ['Log', 'Created', 'CreatedFailed', 'Executed', 'ExecutedFailed'];
|
|
246
270
|
Ethereum: ['Executed'];
|
|
247
|
-
EVMAccounts: ['Bound', 'DeployerAdded', 'DeployerRemoved', 'ContractApproved', 'ContractDisapproved', 'AccountClaimed'];
|
|
271
|
+
EVMAccounts: ['Bound', 'DeployerAdded', 'DeployerRemoved', 'ContractApproved', 'ContractDisapproved', 'AccountClaimed', 'NttMinterSet', 'NttMinterCleared'];
|
|
248
272
|
XYKLiquidityMining: ['GlobalFarmCreated', 'GlobalFarmUpdated', 'YieldFarmCreated', 'GlobalFarmTerminated', 'SharesDeposited', 'SharesRedeposited', 'RewardClaimed', 'SharesWithdrawn', 'YieldFarmStopped', 'YieldFarmResumed', 'YieldFarmTerminated', 'YieldFarmUpdated', 'DepositDestroyed'];
|
|
249
273
|
XYKWarehouseLM: ['GlobalFarmAccRPZUpdated', 'YieldFarmAccRPVSUpdated', 'AllRewardsDistributed'];
|
|
250
274
|
RelayChainInfo: ['CurrentBlockNumbers'];
|
|
@@ -295,13 +319,13 @@ type AllInteractions = {
|
|
|
295
319
|
Router: ['TradingLimitReached', 'MaxTradesExceeded', 'PoolNotSupported', 'InsufficientBalance', 'RouteCalculationFailed', 'InvalidRoute', 'RouteUpdateIsNotSuccessful', 'RouteHasNoOracle', 'InvalidRouteExecution', 'NotAllowed'];
|
|
296
320
|
DynamicFees: ['InvalidFeeParameters'];
|
|
297
321
|
Staking: ['InsufficientBalance', 'InsufficientStake', 'PositionNotFound', 'MaxVotesReached', 'NotInitialized', 'AlreadyInitialized', 'Arithmetic', 'MissingPotBalance', 'PositionAlreadyExists', 'Forbidden', 'ExistingVotes', 'ExistingProcessedVotes', 'ActiveVotesOngoing', 'BlockedByExternalLock', 'InconsistentState'];
|
|
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'];
|
|
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'];
|
|
299
323
|
Bonds: ['NotRegistered', 'NotMature', 'InvalidMaturity', 'DisallowedAsset', 'AssetNotFound', 'InvalidBondName', 'FailToParseName'];
|
|
300
324
|
OtcSettlements: ['OrderNotFound', 'NotPartiallyFillable', 'InvalidRoute', 'BalanceInconsistency', 'TradeAmountTooHigh', 'TradeAmountTooLow', 'PriceNotAvailable'];
|
|
301
325
|
LBP: ['CannotCreatePoolWithSameAssets', 'NotOwner', 'SaleStarted', 'SaleNotEnded', 'SaleIsNotRunning', 'MaxSaleDurationExceeded', 'CannotAddZeroLiquidity', 'InsufficientAssetBalance', 'PoolNotFound', 'PoolAlreadyExists', 'InvalidBlockRange', 'WeightCalculationError', 'InvalidWeight', 'ZeroAmount', 'MaxInRatioExceeded', 'MaxOutRatioExceeded', 'FeeAmountInvalid', 'TradingLimitReached', 'Overflow', 'NothingToUpdate', 'InsufficientLiquidity', 'InsufficientTradingAmount', 'FeeCollectorWithAssetAlreadyUsed'];
|
|
302
326
|
XYK: ['CannotCreatePoolWithSameAssets', 'InsufficientLiquidity', 'InsufficientTradingAmount', 'ZeroLiquidity', 'InvalidMintedLiquidity', 'InvalidLiquidityAmount', 'AssetAmountExceededLimit', 'AssetAmountNotReachedLimit', 'InsufficientAssetBalance', 'InsufficientPoolAssetBalance', 'InsufficientNativeCurrencyBalance', 'TokenPoolNotFound', 'TokenPoolAlreadyExists', 'AddAssetAmountInvalid', 'RemoveAssetAmountInvalid', 'SellAssetAmountInvalid', 'BuyAssetAmountInvalid', 'FeeAmountInvalid', 'MaxOutRatioExceeded', 'MaxInRatioExceeded', 'Overflow', 'CannotCreatePool', 'SlippageLimit'];
|
|
303
327
|
Referrals: ['TooLong', 'TooShort', 'InvalidCharacter', 'AlreadyExists', 'InvalidCode', 'AlreadyLinked', 'ZeroAmount', 'LinkNotAllowed', 'IncorrectRewardCalculation', 'IncorrectRewardPercentage', 'AlreadyRegistered', 'PriceNotFound', 'ConversionMinTradingAmountNotReached', 'ConversionZeroAmountReceived'];
|
|
304
|
-
Liquidation: ['AssetConversionFailed', 'LiquidationCallFailed', 'InvalidRoute', 'NotProfitable', 'FlashMinterNotSet', 'InvalidLiquidationData', 'UnsupportedDebtAsset', 'NoGigaHdxPosition', 'RealizeYieldFailed', 'LiquidationAccountNotBound', 'ClearVotingLocksFailed', 'BorrowFailed', 'SeizeFailed', 'GigaHdxPoolNotSet', 'NoPoolDebt', 'RepayFailed'];
|
|
328
|
+
Liquidation: ['AssetConversionFailed', 'LiquidationCallFailed', 'InvalidRoute', 'NotProfitable', 'FlashMinterNotSet', 'InvalidLiquidationData', 'UnsupportedDebtAsset', 'NoGigaHdxPosition', 'RealizeYieldFailed', 'LiquidationAccountNotBound', 'ClearVotingLocksFailed', 'BorrowFailed', 'SeizeFailed', 'GigaHdxPoolNotSet', 'NoPoolDebt', 'RepayFailed', 'PoolAddressMismatch'];
|
|
305
329
|
HSM: ['AssetNotApproved', 'AssetAlreadyApproved', 'PoolAlreadyHasCollateral', 'InvalidAssetPair', 'MaxBuyPriceExceeded', 'MaxBuyBackExceeded', 'MaxHoldingExceeded', 'SlippageLimitExceeded', 'InvalidEVMInteraction', 'DecimalRetrievalFailed', 'NoArbitrageOpportunity', 'AssetNotFound', 'InvalidPoolState', 'CollateralNotEmpty', 'AssetNotInPool', 'HollarNotInPool', 'InsufficientCollateralBalance', 'HollarContractAddressNotFound', 'MaxNumberOfCollateralsReached', 'FlashMinterNotSet', 'InvalidArbitrageData'];
|
|
306
330
|
Signet: ['NotConfigured', 'Paused', 'InsufficientFunds', 'InvalidTransaction', 'InvalidInputLength', 'DataTooLong', 'InvalidAddress', 'InvalidGasPrice'];
|
|
307
331
|
EthDispenser: ['NotConfigured', 'DuplicateRequest', 'Serialization', 'InvalidOutput', 'InvalidRequestId', 'Paused', 'AmountTooSmall', 'AmountTooLarge', 'InvalidAddress', 'FaucetBalanceBelowThreshold', 'NotEnoughFeeFunds', 'NotEnoughFaucetFunds', 'InvalidConfig'];
|
|
@@ -312,7 +336,7 @@ type AllInteractions = {
|
|
|
312
336
|
Vesting: ['ZeroVestingPeriod', 'ZeroVestingPeriodCount', 'InsufficientBalanceToLock', 'TooManyVestingSchedules', 'AmountLow', 'MaxVestingSchedulesExceeded'];
|
|
313
337
|
EVM: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce', 'GasLimitTooLow', 'GasLimitExceedsBlockLimit', 'InvalidChainId', 'InvalidSignature', 'Reentrancy', 'TransactionMustComeFromEOA', 'Undefined', 'CreateOriginNotAllowed', 'TransactionGasLimitExceedsCap'];
|
|
314
338
|
Ethereum: ['InvalidSignature', 'PreLogExists'];
|
|
315
|
-
EVMAccounts: ['TruncatedAccountAlreadyUsed', 'AddressAlreadyBound', 'BoundAddressCannotBeUsed', 'AddressNotWhitelisted', 'InvalidSignature', 'AccountAlreadyExists', 'InsufficientAssetBalance'];
|
|
339
|
+
EVMAccounts: ['TruncatedAccountAlreadyUsed', 'AddressAlreadyBound', 'BoundAddressCannotBeUsed', 'AddressNotWhitelisted', 'InvalidSignature', 'AccountAlreadyExists', 'InsufficientAssetBalance', 'InvalidMinterAddress'];
|
|
316
340
|
XYKLiquidityMining: ['CantFindDepositOwner', 'InsufficientXykSharesBalance', 'XykPoolDoesntExist', 'NotDepositOwner', 'CantGetXykAssets', 'DepositDataNotFound', 'ZeroClaimedRewards', 'AssetNotInAssetPair', 'InvalidAssetPair', 'AssetNotRegistered', 'FailToGetPotId', 'NoFarmsSpecified', 'FailedToValueShares'];
|
|
317
341
|
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'];
|
|
318
342
|
DCA: ['ScheduleNotFound', 'MinTradeAmountNotReached', 'Forbidden', 'BlockNumberIsNotInFuture', 'PriceUnstable', 'Bumped', 'CalculatingPriceError', 'TotalAmountIsSmallerThanMinBudget', 'BudgetTooLow', 'NoFreeBlockFound', 'ManuallyTerminated', 'MaxRetryReached', 'TradeLimitReached', 'SlippageLimitReached', 'NoParentHashFound', 'InvalidState', 'PeriodTooShort', 'StabilityThresholdTooHigh', 'HasActiveSchedules', 'NoReservesLocked'];
|