@sodax/wallet-sdk-core 1.3.1-beta → 1.4.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/index.cjs +194 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -3
- package/dist/index.d.ts +28 -3
- package/dist/index.mjs +193 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as viem from 'viem';
|
|
2
2
|
import { Chain, PublicClient, WalletClient, Transport, Account, Hash as Hash$1, Address } from 'viem';
|
|
3
|
-
import { ChainId, IEvmWalletProvider, EvmRawTransaction, EvmRawTransactionReceipt, ISuiWalletProvider, SuiTransaction, SuiExecutionResult, SuiPaginatedCoins, IIconWalletProvider, IcxCallTransaction, IconTransactionResult, IInjectiveWalletProvider, JsonObject, InjectiveRawTransaction, InjectiveEoaAddress, InjectiveCoin, InjectiveExecuteResponse, ISolanaWalletProvider, SolanaRpcResponseAndContext, SolanaSignatureResult, TransactionSignature, SolanaRawTransactionInstruction, SolanaSerializedTransaction, SolanaBase58PublicKey, Hex as Hex$1, XDR, IStellarWalletProvider, StellarRawTransactionReceipt, AddressType, IBitcoinWalletProvider, INearWalletProvider, CallContractParams, NearRawTransaction } from '@sodax/types';
|
|
3
|
+
import { ChainId, IEvmWalletProvider, EvmRawTransaction, EvmRawTransactionReceipt, ISuiWalletProvider, SuiTransaction, SuiExecutionResult, SuiPaginatedCoins, IIconWalletProvider, IcxCallTransaction, IconTransactionResult, IInjectiveWalletProvider, JsonObject, InjectiveRawTransaction, InjectiveEoaAddress, InjectiveCoin, InjectiveExecuteResponse, ISolanaWalletProvider, SolanaRpcResponseAndContext, SolanaSignatureResult, TransactionSignature, SolanaRawTransactionInstruction, SolanaSerializedTransaction, SolanaBase58PublicKey, Hex as Hex$1, XDR, IStellarWalletProvider, StellarRawTransactionReceipt, IStacksWalletProvider, StacksTransactionParams, AddressType, IBitcoinWalletProvider, INearWalletProvider, CallContractParams, NearRawTransaction } from '@sodax/types';
|
|
4
4
|
import { SuiClient } from '@mysten/sui/client';
|
|
5
5
|
import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
|
|
6
6
|
import { Transaction } from '@mysten/sui/transactions';
|
|
@@ -13,6 +13,8 @@ import { ChainId as ChainId$1, EvmChainId } from '@injectivelabs/ts-types';
|
|
|
13
13
|
import { PublicKey, Connection, Commitment, RpcResponseAndContext, TokenAmount } from '@solana/web3.js';
|
|
14
14
|
import { SignerWalletAdapterProps } from '@solana/wallet-adapter-base';
|
|
15
15
|
import { Keypair } from '@stellar/stellar-sdk';
|
|
16
|
+
import { ClarityValue } from '@stacks/transactions';
|
|
17
|
+
import { StacksProvider } from '@stacks/connect';
|
|
16
18
|
import * as bitcoin from 'bitcoinjs-lib';
|
|
17
19
|
import { ECPairInterface } from 'ecpair';
|
|
18
20
|
import { Account as Account$1, JsonRpcProvider } from 'near-api-js';
|
|
@@ -345,6 +347,30 @@ declare class StellarWalletProvider implements IStellarWalletProvider {
|
|
|
345
347
|
waitForTransactionReceipt(txHash: string): Promise<StellarRawTransactionReceipt>;
|
|
346
348
|
}
|
|
347
349
|
|
|
350
|
+
type PrivateKeyStacksWalletConfig = {
|
|
351
|
+
privateKey: string;
|
|
352
|
+
endpoint?: string;
|
|
353
|
+
};
|
|
354
|
+
type BrowserExtensionStacksWalletConfig = {
|
|
355
|
+
address: string;
|
|
356
|
+
endpoint?: string;
|
|
357
|
+
provider?: StacksProvider;
|
|
358
|
+
};
|
|
359
|
+
type StacksWalletConfig = PrivateKeyStacksWalletConfig | BrowserExtensionStacksWalletConfig;
|
|
360
|
+
declare function isPrivateKeyStacksWalletConfig(config: StacksWalletConfig): config is PrivateKeyStacksWalletConfig;
|
|
361
|
+
declare function isBrowserExtensionStacksWalletConfig(config: StacksWalletConfig): config is BrowserExtensionStacksWalletConfig;
|
|
362
|
+
declare class StacksWalletProvider implements IStacksWalletProvider {
|
|
363
|
+
private readonly network;
|
|
364
|
+
private readonly wallet;
|
|
365
|
+
constructor(config: StacksWalletConfig);
|
|
366
|
+
sendTransaction(txParams: StacksTransactionParams): Promise<string>;
|
|
367
|
+
private sendTransactionWithPrivateKey;
|
|
368
|
+
private sendTransactionWithAdapter;
|
|
369
|
+
readContract(txParams: StacksTransactionParams): Promise<ClarityValue>;
|
|
370
|
+
getWalletAddress(): Promise<string>;
|
|
371
|
+
getBalance(address: string): Promise<bigint>;
|
|
372
|
+
}
|
|
373
|
+
|
|
348
374
|
type BitcoinNetwork = 'TESTNET' | 'MAINNET';
|
|
349
375
|
interface BitcoinWalletsKit {
|
|
350
376
|
getAccounts(): Promise<string[]>;
|
|
@@ -420,9 +446,8 @@ declare class NearWalletProvider implements INearWalletProvider {
|
|
|
420
446
|
private readonly wallet?;
|
|
421
447
|
constructor(config: NearWalletConfig);
|
|
422
448
|
getWalletAddress(): Promise<string>;
|
|
423
|
-
getWalletAddressBytes(): Promise<Hex$1>;
|
|
424
449
|
getRawTransaction(params: CallContractParams): Promise<NearRawTransaction>;
|
|
425
450
|
signAndSubmitTxn(transaction: NearRawTransaction): Promise<string>;
|
|
426
451
|
}
|
|
427
452
|
|
|
428
|
-
export { BigNumberToBigInt, type BitcoinNetwork, type BitcoinWalletConfig, BitcoinWalletError, BitcoinWalletProvider, type BitcoinWalletsKit, type BrowserExtensionBitcoinWalletConfig, type BrowserExtensionEvmWalletConfig, type BrowserExtensionIconWalletConfig, type BrowserExtensionInjectiveWalletConfig, type BrowserExtensionNearWalletConfig, type BrowserExtensionSolanaWalletConfig, type BrowserExtensionStellarWalletConfig, type BrowserExtensionSuiWallet, type BrowserExtensionSuiWalletConfig, type EvmWalletConfig, EvmWalletProvider, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type Hash, type Hex, type IconAddress, type IconBrowserExtensionWallet, type IconEoaAddress, type IconJsonRpcVersion, type IconPkWallet, type IconWallet, type IconWalletConfig, IconWalletProvider, type InjectiveWallet, type InjectiveWalletConfig, InjectiveWalletProvider, type JsonRpcPayloadResponse, type NearWalletConfig, NearWalletProvider, type PkSuiWallet, type PrivateKeyBitcoinWalletConfig, type PrivateKeyEvmWalletConfig, type PrivateKeyIconWalletConfig, type PrivateKeyNearWalletConfig, type PrivateKeySolanaWalletConfig, type PrivateKeyStellarWalletConfig, type PrivateKeySuiWalletConfig, type RelayRequestDetail, type RelayRequestSigning, type ResponseAddressType, type ResponseSigningType, type SecretInjectiveWalletConfig, type SolanaWalletConfig, SolanaWalletProvider, type StellarAddress, type StellarBrowserExtensionWallet, type StellarNetwork, type StellarPkWallet, type StellarWallet, type StellarWalletConfig, StellarWalletError, StellarWalletProvider, type SuiWallet, type SuiWalletConfig, SuiWalletProvider, getEvmViemChain, hyper, isBrowserExtensionEvmWalletConfig, isBrowserExtensionIconWalletConfig, isBrowserExtensionInjectiveWalletConfig, isBrowserExtensionNearWalletConfig, isBrowserExtensionStellarWalletConfig, isBrowserExtensionSuiWallet, isIconAddress, isIconBrowserExtensionWallet, isIconEoaAddress, isIconPkWallet, isJsonRpcPayloadResponse, isPkSuiWallet, isPrivateKeyEvmWalletConfig, isPrivateKeyIconWalletConfig, isPrivateKeyNearWalletConfig, isPrivateKeyStellarWalletConfig, isResponseAddressType, isResponseSigningType, isSecretInjectiveWalletConfig, isStellarBrowserExtensionWallet, isStellarPkWallet, isSuiWallet, isValidStellarNetwork, isValidStellarPrivateKey, requestAddress, requestJsonRpc, requestSigning };
|
|
453
|
+
export { BigNumberToBigInt, type BitcoinNetwork, type BitcoinWalletConfig, BitcoinWalletError, BitcoinWalletProvider, type BitcoinWalletsKit, type BrowserExtensionBitcoinWalletConfig, type BrowserExtensionEvmWalletConfig, type BrowserExtensionIconWalletConfig, type BrowserExtensionInjectiveWalletConfig, type BrowserExtensionNearWalletConfig, type BrowserExtensionSolanaWalletConfig, type BrowserExtensionStacksWalletConfig, type BrowserExtensionStellarWalletConfig, type BrowserExtensionSuiWallet, type BrowserExtensionSuiWalletConfig, type EvmWalletConfig, EvmWalletProvider, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type Hash, type Hex, type IconAddress, type IconBrowserExtensionWallet, type IconEoaAddress, type IconJsonRpcVersion, type IconPkWallet, type IconWallet, type IconWalletConfig, IconWalletProvider, type InjectiveWallet, type InjectiveWalletConfig, InjectiveWalletProvider, type JsonRpcPayloadResponse, type NearWalletConfig, NearWalletProvider, type PkSuiWallet, type PrivateKeyBitcoinWalletConfig, type PrivateKeyEvmWalletConfig, type PrivateKeyIconWalletConfig, type PrivateKeyNearWalletConfig, type PrivateKeySolanaWalletConfig, type PrivateKeyStacksWalletConfig, type PrivateKeyStellarWalletConfig, type PrivateKeySuiWalletConfig, type RelayRequestDetail, type RelayRequestSigning, type ResponseAddressType, type ResponseSigningType, type SecretInjectiveWalletConfig, type SolanaWalletConfig, SolanaWalletProvider, type StacksWalletConfig, StacksWalletProvider, type StellarAddress, type StellarBrowserExtensionWallet, type StellarNetwork, type StellarPkWallet, type StellarWallet, type StellarWalletConfig, StellarWalletError, StellarWalletProvider, type SuiWallet, type SuiWalletConfig, SuiWalletProvider, getEvmViemChain, hyper, isBrowserExtensionEvmWalletConfig, isBrowserExtensionIconWalletConfig, isBrowserExtensionInjectiveWalletConfig, isBrowserExtensionNearWalletConfig, isBrowserExtensionStacksWalletConfig, isBrowserExtensionStellarWalletConfig, isBrowserExtensionSuiWallet, isIconAddress, isIconBrowserExtensionWallet, isIconEoaAddress, isIconPkWallet, isJsonRpcPayloadResponse, isPkSuiWallet, isPrivateKeyEvmWalletConfig, isPrivateKeyIconWalletConfig, isPrivateKeyNearWalletConfig, isPrivateKeyStacksWalletConfig, isPrivateKeyStellarWalletConfig, isResponseAddressType, isResponseSigningType, isSecretInjectiveWalletConfig, isStellarBrowserExtensionWallet, isStellarPkWallet, isSuiWallet, isValidStellarNetwork, isValidStellarPrivateKey, requestAddress, requestJsonRpc, requestSigning };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as viem from 'viem';
|
|
2
2
|
import { Chain, PublicClient, WalletClient, Transport, Account, Hash as Hash$1, Address } from 'viem';
|
|
3
|
-
import { ChainId, IEvmWalletProvider, EvmRawTransaction, EvmRawTransactionReceipt, ISuiWalletProvider, SuiTransaction, SuiExecutionResult, SuiPaginatedCoins, IIconWalletProvider, IcxCallTransaction, IconTransactionResult, IInjectiveWalletProvider, JsonObject, InjectiveRawTransaction, InjectiveEoaAddress, InjectiveCoin, InjectiveExecuteResponse, ISolanaWalletProvider, SolanaRpcResponseAndContext, SolanaSignatureResult, TransactionSignature, SolanaRawTransactionInstruction, SolanaSerializedTransaction, SolanaBase58PublicKey, Hex as Hex$1, XDR, IStellarWalletProvider, StellarRawTransactionReceipt, AddressType, IBitcoinWalletProvider, INearWalletProvider, CallContractParams, NearRawTransaction } from '@sodax/types';
|
|
3
|
+
import { ChainId, IEvmWalletProvider, EvmRawTransaction, EvmRawTransactionReceipt, ISuiWalletProvider, SuiTransaction, SuiExecutionResult, SuiPaginatedCoins, IIconWalletProvider, IcxCallTransaction, IconTransactionResult, IInjectiveWalletProvider, JsonObject, InjectiveRawTransaction, InjectiveEoaAddress, InjectiveCoin, InjectiveExecuteResponse, ISolanaWalletProvider, SolanaRpcResponseAndContext, SolanaSignatureResult, TransactionSignature, SolanaRawTransactionInstruction, SolanaSerializedTransaction, SolanaBase58PublicKey, Hex as Hex$1, XDR, IStellarWalletProvider, StellarRawTransactionReceipt, IStacksWalletProvider, StacksTransactionParams, AddressType, IBitcoinWalletProvider, INearWalletProvider, CallContractParams, NearRawTransaction } from '@sodax/types';
|
|
4
4
|
import { SuiClient } from '@mysten/sui/client';
|
|
5
5
|
import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
|
|
6
6
|
import { Transaction } from '@mysten/sui/transactions';
|
|
@@ -13,6 +13,8 @@ import { ChainId as ChainId$1, EvmChainId } from '@injectivelabs/ts-types';
|
|
|
13
13
|
import { PublicKey, Connection, Commitment, RpcResponseAndContext, TokenAmount } from '@solana/web3.js';
|
|
14
14
|
import { SignerWalletAdapterProps } from '@solana/wallet-adapter-base';
|
|
15
15
|
import { Keypair } from '@stellar/stellar-sdk';
|
|
16
|
+
import { ClarityValue } from '@stacks/transactions';
|
|
17
|
+
import { StacksProvider } from '@stacks/connect';
|
|
16
18
|
import * as bitcoin from 'bitcoinjs-lib';
|
|
17
19
|
import { ECPairInterface } from 'ecpair';
|
|
18
20
|
import { Account as Account$1, JsonRpcProvider } from 'near-api-js';
|
|
@@ -345,6 +347,30 @@ declare class StellarWalletProvider implements IStellarWalletProvider {
|
|
|
345
347
|
waitForTransactionReceipt(txHash: string): Promise<StellarRawTransactionReceipt>;
|
|
346
348
|
}
|
|
347
349
|
|
|
350
|
+
type PrivateKeyStacksWalletConfig = {
|
|
351
|
+
privateKey: string;
|
|
352
|
+
endpoint?: string;
|
|
353
|
+
};
|
|
354
|
+
type BrowserExtensionStacksWalletConfig = {
|
|
355
|
+
address: string;
|
|
356
|
+
endpoint?: string;
|
|
357
|
+
provider?: StacksProvider;
|
|
358
|
+
};
|
|
359
|
+
type StacksWalletConfig = PrivateKeyStacksWalletConfig | BrowserExtensionStacksWalletConfig;
|
|
360
|
+
declare function isPrivateKeyStacksWalletConfig(config: StacksWalletConfig): config is PrivateKeyStacksWalletConfig;
|
|
361
|
+
declare function isBrowserExtensionStacksWalletConfig(config: StacksWalletConfig): config is BrowserExtensionStacksWalletConfig;
|
|
362
|
+
declare class StacksWalletProvider implements IStacksWalletProvider {
|
|
363
|
+
private readonly network;
|
|
364
|
+
private readonly wallet;
|
|
365
|
+
constructor(config: StacksWalletConfig);
|
|
366
|
+
sendTransaction(txParams: StacksTransactionParams): Promise<string>;
|
|
367
|
+
private sendTransactionWithPrivateKey;
|
|
368
|
+
private sendTransactionWithAdapter;
|
|
369
|
+
readContract(txParams: StacksTransactionParams): Promise<ClarityValue>;
|
|
370
|
+
getWalletAddress(): Promise<string>;
|
|
371
|
+
getBalance(address: string): Promise<bigint>;
|
|
372
|
+
}
|
|
373
|
+
|
|
348
374
|
type BitcoinNetwork = 'TESTNET' | 'MAINNET';
|
|
349
375
|
interface BitcoinWalletsKit {
|
|
350
376
|
getAccounts(): Promise<string[]>;
|
|
@@ -420,9 +446,8 @@ declare class NearWalletProvider implements INearWalletProvider {
|
|
|
420
446
|
private readonly wallet?;
|
|
421
447
|
constructor(config: NearWalletConfig);
|
|
422
448
|
getWalletAddress(): Promise<string>;
|
|
423
|
-
getWalletAddressBytes(): Promise<Hex$1>;
|
|
424
449
|
getRawTransaction(params: CallContractParams): Promise<NearRawTransaction>;
|
|
425
450
|
signAndSubmitTxn(transaction: NearRawTransaction): Promise<string>;
|
|
426
451
|
}
|
|
427
452
|
|
|
428
|
-
export { BigNumberToBigInt, type BitcoinNetwork, type BitcoinWalletConfig, BitcoinWalletError, BitcoinWalletProvider, type BitcoinWalletsKit, type BrowserExtensionBitcoinWalletConfig, type BrowserExtensionEvmWalletConfig, type BrowserExtensionIconWalletConfig, type BrowserExtensionInjectiveWalletConfig, type BrowserExtensionNearWalletConfig, type BrowserExtensionSolanaWalletConfig, type BrowserExtensionStellarWalletConfig, type BrowserExtensionSuiWallet, type BrowserExtensionSuiWalletConfig, type EvmWalletConfig, EvmWalletProvider, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type Hash, type Hex, type IconAddress, type IconBrowserExtensionWallet, type IconEoaAddress, type IconJsonRpcVersion, type IconPkWallet, type IconWallet, type IconWalletConfig, IconWalletProvider, type InjectiveWallet, type InjectiveWalletConfig, InjectiveWalletProvider, type JsonRpcPayloadResponse, type NearWalletConfig, NearWalletProvider, type PkSuiWallet, type PrivateKeyBitcoinWalletConfig, type PrivateKeyEvmWalletConfig, type PrivateKeyIconWalletConfig, type PrivateKeyNearWalletConfig, type PrivateKeySolanaWalletConfig, type PrivateKeyStellarWalletConfig, type PrivateKeySuiWalletConfig, type RelayRequestDetail, type RelayRequestSigning, type ResponseAddressType, type ResponseSigningType, type SecretInjectiveWalletConfig, type SolanaWalletConfig, SolanaWalletProvider, type StellarAddress, type StellarBrowserExtensionWallet, type StellarNetwork, type StellarPkWallet, type StellarWallet, type StellarWalletConfig, StellarWalletError, StellarWalletProvider, type SuiWallet, type SuiWalletConfig, SuiWalletProvider, getEvmViemChain, hyper, isBrowserExtensionEvmWalletConfig, isBrowserExtensionIconWalletConfig, isBrowserExtensionInjectiveWalletConfig, isBrowserExtensionNearWalletConfig, isBrowserExtensionStellarWalletConfig, isBrowserExtensionSuiWallet, isIconAddress, isIconBrowserExtensionWallet, isIconEoaAddress, isIconPkWallet, isJsonRpcPayloadResponse, isPkSuiWallet, isPrivateKeyEvmWalletConfig, isPrivateKeyIconWalletConfig, isPrivateKeyNearWalletConfig, isPrivateKeyStellarWalletConfig, isResponseAddressType, isResponseSigningType, isSecretInjectiveWalletConfig, isStellarBrowserExtensionWallet, isStellarPkWallet, isSuiWallet, isValidStellarNetwork, isValidStellarPrivateKey, requestAddress, requestJsonRpc, requestSigning };
|
|
453
|
+
export { BigNumberToBigInt, type BitcoinNetwork, type BitcoinWalletConfig, BitcoinWalletError, BitcoinWalletProvider, type BitcoinWalletsKit, type BrowserExtensionBitcoinWalletConfig, type BrowserExtensionEvmWalletConfig, type BrowserExtensionIconWalletConfig, type BrowserExtensionInjectiveWalletConfig, type BrowserExtensionNearWalletConfig, type BrowserExtensionSolanaWalletConfig, type BrowserExtensionStacksWalletConfig, type BrowserExtensionStellarWalletConfig, type BrowserExtensionSuiWallet, type BrowserExtensionSuiWalletConfig, type EvmWalletConfig, EvmWalletProvider, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type Hash, type Hex, type IconAddress, type IconBrowserExtensionWallet, type IconEoaAddress, type IconJsonRpcVersion, type IconPkWallet, type IconWallet, type IconWalletConfig, IconWalletProvider, type InjectiveWallet, type InjectiveWalletConfig, InjectiveWalletProvider, type JsonRpcPayloadResponse, type NearWalletConfig, NearWalletProvider, type PkSuiWallet, type PrivateKeyBitcoinWalletConfig, type PrivateKeyEvmWalletConfig, type PrivateKeyIconWalletConfig, type PrivateKeyNearWalletConfig, type PrivateKeySolanaWalletConfig, type PrivateKeyStacksWalletConfig, type PrivateKeyStellarWalletConfig, type PrivateKeySuiWalletConfig, type RelayRequestDetail, type RelayRequestSigning, type ResponseAddressType, type ResponseSigningType, type SecretInjectiveWalletConfig, type SolanaWalletConfig, SolanaWalletProvider, type StacksWalletConfig, StacksWalletProvider, type StellarAddress, type StellarBrowserExtensionWallet, type StellarNetwork, type StellarPkWallet, type StellarWallet, type StellarWalletConfig, StellarWalletError, StellarWalletProvider, type SuiWallet, type SuiWalletConfig, SuiWalletProvider, getEvmViemChain, hyper, isBrowserExtensionEvmWalletConfig, isBrowserExtensionIconWalletConfig, isBrowserExtensionInjectiveWalletConfig, isBrowserExtensionNearWalletConfig, isBrowserExtensionStacksWalletConfig, isBrowserExtensionStellarWalletConfig, isBrowserExtensionSuiWallet, isIconAddress, isIconBrowserExtensionWallet, isIconEoaAddress, isIconPkWallet, isJsonRpcPayloadResponse, isPkSuiWallet, isPrivateKeyEvmWalletConfig, isPrivateKeyIconWalletConfig, isPrivateKeyNearWalletConfig, isPrivateKeyStacksWalletConfig, isPrivateKeyStellarWalletConfig, isResponseAddressType, isResponseSigningType, isSecretInjectiveWalletConfig, isStellarBrowserExtensionWallet, isStellarPkWallet, isSuiWallet, isValidStellarNetwork, isValidStellarPrivateKey, requestAddress, requestJsonRpc, requestSigning };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { privateKeyToAccount } from 'viem/accounts';
|
|
2
|
-
import { defineChain, createWalletClient, http, createPublicClient, keccak256
|
|
2
|
+
import { defineChain, createWalletClient, http, createPublicClient, keccak256 } from 'viem';
|
|
3
3
|
import { lightlinkPhoenix, kaia, redbellyMainnet, mainnet, polygon, bsc, optimism, base, arbitrum, avalanche, sonic } from 'viem/chains';
|
|
4
4
|
import { SuiClient } from '@mysten/sui/client';
|
|
5
5
|
import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
|
|
@@ -9,6 +9,9 @@ import { PrivateKey, MsgBroadcasterWithPk, MsgExecuteContract, createTransaction
|
|
|
9
9
|
import { getAssociatedTokenAddress } from '@solana/spl-token';
|
|
10
10
|
import { Keypair, Connection, TransactionMessage, VersionedTransaction, PublicKey, TransactionInstruction } from '@solana/web3.js';
|
|
11
11
|
import { Networks, Keypair as Keypair$1, Horizon, Transaction } from '@stellar/stellar-sdk';
|
|
12
|
+
import { networkFrom } from '@stacks/network';
|
|
13
|
+
import { makeContractCall, broadcastTransaction, fetchCallReadOnlyFunction, getAddressFromPrivateKey, PostConditionMode } from '@stacks/transactions';
|
|
14
|
+
import { request } from '@stacks/connect';
|
|
12
15
|
import * as bitcoin from 'bitcoinjs-lib';
|
|
13
16
|
import * as ecc from '@bitcoinerlab/secp256k1';
|
|
14
17
|
import { ECPairFactory } from 'ecpair';
|
|
@@ -37,6 +40,7 @@ var ETHEREUM_MAINNET_CHAIN_ID = "ethereum";
|
|
|
37
40
|
var BITCOIN_MAINNET_CHAIN_ID = "bitcoin";
|
|
38
41
|
var REDBELLY_MAINNET_CHAIN_ID = "redbelly";
|
|
39
42
|
var KAIA_MAINNET_CHAIN_ID = "0x2019.kaia";
|
|
43
|
+
var STACKS_MAINNET_CHAIN_ID = "stacks";
|
|
40
44
|
var baseChainInfo = {
|
|
41
45
|
[SONIC_MAINNET_CHAIN_ID]: {
|
|
42
46
|
name: "Sonic",
|
|
@@ -151,6 +155,12 @@ var baseChainInfo = {
|
|
|
151
155
|
id: KAIA_MAINNET_CHAIN_ID,
|
|
152
156
|
type: "EVM",
|
|
153
157
|
chainId: 8217
|
|
158
|
+
},
|
|
159
|
+
[STACKS_MAINNET_CHAIN_ID]: {
|
|
160
|
+
name: "Stacks",
|
|
161
|
+
id: STACKS_MAINNET_CHAIN_ID,
|
|
162
|
+
type: "STACKS",
|
|
163
|
+
chainId: "stacks"
|
|
154
164
|
}
|
|
155
165
|
};
|
|
156
166
|
var SodaTokens = {
|
|
@@ -307,6 +317,13 @@ var SodaTokens = {
|
|
|
307
317
|
decimals: 18,
|
|
308
318
|
address: "0xD7d41b5f803b6A40F8A6eAa34E459A4564e39891",
|
|
309
319
|
xChainId: SONIC_MAINNET_CHAIN_ID
|
|
320
|
+
},
|
|
321
|
+
sodaSTX: {
|
|
322
|
+
symbol: "sodaSTX",
|
|
323
|
+
name: "Soda STX",
|
|
324
|
+
decimals: 18,
|
|
325
|
+
address: "0x1Fbe5229e9d189F26bEE77E5bFa24309FdA90483",
|
|
326
|
+
xChainId: SONIC_MAINNET_CHAIN_ID
|
|
310
327
|
}
|
|
311
328
|
};
|
|
312
329
|
var SodaTokensAsHubAssets = Object.values(SodaTokens).reduce((acc, token) => {
|
|
@@ -386,7 +403,6 @@ var spokeChainConfig = {
|
|
|
386
403
|
assetManager: "AnCCJjheynmGqPp6Vgat9DTirGKD4CtQzP8cwTYV8qKH",
|
|
387
404
|
connection: "GxS8i6D9qQjbSeniD487CnomUxU2pXt6V8P96T6MkUXB",
|
|
388
405
|
rateLimit: "2Vyy3A3Teju2EMCkdnappEeWqBXyAaF5V2WsrU4hDtsk",
|
|
389
|
-
testToken: "3Q2HS3png7fLaYerqCun3zw8rnBZo2Ksvdg6RHTyM4Ns",
|
|
390
406
|
xTokenManager: ""
|
|
391
407
|
},
|
|
392
408
|
chain: baseChainInfo[SOLANA_MAINNET_CHAIN_ID],
|
|
@@ -967,7 +983,6 @@ var spokeChainConfig = {
|
|
|
967
983
|
assetManager: "inj1dg6tm62uup53wn2kn97caeqfwt0sukx3qjk8rw",
|
|
968
984
|
connection: "inj1eexvfglsptxwfj9hft96xcnsdrvr7d7dalcm8w",
|
|
969
985
|
rateLimit: "inj1x8p2h56edcdrm9tzx7a7zkwe0l334klgrxpqyk",
|
|
970
|
-
testToken: "",
|
|
971
986
|
xTokenManager: ""
|
|
972
987
|
},
|
|
973
988
|
chain: baseChainInfo[INJECTIVE_MAINNET_CHAIN_ID],
|
|
@@ -1059,8 +1074,7 @@ var spokeChainConfig = {
|
|
|
1059
1074
|
connection: "CDFQDDPUPAM3XPGORHDOEFRNLMKOH3N3X6XTXNLSXJQXIU3RVCM3OPEP",
|
|
1060
1075
|
assetManager: "CCGF33A4CO6D3BXFEKPXVCFCZBK76I3AQOZK6KIKRPAWAZR3632WHCJ3",
|
|
1061
1076
|
xTokenManager: "",
|
|
1062
|
-
rateLimit: "CB6G3ULISTTBPXUN3BI6ADHQGWJEN7BPQINHL45TCB6TDFM5QWU24HAY"
|
|
1063
|
-
testToken: ""
|
|
1077
|
+
rateLimit: "CB6G3ULISTTBPXUN3BI6ADHQGWJEN7BPQINHL45TCB6TDFM5QWU24HAY"
|
|
1064
1078
|
},
|
|
1065
1079
|
trustlineConfigs: [
|
|
1066
1080
|
{
|
|
@@ -1128,8 +1142,7 @@ var spokeChainConfig = {
|
|
|
1128
1142
|
assetManagerConfigId: "0xcb7346339340b7f8dea40fcafb70721dc2fcfa7e8626a89fd954d46c1f928b61",
|
|
1129
1143
|
originalAssetManager: "0xa17a409164d1676db71b411ab50813ba2c7dd547d2df538c699049566f1ff922::asset_manager::0xcb7346339340b7f8dea40fcafb70721dc2fcfa7e8626a89fd954d46c1f928b61",
|
|
1130
1144
|
xTokenManager: "",
|
|
1131
|
-
rateLimit: ""
|
|
1132
|
-
testToken: ""
|
|
1145
|
+
rateLimit: ""
|
|
1133
1146
|
},
|
|
1134
1147
|
supportedTokens: {
|
|
1135
1148
|
SUI: {
|
|
@@ -1557,6 +1570,55 @@ var spokeChainConfig = {
|
|
|
1557
1570
|
xChainId: REDBELLY_MAINNET_CHAIN_ID
|
|
1558
1571
|
}
|
|
1559
1572
|
}
|
|
1573
|
+
},
|
|
1574
|
+
[STACKS_MAINNET_CHAIN_ID]: {
|
|
1575
|
+
addresses: {
|
|
1576
|
+
assetManager: "SP3031RGK734636C8KGW2Y76TEQBTVX59Q472EQH0.asset-manager-state",
|
|
1577
|
+
connection: "SP3031RGK734636C8KGW2Y76TEQBTVX59Q472EQH0.connection-v3",
|
|
1578
|
+
rateLimit: "SP3031RGK734636C8KGW2Y76TEQBTVX59Q472EQH0.rate-limit-state",
|
|
1579
|
+
xTokenManager: ""
|
|
1580
|
+
},
|
|
1581
|
+
chain: baseChainInfo[STACKS_MAINNET_CHAIN_ID],
|
|
1582
|
+
nativeToken: "ST000000000000000000002AMW42H.nativetoken",
|
|
1583
|
+
bnUSD: "SP3031RGK734636C8KGW2Y76TEQBTVX59Q472EQH0.bnusd",
|
|
1584
|
+
supportedTokens: {
|
|
1585
|
+
STX: {
|
|
1586
|
+
symbol: "STX",
|
|
1587
|
+
name: "Stacks",
|
|
1588
|
+
decimals: 6,
|
|
1589
|
+
address: "ST000000000000000000002AMW42H.nativetoken",
|
|
1590
|
+
xChainId: STACKS_MAINNET_CHAIN_ID
|
|
1591
|
+
},
|
|
1592
|
+
bnUSD: {
|
|
1593
|
+
symbol: "bnUSD",
|
|
1594
|
+
name: "bnUSD",
|
|
1595
|
+
decimals: 6,
|
|
1596
|
+
address: "SP3031RGK734636C8KGW2Y76TEQBTVX59Q472EQH0.bnusd",
|
|
1597
|
+
xChainId: STACKS_MAINNET_CHAIN_ID
|
|
1598
|
+
},
|
|
1599
|
+
SODA: {
|
|
1600
|
+
symbol: "SODA",
|
|
1601
|
+
name: "SODAX",
|
|
1602
|
+
decimals: 6,
|
|
1603
|
+
address: "SP3031RGK734636C8KGW2Y76TEQBTVX59Q472EQH0.soda",
|
|
1604
|
+
xChainId: STACKS_MAINNET_CHAIN_ID
|
|
1605
|
+
},
|
|
1606
|
+
sBTC: {
|
|
1607
|
+
symbol: "sBTC",
|
|
1608
|
+
name: "sBTC",
|
|
1609
|
+
decimals: 8,
|
|
1610
|
+
address: "SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token",
|
|
1611
|
+
xChainId: STACKS_MAINNET_CHAIN_ID
|
|
1612
|
+
},
|
|
1613
|
+
USDC: {
|
|
1614
|
+
symbol: "USDC",
|
|
1615
|
+
name: "USD Coin",
|
|
1616
|
+
decimals: 6,
|
|
1617
|
+
address: "SP120SBRBQJ00MCWS7TM5R8WJNTTKD5K0HFRC2CNE.usdcx",
|
|
1618
|
+
xChainId: STACKS_MAINNET_CHAIN_ID
|
|
1619
|
+
}
|
|
1620
|
+
},
|
|
1621
|
+
rpcUrl: "https://api.mainnet.hiro.so"
|
|
1560
1622
|
}
|
|
1561
1623
|
};
|
|
1562
1624
|
({
|
|
@@ -1983,6 +2045,23 @@ var spokeChainConfig = {
|
|
|
1983
2045
|
[spokeChainConfig[REDBELLY_MAINNET_CHAIN_ID].supportedTokens.rPOL.address]: {
|
|
1984
2046
|
vault: SodaTokens.sodaPOL.address
|
|
1985
2047
|
}
|
|
2048
|
+
},
|
|
2049
|
+
[STACKS_MAINNET_CHAIN_ID]: {
|
|
2050
|
+
[spokeChainConfig[STACKS_MAINNET_CHAIN_ID].nativeToken]: {
|
|
2051
|
+
vault: SodaTokens.sodaSTX.address
|
|
2052
|
+
},
|
|
2053
|
+
[spokeChainConfig[STACKS_MAINNET_CHAIN_ID].bnUSD]: {
|
|
2054
|
+
vault: SodaTokens.bnUSD.address
|
|
2055
|
+
},
|
|
2056
|
+
[spokeChainConfig[STACKS_MAINNET_CHAIN_ID].supportedTokens.SODA.address]: {
|
|
2057
|
+
vault: SodaTokens.sodaSODA.address
|
|
2058
|
+
},
|
|
2059
|
+
[spokeChainConfig[STACKS_MAINNET_CHAIN_ID].supportedTokens.sBTC.address]: {
|
|
2060
|
+
vault: SodaTokens.sodaBTC.address
|
|
2061
|
+
},
|
|
2062
|
+
[spokeChainConfig[STACKS_MAINNET_CHAIN_ID].supportedTokens.USDC.address]: {
|
|
2063
|
+
vault: SodaTokens.sodaUSDC.address
|
|
2064
|
+
}
|
|
1986
2065
|
}});
|
|
1987
2066
|
var moneyMarketConfig = {
|
|
1988
2067
|
[SONIC_MAINNET_CHAIN_ID]: {
|
|
@@ -2759,6 +2838,104 @@ var StellarWalletProvider = class {
|
|
|
2759
2838
|
);
|
|
2760
2839
|
}
|
|
2761
2840
|
};
|
|
2841
|
+
function isPrivateKeyStacksWalletConfig(config) {
|
|
2842
|
+
return "privateKey" in config;
|
|
2843
|
+
}
|
|
2844
|
+
function isBrowserExtensionStacksWalletConfig(config) {
|
|
2845
|
+
return "address" in config;
|
|
2846
|
+
}
|
|
2847
|
+
function isStacksPkWallet(wallet) {
|
|
2848
|
+
return wallet.type === "PRIVATE_KEY";
|
|
2849
|
+
}
|
|
2850
|
+
function toPostConditionModeName(mode) {
|
|
2851
|
+
if (mode === void 0) return void 0;
|
|
2852
|
+
return mode === PostConditionMode.Allow ? "allow" : "deny";
|
|
2853
|
+
}
|
|
2854
|
+
var StacksWalletProvider = class {
|
|
2855
|
+
network;
|
|
2856
|
+
wallet;
|
|
2857
|
+
constructor(config) {
|
|
2858
|
+
const mainnet2 = networkFrom("mainnet");
|
|
2859
|
+
this.network = config.endpoint ? { ...mainnet2, client: { ...mainnet2.client, baseUrl: config.endpoint } } : mainnet2;
|
|
2860
|
+
if (isPrivateKeyStacksWalletConfig(config)) {
|
|
2861
|
+
this.wallet = { type: "PRIVATE_KEY", privateKey: config.privateKey };
|
|
2862
|
+
} else if (isBrowserExtensionStacksWalletConfig(config)) {
|
|
2863
|
+
this.wallet = { type: "BROWSER_EXTENSION", address: config.address, provider: config.provider };
|
|
2864
|
+
} else {
|
|
2865
|
+
throw new Error("Invalid Stacks wallet configuration");
|
|
2866
|
+
}
|
|
2867
|
+
}
|
|
2868
|
+
async sendTransaction(txParams) {
|
|
2869
|
+
if (isStacksPkWallet(this.wallet)) {
|
|
2870
|
+
return this.sendTransactionWithPrivateKey(txParams);
|
|
2871
|
+
}
|
|
2872
|
+
return this.sendTransactionWithAdapter(txParams);
|
|
2873
|
+
}
|
|
2874
|
+
async sendTransactionWithPrivateKey(txParams) {
|
|
2875
|
+
const transaction = await makeContractCall({
|
|
2876
|
+
contractAddress: txParams.contractAddress,
|
|
2877
|
+
contractName: txParams.contractName,
|
|
2878
|
+
functionName: txParams.functionName,
|
|
2879
|
+
functionArgs: txParams.functionArgs,
|
|
2880
|
+
senderKey: this.wallet.privateKey,
|
|
2881
|
+
network: this.network,
|
|
2882
|
+
postConditionMode: txParams.postConditionMode,
|
|
2883
|
+
postConditions: txParams.postConditions
|
|
2884
|
+
});
|
|
2885
|
+
const result = await broadcastTransaction({
|
|
2886
|
+
network: this.network,
|
|
2887
|
+
transaction
|
|
2888
|
+
});
|
|
2889
|
+
return result.txid;
|
|
2890
|
+
}
|
|
2891
|
+
async sendTransactionWithAdapter(txParams) {
|
|
2892
|
+
const browserWallet = this.wallet;
|
|
2893
|
+
const contract = `${txParams.contractAddress}.${txParams.contractName}`;
|
|
2894
|
+
const params = {
|
|
2895
|
+
contract,
|
|
2896
|
+
functionName: txParams.functionName,
|
|
2897
|
+
functionArgs: txParams.functionArgs,
|
|
2898
|
+
network: "mainnet",
|
|
2899
|
+
postConditions: txParams.postConditions,
|
|
2900
|
+
postConditionMode: toPostConditionModeName(txParams.postConditionMode)
|
|
2901
|
+
};
|
|
2902
|
+
const result = browserWallet.provider ? await request({ provider: browserWallet.provider }, "stx_callContract", params) : await request("stx_callContract", params);
|
|
2903
|
+
if (!result.txid) {
|
|
2904
|
+
throw new Error("Transaction failed: no txid returned");
|
|
2905
|
+
}
|
|
2906
|
+
return result.txid;
|
|
2907
|
+
}
|
|
2908
|
+
async readContract(txParams) {
|
|
2909
|
+
return fetchCallReadOnlyFunction({
|
|
2910
|
+
contractAddress: txParams.contractAddress,
|
|
2911
|
+
contractName: txParams.contractName,
|
|
2912
|
+
functionName: txParams.functionName,
|
|
2913
|
+
functionArgs: txParams.functionArgs,
|
|
2914
|
+
network: this.network,
|
|
2915
|
+
senderAddress: await this.getWalletAddress()
|
|
2916
|
+
});
|
|
2917
|
+
}
|
|
2918
|
+
async getWalletAddress() {
|
|
2919
|
+
if (isStacksPkWallet(this.wallet)) {
|
|
2920
|
+
return getAddressFromPrivateKey(this.wallet.privateKey, this.network);
|
|
2921
|
+
}
|
|
2922
|
+
return this.wallet.address;
|
|
2923
|
+
}
|
|
2924
|
+
async getBalance(address) {
|
|
2925
|
+
const url = `${this.network.client.baseUrl}/extended/v1/address/${address}/balances`;
|
|
2926
|
+
try {
|
|
2927
|
+
const response = await fetch(url);
|
|
2928
|
+
if (!response.ok) {
|
|
2929
|
+
throw new Error(`Error fetching data: ${response.statusText}`);
|
|
2930
|
+
}
|
|
2931
|
+
const data = await response.json();
|
|
2932
|
+
return BigInt(data.stx.balance);
|
|
2933
|
+
} catch (error) {
|
|
2934
|
+
console.error("Error fetching STX balance:", error);
|
|
2935
|
+
return 0n;
|
|
2936
|
+
}
|
|
2937
|
+
}
|
|
2938
|
+
};
|
|
2762
2939
|
bitcoin.initEccLib(ecc);
|
|
2763
2940
|
var ECPair = ECPairFactory(ecc);
|
|
2764
2941
|
var BitcoinWalletError = class extends Error {
|
|
@@ -9434,8 +9611,8 @@ var JsonRpcProvider = class {
|
|
|
9434
9611
|
* Gets a light client execution proof for verifying execution outcomes
|
|
9435
9612
|
* @see [https://github.com/nearprotocol/NEPs/blob/master/specs/ChainSpec/LightClient.md#light-client-proof](https://github.com/nearprotocol/NEPs/blob/master/specs/ChainSpec/LightClient.md#light-client-proof)
|
|
9436
9613
|
*/
|
|
9437
|
-
async lightClientProof(
|
|
9438
|
-
return await this.sendJsonRpc("EXPERIMENTAL_light_client_proof",
|
|
9614
|
+
async lightClientProof(request2) {
|
|
9615
|
+
return await this.sendJsonRpc("EXPERIMENTAL_light_client_proof", request2);
|
|
9439
9616
|
}
|
|
9440
9617
|
/**
|
|
9441
9618
|
* Returns the next light client block as far in the future as possible from the last known hash
|
|
@@ -9444,8 +9621,8 @@ var JsonRpcProvider = class {
|
|
|
9444
9621
|
*
|
|
9445
9622
|
* @see [https://github.com/near/NEPs/blob/master/specs/ChainSpec/LightClient.md#light-client-block](https://github.com/near/NEPs/blob/master/specs/ChainSpec/LightClient.md#light-client-block)
|
|
9446
9623
|
*/
|
|
9447
|
-
async nextLightClientBlock(
|
|
9448
|
-
return await this.sendJsonRpc("next_light_client_block",
|
|
9624
|
+
async nextLightClientBlock(request2) {
|
|
9625
|
+
return await this.sendJsonRpc("next_light_client_block", request2);
|
|
9449
9626
|
}
|
|
9450
9627
|
/**
|
|
9451
9628
|
* Gets access key changes for a given array of accountIds
|
|
@@ -9531,13 +9708,13 @@ var JsonRpcProvider = class {
|
|
|
9531
9708
|
* @param params Parameters to the method
|
|
9532
9709
|
*/
|
|
9533
9710
|
async sendJsonRpc(method, params) {
|
|
9534
|
-
const
|
|
9711
|
+
const request2 = {
|
|
9535
9712
|
method,
|
|
9536
9713
|
params,
|
|
9537
9714
|
id: String(_nextId++),
|
|
9538
9715
|
jsonrpc: "2.0"
|
|
9539
9716
|
};
|
|
9540
|
-
const response = await fetchJsonRpc(this.connection.url,
|
|
9717
|
+
const response = await fetchJsonRpc(this.connection.url, request2, this.connection.headers || {}, retryConfig(this.options.retries, this.options.backoff, this.options.wait));
|
|
9541
9718
|
if ("error" in response && typeof response.error !== "undefined") {
|
|
9542
9719
|
throw parseRpcError(response.error);
|
|
9543
9720
|
}
|
|
@@ -10440,6 +10617,8 @@ var Account = class {
|
|
|
10440
10617
|
return token.transfer({ from: this, receiverId, amount });
|
|
10441
10618
|
}
|
|
10442
10619
|
};
|
|
10620
|
+
|
|
10621
|
+
// src/wallet-providers/NearWalletProvider.ts
|
|
10443
10622
|
function isPrivateKeyNearWalletConfig(config) {
|
|
10444
10623
|
return "rpcUrl" in config && "accountId" in config && "privateKey" in config;
|
|
10445
10624
|
}
|
|
@@ -10478,10 +10657,6 @@ var NearWalletProvider = class {
|
|
|
10478
10657
|
}
|
|
10479
10658
|
throw new Error("Wallet not initialized");
|
|
10480
10659
|
}
|
|
10481
|
-
async getWalletAddressBytes() {
|
|
10482
|
-
const address = await this.getWalletAddress();
|
|
10483
|
-
return toHex(Buffer.from(address, "utf-8"));
|
|
10484
|
-
}
|
|
10485
10660
|
async getRawTransaction(params) {
|
|
10486
10661
|
const signerId = await this.getWalletAddress();
|
|
10487
10662
|
return {
|
|
@@ -10550,6 +10725,6 @@ var NearWalletProvider = class {
|
|
|
10550
10725
|
(*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
10551
10726
|
*/
|
|
10552
10727
|
|
|
10553
|
-
export { BigNumberToBigInt, BitcoinWalletError, BitcoinWalletProvider, EvmWalletProvider, IconWalletProvider, InjectiveWalletProvider, NearWalletProvider, SolanaWalletProvider, StellarWalletError, StellarWalletProvider, SuiWalletProvider, getEvmViemChain, hyper, isBrowserExtensionEvmWalletConfig, isBrowserExtensionIconWalletConfig, isBrowserExtensionInjectiveWalletConfig, isBrowserExtensionNearWalletConfig, isBrowserExtensionStellarWalletConfig, isBrowserExtensionSuiWallet, isIconAddress, isIconBrowserExtensionWallet, isIconEoaAddress, isIconPkWallet, isJsonRpcPayloadResponse, isPkSuiWallet, isPrivateKeyEvmWalletConfig, isPrivateKeyIconWalletConfig, isPrivateKeyNearWalletConfig, isPrivateKeyStellarWalletConfig, isResponseAddressType, isResponseSigningType, isSecretInjectiveWalletConfig, isStellarBrowserExtensionWallet, isStellarPkWallet, isSuiWallet, isValidStellarNetwork, isValidStellarPrivateKey, requestAddress, requestJsonRpc, requestSigning };
|
|
10728
|
+
export { BigNumberToBigInt, BitcoinWalletError, BitcoinWalletProvider, EvmWalletProvider, IconWalletProvider, InjectiveWalletProvider, NearWalletProvider, SolanaWalletProvider, StacksWalletProvider, StellarWalletError, StellarWalletProvider, SuiWalletProvider, getEvmViemChain, hyper, isBrowserExtensionEvmWalletConfig, isBrowserExtensionIconWalletConfig, isBrowserExtensionInjectiveWalletConfig, isBrowserExtensionNearWalletConfig, isBrowserExtensionStacksWalletConfig, isBrowserExtensionStellarWalletConfig, isBrowserExtensionSuiWallet, isIconAddress, isIconBrowserExtensionWallet, isIconEoaAddress, isIconPkWallet, isJsonRpcPayloadResponse, isPkSuiWallet, isPrivateKeyEvmWalletConfig, isPrivateKeyIconWalletConfig, isPrivateKeyNearWalletConfig, isPrivateKeyStacksWalletConfig, isPrivateKeyStellarWalletConfig, isResponseAddressType, isResponseSigningType, isSecretInjectiveWalletConfig, isStellarBrowserExtensionWallet, isStellarPkWallet, isSuiWallet, isValidStellarNetwork, isValidStellarPrivateKey, requestAddress, requestJsonRpc, requestSigning };
|
|
10554
10729
|
//# sourceMappingURL=index.mjs.map
|
|
10555
10730
|
//# sourceMappingURL=index.mjs.map
|