@paraspell/sdk 8.5.2 → 8.5.3
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/README.md +3 -0
- package/dist/index.cjs +209 -128
- package/dist/index.d.ts +9 -5
- package/dist/index.mjs +211 -131
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _paraspell_sdk_core from '@paraspell/sdk-core';
|
|
2
|
-
import { TApiOrUrl, Foreign, ForeignAbstract, Native, Override, getAllAssetsSymbols, getAssetBySymbolOrId, getAssetDecimals, getAssetId, getAssets, getAssetsObject, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTNode, hasSupportForAsset, isNodeEvm, TOptionalEvmBuilderOptions, IPolkadotApi,
|
|
2
|
+
import { TApiOrUrl, Foreign, ForeignAbstract, Native, Override, getAllAssetsSymbols, getAssetBySymbolOrId, getAssetDecimals, getAssetId, getAssets, getAssetsObject, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTNode, hasSupportForAsset, isNodeEvm, TOptionalEvmBuilderOptions, IPolkadotApi, TNodeWithRelayChains, TCurrencyInputWithAmount, GeneralBuilder as GeneralBuilder$1, IFinalBuilderWithOptions as IFinalBuilderWithOptions$1, TNodeDotKsmWithRelayChains } from '@paraspell/sdk-core';
|
|
3
3
|
export * from '@paraspell/sdk-core';
|
|
4
4
|
import * as polkadot_api from 'polkadot-api';
|
|
5
5
|
import { PolkadotClient, UnsafeTransaction } from 'polkadot-api';
|
|
@@ -90,6 +90,9 @@ declare const getMaxForeignTransferableAmount: (options: _paraspell_sdk_core.TGe
|
|
|
90
90
|
declare const getTransferableAmount: (options: _paraspell_sdk_core.TGetTransferableAmountOptionsBase & {
|
|
91
91
|
api?: TPapiApiOrUrl;
|
|
92
92
|
}) => Promise<bigint>;
|
|
93
|
+
declare const verifyEdOnDestination: (options: _paraspell_sdk_core.TVerifyEdOnDestinationOptionsBase & {
|
|
94
|
+
api?: TPapiApiOrUrl;
|
|
95
|
+
}) => Promise<boolean>;
|
|
93
96
|
|
|
94
97
|
declare const assets_Foreign: typeof Foreign;
|
|
95
98
|
declare const assets_ForeignAbstract: typeof ForeignAbstract;
|
|
@@ -119,8 +122,9 @@ declare const assets_getTransferInfo: typeof getTransferInfo;
|
|
|
119
122
|
declare const assets_getTransferableAmount: typeof getTransferableAmount;
|
|
120
123
|
declare const assets_hasSupportForAsset: typeof hasSupportForAsset;
|
|
121
124
|
declare const assets_isNodeEvm: typeof isNodeEvm;
|
|
125
|
+
declare const assets_verifyEdOnDestination: typeof verifyEdOnDestination;
|
|
122
126
|
declare namespace assets {
|
|
123
|
-
export { assets_Foreign as Foreign, assets_ForeignAbstract as ForeignAbstract, assets_Native as Native, assets_Override as Override, assets_claimAssets as claimAssets, assets_getAllAssetsSymbols as getAllAssetsSymbols, assets_getAssetBalance as getAssetBalance, assets_getAssetBySymbolOrId as getAssetBySymbolOrId, assets_getAssetDecimals as getAssetDecimals, assets_getAssetId as getAssetId, assets_getAssets as getAssets, assets_getAssetsObject as getAssetsObject, assets_getBalanceForeign as getBalanceForeign, assets_getBalanceNative as getBalanceNative, assets_getExistentialDeposit as getExistentialDeposit, assets_getMaxForeignTransferableAmount as getMaxForeignTransferableAmount, assets_getMaxNativeTransferableAmount as getMaxNativeTransferableAmount, assets_getNativeAssetSymbol as getNativeAssetSymbol, assets_getNativeAssets as getNativeAssets, assets_getOriginFeeDetails as getOriginFeeDetails, assets_getOtherAssets as getOtherAssets, assets_getRelayChainSymbol as getRelayChainSymbol, assets_getSupportedAssets as getSupportedAssets, assets_getTNode as getTNode, assets_getTransferInfo as getTransferInfo, assets_getTransferableAmount as getTransferableAmount, assets_hasSupportForAsset as hasSupportForAsset, assets_isNodeEvm as isNodeEvm };
|
|
127
|
+
export { assets_Foreign as Foreign, assets_ForeignAbstract as ForeignAbstract, assets_Native as Native, assets_Override as Override, assets_claimAssets as claimAssets, assets_getAllAssetsSymbols as getAllAssetsSymbols, assets_getAssetBalance as getAssetBalance, assets_getAssetBySymbolOrId as getAssetBySymbolOrId, assets_getAssetDecimals as getAssetDecimals, assets_getAssetId as getAssetId, assets_getAssets as getAssets, assets_getAssetsObject as getAssetsObject, assets_getBalanceForeign as getBalanceForeign, assets_getBalanceNative as getBalanceNative, assets_getExistentialDeposit as getExistentialDeposit, assets_getMaxForeignTransferableAmount as getMaxForeignTransferableAmount, assets_getMaxNativeTransferableAmount as getMaxNativeTransferableAmount, assets_getNativeAssetSymbol as getNativeAssetSymbol, assets_getNativeAssets as getNativeAssets, assets_getOriginFeeDetails as getOriginFeeDetails, assets_getOtherAssets as getOtherAssets, assets_getRelayChainSymbol as getRelayChainSymbol, assets_getSupportedAssets as getSupportedAssets, assets_getTNode as getTNode, assets_getTransferInfo as getTransferInfo, assets_getTransferableAmount as getTransferableAmount, assets_hasSupportForAsset as hasSupportForAsset, assets_isNodeEvm as isNodeEvm, assets_verifyEdOnDestination as verifyEdOnDestination };
|
|
124
128
|
}
|
|
125
129
|
|
|
126
130
|
/**
|
|
@@ -136,7 +140,7 @@ declare class EvmBuilderClass<TApi, TRes> {
|
|
|
136
140
|
* @param node - The Polkadot node to which the transfer will be made.
|
|
137
141
|
* @returns An instance of EvmBuilder
|
|
138
142
|
*/
|
|
139
|
-
to(node:
|
|
143
|
+
to(node: TNodeWithRelayChains): this;
|
|
140
144
|
/**
|
|
141
145
|
* Specifies the currency to transfer.
|
|
142
146
|
*
|
|
@@ -150,7 +154,7 @@ declare class EvmBuilderClass<TApi, TRes> {
|
|
|
150
154
|
* @param address - The Polkadot address to receive the transfer.
|
|
151
155
|
* @returns An instance of EvmBuilder
|
|
152
156
|
*/
|
|
153
|
-
address(address: string): this;
|
|
157
|
+
address(address: string, ahAddress?: string): this;
|
|
154
158
|
/**
|
|
155
159
|
* Specifies the signer for the Ethereum transaction.
|
|
156
160
|
*
|
|
@@ -187,4 +191,4 @@ type IFinalBuilderWithOptions = IFinalBuilderWithOptions$1<TPapiApi, TPapiTransa
|
|
|
187
191
|
|
|
188
192
|
declare const createApiInstanceForNode: (node: TNodeDotKsmWithRelayChains) => Promise<polkadot_api.PolkadotClient>;
|
|
189
193
|
|
|
190
|
-
export { Builder, EvmBuilder, GeneralBuilder, type IFinalBuilderWithOptions, type TPapiApi, type TPapiApiOrUrl, type TPapiTransaction, assets, claimAssets, createApiInstanceForNode, getAssetBalance, getBalanceForeign, getBalanceNative, getDryRun, getMaxForeignTransferableAmount, getMaxNativeTransferableAmount, getOriginFeeDetails, getParaEthTransferFees, getTransferInfo, getTransferableAmount, send, transfer as xcmPallet };
|
|
194
|
+
export { Builder, EvmBuilder, GeneralBuilder, type IFinalBuilderWithOptions, type TPapiApi, type TPapiApiOrUrl, type TPapiTransaction, assets, claimAssets, createApiInstanceForNode, getAssetBalance, getBalanceForeign, getBalanceNative, getDryRun, getMaxForeignTransferableAmount, getMaxNativeTransferableAmount, getOriginFeeDetails, getParaEthTransferFees, getTransferInfo, getTransferableAmount, send, verifyEdOnDestination, transfer as xcmPallet };
|