@swapkit/core 5.0.5 → 5.0.7

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 CHANGED
@@ -1,5 +1,29 @@
1
1
  # @swapkit/core
2
2
 
3
+ ## 5.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#382](https://github.com/swapkit/sdk/pull/382) [`2ef09ec`](https://github.com/swapkit/sdk/commit/2ef09ec782e61176e2576554c25cca6d8f2374de) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - Add Arc (`5042`) EVM chain: chain/chainId enums, chain config, EVM toolbox wiring, and native `ARC.USDC` gas-asset handling in `isGasAsset` / `getCommonAssetInfo` / `getAssetType` / `getTokenAddress`. Arc ships with rpcUrls: [], so connectKeystore skips it and toolbox calls fail with helpers_chain_no_public_or_set_rpc_url until SKConfig.setRpcUrl(Chain.Arc, […]) is set (via @swapkit/toolboxes@5.4.0)
8
+ - [#385](https://github.com/swapkit/sdk/pull/385) [`c8e9da7`](https://github.com/swapkit/sdk/commit/c8e9da74d13ad5b8c533d626400feff9364420fa) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - Expose the address form an address string decodes to, instead of discarding it behind a boolean. Address validation already computed the script type; new siblings surface it without changing any existing validator's return type: (via @swapkit/toolboxes@5.4.0)
9
+ - [#374](https://github.com/swapkit/sdk/pull/374) [`54d0f14`](https://github.com/swapkit/sdk/commit/54d0f14ec3d58e66b0036ad6c8dcfd0f823dbd2a) Thanks [@ice-chillios](https://github.com/ice-chillios)! - `getAddressValidator` now handles the Substrate chains. Polkadot (DOT) and Chainflip (FLIP) had no arm in the chain match, so they fell through to the catch-all and every address — including valid ones — was reported as invalid. Consumers of `swapKit.validateAddress`, which is built on this validator, were affected; the server-side `validateChainAddress` already covered these chains. (via @swapkit/toolboxes@5.4.0)
10
+ - [#393](https://github.com/swapkit/sdk/pull/393) [`25570ca`](https://github.com/swapkit/sdk/commit/25570ca23f90b4ed104061b5561c35ab1c47f1c6) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - **One table describes the UTXO script types.** `@swapkit/helpers` now exports `UTXOScriptType` (with `P2SH_P2WPKH` and `P2TR` alongside `P2PKH` and `P2WPKH`), `UTXO_SCRIPT_TYPES` (BIP43 purpose, input and output size in vBytes, witness flag per type), `UTXO_SCRIPT_TYPE_LIST`, and the path helpers `getPurposeFromPath`, `getUTXOScriptTypeForPurpose` and `getUTXOScriptTypeForPath`. Error key `toolbox_utxo_unsupported_script_type` (50315) is reserved for the toolboxes. (via @swapkit/toolboxes@5.4.0)
11
+ - [#391](https://github.com/swapkit/sdk/pull/391) [`cf94a27`](https://github.com/swapkit/sdk/commit/cf94a27a52ac37c78d3a72bbbe7ee3acf14c192e) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - **Eight fixes to the UTXO send path**, reached today by external signers spending from legacy Bitcoin and Litecoin addresses, and by every chain without segwit. (via @swapkit/toolboxes@5.4.0)
12
+ - [#391](https://github.com/swapkit/sdk/pull/391) [`cf94a27`](https://github.com/swapkit/sdk/commit/cf94a27a52ac37c78d3a72bbbe7ee3acf14c192e) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - **Three fixes to `createReplacementTransaction`/`bumpFee`** (Bitcoin, the only chain in `rbfSupportedChains`): (via @swapkit/toolboxes@5.4.0)
13
+ - [#379](https://github.com/swapkit/sdk/pull/379) [`4450ac4`](https://github.com/swapkit/sdk/commit/4450ac4200a565d5ce38a26d31f3836a3713ff75) Thanks [@ice-chillios](https://github.com/ice-chillios)! - `derivationPathToString` now accepts sliced derivation paths through the new `DerivationPathLike` (`readonly (number | undefined)[]`) type, so prefixes no longer need to be cast to `DerivationPathArray`. (via @swapkit/toolboxes@5.4.0)
14
+ - [#362](https://github.com/swapkit/sdk/pull/362) [`cbbfccd`](https://github.com/swapkit/sdk/commit/cbbfccdcbbe3e5ad3ffb531a030e2562c8e3f470) Thanks [@towanTG](https://github.com/towanTG)! - Preserve stored numeric precision across comparisons, arithmetic operands, copies, `set`, and AssetValue conversion instead of converting through display-rounded strings. Compare exact values regardless of declared asset decimals, and cap arithmetic results at 64 decimal places without mis-scaling longer inputs or turning small nonzero divisors into zero. Fix half-up display carries and explicit base-unit rescaling while preserving asset identity and destination decimals. (via @swapkit/toolboxes@5.4.0)
15
+ - [#399](https://github.com/swapkit/sdk/pull/399) [`70749e7`](https://github.com/swapkit/sdk/commit/70749e7899630daabc371a36c498f62b9da1c62f) Thanks [@github-actions](https://github.com/apps/github-actions)! - Update generated token lists. (via @swapkit/toolboxes@5.4.0)
16
+ - [#374](https://github.com/swapkit/sdk/pull/374) [`54d0f14`](https://github.com/swapkit/sdk/commit/54d0f14ec3d58e66b0036ad6c8dcfd0f823dbd2a) Thanks [@ice-chillios](https://github.com/ice-chillios)! - `ChainflipBroker.fundStateChainAccount` accepts a hex state chain account explicitly instead of relying on the substrate address validator, which no longer treats hex as an address. Hex accounts must now be a full 32-byte `AccountId32`; shorter hex values used to pass validation and then fail in the gateway call. (via @swapkit/plugins@5.0.7)
17
+
18
+ ## 5.0.6
19
+
20
+ ### Patch Changes
21
+
22
+ - [#371](https://github.com/swapkit/sdk/pull/371) [`6236419`](https://github.com/swapkit/sdk/commit/623641928563f9e0141c47395a2e1febbd182093) Thanks [@ice-chillios](https://github.com/ice-chillios)! - EVM nonce derivation now reads the "pending" transaction count and serialises allocation per chainId:address behind an expiring monotonic floor, so concurrent sends from one address no longer reuse a mined-only count and silently replace each other in the mempool. Allocations are released when a send provably never reached the wire (gas or fee estimation failure, a rejected send, a signer that cannot sign), so a failed attempt no longer strands a nonce gap; transport-ambiguous failures keep the nonce reserved until the floor expires, and a floor never expires while one of its nonces is held by an in-flight send (a signature awaiting hardware or wallet confirmation cannot have its nonce re-issued). sendTransaction and state-changing contract calls both resolve through the signer's own provider when it carries one — approve + send from a single toolbox share one floor, and the transport-failure fallback broadcast and its hash lookup go through that same provider. Caller-supplied nonces are honoured on the ERC-20 transfer and approval builder paths. The native sweep builder no longer pins a nonce into the built transaction — the OP-stack L1 fee serialisation performs its own plain "pending" read for byte-length only (build-only APIs consume no allocation) — so both `transfer` and a two-step `createTransaction`/`sendTransaction` sweep allocate through the floor on the send path. The toolbox `broadcastTransaction` no longer crashes when invoked (previously an unbound method reference). (via @swapkit/toolboxes@5.3.0)
23
+ - [#380](https://github.com/swapkit/sdk/pull/380) [`9e8158f`](https://github.com/swapkit/sdk/commit/9e8158f012909b540652f0047f719482628724e1) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - TRON transaction failures now carry a diagnostic payload instead of a bare error key. (via @swapkit/toolboxes@5.3.0)
24
+ - [#381](https://github.com/swapkit/sdk/pull/381) [`3b750ec`](https://github.com/swapkit/sdk/commit/3b750ec492b40b028f50c1adcf2347c647ad3f2f) Thanks [@ochhii1337](https://github.com/ochhii1337)! - TON's native coin is now `GRAM`, so the gas asset is `TON.GRAM` instead of `TON.TON`. (via @swapkit/toolboxes@5.3.0)
25
+ - Update generated token lists. (via @swapkit/toolboxes@5.3.0)
26
+
3
27
  ## 5.0.5
4
28
 
5
29
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var f=((Q)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(Q,{get:(X,F)=>(typeof require<"u"?require:X)[F]}):Q)(function(Q){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+Q+'" is not supported')});import{ApproveMode as R,AssetValue as _,Chain as U,CosmosChains as l,EVMChains as S,ProviderName as x,SKConfig as t,SwapKitError as Y,UTXOChains as a}from"@swapkit/helpers";import{parseTransactionValue as e}from"@swapkit/helpers/api";export*from"@swapkit/helpers";var jj=[x.FLASHNET,x.MAYAN];function qj({pluginName:Q,providers:X,useDirectSigning:F}){return X.some((B)=>jj.includes(B))||F?"swapkit":Q||X[0]}function zj(Q){let X="approvalTx"in Q?Q.approvalTx:void 0;return X!==void 0&&"txType"in X&&X.txType==="STELLAR"?_.from({asset:Q.buyAsset}):_.from({asset:Q.sellAsset,value:Q.sellAmount})}function Lj({config:Q,plugins:X,wallets:F}={}){if(Q)t.set(Q);let k={},B=Object.entries(X||{}).reduce((j,[z,q])=>{let G=q({getWallet:J});return j[z]=G,j},{}),E=Object.entries(F||{}).reduce((j,[z,q])=>{let G=q.connectWallet({addChain:v});return j[z]=G,j},{});function y(j){let z=j&&B[j],q=Object.values(B).find((H)=>H.supportedSwapkitProviders?.includes(j)),G=z||q;if(!G)throw new Y("core_plugin_not_found");return G}function v(j){let z=J(j.chain),q=j?.balance||z?.balance||[_.from({chain:j.chain})],G={...z,...j,balance:q};return k[j.chain]=G,G}function T({pluginName:j,route:z,useDirectSigning:q}){return y(qj({pluginName:j,providers:z.providers,useDirectSigning:q}))}function V({assetValue:j,plugin:z,route:q,spenderAddress:G,type:H}){if(H===R.CheckOnly&&"isAssetValueApproved"in z)return z.isAssetValueApproved({assetValue:j,route:q,spenderAddress:G});if(H===R.Approve&&"approveAssetValue"in z)return z.approveAssetValue({assetValue:j,route:q,spenderAddress:G});throw new Y({errorKey:"core_approve_asset_target_invalid",info:{message:`Target ${String(G??q?.providers[0])} cannot be used for approve operation`}})}function b({assetValue:j,type:z="checkOnly",contractAddress:q,route:G}){let H=j??(G?zj(G):void 0);if(!H)throw new Y("core_approve_asset_target_invalid");let L=q??G?.meta.approvalAddress,D=G?T({route:G,useDirectSigning:Boolean(J(H.chain)?.supportsDirectSigning)}):L&&B[L];if(D)return V({assetValue:H,plugin:D,route:G,spenderAddress:L,type:z});let P=H.chain,$=S.includes(P);if($&&H.isGasAsset||!$||H.isSynthetic)return Promise.resolve(z==="checkOnly"?!0:"approved");let Z=J(P),O=z==="checkOnly"?Z.isApproved:Z.approve;if(!O)throw new Y("core_wallet_connection_not_found");if(!(H.address&&Z.address&&typeof L==="string"))throw new Y("core_approve_asset_address_or_from_not_found");return O({amount:H.getBaseValue("bigint"),assetAddress:H.address,from:Z.address,spenderAddress:L})}function J(j){return k[j]}function W(){return{...k}}function A(j){return J(j)?.address||""}function w(j,z){return j instanceof _?b({assetValue:j,contractAddress:z,type:R.Approve}):b({route:j,type:R.Approve})}function m(j,z){return j instanceof _?b({assetValue:j,contractAddress:z,type:R.CheckOnly}):b({route:j,type:R.CheckOnly})}function K(j){J(j)?.disconnect?.(),delete k[j]}function h(){for(let j of Object.keys(k))K(j)}function d(j,z){return z?N(j).then(({balance:q})=>q):J(j)?.balance||[]}async function N(j,z=!0){let q=J(j);if(!q)throw new Y("core_wallet_connection_not_found");let G=await q.getBalance?.(q.address,z);return q.balance=G||[_.from({chain:j})],q}function g({route:j,pluginName:z,...q}){let G=_.from({asset:j.sellAsset}).chain,H=J(G);if(!H)throw new Y("core_wallet_connection_not_found");let L=T({pluginName:z,route:j,useDirectSigning:Boolean(H.supportsDirectSigning&&j.tx)});if("swap"in L)return L.swap({...q,route:j});throw new Y("core_plugin_swap_not_found")}function u({assetValue:j,...z}){let q=j.chain;if([U.Radix].includes(q)||!J(q))throw new Y("core_wallet_connection_not_found");return J(q).transfer({...z,assetValue:j})}function c({chain:j,message:z}){let q=J(j);if(!q)throw new Y("core_wallet_connection_not_found");if("signMessage"in q)return q.signMessage?.(z);throw new Y({errorKey:"core_wallet_sign_message_not_supported",info:{chain:j,wallet:q.walletType}})}function o({chain:j,domain:z,primaryType:q,types:G,value:H}){let L=J(j);if(!L)throw new Y("core_wallet_connection_not_found");if("signTypedData"in L&&typeof L.signTypedData==="function")return L.signTypedData({domain:z,primaryType:q,types:G,value:H});throw new Y({errorKey:"core_wallet_sign_typed_data_not_supported",info:{chain:j,wallet:L.walletType}})}async function p({address:j,chain:z,message:q,signature:G}){if(z!==U.THORChain)throw new Y({errorKey:"core_verify_message_not_supported",info:{chain:z}});let{getCosmosToolbox:H}=await import("@swapkit/toolboxes/cosmos");return H(z).verifySignature({address:j,message:q,signature:G})}async function i({type:j,feeOptionKey:z,params:q}){let{assetValue:G}=q,{chain:H}=G;if(!J(H))throw new Y("core_wallet_connection_not_found");let L=_.from({chain:H}),{match:D}=await import("ts-pattern");return await D(H).returnType().with(...S,($)=>{let{address:I,...Z}=J($),O=D(j).with("transfer",()=>Z.createTransferTx(q)).with("approve",(r)=>{let{contractAddress:M}=q;return Z.createApprovalTx({amount:G.getBaseValue("bigint"),assetAddress:G.address,from:I,spenderAddress:M})}).with("swap",(r)=>{let{route:{providers:[M],tx:s}}=q;if(M&&[x.CHAINFLIP,x.CHAINFLIP_STREAMING].includes(M))return Z.createTransferTx({assetValue:G,recipient:I,sender:I});let C=s;return{...C,value:e(C.value)}}).otherwise(()=>{return});if(!O)return L;return Z.estimateTransactionFee({...O,feeOption:z})}).with(...l,async()=>{let{estimateTransactionFee:$}=await import("@swapkit/toolboxes/cosmos");return $(q)}).with(...a,($)=>{let{address:I,...Z}=J($);return Z.estimateTransactionFee({...q,feeOptionKey:z,recipient:I,sender:I})}).with(U.Tron,U.Ton,U.Polkadot,($)=>{let{address:I,...Z}=J($);return Z.estimateTransactionFee({...q,recipient:I,sender:I})}).with(U.Aptos,U.Cardano,U.Ripple,U.Stellar,U.Sui,($)=>J($).estimateTransactionFee()).otherwise(()=>L)}async function n({address:j,chain:z}){try{let{getAddressValidator:q}=await import("@swapkit/toolboxes");return(await q())({address:j,chain:z})}catch{return!1}}return{...B,...E,approveAssetValue:w,disconnectAll:h,disconnectChain:K,estimateTransactionFee:i,getAddress:A,getAllWallets:W,getBalance:d,getWallet:J,getWalletWithBalance:N,isAssetValueApproved:m,signMessage:c,signTypedData:o,swap:g,transfer:u,validateAddress:n,verifyMessage:p}}export{qj as resolveRoutePluginName,zj as getRouteApprovalAssetValue,Lj as SwapKit};
1
+ var v=((i)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(i,{get:(c,w)=>(typeof require<"u"?require:c)[w]}):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 g,Chain as f,CosmosChains as z,EVMChains as k,ProviderName as R,SKConfig as J,SwapKitError as l,UTXOChains as Z}from"@swapkit/helpers";import{parseTransactionValue as ee}from"@swapkit/helpers/api";export*from"@swapkit/helpers";var te=[R.FLASHNET,R.MAYAN];function ne({pluginName:i,providers:c,useDirectSigning:w}){return c.some((T)=>te.includes(T))||w?"swapkit":i||c[0]}function ae(i){let c="approvalTx"in i?i.approvalTx:void 0;return c!==void 0&&"txType"in c&&c.txType==="STELLAR"?g.from({asset:i.buyAsset}):g.from({asset:i.sellAsset,value:i.sellAmount})}function ie({config:i,plugins:c,wallets:w}={}){if(i)J.set(i);let y={},T=Object.entries(c||{}).reduce((e,[n,t])=>{let a=t({getWallet:o});return e[n]=a,e},{}),W=Object.entries(w||{}).reduce((e,[n,t])=>{let a=t.connectWallet({addChain:E});return e[n]=a,e},{});function b(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 E(e){let n=o(e.chain),t=e?.balance||n?.balance||[g.from({chain:e.chain})],a={...n,...e,balance:t};return y[e.chain]=a,a}function C({pluginName:e,route:n,useDirectSigning:t}){return b(ne({pluginName:e,providers:n.providers,useDirectSigning:t}))}function M({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 A({assetValue:e,type:n="checkOnly",contractAddress:t,route:a}){let s=e??(a?ae(a):void 0);if(!s)throw new l("core_approve_asset_target_invalid");let r=t??a?.meta.approvalAddress,h=a?C({route:a,useDirectSigning:Boolean(o(s.chain)?.supportsDirectSigning)}):r&&T[r];if(h)return M({assetValue:s,plugin:h,route:a,spenderAddress:r,type:n});let V=s.chain,u=k.includes(V);if(u&&s.isGasAsset||!u||s.isSynthetic)return Promise.resolve(n==="checkOnly"?!0:"approved");let p=o(V),_=n==="checkOnly"?p.isApproved:p.approve;if(!_)throw new l("core_wallet_connection_not_found");if(!(s.address&&p.address&&typeof r==="string"))throw new l("core_approve_asset_address_or_from_not_found");return _({amount:s.getBaseValue("bigint"),assetAddress:s.address,from:p.address,spenderAddress:r})}function o(e){return y[e]}function O(){return{...y}}function F(e){return o(e)?.address||""}function K(e,n){return e instanceof g?A({assetValue:e,contractAddress:n,type:m.Approve}):A({route:e,type:m.Approve})}function D(e,n){return e instanceof g?A({assetValue:e,contractAddress:n,type:m.CheckOnly}):A({route:e,type:m.CheckOnly})}function S(e){o(e)?.disconnect?.(),delete y[e]}function B(){for(let e of Object.keys(y))S(e)}function I(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||[g.from({chain:e})],t}function G({route:e,pluginName:n,...t}){let a=g.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(s.supportsDirectSigning&&e.tx)});if("swap"in r)return r.swap({...t,route:e});throw new l("core_plugin_swap_not_found")}function L({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 j({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 H({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 Q({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 U({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=g.from({chain:s}),{match:h}=await import("ts-pattern");return await h(s).returnType().with(...k,(u)=>{let{address:d,...p}=o(u),_=h(e).with("transfer",()=>p.createTransferTx(t)).with("approve",(Y)=>{let{contractAddress:P}=t;return p.createApprovalTx({amount:a.getBaseValue("bigint"),assetAddress:a.address,from:d,spenderAddress:P})}).with("swap",(Y)=>{let{route:{providers:[P],tx:q}}=t;if(P&&[R.CHAINFLIP,R.CHAINFLIP_STREAMING].includes(P))return p.createTransferTx({assetValue:a,recipient:d,sender:d});let N=q;return{...N,value:ee(N.value)}}).otherwise(()=>{return});if(!_)return r;return p.estimateTransactionFee({..._,feeOption:n})}).with(...z,async()=>{let{estimateTransactionFee:u}=await import("@swapkit/toolboxes/cosmos");return u(t)}).with(...Z,(u)=>{let{address:d,...p}=o(u);return p.estimateTransactionFee({...t,feeOptionKey:n,recipient:d,sender:d})}).with(f.Tron,f.Ton,f.Polkadot,(u)=>{let{address:d,...p}=o(u);return p.estimateTransactionFee({...t,recipient:d,sender:d})}).with(f.Aptos,f.Cardano,f.Ripple,f.Stellar,f.Sui,(u)=>o(u).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,...W,approveAssetValue:K,disconnectAll:B,disconnectChain:S,estimateTransactionFee:U,getAddress:F,getAllWallets:O,getBalance:I,getWallet:o,getWalletWithBalance:x,isAssetValueApproved:D,signMessage:j,signTypedData:H,swap:G,transfer:L,validateAddress:X,verifyMessage:Q}}export{ie as SwapKit,ae as getRouteApprovalAssetValue,ne as resolveRoutePluginName};
@@ -49,9 +49,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
49
49
  ADI: ChainWallet<Chain.Adi> & {
50
50
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
51
51
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
52
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
52
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
53
53
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
54
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
54
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
55
55
  value: string;
56
56
  to: string;
57
57
  data: string;
@@ -275,9 +275,181 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
275
275
  ARB: ChainWallet<Chain.Arbitrum> & {
276
276
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
277
277
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
278
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
278
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
279
279
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
280
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
280
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
281
+ value: string;
282
+ to: string;
283
+ data: string;
284
+ from?: string;
285
+ type?: number;
286
+ nonce?: number;
287
+ gasLimit?: bigint;
288
+ gasPrice?: bigint;
289
+ maxPriorityFeePerGas?: bigint;
290
+ maxFeePerGas?: bigint;
291
+ chainId?: bigint;
292
+ accessList?: import("ethers").AccessList;
293
+ authorizationList?: Array<import("ethers").Authorization>;
294
+ customData?: any;
295
+ blockTag?: import("ethers").BlockTag;
296
+ enableCcipRead?: boolean;
297
+ }>;
298
+ createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
299
+ createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
300
+ value: string;
301
+ to: string;
302
+ data: string;
303
+ from?: string;
304
+ type?: number;
305
+ nonce?: number;
306
+ gasLimit?: bigint;
307
+ gasPrice?: bigint;
308
+ maxPriorityFeePerGas?: bigint;
309
+ maxFeePerGas?: bigint;
310
+ chainId?: bigint;
311
+ accessList?: import("ethers").AccessList;
312
+ authorizationList?: Array<import("ethers").Authorization>;
313
+ customData?: any;
314
+ blockTag?: import("ethers").BlockTag;
315
+ enableCcipRead?: boolean;
316
+ }>;
317
+ createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
318
+ gasLimit: bigint;
319
+ value: string;
320
+ data: string;
321
+ from: string;
322
+ to: string;
323
+ maxFeePerGas: bigint;
324
+ maxPriorityFeePerGas: bigint;
325
+ gasPrice?: undefined;
326
+ type?: number | undefined;
327
+ nonce?: number | undefined;
328
+ } | {
329
+ gasLimit: bigint;
330
+ value: string;
331
+ data: string;
332
+ from: string;
333
+ to: string;
334
+ gasPrice: bigint;
335
+ maxFeePerGas?: undefined;
336
+ maxPriorityFeePerGas?: undefined;
337
+ type?: number | undefined;
338
+ nonce?: number | undefined;
339
+ } | {
340
+ value: string;
341
+ to: string;
342
+ data: string;
343
+ from?: string;
344
+ type?: number;
345
+ nonce?: number;
346
+ gasLimit?: bigint;
347
+ gasPrice?: bigint;
348
+ maxPriorityFeePerGas?: bigint;
349
+ maxFeePerGas?: bigint;
350
+ chainId?: bigint;
351
+ accessList?: import("ethers").AccessList;
352
+ authorizationList?: Array<import("ethers").Authorization>;
353
+ customData?: any;
354
+ blockTag?: import("ethers").BlockTag;
355
+ enableCcipRead?: boolean;
356
+ }>;
357
+ createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
358
+ gasLimit: bigint;
359
+ value: string;
360
+ data: string;
361
+ from: string;
362
+ to: string;
363
+ maxFeePerGas: bigint;
364
+ maxPriorityFeePerGas: bigint;
365
+ gasPrice?: undefined;
366
+ type?: number | undefined;
367
+ nonce?: number | undefined;
368
+ } | {
369
+ gasLimit: bigint;
370
+ value: string;
371
+ data: string;
372
+ from: string;
373
+ to: string;
374
+ gasPrice: bigint;
375
+ maxFeePerGas?: undefined;
376
+ maxPriorityFeePerGas?: undefined;
377
+ type?: number | undefined;
378
+ nonce?: number | undefined;
379
+ } | {
380
+ value: string;
381
+ to: string;
382
+ data: string;
383
+ from?: string;
384
+ type?: number;
385
+ nonce?: number;
386
+ gasLimit?: bigint;
387
+ gasPrice?: bigint;
388
+ maxPriorityFeePerGas?: bigint;
389
+ maxFeePerGas?: bigint;
390
+ chainId?: bigint;
391
+ accessList?: import("ethers").AccessList;
392
+ authorizationList?: Array<import("ethers").Authorization>;
393
+ customData?: any;
394
+ blockTag?: import("ethers").BlockTag;
395
+ enableCcipRead?: boolean;
396
+ }>;
397
+ EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
398
+ estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
399
+ estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
400
+ assetValue: import("@swapkit/helpers").AssetValue;
401
+ funcName?: string;
402
+ funcParams?: unknown[];
403
+ txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
404
+ data?: string;
405
+ }) => Promise<bigint>;
406
+ estimateGasPrices: () => Promise<{
407
+ average: {
408
+ gasPrice?: bigint;
409
+ l1GasPrice?: bigint;
410
+ maxFeePerGas?: bigint;
411
+ maxPriorityFeePerGas?: bigint;
412
+ };
413
+ fast: {
414
+ gasPrice?: bigint;
415
+ l1GasPrice?: bigint;
416
+ maxFeePerGas?: bigint;
417
+ maxPriorityFeePerGas?: bigint;
418
+ };
419
+ fastest: {
420
+ gasPrice?: bigint;
421
+ l1GasPrice?: bigint;
422
+ maxFeePerGas?: bigint;
423
+ maxPriorityFeePerGas?: bigint;
424
+ };
425
+ }>;
426
+ estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
427
+ feeOption: FeeOption;
428
+ }) => Promise<import("@swapkit/helpers").AssetValue>;
429
+ getAddress: () => string | Promise<string> | undefined;
430
+ getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
431
+ getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
432
+ isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
433
+ sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
434
+ feeOptionKey?: FeeOption;
435
+ sweep?: boolean;
436
+ }) => Promise<string>;
437
+ signAuthorization: ((params: {
438
+ address: string;
439
+ nonce?: number | bigint;
440
+ chainId?: bigint;
441
+ }) => Promise<import("ethers").Authorization>) | undefined;
442
+ signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
443
+ signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
444
+ transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
445
+ validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
446
+ };
447
+ ARC: ChainWallet<Chain.Arc> & {
448
+ approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
449
+ approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
450
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
451
+ call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
452
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
281
453
  value: string;
282
454
  to: string;
283
455
  data: string;
@@ -447,9 +619,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
447
619
  AURORA: ChainWallet<Chain.Aurora> & {
448
620
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
449
621
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
450
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
622
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
451
623
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
452
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
624
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
453
625
  value: string;
454
626
  to: string;
455
627
  data: string;
@@ -619,9 +791,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
619
791
  AVAX: ChainWallet<Chain.Avalanche> & {
620
792
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
621
793
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
622
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
794
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
623
795
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
624
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
796
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
625
797
  value: string;
626
798
  to: string;
627
799
  data: string;
@@ -798,9 +970,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
798
970
  getL1GasPrice: () => Promise<bigint | undefined>;
799
971
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
800
972
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
801
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
973
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
802
974
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
803
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
975
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
804
976
  value: string;
805
977
  to: string;
806
978
  data: string;
@@ -969,9 +1141,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
969
1141
  BERA: ChainWallet<Chain.Berachain> & {
970
1142
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
971
1143
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
972
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
1144
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
973
1145
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
974
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
1146
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
975
1147
  value: string;
976
1148
  to: string;
977
1149
  data: string;
@@ -1141,9 +1313,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
1141
1313
  BSC: ChainWallet<Chain.BinanceSmartChain> & {
1142
1314
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
1143
1315
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
1144
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
1316
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
1145
1317
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
1146
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
1318
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
1147
1319
  value: string;
1148
1320
  to: string;
1149
1321
  data: string;
@@ -1373,6 +1545,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
1373
1545
  getAddressFromKeys: (keys: {
1374
1546
  publicKey: Uint8Array;
1375
1547
  }) => string;
1548
+ getAddressType: (address: string) => "pkh" | "sh" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
1376
1549
  getBalance: (address: string, scamFilter?: boolean) => Promise<AssetValue[]>;
1377
1550
  getExtendedPublicKey: () => string | undefined;
1378
1551
  getExtendedPublicKeyInfo: ({ accountIndex }?: {
@@ -1437,7 +1610,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
1437
1610
  recipient: string;
1438
1611
  assetValue: AssetValue;
1439
1612
  memo?: string;
1440
- feeRate?: number;
1613
+ feeRate? /**
1614
+ * @Public
1615
+ */: number;
1441
1616
  feeOptionKey?: FeeOption;
1442
1617
  changeAddress?: string;
1443
1618
  sweep?: boolean;
@@ -1534,6 +1709,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
1534
1709
  feeRate?: number;
1535
1710
  fetchTxHex?: boolean;
1536
1711
  }) => Promise<import("@swapkit/helpers").AssetValue>;
1712
+ getAddressType: (address: string) => "pkh" | "sh" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
1537
1713
  getExtendedPublicKey: () => string | undefined;
1538
1714
  getExtendedPublicKeyInfo: ({ accountIndex }?: {
1539
1715
  accountIndex?: number;
@@ -1596,9 +1772,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
1596
1772
  BOTANIX: ChainWallet<Chain.Botanix> & {
1597
1773
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
1598
1774
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
1599
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
1775
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
1600
1776
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
1601
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
1777
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
1602
1778
  value: string;
1603
1779
  to: string;
1604
1780
  data: string;
@@ -1803,9 +1979,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
1803
1979
  CORE: ChainWallet<Chain.Core> & {
1804
1980
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
1805
1981
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
1806
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
1982
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
1807
1983
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
1808
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
1984
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
1809
1985
  value: string;
1810
1986
  to: string;
1811
1987
  data: string;
@@ -1975,9 +2151,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
1975
2151
  CORN: ChainWallet<Chain.Corn> & {
1976
2152
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
1977
2153
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
1978
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
2154
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
1979
2155
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
1980
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
2156
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
1981
2157
  value: string;
1982
2158
  to: string;
1983
2159
  data: string;
@@ -2179,9 +2355,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
2179
2355
  CRO: ChainWallet<Chain.Cronos> & {
2180
2356
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
2181
2357
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
2182
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
2358
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
2183
2359
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
2184
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
2360
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
2185
2361
  value: string;
2186
2362
  to: string;
2187
2363
  data: string;
@@ -2411,6 +2587,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
2411
2587
  getAddressFromKeys: (keys: {
2412
2588
  publicKey: Uint8Array;
2413
2589
  }) => string;
2590
+ getAddressType: (address: string) => "pkh" | "sh" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
2414
2591
  getBalance: (address: string, scamFilter?: boolean) => Promise<AssetValue[]>;
2415
2592
  getExtendedPublicKey: () => string | undefined;
2416
2593
  getExtendedPublicKeyInfo: ({ accountIndex }?: {
@@ -2475,7 +2652,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
2475
2652
  recipient: string;
2476
2653
  assetValue: AssetValue;
2477
2654
  memo?: string;
2478
- feeRate?: number;
2655
+ feeRate? /**
2656
+ * @Public
2657
+ */: number;
2479
2658
  feeOptionKey?: FeeOption;
2480
2659
  changeAddress?: string;
2481
2660
  sweep?: boolean;
@@ -2545,6 +2724,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
2545
2724
  getAddressFromKeys: (keys: {
2546
2725
  publicKey: Uint8Array;
2547
2726
  }) => string;
2727
+ getAddressType: (address: string) => "pkh" | "sh" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
2548
2728
  getBalance: (address: string, scamFilter?: boolean) => Promise<AssetValue[]>;
2549
2729
  getExtendedPublicKey: () => string | undefined;
2550
2730
  getExtendedPublicKeyInfo: ({ accountIndex }?: {
@@ -2609,7 +2789,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
2609
2789
  recipient: string;
2610
2790
  assetValue: AssetValue;
2611
2791
  memo?: string;
2612
- feeRate?: number;
2792
+ feeRate? /**
2793
+ * @Public
2794
+ */: number;
2613
2795
  feeOptionKey?: FeeOption;
2614
2796
  changeAddress?: string;
2615
2797
  sweep?: boolean;
@@ -2623,9 +2805,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
2623
2805
  }[], multicallAddress?: string, funcName?: string, feeOptionKey?: FeeOption) => Promise<string>;
2624
2806
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
2625
2807
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
2626
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
2808
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
2627
2809
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
2628
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
2810
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
2629
2811
  value: string;
2630
2812
  to: string;
2631
2813
  data: string;
@@ -2795,9 +2977,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
2795
2977
  GNO: ChainWallet<Chain.Gnosis> & {
2796
2978
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
2797
2979
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
2798
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
2980
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
2799
2981
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
2800
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
2982
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
2801
2983
  value: string;
2802
2984
  to: string;
2803
2985
  data: string;
@@ -2999,9 +3181,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
2999
3181
  HYPEREVM: ChainWallet<Chain.Hyperevm> & {
3000
3182
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
3001
3183
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
3002
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
3184
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
3003
3185
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
3004
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
3186
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
3005
3187
  value: string;
3006
3188
  to: string;
3007
3189
  data: string;
@@ -3311,6 +3493,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
3311
3493
  getAddressFromKeys: (keys: {
3312
3494
  publicKey: Uint8Array;
3313
3495
  }) => string;
3496
+ getAddressType: (address: string) => "pkh" | "sh" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
3314
3497
  getBalance: (address: string, scamFilter?: boolean) => Promise<AssetValue[]>;
3315
3498
  getExtendedPublicKey: () => string | undefined;
3316
3499
  getExtendedPublicKeyInfo: ({ accountIndex }?: {
@@ -3375,7 +3558,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
3375
3558
  recipient: string;
3376
3559
  assetValue: AssetValue;
3377
3560
  memo?: string;
3378
- feeRate?: number;
3561
+ feeRate? /**
3562
+ * @Public
3563
+ */: number;
3379
3564
  feeOptionKey?: FeeOption;
3380
3565
  changeAddress?: string;
3381
3566
  sweep?: boolean;
@@ -3385,9 +3570,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
3385
3570
  LINEA: ChainWallet<Chain.Linea> & {
3386
3571
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
3387
3572
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
3388
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
3573
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
3389
3574
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
3390
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
3575
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
3391
3576
  value: string;
3392
3577
  to: string;
3393
3578
  data: string;
@@ -3558,9 +3743,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
3558
3743
  MEGAETH: ChainWallet<Chain.MegaETH> & {
3559
3744
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
3560
3745
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
3561
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
3746
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
3562
3747
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
3563
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
3748
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
3564
3749
  value: string;
3565
3750
  to: string;
3566
3751
  data: string;
@@ -3730,9 +3915,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
3730
3915
  MONAD: ChainWallet<Chain.Monad> & {
3731
3916
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
3732
3917
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
3733
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
3918
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
3734
3919
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
3735
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
3920
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
3736
3921
  value: string;
3737
3922
  to: string;
3738
3923
  data: string;
@@ -3982,9 +4167,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
3982
4167
  getL1GasPrice: () => Promise<bigint | undefined>;
3983
4168
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
3984
4169
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
3985
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
4170
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
3986
4171
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
3987
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
4172
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
3988
4173
  value: string;
3989
4174
  to: string;
3990
4175
  data: string;
@@ -4153,9 +4338,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
4153
4338
  XPL: ChainWallet<Chain.Plasma> & {
4154
4339
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
4155
4340
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
4156
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
4341
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
4157
4342
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
4158
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
4343
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
4159
4344
  value: string;
4160
4345
  to: string;
4161
4346
  data: string;
@@ -4347,9 +4532,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
4347
4532
  POL: ChainWallet<Chain.Polygon> & {
4348
4533
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
4349
4534
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
4350
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
4535
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
4351
4536
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
4352
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
4537
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
4353
4538
  value: string;
4354
4539
  to: string;
4355
4540
  data: string;
@@ -4564,9 +4749,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
4564
4749
  HOOD: ChainWallet<Chain.Robinhood> & {
4565
4750
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
4566
4751
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
4567
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
4752
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
4568
4753
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
4569
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
4754
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
4570
4755
  value: string;
4571
4756
  to: string;
4572
4757
  data: string;
@@ -4758,9 +4943,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
4758
4943
  SONIC: ChainWallet<Chain.Sonic> & {
4759
4944
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
4760
4945
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
4761
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
4946
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
4762
4947
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
4763
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
4948
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
4764
4949
  value: string;
4765
4950
  to: string;
4766
4951
  data: string;
@@ -5041,9 +5226,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
5041
5226
  getL1GasPrice: () => Promise<bigint | undefined>;
5042
5227
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
5043
5228
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
5044
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
5229
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
5045
5230
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
5046
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
5231
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
5047
5232
  value: string;
5048
5233
  to: string;
5049
5234
  data: string;
@@ -5212,9 +5397,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
5212
5397
  XLAYER: ChainWallet<Chain.XLayer> & {
5213
5398
  approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
5214
5399
  approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
5215
- broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
5400
+ broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
5216
5401
  call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
5217
- createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
5402
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
5218
5403
  value: string;
5219
5404
  to: string;
5220
5405
  data: string;
@@ -5441,6 +5626,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
5441
5626
  getAddressFromKeys: (keys: {
5442
5627
  publicKey: Uint8Array;
5443
5628
  }) => string;
5629
+ getAddressType: (address: string) => "pkh" | "sh" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
5444
5630
  getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
5445
5631
  getExtendedPublicKey: () => string | undefined;
5446
5632
  getExtendedPublicKeyInfo: ({ accountIndex }?: {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "author": "swapkit-dev",
3
3
  "dependencies": {
4
- "@swapkit/helpers": "5.2.1",
5
- "@swapkit/plugins": "5.0.5",
6
- "@swapkit/toolboxes": "5.2.1",
7
- "@swapkit/wallet-core": "5.0.5"
4
+ "@swapkit/helpers": "5.4.0",
5
+ "@swapkit/plugins": "5.0.7",
6
+ "@swapkit/toolboxes": "5.4.0",
7
+ "@swapkit/wallet-core": "5.0.7"
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.0.5"
37
+ "version": "5.0.7"
38
38
  }