@swapkit/core 5.2.2 → 5.3.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.
- package/CHANGELOG.md +19 -0
- package/dist/index.js +1 -1
- package/dist/types/index.d.ts +25 -25
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @swapkit/core
|
|
2
2
|
|
|
3
|
+
## 5.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#459](https://github.com/swapkit/sdk/pull/459) [`29bda2c`](https://github.com/swapkit/sdk/commit/29bda2c7a7f69112fc9403c042cb4aee7c2010a5) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - Wallets now declare all their signing capabilities per chain in one `signingSupport` map on `createWallet`: `direct` (signs the transaction the API builds for a route), `typedData` (EIP-712) and `btcMessage` (BIP-137), with the names exported as `SigningCapability`. Undeclared capabilities count as unsupported, and each connected chain wallet carries its capabilities as `signing`. Use `walletSupportsDirectSigning(wallet)` to check for direct signing; it understands wallets from both old and new connectors.
|
|
8
|
+
- [#462](https://github.com/swapkit/sdk/pull/462) [`adf132c`](https://github.com/swapkit/sdk/commit/adf132ce1b856153be10f132372cb4fd6cabe7d6) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - EVM wallets wrapped by `prepareNetworkSwitch` now switch to the chain's network before `signTypedData`, as they already do before sending a transaction. A refused or impossible switch fails with `helpers_failed_to_switch_network` before anything is signed. Message signing (`signMessage`) is unchanged. (via @swapkit/helpers@6.3.0)
|
|
9
|
+
- [#457](https://github.com/swapkit/sdk/pull/457) [`59568bc`](https://github.com/swapkit/sdk/commit/59568bcafbe907e7efa3a6ee0eb55a8c2500bac4) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - EVM `signTypedData` now accepts standard EIP-712 payloads that include `EIP712Domain` in `types`, as wallets and backends produce them for `eth_signTypedData_v4`. Such payloads previously threw; callers no longer need to strip `EIP712Domain` before signing. If the declared `EIP712Domain` does not exactly match the fields of `domain` (names, types and canonical order), signing rejects with `toolbox_evm_typed_data_domain_mismatch` instead of signing a different domain. Payloads without it sign exactly as before. (via @swapkit/helpers@6.3.0)
|
|
10
|
+
- [#453](https://github.com/swapkit/sdk/pull/453) [`e8988db`](https://github.com/swapkit/sdk/commit/e8988dbd06040f6b134163e7d9cba1910b9ee711) Thanks [@github-actions](https://github.com/apps/github-actions)! - Update generated token lists. (via @swapkit/helpers@6.3.0)
|
|
11
|
+
- [#452](https://github.com/swapkit/sdk/pull/452) [`8f3ecb0`](https://github.com/swapkit/sdk/commit/8f3ecb0522e2433f38012277446fd56ba1a223c5) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - The Sui toolbox now talks to Sui over gRPC instead of JSON-RPC, which Sui's public fullnodes stopped serving. Balances, transfers, sweeps, fee estimates and swaps from Sui work again with the default RPC. A custom Sui RPC set in `rpcUrls` must now serve gRPC. (via @swapkit/toolboxes@6.4.1)
|
|
12
|
+
|
|
13
|
+
## 5.2.3
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#373](https://github.com/swapkit/sdk/pull/373) [`218e46d`](https://github.com/swapkit/sdk/commit/218e46d12d423e0420143ec410f0a4c8d102ab8d) Thanks [@ice-chillios](https://github.com/ice-chillios)! - Add the `toolbox_lightspark_*` block (91301 to 91313) to `SwapKitError.ErrorCode` for the new Lightning toolbox: `toolbox_lightspark_missing_credentials`, `toolbox_lightspark_invalid_invoice`, `toolbox_lightspark_invoice_amount_mismatch`, `toolbox_lightspark_invoice_destination_mismatch`, `toolbox_lightspark_invoice_expired`, `toolbox_lightspark_invoice_already_settled`, `toolbox_lightspark_fee_limit_exceeded`, `toolbox_lightspark_invalid_params`, `toolbox_lightspark_api_error`, `toolbox_lightspark_invalid_amount`, `toolbox_lightspark_invalid_destination`, `toolbox_lightspark_network_mismatch` and `toolbox_lightspark_signing_key_unavailable`. An unloadable node signing key is reported as `toolbox_lightspark_signing_key_unavailable`, distinct from `toolbox_lightspark_missing_credentials`, so an integrator branching on the code can tell an unloaded key from an absent credential. (via @swapkit/helpers@6.2.0)
|
|
18
|
+
- [#447](https://github.com/swapkit/sdk/pull/447) [`b827853`](https://github.com/swapkit/sdk/commit/b827853cd1bfa68a9bd733843b3740f10ecab359) Thanks [@github-actions](https://github.com/apps/github-actions)! - Update generated token lists. (via @swapkit/helpers@6.2.0)
|
|
19
|
+
- [#373](https://github.com/swapkit/sdk/pull/373) [`218e46d`](https://github.com/swapkit/sdk/commit/218e46d12d423e0420143ec410f0a4c8d102ab8d) Thanks [@ice-chillios](https://github.com/ice-chillios)! - Add a standalone Lightning toolbox backed by Lightspark at `@swapkit/toolboxes/lightspark`, re-exported from `@swapkit/server`. It ships with no `Chain` enum member and no core or wallet wiring. (via @swapkit/toolboxes@6.4.0)
|
|
20
|
+
- [#449](https://github.com/swapkit/sdk/pull/449) [`e105e04`](https://github.com/swapkit/sdk/commit/e105e0417e77c486406706ecf1c0ed12c77c4375) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - The Starknet toolbox uses a wallet-provided account only to sign and send. Network reads and fee estimates go through the configured Starknet RPC, so wallets that bundle an older starknet.js (such as OKX Wallet) no longer fail with `getClassHashAt` of undefined or an "Invalid block id" error. (via @swapkit/toolboxes@6.4.0)
|
|
21
|
+
|
|
3
22
|
## 5.2.2
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var R=((i)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(i,{get:(c,
|
|
1
|
+
var R=((i)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(i,{get:(c,g)=>(typeof require<"u"?require:c)[g]}):i)(function(i){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+i+'" is not supported')});import{ApproveMode as m,AssetValue as w,Chain as f,CosmosChains as J,EVMChains as k,ProviderName as h,SKConfig as Z,SwapKitError as l,UTXOChains as ee,walletSupportsDirectSigning as W}from"@swapkit/helpers";import{parseTransactionValue as te}from"@swapkit/helpers/api";export*from"@swapkit/helpers";var ne=[h.FLASHNET,h.MAYAN,h.PACTSWAP,h.RELAY];function ae({pluginName:i,providers:c,useDirectSigning:g}){return c.some((T)=>ne.includes(T))||g?"swapkit":i||c[0]}function se(i){let c="approvalTx"in i?i.approvalTx:void 0;return c!==void 0&&"txType"in c&&c.txType==="STELLAR"?w.from({asset:i.buyAsset}):w.from({asset:i.sellAsset,value:i.sellAmount})}function le({config:i,plugins:c,wallets:g}={}){if(i)Z.set(i);let y={},T=Object.entries(c||{}).reduce((e,[n,t])=>{let a=t({getWallet:o});return e[n]=a,e},{}),b=Object.entries(g||{}).reduce((e,[n,t])=>{let a=t.connectWallet({addChain:M});return e[n]=a,e},{});function E(e){let n=e&&T[e],t=Object.values(T).find((s)=>s.supportedSwapkitProviders?.includes(e)),a=n||t;if(!a)throw new l("core_plugin_not_found");return a}function M(e){let n=o(e.chain),t=e?.balance||n?.balance||[w.from({chain:e.chain})],a={...n,...e,balance:t};return y[e.chain]=a,a}function C({pluginName:e,route:n,useDirectSigning:t}){return E(ae({pluginName:e,providers:n.providers,useDirectSigning:t}))}function O({assetValue:e,plugin:n,route:t,spenderAddress:a,type:s}){if(s===m.CheckOnly&&"isAssetValueApproved"in n)return n.isAssetValueApproved({assetValue:e,route:t,spenderAddress:a});if(s===m.Approve&&"approveAssetValue"in n)return n.approveAssetValue({assetValue:e,route:t,spenderAddress:a});throw new l({errorKey:"core_approve_asset_target_invalid",info:{message:`Target ${String(a??t?.providers[0])} cannot be used for approve operation`}})}function P({assetValue:e,type:n="checkOnly",contractAddress:t,route:a}){let s=e??(a?se(a):void 0);if(!s)throw new l("core_approve_asset_target_invalid");let r=t??a?.meta.approvalAddress,A=a?C({route:a,useDirectSigning:W(o(s.chain))}):r&&T[r];if(A)return O({assetValue:s,plugin:A,route:a,spenderAddress:r,type:n});let V=s.chain,p=k.includes(V);if(p&&s.isGasAsset||!p||s.isSynthetic)return Promise.resolve(n==="checkOnly"?!0:"approved");let u=o(V),_=n==="checkOnly"?u.isApproved:u.approve;if(!_)throw new l("core_wallet_connection_not_found");if(!(s.address&&u.address&&typeof r==="string"))throw new l("core_approve_asset_address_or_from_not_found");return _({amount:s.getBaseValue("bigint"),assetAddress:s.address,from:u.address,spenderAddress:r})}function o(e){return y[e]}function F(){return{...y}}function K(e){return o(e)?.address||""}function D(e,n){return e instanceof w?P({assetValue:e,contractAddress:n,type:m.Approve}):P({route:e,type:m.Approve})}function B(e,n){return e instanceof w?P({assetValue:e,contractAddress:n,type:m.CheckOnly}):P({route:e,type:m.CheckOnly})}function S(e){o(e)?.disconnect?.(),delete y[e]}function I(){for(let e of Object.keys(y))S(e)}function L(e,n){return n?x(e).then(({balance:t})=>t):o(e)?.balance||[]}async function x(e,n=!0){let t=o(e);if(!t)throw new l("core_wallet_connection_not_found");let a=await t.getBalance?.(t.address,n);return t.balance=a||[w.from({chain:e})],t}function G({route:e,pluginName:n,...t}){let a=w.from({asset:e.sellAsset}).chain,s=o(a);if(!s)throw new l("core_wallet_connection_not_found");let r=C({pluginName:n,route:e,useDirectSigning:Boolean(W(s)&&e.tx)});if("swap"in r)return r.swap({...t,route:e});throw new l("core_plugin_swap_not_found")}function j({assetValue:e,...n}){let t=e.chain;if([f.Radix].includes(t)||!o(t))throw new l("core_wallet_connection_not_found");return o(t).transfer({...n,assetValue:e})}function H({chain:e,message:n}){let t=o(e);if(!t)throw new l("core_wallet_connection_not_found");if("signMessage"in t)return t.signMessage?.(n);throw new l({errorKey:"core_wallet_sign_message_not_supported",info:{chain:e,wallet:t.walletType}})}function Q({chain:e,domain:n,primaryType:t,types:a,value:s}){let r=o(e);if(!r)throw new l("core_wallet_connection_not_found");if("signTypedData"in r&&typeof r.signTypedData==="function")return r.signTypedData({domain:n,primaryType:t,types:a,value:s});throw new l({errorKey:"core_wallet_sign_typed_data_not_supported",info:{chain:e,wallet:r.walletType}})}async function U({address:e,chain:n,message:t,signature:a}){if(n!==f.THORChain)throw new l({errorKey:"core_verify_message_not_supported",info:{chain:n}});let{getCosmosToolbox:s}=await import("@swapkit/toolboxes/cosmos");return s(n).verifySignature({address:e,message:t,signature:a})}async function Y({type:e,feeOptionKey:n,params:t}){let{assetValue:a}=t,{chain:s}=a;if(!o(s))throw new l("core_wallet_connection_not_found");let r=w.from({chain:s}),{match:A}=await import("ts-pattern");return await A(s).returnType().with(...k,(p)=>{let{address:d,...u}=o(p),_=A(e).with("transfer",()=>u.createTransferTx(t)).with("approve",(q)=>{let{contractAddress:v}=t;return u.createApprovalTx({amount:a.getBaseValue("bigint"),assetAddress:a.address,from:d,spenderAddress:v})}).with("swap",(q)=>{let{route:{providers:[v],tx:z}}=t;if(v&&[h.CHAINFLIP,h.CHAINFLIP_STREAMING].includes(v))return u.createTransferTx({assetValue:a,recipient:d,sender:d});let N=z;return{...N,value:te(N.value)}}).otherwise(()=>{return});if(!_)return r;return u.estimateTransactionFee({..._,feeOption:n})}).with(...J,async()=>{let{estimateTransactionFee:p}=await import("@swapkit/toolboxes/cosmos");return p(t)}).with(...ee,(p)=>{let{address:d,...u}=o(p);return u.estimateTransactionFee({...t,feeOptionKey:n,recipient:d,sender:d})}).with(f.Tron,f.Ton,f.Polkadot,(p)=>{let{address:d,...u}=o(p);return u.estimateTransactionFee({...t,recipient:d,sender:d})}).with(f.Aptos,f.Cardano,f.Ripple,f.Stellar,f.Sui,(p)=>o(p).estimateTransactionFee()).otherwise(()=>r)}async function X({address:e,chain:n}){try{let{getAddressValidator:t}=await import("@swapkit/toolboxes");return(await t())({address:e,chain:n})}catch{return!1}}return{...T,...b,approveAssetValue:D,disconnectAll:I,disconnectChain:S,estimateTransactionFee:Y,getAddress:K,getAllWallets:F,getBalance:L,getWallet:o,getWalletWithBalance:x,isAssetValueApproved:B,signMessage:H,signTypedData:Q,swap:G,transfer:j,validateAddress:X,verifyMessage:U}}export{le as SwapKit,se as getRouteApprovalAssetValue,ae as resolveRoutePluginName};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -214,7 +214,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
214
214
|
chainId?: bigint;
|
|
215
215
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
216
216
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
217
|
-
signTypedData: ((
|
|
217
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
218
218
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
219
219
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
220
220
|
};
|
|
@@ -440,7 +440,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
440
440
|
chainId?: bigint;
|
|
441
441
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
442
442
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
443
|
-
signTypedData: ((
|
|
443
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
444
444
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
445
445
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
446
446
|
};
|
|
@@ -612,7 +612,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
612
612
|
chainId?: bigint;
|
|
613
613
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
614
614
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
615
|
-
signTypedData: ((
|
|
615
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
616
616
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
617
617
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
618
618
|
};
|
|
@@ -784,7 +784,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
784
784
|
chainId?: bigint;
|
|
785
785
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
786
786
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
787
|
-
signTypedData: ((
|
|
787
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
788
788
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
789
789
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
790
790
|
};
|
|
@@ -956,7 +956,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
956
956
|
chainId?: bigint;
|
|
957
957
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
958
958
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
959
|
-
signTypedData: ((
|
|
959
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
960
960
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
961
961
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
962
962
|
};
|
|
@@ -1134,7 +1134,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1134
1134
|
chainId?: bigint;
|
|
1135
1135
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1136
1136
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1137
|
-
signTypedData: ((
|
|
1137
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1138
1138
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1139
1139
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
1140
1140
|
};
|
|
@@ -1306,7 +1306,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1306
1306
|
chainId?: bigint;
|
|
1307
1307
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1308
1308
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1309
|
-
signTypedData: ((
|
|
1309
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1310
1310
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1311
1311
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
1312
1312
|
};
|
|
@@ -1478,7 +1478,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1478
1478
|
chainId?: bigint;
|
|
1479
1479
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1480
1480
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1481
|
-
signTypedData: ((
|
|
1481
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1482
1482
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1483
1483
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
1484
1484
|
};
|
|
@@ -1937,7 +1937,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1937
1937
|
chainId?: bigint;
|
|
1938
1938
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1939
1939
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1940
|
-
signTypedData: ((
|
|
1940
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1941
1941
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1942
1942
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
1943
1943
|
};
|
|
@@ -2144,7 +2144,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2144
2144
|
chainId?: bigint;
|
|
2145
2145
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2146
2146
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2147
|
-
signTypedData: ((
|
|
2147
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2148
2148
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
2149
2149
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
2150
2150
|
};
|
|
@@ -2316,7 +2316,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2316
2316
|
chainId?: bigint;
|
|
2317
2317
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2318
2318
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2319
|
-
signTypedData: ((
|
|
2319
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2320
2320
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
2321
2321
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
2322
2322
|
};
|
|
@@ -2520,7 +2520,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2520
2520
|
chainId?: bigint;
|
|
2521
2521
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2522
2522
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2523
|
-
signTypedData: ((
|
|
2523
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2524
2524
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
2525
2525
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
2526
2526
|
};
|
|
@@ -2968,7 +2968,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2968
2968
|
chainId?: bigint;
|
|
2969
2969
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2970
2970
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2971
|
-
signTypedData: ((
|
|
2971
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2972
2972
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
2973
2973
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
2974
2974
|
};
|
|
@@ -3140,7 +3140,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3140
3140
|
chainId?: bigint;
|
|
3141
3141
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
3142
3142
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
3143
|
-
signTypedData: ((
|
|
3143
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
3144
3144
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
3145
3145
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
3146
3146
|
};
|
|
@@ -3344,7 +3344,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3344
3344
|
chainId?: bigint;
|
|
3345
3345
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
3346
3346
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
3347
|
-
signTypedData: ((
|
|
3347
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
3348
3348
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
3349
3349
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
3350
3350
|
};
|
|
@@ -3732,7 +3732,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3732
3732
|
chainId?: bigint;
|
|
3733
3733
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
3734
3734
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
3735
|
-
signTypedData: ((
|
|
3735
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
3736
3736
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
3737
3737
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
3738
3738
|
};
|
|
@@ -3905,7 +3905,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3905
3905
|
chainId?: bigint;
|
|
3906
3906
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
3907
3907
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
3908
|
-
signTypedData: ((
|
|
3908
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
3909
3909
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
3910
3910
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
3911
3911
|
};
|
|
@@ -4077,7 +4077,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
4077
4077
|
chainId?: bigint;
|
|
4078
4078
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
4079
4079
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
4080
|
-
signTypedData: ((
|
|
4080
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
4081
4081
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
4082
4082
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
4083
4083
|
};
|
|
@@ -4327,7 +4327,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
4327
4327
|
chainId?: bigint;
|
|
4328
4328
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
4329
4329
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
4330
|
-
signTypedData: ((
|
|
4330
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
4331
4331
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
4332
4332
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
4333
4333
|
};
|
|
@@ -4499,7 +4499,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
4499
4499
|
chainId?: bigint;
|
|
4500
4500
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
4501
4501
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
4502
|
-
signTypedData: ((
|
|
4502
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
4503
4503
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
4504
4504
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
4505
4505
|
};
|
|
@@ -4693,7 +4693,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
4693
4693
|
chainId?: bigint;
|
|
4694
4694
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
4695
4695
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
4696
|
-
signTypedData: ((
|
|
4696
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
4697
4697
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
4698
4698
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
4699
4699
|
};
|
|
@@ -4910,7 +4910,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
4910
4910
|
chainId?: bigint;
|
|
4911
4911
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
4912
4912
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
4913
|
-
signTypedData: ((
|
|
4913
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
4914
4914
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
4915
4915
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
4916
4916
|
};
|
|
@@ -5104,7 +5104,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
5104
5104
|
chainId?: bigint;
|
|
5105
5105
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
5106
5106
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
5107
|
-
signTypedData: ((
|
|
5107
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
5108
5108
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
5109
5109
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
5110
5110
|
};
|
|
@@ -5386,7 +5386,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
5386
5386
|
chainId?: bigint;
|
|
5387
5387
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
5388
5388
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
5389
|
-
signTypedData: ((
|
|
5389
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
5390
5390
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
5391
5391
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
5392
5392
|
};
|
|
@@ -5558,7 +5558,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
5558
5558
|
chainId?: bigint;
|
|
5559
5559
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
5560
5560
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
5561
|
-
signTypedData: ((
|
|
5561
|
+
signTypedData: ((params: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
5562
5562
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
5563
5563
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
5564
5564
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "swapkit-dev",
|
|
3
3
|
"dependencies": {
|
|
4
|
-
"@swapkit/helpers": "6.
|
|
5
|
-
"@swapkit/plugins": "5.0
|
|
6
|
-
"@swapkit/toolboxes": "6.
|
|
7
|
-
"@swapkit/wallet-core": "5.0
|
|
4
|
+
"@swapkit/helpers": "6.3.0",
|
|
5
|
+
"@swapkit/plugins": "5.1.0",
|
|
6
|
+
"@swapkit/toolboxes": "6.4.1",
|
|
7
|
+
"@swapkit/wallet-core": "5.1.0"
|
|
8
8
|
},
|
|
9
9
|
"description": "SwapKit - Core",
|
|
10
10
|
"devDependencies": {
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"type-check:go": "tsgo"
|
|
35
35
|
},
|
|
36
36
|
"type": "module",
|
|
37
|
-
"version": "5.
|
|
37
|
+
"version": "5.3.0"
|
|
38
38
|
}
|