@swapkit/wallets 4.2.2 → 4.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/near-wallet-selector/index.cjs +2 -2
- package/dist/src/near-wallet-selector/index.cjs.map +3 -3
- package/dist/src/near-wallet-selector/index.js +2 -2
- package/dist/src/near-wallet-selector/index.js.map +3 -3
- package/dist/types/near-wallet-selector/index.d.ts.map +1 -1
- package/package.json +8 -24
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var v={};Z(v,{walletSelectorWallet:()=>U,WALLET_SELECTOR_SUPPORTED_CHAINS:()=>f});module.exports=Y(v);var N=require("@near-wallet-selector/modal-ui-js/styles.css"),k=require("@swapkit/helpers"),R=require("@swapkit/toolboxes/near"),H=require("@swapkit/wallet-core");function _(z){return{getAddress:async()=>{let A=(await z.getAccounts())[0]?.accountId;if(!A)throw new k.SwapKitError("wallet_connection_rejected_by_user");return A},getPublicKey:()=>{throw new k.SwapKitError("wallet_near_method_not_supported")},signAndSendTransactions:async(q)=>{return(await z.signAndSendTransactions(q))?.[0]?.transaction_outcome.id||""},signDelegateAction:()=>{throw new k.SwapKitError("wallet_near_method_not_supported")},signNep413Message:()=>{throw new k.SwapKitError("wallet_near_method_not_supported")},signTransaction:(q)=>{if(!z.signTransaction)throw new k.SwapKitError("wallet_near_method_not_supported");return z.signTransaction(q)}}}function $(z,q){return new Promise((A)=>{let D=z.store.observable.subscribe((B)=>{if(B.selectedWalletId)D.unsubscribe(),q.hide(),A()});q.show()})}async function j(z){let{setupWalletSelector:q}=await import("@near-wallet-selector/core"),{setupModal:A}=await import("@near-wallet-selector/modal-ui-js"),D=k.SKConfig.get("integrations")?.nearWalletSelector?.contractId||"",B=await q({modules:[...z||[]],network:"mainnet"});if(!B.isSignedIn()){let L=A(B,{contractId:D,description:"Connect your NEAR wallet to SwapKit"});await $(B,L)}let J=await B.wallet(),G=_(J),V=await R.getNearToolbox({signer:G}),X=await G.getAddress();return{...V,address:X,disconnect:async()=>{try{await J.signOut()}catch(L){throw new k.SwapKitError("wallet_connection_rejected_by_user",L)}}}}var U=H.createWallet({connect:({addChain:z,supportedChains:q,walletType:A})=>async function(B,P){if(k.filterSupportedChains({chains:B,supportedChains:q,walletType:A}).length===0)throw new k.SwapKitError("wallet_chain_not_supported",{chain:B[0],wallet:k.WalletOption.WALLET_SELECTOR});let G=await j(P);return z({...G,balance:[],chain:k.Chain.Near,walletType:A}),!0},name:"connectWalletSelector",supportedChains:[k.Chain.Near],walletType:k.WalletOption.WALLET_SELECTOR}),f=H.getWalletSupportedChains(U);
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=8C1538B4D7E5B57764756E2164756E21
|
|
4
4
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/near-wallet-selector/index.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import type { Wallet, WalletModuleFactory } from \"@near-wallet-selector/core\";\nimport \"@near-wallet-selector/modal-ui-js/styles.css\";\nimport type { Transaction } from \"@near-js/transactions\";\nimport { Chain, filterSupportedChains, SKConfig, SwapKitError, WalletOption } from \"@swapkit/helpers\";\nimport { getNearToolbox } from \"@swapkit/toolboxes/near\";\nimport { createWallet, getWalletSupportedChains } from \"@swapkit/wallet-core\";\n\nfunction createNearSigner(wallet: Wallet) {\n return {\n getAddress: async () => {\n const accounts = await wallet.getAccounts();\n const accountId = accounts[0]?.accountId;\n\n if (!accountId) {\n throw new SwapKitError(\"wallet_connection_rejected_by_user\");\n }\n\n return accountId;\n },\n\n getPublicKey: () => {\n throw new SwapKitError(\"wallet_near_method_not_supported\");\n },\n signAndSendTransactions: async (transactions: { transactions: Transaction[] }) => {\n const result = await wallet.signAndSendTransactions(transactions);\n return result?.[0]?.transaction_outcome.id || \"\";\n },\n\n signDelegateAction: () => {\n throw new SwapKitError(\"wallet_near_method_not_supported\");\n },\n\n signNep413Message: () => {\n throw new SwapKitError(\"wallet_near_method_not_supported\");\n },\n\n signTransaction: (params: Transaction) => {\n if (!wallet.signTransaction) {\n throw new SwapKitError(\"wallet_near_method_not_supported\");\n }\n return wallet.signTransaction(params);\n },\n };\n}\n\nfunction waitForWalletSelection(selector: any, modal: any) {\n return new Promise<void>((resolve) => {\n const subscription = selector.store.observable.subscribe((state: any) => {\n if (state.selectedWalletId) {\n subscription.unsubscribe();\n modal.hide();\n resolve();\n }\n });\n\n modal.show();\n });\n}\n\nasync function getWalletMethods(walletFactories?: WalletModuleFactory[]) {\n const { setupWalletSelector } = await import(\"@near-wallet-selector/core\");\n const {
|
|
5
|
+
"import type { Wallet, WalletModuleFactory } from \"@near-wallet-selector/core\";\nimport \"@near-wallet-selector/modal-ui-js/styles.css\";\nimport type { Transaction } from \"@near-js/transactions\";\nimport { Chain, filterSupportedChains, SKConfig, SwapKitError, WalletOption } from \"@swapkit/helpers\";\nimport { getNearToolbox } from \"@swapkit/toolboxes/near\";\nimport { createWallet, getWalletSupportedChains } from \"@swapkit/wallet-core\";\n\nfunction createNearSigner(wallet: Wallet) {\n return {\n getAddress: async () => {\n const accounts = await wallet.getAccounts();\n const accountId = accounts[0]?.accountId;\n\n if (!accountId) {\n throw new SwapKitError(\"wallet_connection_rejected_by_user\");\n }\n\n return accountId;\n },\n\n getPublicKey: () => {\n throw new SwapKitError(\"wallet_near_method_not_supported\");\n },\n signAndSendTransactions: async (transactions: { transactions: Transaction[] }) => {\n const result = await wallet.signAndSendTransactions(transactions);\n return result?.[0]?.transaction_outcome.id || \"\";\n },\n\n signDelegateAction: () => {\n throw new SwapKitError(\"wallet_near_method_not_supported\");\n },\n\n signNep413Message: () => {\n throw new SwapKitError(\"wallet_near_method_not_supported\");\n },\n\n signTransaction: (params: Transaction) => {\n if (!wallet.signTransaction) {\n throw new SwapKitError(\"wallet_near_method_not_supported\");\n }\n return wallet.signTransaction(params);\n },\n };\n}\n\nfunction waitForWalletSelection(selector: any, modal: any) {\n return new Promise<void>((resolve) => {\n const subscription = selector.store.observable.subscribe((state: any) => {\n if (state.selectedWalletId) {\n subscription.unsubscribe();\n modal.hide();\n resolve();\n }\n });\n\n modal.show();\n });\n}\n\nasync function getWalletMethods(walletFactories?: WalletModuleFactory[]) {\n const { setupWalletSelector } = await import(\"@near-wallet-selector/core\");\n const { setupModal } = await import(\"@near-wallet-selector/modal-ui-js\");\n\n const contractId = SKConfig.get(\"integrations\")?.nearWalletSelector?.contractId || \"\";\n const selector = await setupWalletSelector({ modules: [...(walletFactories || [])], network: \"mainnet\" });\n\n const isSignedIn = selector.isSignedIn();\n\n if (!isSignedIn) {\n // Only show modal if not already connected\n const modal = setupModal(selector, { contractId, description: \"Connect your NEAR wallet to SwapKit\" });\n\n await waitForWalletSelection(selector, modal);\n }\n\n const wallet = await selector.wallet();\n const signer = createNearSigner(wallet);\n const toolbox = await getNearToolbox({ signer });\n const address = await signer.getAddress();\n\n const disconnect = async () => {\n try {\n await wallet.signOut();\n } catch (error) {\n throw new SwapKitError(\"wallet_connection_rejected_by_user\", error);\n }\n };\n\n return { ...toolbox, address, disconnect };\n}\n\nexport const walletSelectorWallet = createWallet({\n connect: ({ addChain, supportedChains, walletType }) =>\n async function connectWalletSelector(chains: Chain[], walletFactories?: WalletModuleFactory[]) {\n const filteredChains = filterSupportedChains({ chains, supportedChains, walletType });\n\n if (filteredChains.length === 0) {\n throw new SwapKitError(\"wallet_chain_not_supported\", {\n chain: chains[0],\n wallet: WalletOption.WALLET_SELECTOR,\n });\n }\n\n const walletMethods = await getWalletMethods(walletFactories);\n\n addChain({ ...walletMethods, balance: [], chain: Chain.Near, walletType });\n\n return true;\n },\n name: \"connectWalletSelector\",\n supportedChains: [Chain.Near],\n walletType: WalletOption.WALLET_SELECTOR,\n});\n\nexport const WALLET_SELECTOR_SUPPORTED_CHAINS = getWalletSupportedChains(walletSelectorWallet);\n"
|
|
6
6
|
],
|
|
7
|
-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7F,GAFuB,wBAAsB,CAAE,SAAQ,kBAAiB,YAAW,CAAC,EAEjE,SAAW,EAC5B,MAAM,IAAI,eAAa,6BAA8B,CACnD,MAAO,EAAO,GACd,OAAQ,eAAa,eACvB,CAAC,EAGH,IAAM,EAAgB,MAAM,EAAiB,CAAe,EAI5D,OAFA,EAAS,IAAK,EAAe,QAAS,CAAC,EAAG,MAAO,QAAM,KAAM,YAAW,CAAC,EAElE,IAEX,KAAM,wBACN,gBAAiB,CAAC,QAAM,IAAI,EAC5B,WAAY,eAAa,eAC3B,CAAC,EAEY,EAAmC,2BAAyB,CAAoB",
|
|
8
|
+
"debugId": "8C1538B4D7E5B57764756E2164756E21",
|
|
9
9
|
"names": []
|
|
10
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as
|
|
1
|
+
import{F as P,G as Q}from"../../chunk-jgq4njag.js";import"@near-wallet-selector/modal-ui-js/styles.css";import{Chain as R,filterSupportedChains as Y,SKConfig as Z,SwapKitError as B,WalletOption as U}from"@swapkit/helpers";import{getNearToolbox as _}from"@swapkit/toolboxes/near";import{createWallet as $,getWalletSupportedChains as j}from"@swapkit/wallet-core";function f(q){return{getAddress:async()=>{let z=(await q.getAccounts())[0]?.accountId;if(!z)throw new B("wallet_connection_rejected_by_user");return z},getPublicKey:()=>{throw new B("wallet_near_method_not_supported")},signAndSendTransactions:async(k)=>{return(await q.signAndSendTransactions(k))?.[0]?.transaction_outcome.id||""},signDelegateAction:()=>{throw new B("wallet_near_method_not_supported")},signNep413Message:()=>{throw new B("wallet_near_method_not_supported")},signTransaction:(k)=>{if(!q.signTransaction)throw new B("wallet_near_method_not_supported");return q.signTransaction(k)}}}function v(q,k){return new Promise((z)=>{let D=q.store.observable.subscribe((A)=>{if(A.selectedWalletId)D.unsubscribe(),k.hide(),z()});k.show()})}async function x(q){let{setupWalletSelector:k}=await import("@near-wallet-selector/core"),{setupModal:z}=await import("@near-wallet-selector/modal-ui-js"),D=Z.get("integrations")?.nearWalletSelector?.contractId||"",A=await k({modules:[...q||[]],network:"mainnet"});if(!A.isSignedIn()){let J=z(A,{contractId:D,description:"Connect your NEAR wallet to SwapKit"});await v(A,J)}let H=await A.wallet(),G=f(H),V=await _({signer:G}),X=await G.getAddress();return{...V,address:X,disconnect:async()=>{try{await H.signOut()}catch(J){throw new B("wallet_connection_rejected_by_user",J)}}}}var N=$({connect:({addChain:q,supportedChains:k,walletType:z})=>async function(A,L){if(Y({chains:A,supportedChains:k,walletType:z}).length===0)throw new B("wallet_chain_not_supported",{chain:A[0],wallet:U.WALLET_SELECTOR});let G=await x(L);return q({...G,balance:[],chain:R.Near,walletType:z}),!0},name:"connectWalletSelector",supportedChains:[R.Near],walletType:U.WALLET_SELECTOR}),F=j(N);export{N as walletSelectorWallet,F as WALLET_SELECTOR_SUPPORTED_CHAINS};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=7A5628BDAE41535B64756E2164756E21
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/near-wallet-selector/index.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import type { Wallet, WalletModuleFactory } from \"@near-wallet-selector/core\";\nimport \"@near-wallet-selector/modal-ui-js/styles.css\";\nimport type { Transaction } from \"@near-js/transactions\";\nimport { Chain, filterSupportedChains, SKConfig, SwapKitError, WalletOption } from \"@swapkit/helpers\";\nimport { getNearToolbox } from \"@swapkit/toolboxes/near\";\nimport { createWallet, getWalletSupportedChains } from \"@swapkit/wallet-core\";\n\nfunction createNearSigner(wallet: Wallet) {\n return {\n getAddress: async () => {\n const accounts = await wallet.getAccounts();\n const accountId = accounts[0]?.accountId;\n\n if (!accountId) {\n throw new SwapKitError(\"wallet_connection_rejected_by_user\");\n }\n\n return accountId;\n },\n\n getPublicKey: () => {\n throw new SwapKitError(\"wallet_near_method_not_supported\");\n },\n signAndSendTransactions: async (transactions: { transactions: Transaction[] }) => {\n const result = await wallet.signAndSendTransactions(transactions);\n return result?.[0]?.transaction_outcome.id || \"\";\n },\n\n signDelegateAction: () => {\n throw new SwapKitError(\"wallet_near_method_not_supported\");\n },\n\n signNep413Message: () => {\n throw new SwapKitError(\"wallet_near_method_not_supported\");\n },\n\n signTransaction: (params: Transaction) => {\n if (!wallet.signTransaction) {\n throw new SwapKitError(\"wallet_near_method_not_supported\");\n }\n return wallet.signTransaction(params);\n },\n };\n}\n\nfunction waitForWalletSelection(selector: any, modal: any) {\n return new Promise<void>((resolve) => {\n const subscription = selector.store.observable.subscribe((state: any) => {\n if (state.selectedWalletId) {\n subscription.unsubscribe();\n modal.hide();\n resolve();\n }\n });\n\n modal.show();\n });\n}\n\nasync function getWalletMethods(walletFactories?: WalletModuleFactory[]) {\n const { setupWalletSelector } = await import(\"@near-wallet-selector/core\");\n const {
|
|
5
|
+
"import type { Wallet, WalletModuleFactory } from \"@near-wallet-selector/core\";\nimport \"@near-wallet-selector/modal-ui-js/styles.css\";\nimport type { Transaction } from \"@near-js/transactions\";\nimport { Chain, filterSupportedChains, SKConfig, SwapKitError, WalletOption } from \"@swapkit/helpers\";\nimport { getNearToolbox } from \"@swapkit/toolboxes/near\";\nimport { createWallet, getWalletSupportedChains } from \"@swapkit/wallet-core\";\n\nfunction createNearSigner(wallet: Wallet) {\n return {\n getAddress: async () => {\n const accounts = await wallet.getAccounts();\n const accountId = accounts[0]?.accountId;\n\n if (!accountId) {\n throw new SwapKitError(\"wallet_connection_rejected_by_user\");\n }\n\n return accountId;\n },\n\n getPublicKey: () => {\n throw new SwapKitError(\"wallet_near_method_not_supported\");\n },\n signAndSendTransactions: async (transactions: { transactions: Transaction[] }) => {\n const result = await wallet.signAndSendTransactions(transactions);\n return result?.[0]?.transaction_outcome.id || \"\";\n },\n\n signDelegateAction: () => {\n throw new SwapKitError(\"wallet_near_method_not_supported\");\n },\n\n signNep413Message: () => {\n throw new SwapKitError(\"wallet_near_method_not_supported\");\n },\n\n signTransaction: (params: Transaction) => {\n if (!wallet.signTransaction) {\n throw new SwapKitError(\"wallet_near_method_not_supported\");\n }\n return wallet.signTransaction(params);\n },\n };\n}\n\nfunction waitForWalletSelection(selector: any, modal: any) {\n return new Promise<void>((resolve) => {\n const subscription = selector.store.observable.subscribe((state: any) => {\n if (state.selectedWalletId) {\n subscription.unsubscribe();\n modal.hide();\n resolve();\n }\n });\n\n modal.show();\n });\n}\n\nasync function getWalletMethods(walletFactories?: WalletModuleFactory[]) {\n const { setupWalletSelector } = await import(\"@near-wallet-selector/core\");\n const { setupModal } = await import(\"@near-wallet-selector/modal-ui-js\");\n\n const contractId = SKConfig.get(\"integrations\")?.nearWalletSelector?.contractId || \"\";\n const selector = await setupWalletSelector({ modules: [...(walletFactories || [])], network: \"mainnet\" });\n\n const isSignedIn = selector.isSignedIn();\n\n if (!isSignedIn) {\n // Only show modal if not already connected\n const modal = setupModal(selector, { contractId, description: \"Connect your NEAR wallet to SwapKit\" });\n\n await waitForWalletSelection(selector, modal);\n }\n\n const wallet = await selector.wallet();\n const signer = createNearSigner(wallet);\n const toolbox = await getNearToolbox({ signer });\n const address = await signer.getAddress();\n\n const disconnect = async () => {\n try {\n await wallet.signOut();\n } catch (error) {\n throw new SwapKitError(\"wallet_connection_rejected_by_user\", error);\n }\n };\n\n return { ...toolbox, address, disconnect };\n}\n\nexport const walletSelectorWallet = createWallet({\n connect: ({ addChain, supportedChains, walletType }) =>\n async function connectWalletSelector(chains: Chain[], walletFactories?: WalletModuleFactory[]) {\n const filteredChains = filterSupportedChains({ chains, supportedChains, walletType });\n\n if (filteredChains.length === 0) {\n throw new SwapKitError(\"wallet_chain_not_supported\", {\n chain: chains[0],\n wallet: WalletOption.WALLET_SELECTOR,\n });\n }\n\n const walletMethods = await getWalletMethods(walletFactories);\n\n addChain({ ...walletMethods, balance: [], chain: Chain.Near, walletType });\n\n return true;\n },\n name: \"connectWalletSelector\",\n supportedChains: [Chain.Near],\n walletType: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EAAG,QAAS,SAAU,CAAC,EAIxG,GAAI,CAFe,EAAS,WAAW,EAEtB,CAEf,IAAM,EAAQ,EAAW,EAAU,CAAE,aAAY,YAAa,qCAAsC,CAAC,EAErG,MAAM,EAAuB,EAAU,CAAK,EAG9C,IAAM,EAAS,MAAM,EAAS,OAAO,EAC/B,EAAS,EAAiB,CAAM,EAChC,EAAU,MAAM,EAAe,CAAE,QAAO,CAAC,EACzC,EAAU,MAAM,EAAO,WAAW,EAUxC,MAAO,IAAK,EAAS,UAAS,WARX,SAAY,CAC7B,GAAI,CACF,MAAM,EAAO,QAAQ,EACrB,MAAO,EAAO,CACd,MAAM,IAAI,EAAa,qCAAsC,CAAK,GAI7B,EAGpC,IAAM,EAAuB,EAAa,CAC/C,QAAS,EAAG,WAAU,kBAAiB,gBACrC,cAAoC,CAAC,EAAiB,EAAyC,CAG7F,GAFuB,EAAsB,CAAE,SAAQ,kBAAiB,YAAW,CAAC,EAEjE,SAAW,EAC5B,MAAM,IAAI,EAAa,6BAA8B,CACnD,MAAO,EAAO,GACd,OAAQ,EAAa,eACvB,CAAC,EAGH,IAAM,EAAgB,MAAM,EAAiB,CAAe,EAI5D,OAFA,EAAS,IAAK,EAAe,QAAS,CAAC,EAAG,MAAO,EAAM,KAAM,YAAW,CAAC,EAElE,IAEX,KAAM,wBACN,gBAAiB,CAAC,EAAM,IAAI,EAC5B,WAAY,EAAa,eAC3B,CAAC,EAEY,EAAmC,EAAyB,CAAoB",
|
|
8
|
+
"debugId": "7A5628BDAE41535B64756E2164756E21",
|
|
9
9
|
"names": []
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/near-wallet-selector/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,8CAA8C,CAAC;AAEtD,OAAO,EAAE,KAAK,EAA+D,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/near-wallet-selector/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,8CAA8C,CAAC;AAEtD,OAAO,EAAE,KAAK,EAA+D,MAAM,kBAAkB,CAAC;AAwFtG,eAAO,MAAM,oBAAoB;;;;;;;CAqB/B,CAAC;AAEH,eAAO,MAAM,gCAAgC,cAAiD,CAAC"}
|
package/package.json
CHANGED
|
@@ -5,16 +5,8 @@
|
|
|
5
5
|
"@cosmjs/crypto": "~0.33.0",
|
|
6
6
|
"@cosmjs/proto-signing": "~0.33.0",
|
|
7
7
|
"@keplr-wallet/types": "~0.12.238",
|
|
8
|
-
"@near-wallet-selector/bitget-wallet": "~10.0.0",
|
|
9
8
|
"@near-wallet-selector/core": "~10.0.0",
|
|
10
|
-
"@near-wallet-selector/hot-wallet": "~10.0.0",
|
|
11
|
-
"@near-wallet-selector/meteor-wallet": "~10.0.0",
|
|
12
|
-
"@near-wallet-selector/meteor-wallet-app": "~10.0.0",
|
|
13
9
|
"@near-wallet-selector/modal-ui-js": "~10.0.0",
|
|
14
|
-
"@near-wallet-selector/my-near-wallet": "~10.0.0",
|
|
15
|
-
"@near-wallet-selector/near-mobile-wallet": "~10.0.0",
|
|
16
|
-
"@near-wallet-selector/nightly": "~10.0.0",
|
|
17
|
-
"@near-wallet-selector/okx-wallet": "~10.0.0",
|
|
18
10
|
"@passkeys/core": "~4.1.0",
|
|
19
11
|
"@passkeys/react": "~3.0.1",
|
|
20
12
|
"@radixdlt/babylon-gateway-api-sdk": "~1.10.0",
|
|
@@ -22,11 +14,11 @@
|
|
|
22
14
|
"@scure/base": "~1.2.0",
|
|
23
15
|
"@scure/bip39": "~1.6.0",
|
|
24
16
|
"@solana/web3.js": "~1.98.0",
|
|
25
|
-
"@swapkit/helpers": "4.3.
|
|
26
|
-
"@swapkit/toolboxes": "4.1.
|
|
27
|
-
"@swapkit/wallet-core": "4.0.
|
|
28
|
-
"@swapkit/wallet-hardware": "4.1.
|
|
29
|
-
"@swapkit/wallet-keystore": "4.0.
|
|
17
|
+
"@swapkit/helpers": "4.3.3",
|
|
18
|
+
"@swapkit/toolboxes": "4.1.8",
|
|
19
|
+
"@swapkit/wallet-core": "4.0.36",
|
|
20
|
+
"@swapkit/wallet-hardware": "4.1.35",
|
|
21
|
+
"@swapkit/wallet-keystore": "4.0.36",
|
|
30
22
|
"@trezor/connect-web": "~9.6.0",
|
|
31
23
|
"@walletconnect/modal": "~2.7.0",
|
|
32
24
|
"@walletconnect/sign-client": "~2.21.0",
|
|
@@ -45,16 +37,8 @@
|
|
|
45
37
|
"@cosmjs/crypto": "0.33.1",
|
|
46
38
|
"@cosmjs/proto-signing": "0.33.1",
|
|
47
39
|
"@keplr-wallet/types": "0.12.238",
|
|
48
|
-
"@near-wallet-selector/bitget-wallet": "10.0.0",
|
|
49
40
|
"@near-wallet-selector/core": "10.0.0",
|
|
50
|
-
"@near-wallet-selector/hot-wallet": "10.0.0",
|
|
51
|
-
"@near-wallet-selector/meteor-wallet": "10.0.0",
|
|
52
|
-
"@near-wallet-selector/meteor-wallet-app": "10.0.0",
|
|
53
41
|
"@near-wallet-selector/modal-ui-js": "10.0.0",
|
|
54
|
-
"@near-wallet-selector/my-near-wallet": "10.0.0",
|
|
55
|
-
"@near-wallet-selector/near-mobile-wallet": "10.0.0",
|
|
56
|
-
"@near-wallet-selector/nightly": "10.0.0",
|
|
57
|
-
"@near-wallet-selector/okx-wallet": "10.0.0",
|
|
58
42
|
"@passkeys/core": "4.1.0",
|
|
59
43
|
"@passkeys/react": "3.0.1",
|
|
60
44
|
"@radixdlt/babylon-gateway-api-sdk": "1.10.1",
|
|
@@ -62,8 +46,8 @@
|
|
|
62
46
|
"@scure/base": "1.2.6",
|
|
63
47
|
"@scure/bip39": "1.6.0",
|
|
64
48
|
"@solana/web3.js": "1.98.4",
|
|
65
|
-
"@swapkit/helpers": "4.3.
|
|
66
|
-
"@swapkit/toolboxes": "4.1.
|
|
49
|
+
"@swapkit/helpers": "4.3.3",
|
|
50
|
+
"@swapkit/toolboxes": "4.1.8",
|
|
67
51
|
"@trezor/connect-web": "9.6.2",
|
|
68
52
|
"@walletconnect/logger": "2.1.2",
|
|
69
53
|
"@walletconnect/modal": "2.7.0",
|
|
@@ -209,5 +193,5 @@
|
|
|
209
193
|
"type-check:go": "tsgo"
|
|
210
194
|
},
|
|
211
195
|
"type": "module",
|
|
212
|
-
"version": "4.2.
|
|
196
|
+
"version": "4.2.3"
|
|
213
197
|
}
|