@paraspell/sdk 10.2.0 → 10.3.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/index.cjs +334 -567
- package/dist/index.d.ts +6 -4
- package/dist/index.mjs +333 -568
- package/package.json +11 -13
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ export * from '@paraspell/sdk-core';
|
|
|
4
4
|
import { TEvmNodeFrom } from '@paraspell/sdk-core/src';
|
|
5
5
|
import * as polkadot_api from 'polkadot-api';
|
|
6
6
|
import { PolkadotClient, UnsafeTransaction } from 'polkadot-api';
|
|
7
|
-
import { Signer } from 'ethers';
|
|
8
7
|
import { WalletClient } from 'viem';
|
|
9
8
|
|
|
10
9
|
type TPapiApi = PolkadotClient;
|
|
@@ -161,8 +160,8 @@ declare class EvmBuilderCore<TApi, TRes, T extends Partial<TEvmBuilderOptions<TA
|
|
|
161
160
|
* @param signer - The Ethereum signer to authorize the transfer.
|
|
162
161
|
* @returns An instance of EvmBuilder
|
|
163
162
|
*/
|
|
164
|
-
signer(signer:
|
|
165
|
-
signer:
|
|
163
|
+
signer(signer: WalletClient): EvmBuilderCore<TApi, TRes, T & {
|
|
164
|
+
signer: WalletClient;
|
|
166
165
|
}>;
|
|
167
166
|
/**
|
|
168
167
|
* Builds and executes the transfer from Ethereum to Polkadot.
|
|
@@ -229,5 +228,8 @@ declare namespace transfer {
|
|
|
229
228
|
|
|
230
229
|
declare const createApiInstanceForNode: (node: TNodeDotKsmWithRelayChains) => Promise<polkadot_api.PolkadotClient>;
|
|
231
230
|
|
|
232
|
-
|
|
231
|
+
declare const checkAndConvertToNumberOrBigInt: (input: string) => number | bigint;
|
|
232
|
+
declare const transform: (obj: any) => any;
|
|
233
|
+
|
|
234
|
+
export { Builder, EvmBuilder, assets, checkAndConvertToNumberOrBigInt, claimAssets, convertSs58, createApiInstanceForNode, dryRun, dryRunOrigin, getAssetBalance, getBalanceForeign, getBalanceNative, getBridgeStatus, getOriginFeeDetails, getOriginXcmFee, getParaEthTransferFees, send, transform, transfer as xcmPallet };
|
|
233
235
|
export type { GeneralBuilder, TEvmNodeFromPapi, TPapiApi, TPapiApiOrUrl, TPapiTransaction };
|