@smoothsend/sdk 2.2.2 → 2.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/aptos/index.cjs +1256 -0
- package/dist/aptos/index.cjs.map +1 -0
- package/dist/aptos/index.d.ts +783 -0
- package/dist/aptos/index.js +1230 -0
- package/dist/aptos/index.js.map +1 -0
- package/dist/aptos-entry.d.ts +36 -0
- package/dist/aptos-entry.d.ts.map +1 -0
- package/dist/avax/index.cjs +1869 -0
- package/dist/avax/index.cjs.map +1 -0
- package/dist/avax/index.d.ts +306 -7
- package/dist/avax/index.js +1849 -0
- package/dist/avax/index.js.map +1 -0
- package/dist/avax-entry.d.ts +24 -0
- package/dist/avax-entry.d.ts.map +1 -0
- package/dist/chunks/SmoothSendSDK-C_ofuBkk.cjs +1519 -0
- package/dist/chunks/SmoothSendSDK-C_ofuBkk.cjs.map +1 -0
- package/dist/chunks/SmoothSendSDK-CaV_PCIG.js +1511 -0
- package/dist/chunks/SmoothSendSDK-CaV_PCIG.js.map +1 -0
- package/dist/chunks/SmoothSendSDK.d-9GBgZONY.d.ts +262 -0
- package/dist/chunks/TrueGaslessClient-DThO4Tpb.cjs +1237 -0
- package/dist/chunks/TrueGaslessClient-DThO4Tpb.cjs.map +1 -0
- package/dist/chunks/TrueGaslessClient-l2uFvNAa.js +1228 -0
- package/dist/chunks/TrueGaslessClient-l2uFvNAa.js.map +1 -0
- package/dist/chunks/shared-CNF22ESH.js +557 -0
- package/dist/chunks/shared-CNF22ESH.js.map +1 -0
- package/dist/chunks/shared-CaQMAGQR.js +1511 -0
- package/dist/chunks/shared-CaQMAGQR.js.map +1 -0
- package/dist/chunks/shared-Cn4duBJT.d.ts +1279 -0
- package/dist/chunks/shared-DEurKmpI.cjs +1519 -0
- package/dist/chunks/shared-DEurKmpI.cjs.map +1 -0
- package/dist/chunks/shared-RVkwmkG7.d.ts +262 -0
- package/dist/chunks/shared-x1-VC-Li.cjs +568 -0
- package/dist/chunks/shared-x1-VC-Li.cjs.map +1 -0
- package/dist/chunks/useSmoothSendAvax-BHeW_6x8.cjs +1865 -0
- package/dist/chunks/useSmoothSendAvax-BHeW_6x8.cjs.map +1 -0
- package/dist/chunks/useSmoothSendAvax-ZuHw1aYi.js +1848 -0
- package/dist/chunks/useSmoothSendAvax-ZuHw1aYi.js.map +1 -0
- package/dist/chunks/version-CNF22ESH.js +557 -0
- package/dist/chunks/version-CNF22ESH.js.map +1 -0
- package/dist/chunks/version-x1-VC-Li.cjs +568 -0
- package/dist/chunks/version-x1-VC-Li.cjs.map +1 -0
- package/dist/chunks/version.d-Cn4duBJT.d.ts +1279 -0
- package/dist/index.cjs +5209 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +11 -2853
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +61 -102
- package/dist/index.js.map +1 -1
- package/dist/stellar/index.cjs +27 -0
- package/dist/stellar/index.cjs.map +1 -0
- package/dist/stellar/index.d.ts +214 -0
- package/dist/stellar/index.js +3 -0
- package/dist/stellar/index.js.map +1 -0
- package/dist/stellar-entry.d.ts +37 -0
- package/dist/stellar-entry.d.ts.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/package.json +23 -24
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var SmoothSendSDK = require('../chunks/shared-DEurKmpI.cjs');
|
|
6
|
+
var http = require('../chunks/shared-x1-VC-Li.cjs');
|
|
7
|
+
require('axios');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.APTOS_ERROR_CODES = SmoothSendSDK.APTOS_ERROR_CODES;
|
|
12
|
+
exports.CHAIN_ECOSYSTEM_MAP = SmoothSendSDK.CHAIN_ECOSYSTEM_MAP;
|
|
13
|
+
exports.STELLAR_ERROR_CODES = SmoothSendSDK.STELLAR_ERROR_CODES;
|
|
14
|
+
exports.SmoothSendSDK = SmoothSendSDK.SmoothSendSDK;
|
|
15
|
+
exports.StellarAdapter = SmoothSendSDK.StellarAdapter;
|
|
16
|
+
exports.StellarCAddressAdapter = SmoothSendSDK.StellarCAddressAdapter;
|
|
17
|
+
exports.default = SmoothSendSDK.SmoothSendSDK;
|
|
18
|
+
exports.AuthenticationError = http.AuthenticationError;
|
|
19
|
+
exports.HttpClient = http.HttpClient;
|
|
20
|
+
exports.NetworkError = http.NetworkError;
|
|
21
|
+
exports.RateLimitError = http.RateLimitError;
|
|
22
|
+
exports.SmoothSendError = http.SmoothSendError;
|
|
23
|
+
exports.VERSION = http.VERSION;
|
|
24
|
+
exports.ValidationError = http.ValidationError;
|
|
25
|
+
exports.createErrorFromResponse = http.createErrorFromResponse;
|
|
26
|
+
exports.createNetworkError = http.createNetworkError;
|
|
27
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
export { S as SmoothSendSDK, S as default } from '../chunks/shared-RVkwmkG7.js';
|
|
2
|
+
import { H as HttpClient, N as IChainAdapter, S as SupportedChain, d as ChainConfig, e as TransferRequest, F as FeeEstimate, l as SignedTransferData, h as TransferResult, u as HealthResponse } from '../chunks/shared-Cn4duBJT.js';
|
|
3
|
+
export { w as APTOS_ERROR_CODES, z as ApiResponse, x as AptosErrorCode, j as AptosTransferData, J as AptosWallet, Q as AuthenticationError, A as AvalancheTransferData, p as BatchRelayTransferRequest, B as BatchTransferRequest, a as CHAIN_ECOSYSTEM_MAP, C as ChainEcosystem, c as ChainInfo, D as DomainSeparatorResponse, i as EVMTransferData, E as ErrorResponse, q as EstimateGasRequest, M as EventListener, G as GasEstimateResponse, Y as NetworkError, s as PermitData, P as PrepareSignatureRequest, t as PrepareSignatureResponse, W as RateLimitError, o as RelayTransferRequest, R as RelayTransferResponse, y as STELLAR_ERROR_CODES, k as SignatureData, I as SmoothSendConfig, O as SmoothSendError, K as StellarWallet, b as SuccessResponse, m as TokenBalance, T as TokenInfo, r as TransferData, L as TransferEvent, g as TransferQuote, n as TransferQuoteRequest, f as TransferQuoteResponse, v as TransferStatusResponse, U as UsageMetadata, V as VERSION, X as ValidationError, Z as createErrorFromResponse, _ as createNetworkError } from '../chunks/shared-Cn4duBJT.js';
|
|
4
|
+
import 'axios';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* C-Address (Soroban Smart Account) response types
|
|
8
|
+
*/
|
|
9
|
+
interface CAddressCreateResult {
|
|
10
|
+
cAddress: string;
|
|
11
|
+
txHash: string;
|
|
12
|
+
alreadyExisted: boolean;
|
|
13
|
+
explorerUrl: string;
|
|
14
|
+
}
|
|
15
|
+
interface CAddressLookupResult {
|
|
16
|
+
ownerGAddress: string;
|
|
17
|
+
cAddress: string | null;
|
|
18
|
+
hasAccount: boolean;
|
|
19
|
+
}
|
|
20
|
+
interface CAddressBalance {
|
|
21
|
+
asset: string;
|
|
22
|
+
balance: string;
|
|
23
|
+
symbol: string;
|
|
24
|
+
}
|
|
25
|
+
interface CAddressBalanceResult {
|
|
26
|
+
cAddress: string;
|
|
27
|
+
balances: CAddressBalance[];
|
|
28
|
+
}
|
|
29
|
+
interface CAddressBuildTransferResult {
|
|
30
|
+
unsignedXDR: string;
|
|
31
|
+
networkPassphrase: string;
|
|
32
|
+
}
|
|
33
|
+
interface CAddressSubmitResult {
|
|
34
|
+
txHash: string;
|
|
35
|
+
explorerUrl: string;
|
|
36
|
+
}
|
|
37
|
+
interface CAddressTransaction {
|
|
38
|
+
type: 'sent' | 'received';
|
|
39
|
+
asset: string;
|
|
40
|
+
amount: string;
|
|
41
|
+
counterparty: string;
|
|
42
|
+
txHash: string;
|
|
43
|
+
timestamp: string;
|
|
44
|
+
ledger: number;
|
|
45
|
+
}
|
|
46
|
+
interface CAddressHistoryResult {
|
|
47
|
+
cAddress: string;
|
|
48
|
+
transactions: CAddressTransaction[];
|
|
49
|
+
count: number;
|
|
50
|
+
}
|
|
51
|
+
interface CAddressHealthResult {
|
|
52
|
+
service: string;
|
|
53
|
+
relayerPublicKey: string;
|
|
54
|
+
factoryContractId: string;
|
|
55
|
+
isReady: boolean;
|
|
56
|
+
network: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Stellar C-Address Adapter — SDK for Soroban Smart Account operations
|
|
60
|
+
*
|
|
61
|
+
* Provides a clean interface for:
|
|
62
|
+
* - Creating C-addresses (smart accounts) from G-addresses
|
|
63
|
+
* - Looking up existing C-addresses by owner
|
|
64
|
+
* - Querying token balances (XLM, USDC, EURC)
|
|
65
|
+
* - Building bridge transfers (G→C)
|
|
66
|
+
* - Building smart account transfers (C→G, C→C)
|
|
67
|
+
* - Submitting user-signed transactions via fee-bump
|
|
68
|
+
* - Getting transaction history
|
|
69
|
+
*
|
|
70
|
+
* All transactions are gasless — the relayer covers fees via fee-bump.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```typescript
|
|
74
|
+
* import { SmoothSendSDK } from '@smoothsend/sdk';
|
|
75
|
+
*
|
|
76
|
+
* const sdk = new SmoothSendSDK({ apiKey: 'pk_nogas_xxx', network: 'testnet' });
|
|
77
|
+
*
|
|
78
|
+
* // Create a C-address for a G-address owner
|
|
79
|
+
* const { cAddress } = await sdk.stellar.cAddress.create('GABCD...');
|
|
80
|
+
*
|
|
81
|
+
* // Get balances
|
|
82
|
+
* const { balances } = await sdk.stellar.cAddress.getBalances(cAddress);
|
|
83
|
+
*
|
|
84
|
+
* // Build a bridge transfer (G→C), user signs, relayer fee-bumps
|
|
85
|
+
* const { unsignedXDR } = await sdk.stellar.cAddress.buildBridgeTransfer({
|
|
86
|
+
* from: 'GABCD...',
|
|
87
|
+
* destination: cAddress,
|
|
88
|
+
* asset: 'USDC',
|
|
89
|
+
* amount: '10.5',
|
|
90
|
+
* });
|
|
91
|
+
* // Sign with wallet (e.g., Freighter)
|
|
92
|
+
* const signedXDR = await wallet.signTransaction(unsignedXDR);
|
|
93
|
+
* // Submit — relayer wraps in fee-bump
|
|
94
|
+
* const { txHash } = await sdk.stellar.cAddress.submitTransfer(signedXDR);
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
declare class StellarCAddressAdapter {
|
|
98
|
+
private httpClient;
|
|
99
|
+
private basePath;
|
|
100
|
+
constructor(httpClient: HttpClient, network?: 'testnet' | 'mainnet');
|
|
101
|
+
/**
|
|
102
|
+
* Create a new C-address (Soroban Smart Account) for a G-address owner.
|
|
103
|
+
* If the owner already has a C-address, returns the existing one.
|
|
104
|
+
*
|
|
105
|
+
* The relayer pays all deployment fees — completely gasless for the user.
|
|
106
|
+
*
|
|
107
|
+
* @param ownerGAddress - The G-address that will control this smart account
|
|
108
|
+
* @returns The new C-address, tx hash, and whether it already existed
|
|
109
|
+
*/
|
|
110
|
+
create(ownerGAddress: string): Promise<CAddressCreateResult>;
|
|
111
|
+
/**
|
|
112
|
+
* Look up the C-address for a given G-address owner.
|
|
113
|
+
* Returns null if no C-address exists for this owner.
|
|
114
|
+
*
|
|
115
|
+
* @param ownerGAddress - The G-address to look up
|
|
116
|
+
*/
|
|
117
|
+
lookup(ownerGAddress: string): Promise<CAddressLookupResult>;
|
|
118
|
+
/**
|
|
119
|
+
* Get token balances for a C-address.
|
|
120
|
+
* Returns balances for XLM, USDC, and EURC.
|
|
121
|
+
*
|
|
122
|
+
* @param cAddress - The C-address to query
|
|
123
|
+
*/
|
|
124
|
+
getBalances(cAddress: string): Promise<CAddressBalanceResult>;
|
|
125
|
+
/**
|
|
126
|
+
* Build a bridge transfer (G→C) using SAC.transfer.
|
|
127
|
+
* Returns unsigned XDR for the user to sign with their wallet.
|
|
128
|
+
* After signing, submit via submitTransfer().
|
|
129
|
+
*
|
|
130
|
+
* @param params.from - Sender G-address (signs the tx)
|
|
131
|
+
* @param params.destination - Recipient C-address (or G-address)
|
|
132
|
+
* @param params.asset - Asset to transfer: 'XLM', 'USDC', or 'EURC'
|
|
133
|
+
* @param params.amount - Human-readable amount (e.g., '10.5')
|
|
134
|
+
*/
|
|
135
|
+
buildBridgeTransfer(params: {
|
|
136
|
+
from: string;
|
|
137
|
+
destination: string;
|
|
138
|
+
asset: string;
|
|
139
|
+
amount: string;
|
|
140
|
+
}): Promise<CAddressBuildTransferResult>;
|
|
141
|
+
/**
|
|
142
|
+
* Build a transfer from a C-address (SmartAccount.send).
|
|
143
|
+
* Returns unsigned XDR for the owner to sign.
|
|
144
|
+
* After signing, submit via submitTransfer().
|
|
145
|
+
*
|
|
146
|
+
* @param params.from - Owner G-address (signs auth)
|
|
147
|
+
* @param params.cAddress - Source C-address (holds the funds)
|
|
148
|
+
* @param params.destination - Recipient (G or C address)
|
|
149
|
+
* @param params.asset - Asset: 'XLM', 'USDC', or 'EURC'
|
|
150
|
+
* @param params.amount - Human-readable amount
|
|
151
|
+
*/
|
|
152
|
+
buildTransfer(params: {
|
|
153
|
+
from: string;
|
|
154
|
+
cAddress: string;
|
|
155
|
+
destination: string;
|
|
156
|
+
asset: string;
|
|
157
|
+
amount: string;
|
|
158
|
+
}): Promise<CAddressBuildTransferResult>;
|
|
159
|
+
/**
|
|
160
|
+
* Submit a user-signed transaction.
|
|
161
|
+
* The relayer wraps it in a fee-bump transaction and submits to the network.
|
|
162
|
+
* The user pays zero fees — the relayer covers everything.
|
|
163
|
+
*
|
|
164
|
+
* @param signedXDR - The user-signed transaction XDR (base64)
|
|
165
|
+
*/
|
|
166
|
+
submitTransfer(signedXDR: string): Promise<CAddressSubmitResult>;
|
|
167
|
+
/**
|
|
168
|
+
* Get transaction history for a C-address.
|
|
169
|
+
* Returns recent transfer events (sent/received) across all supported tokens.
|
|
170
|
+
*
|
|
171
|
+
* @param cAddress - The C-address to query
|
|
172
|
+
* @param limit - Maximum number of transactions to return (default: 20)
|
|
173
|
+
*/
|
|
174
|
+
getHistory(cAddress: string, limit?: number): Promise<CAddressHistoryResult>;
|
|
175
|
+
/**
|
|
176
|
+
* Health check for the C-address bridge service.
|
|
177
|
+
*/
|
|
178
|
+
health(): Promise<CAddressHealthResult>;
|
|
179
|
+
validateGAddress(address: string): void;
|
|
180
|
+
validateCAddress(address: string): void;
|
|
181
|
+
validateAddress(address: string): boolean;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Stellar Adapter - Gasless transactions via Fee Bump
|
|
186
|
+
* Routes through proxy.smoothsend.xyz with API key authentication
|
|
187
|
+
* Supports XLM, USDC, EURC and other Stellar assets
|
|
188
|
+
*/
|
|
189
|
+
declare class StellarAdapter implements IChainAdapter {
|
|
190
|
+
readonly chain: SupportedChain;
|
|
191
|
+
readonly config: ChainConfig;
|
|
192
|
+
/** C-Address (Soroban Smart Account) operations */
|
|
193
|
+
readonly cAddress: StellarCAddressAdapter;
|
|
194
|
+
private httpClient;
|
|
195
|
+
private network;
|
|
196
|
+
constructor(chain: SupportedChain, config: ChainConfig, apiKey: string, network?: 'testnet' | 'mainnet', includeOrigin?: boolean);
|
|
197
|
+
setNetwork(network: 'testnet' | 'mainnet'): void;
|
|
198
|
+
getNetwork(): 'testnet' | 'mainnet';
|
|
199
|
+
/**
|
|
200
|
+
* Stellar gasless: relayer pays fee. Returns 0 for user.
|
|
201
|
+
*/
|
|
202
|
+
estimateFee(_request: TransferRequest): Promise<FeeEstimate>;
|
|
203
|
+
/**
|
|
204
|
+
* Submit signed XDR to relayer for Fee Bump wrapping
|
|
205
|
+
*/
|
|
206
|
+
executeGaslessTransfer(signedData: SignedTransferData): Promise<TransferResult>;
|
|
207
|
+
getTransactionStatus(txHash: string): Promise<any>;
|
|
208
|
+
getHealth(): Promise<HealthResponse>;
|
|
209
|
+
validateAddress(address: string): boolean;
|
|
210
|
+
validateAmount(amount: string): boolean;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export { ChainConfig, FeeEstimate, HealthResponse, HttpClient, IChainAdapter, SignedTransferData, StellarAdapter, StellarCAddressAdapter, SupportedChain, TransferRequest, TransferResult };
|
|
214
|
+
export type { CAddressBalance, CAddressBalanceResult, CAddressBuildTransferResult, CAddressCreateResult, CAddressHealthResult, CAddressHistoryResult, CAddressLookupResult, CAddressSubmitResult, CAddressTransaction };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { A as APTOS_ERROR_CODES, C as CHAIN_ECOSYSTEM_MAP, c as STELLAR_ERROR_CODES, S as SmoothSendSDK, a as StellarAdapter, b as StellarCAddressAdapter, S as default } from '../chunks/shared-CaQMAGQR.js';
|
|
2
|
+
export { A as AuthenticationError, H as HttpClient, N as NetworkError, R as RateLimitError, S as SmoothSendError, V as VERSION, a as ValidationError, c as createErrorFromResponse, b as createNetworkError } from '../chunks/shared-CNF22ESH.js';
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @smoothsend/sdk/stellar
|
|
3
|
+
*
|
|
4
|
+
* Stellar-only entry point for smaller bundle sizes.
|
|
5
|
+
* Only includes Stellar functionality (classic and Soroban C-Address).
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { SmoothSendSDK } from '@smoothsend/sdk/stellar';
|
|
10
|
+
*
|
|
11
|
+
* const sdk = new SmoothSendSDK({
|
|
12
|
+
* apiKey: 'pk_nogas_xxx',
|
|
13
|
+
* network: 'testnet'
|
|
14
|
+
* });
|
|
15
|
+
*
|
|
16
|
+
* // Classic Stellar gasless transfer
|
|
17
|
+
* const result = await sdk.transfer({
|
|
18
|
+
* from,
|
|
19
|
+
* to,
|
|
20
|
+
* token: 'XLM',
|
|
21
|
+
* amount: '100',
|
|
22
|
+
* chain: 'stellar-testnet'
|
|
23
|
+
* }, stellarWallet);
|
|
24
|
+
*
|
|
25
|
+
* // C-Address (Soroban Smart Account) operations
|
|
26
|
+
* const { cAddress } = await sdk.stellar.cAddress.create('GABCD...');
|
|
27
|
+
* const { balances } = await sdk.stellar.cAddress.getBalances(cAddress);
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export { SmoothSendSDK } from './core/SmoothSendSDK';
|
|
31
|
+
export { StellarAdapter } from './adapters/stellar';
|
|
32
|
+
export { StellarCAddressAdapter, type CAddressCreateResult, type CAddressLookupResult, type CAddressBalance, type CAddressBalanceResult, type CAddressBuildTransferResult, type CAddressSubmitResult, type CAddressTransaction, type CAddressHistoryResult, type CAddressHealthResult, } from './adapters/stellar-c-address';
|
|
33
|
+
export * from './types';
|
|
34
|
+
export { HttpClient } from './utils/http';
|
|
35
|
+
export { VERSION } from './version';
|
|
36
|
+
export { SmoothSendSDK as default } from './core/SmoothSendSDK';
|
|
37
|
+
//# sourceMappingURL=stellar-entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stellar-entry.d.ts","sourceRoot":"","sources":["../src/stellar-entry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,EACL,sBAAsB,EACtB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B,MAAM,8BAA8B,CAAC;AAGtC,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,17 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smoothsend/sdk",
|
|
3
|
-
"version": "2.2.
|
|
4
|
-
"description": "Multi-chain gasless transaction SDK with C-Address (Soroban Smart Account) support for Stellar,
|
|
3
|
+
"version": "2.2.3",
|
|
4
|
+
"description": "Multi-chain gasless transaction SDK with C-Address (Soroban Smart Account) support for Stellar, Aptos & more",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "dist/index.
|
|
7
|
-
"module": "dist/index.
|
|
6
|
+
"main": "dist/index.cjs",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"import": "./dist/index.
|
|
12
|
-
"require": "./dist/index.
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"require": "./dist/index.cjs",
|
|
13
13
|
"types": "./dist/index.d.ts"
|
|
14
|
-
}
|
|
14
|
+
},
|
|
15
|
+
"./avax": {
|
|
16
|
+
"import": "./dist/avax/index.js",
|
|
17
|
+
"require": "./dist/avax/index.cjs",
|
|
18
|
+
"types": "./dist/avax/index.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./aptos": {
|
|
21
|
+
"import": "./dist/aptos/index.js",
|
|
22
|
+
"require": "./dist/aptos/index.cjs",
|
|
23
|
+
"types": "./dist/aptos/index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./stellar": {
|
|
26
|
+
"import": "./dist/stellar/index.js",
|
|
27
|
+
"require": "./dist/stellar/index.cjs",
|
|
28
|
+
"types": "./dist/stellar/index.d.ts"
|
|
29
|
+
},
|
|
30
|
+
"./package.json": "./package.json"
|
|
15
31
|
},
|
|
16
32
|
"files": [
|
|
17
33
|
"dist",
|
|
@@ -72,23 +88,6 @@
|
|
|
72
88
|
"react": ">=17.0.0",
|
|
73
89
|
"viem": ">=2.21.0"
|
|
74
90
|
},
|
|
75
|
-
"peerDependenciesMeta": {
|
|
76
|
-
"@aptos-labs/ts-sdk": {
|
|
77
|
-
"optional": false
|
|
78
|
-
},
|
|
79
|
-
"@aptos-labs/wallet-adapter-core": {
|
|
80
|
-
"optional": true
|
|
81
|
-
},
|
|
82
|
-
"@aptos-labs/wallet-adapter-react": {
|
|
83
|
-
"optional": true
|
|
84
|
-
},
|
|
85
|
-
"react": {
|
|
86
|
-
"optional": true
|
|
87
|
-
},
|
|
88
|
-
"viem": {
|
|
89
|
-
"optional": true
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
91
|
"dependencies": {
|
|
93
92
|
"axios": "^1.6.0"
|
|
94
93
|
},
|