@smoothsend/sdk 1.1.0 → 2.0.1
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/adapters/aptos.d.ts +1 -0
- package/dist/adapters/aptos.d.ts.map +1 -1
- package/dist/adapters/stellar-c-address.d.ts +179 -0
- package/dist/adapters/stellar-c-address.d.ts.map +1 -0
- package/dist/adapters/stellar.d.ts +3 -0
- package/dist/adapters/stellar.d.ts.map +1 -1
- package/dist/index.d.ts +218 -30
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +312 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +312 -8
- package/dist/index.js.map +1 -1
- package/dist/wallet-adapter/SmoothSendTransactionSubmitter.d.ts +7 -0
- package/dist/wallet-adapter/SmoothSendTransactionSubmitter.d.ts.map +1 -1
- package/package.json +5 -2
package/dist/adapters/aptos.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aptos.d.ts","sourceRoot":"","sources":["../../src/adapters/aptos.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,aAAa,EACb,WAAW,EACX,eAAe,EACf,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,SAAS,EACT,WAAW,EACX,cAAc,EAKf,MAAM,UAAU,CAAC;AAGlB;;;;;GAKG;AACH,qBAAa,YAAa,YAAW,aAAa;IAChD,SAAgB,KAAK,EAAE,cAAc,CAAC;IACtC,SAAgB,MAAM,EAAE,WAAW,CAAC;IACpC,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAAwB;gBAGrC,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,WAAW,EACnB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,SAAS,GAAG,SAAqB,EAC1C,aAAa,GAAE,OAAe;IA2BhC;;;OAGG;IACH,OAAO,CAAC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MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAqBxD;;;OAGG;IACG,SAAS,IAAI,OAAO,CAAC,cAAc,CAAC;IA8B1C,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAMzC,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IASvC;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IA+B5B;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAQ7B;;;OAGG;IACH,OAAO,CAAC,iCAAiC;IA0CzC;;;;OAIG;IACH,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAuB/C;;;;;;OAMG;IACG,sBAAsB,CAAC,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAkB1F;;;;;OAKG;IACG,uBAAuB,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,GAAG;QAAE,QAAQ,EAAE,GAAG,CAAA;KAAE,CAAC;IAmBzH;;OAEG;IACG,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;CAuBxE"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { HttpClient } from '../utils/http';
|
|
2
|
+
/**
|
|
3
|
+
* C-Address (Soroban Smart Account) response types
|
|
4
|
+
*/
|
|
5
|
+
export interface CAddressCreateResult {
|
|
6
|
+
cAddress: string;
|
|
7
|
+
txHash: string;
|
|
8
|
+
alreadyExisted: boolean;
|
|
9
|
+
explorerUrl: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CAddressLookupResult {
|
|
12
|
+
ownerGAddress: string;
|
|
13
|
+
cAddress: string | null;
|
|
14
|
+
hasAccount: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface CAddressBalance {
|
|
17
|
+
asset: string;
|
|
18
|
+
balance: string;
|
|
19
|
+
symbol: string;
|
|
20
|
+
}
|
|
21
|
+
export interface CAddressBalanceResult {
|
|
22
|
+
cAddress: string;
|
|
23
|
+
balances: CAddressBalance[];
|
|
24
|
+
}
|
|
25
|
+
export interface CAddressBuildTransferResult {
|
|
26
|
+
unsignedXDR: string;
|
|
27
|
+
networkPassphrase: string;
|
|
28
|
+
}
|
|
29
|
+
export interface CAddressSubmitResult {
|
|
30
|
+
txHash: string;
|
|
31
|
+
explorerUrl: string;
|
|
32
|
+
}
|
|
33
|
+
export interface CAddressTransaction {
|
|
34
|
+
type: 'sent' | 'received';
|
|
35
|
+
asset: string;
|
|
36
|
+
amount: string;
|
|
37
|
+
counterparty: string;
|
|
38
|
+
txHash: string;
|
|
39
|
+
timestamp: string;
|
|
40
|
+
ledger: number;
|
|
41
|
+
}
|
|
42
|
+
export interface CAddressHistoryResult {
|
|
43
|
+
cAddress: string;
|
|
44
|
+
transactions: CAddressTransaction[];
|
|
45
|
+
count: number;
|
|
46
|
+
}
|
|
47
|
+
export interface CAddressHealthResult {
|
|
48
|
+
service: string;
|
|
49
|
+
relayerPublicKey: string;
|
|
50
|
+
factoryContractId: string;
|
|
51
|
+
isReady: boolean;
|
|
52
|
+
network: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Stellar C-Address Adapter — SDK for Soroban Smart Account operations
|
|
56
|
+
*
|
|
57
|
+
* Provides a clean interface for:
|
|
58
|
+
* - Creating C-addresses (smart accounts) from G-addresses
|
|
59
|
+
* - Looking up existing C-addresses by owner
|
|
60
|
+
* - Querying token balances (XLM, USDC, EURC)
|
|
61
|
+
* - Building bridge transfers (G→C)
|
|
62
|
+
* - Building smart account transfers (C→G, C→C)
|
|
63
|
+
* - Submitting user-signed transactions via fee-bump
|
|
64
|
+
* - Getting transaction history
|
|
65
|
+
*
|
|
66
|
+
* All transactions are gasless — the relayer covers fees via fee-bump.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```typescript
|
|
70
|
+
* import { SmoothSendSDK } from '@smoothsend/sdk';
|
|
71
|
+
*
|
|
72
|
+
* const sdk = new SmoothSendSDK({ apiKey: 'pk_nogas_xxx', network: 'testnet' });
|
|
73
|
+
*
|
|
74
|
+
* // Create a C-address for a G-address owner
|
|
75
|
+
* const { cAddress } = await sdk.stellar.cAddress.create('GABCD...');
|
|
76
|
+
*
|
|
77
|
+
* // Get balances
|
|
78
|
+
* const { balances } = await sdk.stellar.cAddress.getBalances(cAddress);
|
|
79
|
+
*
|
|
80
|
+
* // Build a bridge transfer (G→C), user signs, relayer fee-bumps
|
|
81
|
+
* const { unsignedXDR } = await sdk.stellar.cAddress.buildBridgeTransfer({
|
|
82
|
+
* from: 'GABCD...',
|
|
83
|
+
* destination: cAddress,
|
|
84
|
+
* asset: 'USDC',
|
|
85
|
+
* amount: '10.5',
|
|
86
|
+
* });
|
|
87
|
+
* // Sign with wallet (e.g., Freighter)
|
|
88
|
+
* const signedXDR = await wallet.signTransaction(unsignedXDR);
|
|
89
|
+
* // Submit — relayer wraps in fee-bump
|
|
90
|
+
* const { txHash } = await sdk.stellar.cAddress.submitTransfer(signedXDR);
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
export declare class StellarCAddressAdapter {
|
|
94
|
+
private httpClient;
|
|
95
|
+
private basePath;
|
|
96
|
+
constructor(httpClient: HttpClient, network?: 'testnet' | 'mainnet');
|
|
97
|
+
/**
|
|
98
|
+
* Create a new C-address (Soroban Smart Account) for a G-address owner.
|
|
99
|
+
* If the owner already has a C-address, returns the existing one.
|
|
100
|
+
*
|
|
101
|
+
* The relayer pays all deployment fees — completely gasless for the user.
|
|
102
|
+
*
|
|
103
|
+
* @param ownerGAddress - The G-address that will control this smart account
|
|
104
|
+
* @returns The new C-address, tx hash, and whether it already existed
|
|
105
|
+
*/
|
|
106
|
+
create(ownerGAddress: string): Promise<CAddressCreateResult>;
|
|
107
|
+
/**
|
|
108
|
+
* Look up the C-address for a given G-address owner.
|
|
109
|
+
* Returns null if no C-address exists for this owner.
|
|
110
|
+
*
|
|
111
|
+
* @param ownerGAddress - The G-address to look up
|
|
112
|
+
*/
|
|
113
|
+
lookup(ownerGAddress: string): Promise<CAddressLookupResult>;
|
|
114
|
+
/**
|
|
115
|
+
* Get token balances for a C-address.
|
|
116
|
+
* Returns balances for XLM, USDC, and EURC.
|
|
117
|
+
*
|
|
118
|
+
* @param cAddress - The C-address to query
|
|
119
|
+
*/
|
|
120
|
+
getBalances(cAddress: string): Promise<CAddressBalanceResult>;
|
|
121
|
+
/**
|
|
122
|
+
* Build a bridge transfer (G→C) using SAC.transfer.
|
|
123
|
+
* Returns unsigned XDR for the user to sign with their wallet.
|
|
124
|
+
* After signing, submit via submitTransfer().
|
|
125
|
+
*
|
|
126
|
+
* @param params.from - Sender G-address (signs the tx)
|
|
127
|
+
* @param params.destination - Recipient C-address (or G-address)
|
|
128
|
+
* @param params.asset - Asset to transfer: 'XLM', 'USDC', or 'EURC'
|
|
129
|
+
* @param params.amount - Human-readable amount (e.g., '10.5')
|
|
130
|
+
*/
|
|
131
|
+
buildBridgeTransfer(params: {
|
|
132
|
+
from: string;
|
|
133
|
+
destination: string;
|
|
134
|
+
asset: string;
|
|
135
|
+
amount: string;
|
|
136
|
+
}): Promise<CAddressBuildTransferResult>;
|
|
137
|
+
/**
|
|
138
|
+
* Build a transfer from a C-address (SmartAccount.send).
|
|
139
|
+
* Returns unsigned XDR for the owner to sign.
|
|
140
|
+
* After signing, submit via submitTransfer().
|
|
141
|
+
*
|
|
142
|
+
* @param params.from - Owner G-address (signs auth)
|
|
143
|
+
* @param params.cAddress - Source C-address (holds the funds)
|
|
144
|
+
* @param params.destination - Recipient (G or C address)
|
|
145
|
+
* @param params.asset - Asset: 'XLM', 'USDC', or 'EURC'
|
|
146
|
+
* @param params.amount - Human-readable amount
|
|
147
|
+
*/
|
|
148
|
+
buildTransfer(params: {
|
|
149
|
+
from: string;
|
|
150
|
+
cAddress: string;
|
|
151
|
+
destination: string;
|
|
152
|
+
asset: string;
|
|
153
|
+
amount: string;
|
|
154
|
+
}): Promise<CAddressBuildTransferResult>;
|
|
155
|
+
/**
|
|
156
|
+
* Submit a user-signed transaction.
|
|
157
|
+
* The relayer wraps it in a fee-bump transaction and submits to the network.
|
|
158
|
+
* The user pays zero fees — the relayer covers everything.
|
|
159
|
+
*
|
|
160
|
+
* @param signedXDR - The user-signed transaction XDR (base64)
|
|
161
|
+
*/
|
|
162
|
+
submitTransfer(signedXDR: string): Promise<CAddressSubmitResult>;
|
|
163
|
+
/**
|
|
164
|
+
* Get transaction history for a C-address.
|
|
165
|
+
* Returns recent transfer events (sent/received) across all supported tokens.
|
|
166
|
+
*
|
|
167
|
+
* @param cAddress - The C-address to query
|
|
168
|
+
* @param limit - Maximum number of transactions to return (default: 20)
|
|
169
|
+
*/
|
|
170
|
+
getHistory(cAddress: string, limit?: number): Promise<CAddressHistoryResult>;
|
|
171
|
+
/**
|
|
172
|
+
* Health check for the C-address bridge service.
|
|
173
|
+
*/
|
|
174
|
+
health(): Promise<CAddressHealthResult>;
|
|
175
|
+
validateGAddress(address: string): void;
|
|
176
|
+
validateCAddress(address: string): void;
|
|
177
|
+
validateAddress(address: string): boolean;
|
|
178
|
+
}
|
|
179
|
+
//# sourceMappingURL=stellar-c-address.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stellar-c-address.d.ts","sourceRoot":"","sources":["../../src/adapters/stellar-c-address.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI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, HealthResponse } from '../types';
|
|
2
|
+
import { StellarCAddressAdapter } from './stellar-c-address';
|
|
2
3
|
/**
|
|
3
4
|
* Stellar Adapter - Gasless transactions via Fee Bump
|
|
4
5
|
* Routes through proxy.smoothsend.xyz with API key authentication
|
|
@@ -7,6 +8,8 @@ import { SupportedChain, IChainAdapter, ChainConfig, TransferRequest, FeeEstimat
|
|
|
7
8
|
export declare class StellarAdapter implements IChainAdapter {
|
|
8
9
|
readonly chain: SupportedChain;
|
|
9
10
|
readonly config: ChainConfig;
|
|
11
|
+
/** C-Address (Soroban Smart Account) operations */
|
|
12
|
+
readonly cAddress: StellarCAddressAdapter;
|
|
10
13
|
private httpClient;
|
|
11
14
|
private network;
|
|
12
15
|
constructor(chain: SupportedChain, config: ChainConfig, apiKey: string, network?: 'testnet' | 'mainnet', includeOrigin?: boolean);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stellar.d.ts","sourceRoot":"","sources":["../../src/adapters/stellar.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,aAAa,EACb,WAAW,EACX,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,cAAc,EACd,cAAc,EAKf,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"stellar.d.ts","sourceRoot":"","sources":["../../src/adapters/stellar.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,aAAa,EACb,WAAW,EACX,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,cAAc,EACd,cAAc,EAKf,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAK7D;;;;GAIG;AACH,qBAAa,cAAe,YAAW,aAAa;IAClD,SAAgB,KAAK,EAAE,cAAc,CAAC;IACtC,SAAgB,MAAM,EAAE,WAAW,CAAC;IACpC,mDAAmD;IACnD,SAAgB,QAAQ,EAAE,sBAAsB,CAAC;IACjD,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,OAAO,CAAwB;gBAGrC,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,WAAW,EACnB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,SAAS,GAAG,SAAqB,EAC1C,aAAa,GAAE,OAAe;IA2BhC,UAAU,CAAC,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI;IAKhD,UAAU,IAAI,SAAS,GAAG,SAAS;IAInC;;OAEG;IACG,WAAW,CAAC,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC;IAUlE;;OAEG;IACG,sBAAsB,CAAC,UAAU,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,CAAC;IA4C/E,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAkBlD,SAAS,IAAI,OAAO,CAAC,cAAc,CAAC;IAuB1C,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAKzC,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;CAQxC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1510,6 +1510,12 @@ interface SmoothSendTransactionSubmitterConfig {
|
|
|
1510
1510
|
* @default 30000
|
|
1511
1511
|
*/
|
|
1512
1512
|
timeout?: number;
|
|
1513
|
+
/**
|
|
1514
|
+
* A function that returns a captcha token (e.g. from Cloudflare Turnstile or reCAPTCHA).
|
|
1515
|
+
* Called before each transaction if the project requires captcha verification.
|
|
1516
|
+
* Return null/undefined to skip captcha.
|
|
1517
|
+
*/
|
|
1518
|
+
getCaptchaToken?: () => Promise<string | null | undefined>;
|
|
1513
1519
|
/**
|
|
1514
1520
|
* Enable debug logging
|
|
1515
1521
|
* @default false
|
|
@@ -1543,6 +1549,7 @@ declare class SmoothSendTransactionSubmitter implements TransactionSubmitter {
|
|
|
1543
1549
|
private readonly network;
|
|
1544
1550
|
private readonly gatewayUrl;
|
|
1545
1551
|
private readonly timeout;
|
|
1552
|
+
private readonly getCaptchaToken?;
|
|
1546
1553
|
private readonly debug;
|
|
1547
1554
|
constructor(config: SmoothSendTransactionSubmitterConfig);
|
|
1548
1555
|
/**
|
|
@@ -1899,6 +1906,7 @@ declare class AptosAdapter implements IChainAdapter {
|
|
|
1899
1906
|
validateAmount(amount: string): boolean;
|
|
1900
1907
|
/**
|
|
1901
1908
|
* Get Aptos token address from symbol
|
|
1909
|
+
* Mirrors aptosrelayer/config/chains.json
|
|
1902
1910
|
*/
|
|
1903
1911
|
private getAptosTokenAddress;
|
|
1904
1912
|
/**
|
|
@@ -1939,33 +1947,6 @@ declare class AptosAdapter implements IChainAdapter {
|
|
|
1939
1947
|
callMoveFunction(functionName: string, args: any[]): Promise<any>;
|
|
1940
1948
|
}
|
|
1941
1949
|
|
|
1942
|
-
/**
|
|
1943
|
-
* Stellar Adapter - Gasless transactions via Fee Bump
|
|
1944
|
-
* Routes through proxy.smoothsend.xyz with API key authentication
|
|
1945
|
-
* Supports XLM, USDC, EURC and other Stellar assets
|
|
1946
|
-
*/
|
|
1947
|
-
declare class StellarAdapter implements IChainAdapter {
|
|
1948
|
-
readonly chain: SupportedChain;
|
|
1949
|
-
readonly config: ChainConfig;
|
|
1950
|
-
private httpClient;
|
|
1951
|
-
private network;
|
|
1952
|
-
constructor(chain: SupportedChain, config: ChainConfig, apiKey: string, network?: 'testnet' | 'mainnet', includeOrigin?: boolean);
|
|
1953
|
-
setNetwork(network: 'testnet' | 'mainnet'): void;
|
|
1954
|
-
getNetwork(): 'testnet' | 'mainnet';
|
|
1955
|
-
/**
|
|
1956
|
-
* Stellar gasless: relayer pays fee. Returns 0 for user.
|
|
1957
|
-
*/
|
|
1958
|
-
estimateFee(_request: TransferRequest): Promise<FeeEstimate>;
|
|
1959
|
-
/**
|
|
1960
|
-
* Submit signed XDR to relayer for Fee Bump wrapping
|
|
1961
|
-
*/
|
|
1962
|
-
executeGaslessTransfer(signedData: SignedTransferData): Promise<TransferResult>;
|
|
1963
|
-
getTransactionStatus(txHash: string): Promise<any>;
|
|
1964
|
-
getHealth(): Promise<HealthResponse>;
|
|
1965
|
-
validateAddress(address: string): boolean;
|
|
1966
|
-
validateAmount(amount: string): boolean;
|
|
1967
|
-
}
|
|
1968
|
-
|
|
1969
1950
|
/**
|
|
1970
1951
|
* Configuration for HTTP client
|
|
1971
1952
|
*/
|
|
@@ -2041,6 +2022,213 @@ declare class HttpClient {
|
|
|
2041
2022
|
getNetwork(): 'testnet' | 'mainnet';
|
|
2042
2023
|
}
|
|
2043
2024
|
|
|
2025
|
+
/**
|
|
2026
|
+
* C-Address (Soroban Smart Account) response types
|
|
2027
|
+
*/
|
|
2028
|
+
interface CAddressCreateResult {
|
|
2029
|
+
cAddress: string;
|
|
2030
|
+
txHash: string;
|
|
2031
|
+
alreadyExisted: boolean;
|
|
2032
|
+
explorerUrl: string;
|
|
2033
|
+
}
|
|
2034
|
+
interface CAddressLookupResult {
|
|
2035
|
+
ownerGAddress: string;
|
|
2036
|
+
cAddress: string | null;
|
|
2037
|
+
hasAccount: boolean;
|
|
2038
|
+
}
|
|
2039
|
+
interface CAddressBalance {
|
|
2040
|
+
asset: string;
|
|
2041
|
+
balance: string;
|
|
2042
|
+
symbol: string;
|
|
2043
|
+
}
|
|
2044
|
+
interface CAddressBalanceResult {
|
|
2045
|
+
cAddress: string;
|
|
2046
|
+
balances: CAddressBalance[];
|
|
2047
|
+
}
|
|
2048
|
+
interface CAddressBuildTransferResult {
|
|
2049
|
+
unsignedXDR: string;
|
|
2050
|
+
networkPassphrase: string;
|
|
2051
|
+
}
|
|
2052
|
+
interface CAddressSubmitResult {
|
|
2053
|
+
txHash: string;
|
|
2054
|
+
explorerUrl: string;
|
|
2055
|
+
}
|
|
2056
|
+
interface CAddressTransaction {
|
|
2057
|
+
type: 'sent' | 'received';
|
|
2058
|
+
asset: string;
|
|
2059
|
+
amount: string;
|
|
2060
|
+
counterparty: string;
|
|
2061
|
+
txHash: string;
|
|
2062
|
+
timestamp: string;
|
|
2063
|
+
ledger: number;
|
|
2064
|
+
}
|
|
2065
|
+
interface CAddressHistoryResult {
|
|
2066
|
+
cAddress: string;
|
|
2067
|
+
transactions: CAddressTransaction[];
|
|
2068
|
+
count: number;
|
|
2069
|
+
}
|
|
2070
|
+
interface CAddressHealthResult {
|
|
2071
|
+
service: string;
|
|
2072
|
+
relayerPublicKey: string;
|
|
2073
|
+
factoryContractId: string;
|
|
2074
|
+
isReady: boolean;
|
|
2075
|
+
network: string;
|
|
2076
|
+
}
|
|
2077
|
+
/**
|
|
2078
|
+
* Stellar C-Address Adapter — SDK for Soroban Smart Account operations
|
|
2079
|
+
*
|
|
2080
|
+
* Provides a clean interface for:
|
|
2081
|
+
* - Creating C-addresses (smart accounts) from G-addresses
|
|
2082
|
+
* - Looking up existing C-addresses by owner
|
|
2083
|
+
* - Querying token balances (XLM, USDC, EURC)
|
|
2084
|
+
* - Building bridge transfers (G→C)
|
|
2085
|
+
* - Building smart account transfers (C→G, C→C)
|
|
2086
|
+
* - Submitting user-signed transactions via fee-bump
|
|
2087
|
+
* - Getting transaction history
|
|
2088
|
+
*
|
|
2089
|
+
* All transactions are gasless — the relayer covers fees via fee-bump.
|
|
2090
|
+
*
|
|
2091
|
+
* @example
|
|
2092
|
+
* ```typescript
|
|
2093
|
+
* import { SmoothSendSDK } from '@smoothsend/sdk';
|
|
2094
|
+
*
|
|
2095
|
+
* const sdk = new SmoothSendSDK({ apiKey: 'pk_nogas_xxx', network: 'testnet' });
|
|
2096
|
+
*
|
|
2097
|
+
* // Create a C-address for a G-address owner
|
|
2098
|
+
* const { cAddress } = await sdk.stellar.cAddress.create('GABCD...');
|
|
2099
|
+
*
|
|
2100
|
+
* // Get balances
|
|
2101
|
+
* const { balances } = await sdk.stellar.cAddress.getBalances(cAddress);
|
|
2102
|
+
*
|
|
2103
|
+
* // Build a bridge transfer (G→C), user signs, relayer fee-bumps
|
|
2104
|
+
* const { unsignedXDR } = await sdk.stellar.cAddress.buildBridgeTransfer({
|
|
2105
|
+
* from: 'GABCD...',
|
|
2106
|
+
* destination: cAddress,
|
|
2107
|
+
* asset: 'USDC',
|
|
2108
|
+
* amount: '10.5',
|
|
2109
|
+
* });
|
|
2110
|
+
* // Sign with wallet (e.g., Freighter)
|
|
2111
|
+
* const signedXDR = await wallet.signTransaction(unsignedXDR);
|
|
2112
|
+
* // Submit — relayer wraps in fee-bump
|
|
2113
|
+
* const { txHash } = await sdk.stellar.cAddress.submitTransfer(signedXDR);
|
|
2114
|
+
* ```
|
|
2115
|
+
*/
|
|
2116
|
+
declare class StellarCAddressAdapter {
|
|
2117
|
+
private httpClient;
|
|
2118
|
+
private basePath;
|
|
2119
|
+
constructor(httpClient: HttpClient, network?: 'testnet' | 'mainnet');
|
|
2120
|
+
/**
|
|
2121
|
+
* Create a new C-address (Soroban Smart Account) for a G-address owner.
|
|
2122
|
+
* If the owner already has a C-address, returns the existing one.
|
|
2123
|
+
*
|
|
2124
|
+
* The relayer pays all deployment fees — completely gasless for the user.
|
|
2125
|
+
*
|
|
2126
|
+
* @param ownerGAddress - The G-address that will control this smart account
|
|
2127
|
+
* @returns The new C-address, tx hash, and whether it already existed
|
|
2128
|
+
*/
|
|
2129
|
+
create(ownerGAddress: string): Promise<CAddressCreateResult>;
|
|
2130
|
+
/**
|
|
2131
|
+
* Look up the C-address for a given G-address owner.
|
|
2132
|
+
* Returns null if no C-address exists for this owner.
|
|
2133
|
+
*
|
|
2134
|
+
* @param ownerGAddress - The G-address to look up
|
|
2135
|
+
*/
|
|
2136
|
+
lookup(ownerGAddress: string): Promise<CAddressLookupResult>;
|
|
2137
|
+
/**
|
|
2138
|
+
* Get token balances for a C-address.
|
|
2139
|
+
* Returns balances for XLM, USDC, and EURC.
|
|
2140
|
+
*
|
|
2141
|
+
* @param cAddress - The C-address to query
|
|
2142
|
+
*/
|
|
2143
|
+
getBalances(cAddress: string): Promise<CAddressBalanceResult>;
|
|
2144
|
+
/**
|
|
2145
|
+
* Build a bridge transfer (G→C) using SAC.transfer.
|
|
2146
|
+
* Returns unsigned XDR for the user to sign with their wallet.
|
|
2147
|
+
* After signing, submit via submitTransfer().
|
|
2148
|
+
*
|
|
2149
|
+
* @param params.from - Sender G-address (signs the tx)
|
|
2150
|
+
* @param params.destination - Recipient C-address (or G-address)
|
|
2151
|
+
* @param params.asset - Asset to transfer: 'XLM', 'USDC', or 'EURC'
|
|
2152
|
+
* @param params.amount - Human-readable amount (e.g., '10.5')
|
|
2153
|
+
*/
|
|
2154
|
+
buildBridgeTransfer(params: {
|
|
2155
|
+
from: string;
|
|
2156
|
+
destination: string;
|
|
2157
|
+
asset: string;
|
|
2158
|
+
amount: string;
|
|
2159
|
+
}): Promise<CAddressBuildTransferResult>;
|
|
2160
|
+
/**
|
|
2161
|
+
* Build a transfer from a C-address (SmartAccount.send).
|
|
2162
|
+
* Returns unsigned XDR for the owner to sign.
|
|
2163
|
+
* After signing, submit via submitTransfer().
|
|
2164
|
+
*
|
|
2165
|
+
* @param params.from - Owner G-address (signs auth)
|
|
2166
|
+
* @param params.cAddress - Source C-address (holds the funds)
|
|
2167
|
+
* @param params.destination - Recipient (G or C address)
|
|
2168
|
+
* @param params.asset - Asset: 'XLM', 'USDC', or 'EURC'
|
|
2169
|
+
* @param params.amount - Human-readable amount
|
|
2170
|
+
*/
|
|
2171
|
+
buildTransfer(params: {
|
|
2172
|
+
from: string;
|
|
2173
|
+
cAddress: string;
|
|
2174
|
+
destination: string;
|
|
2175
|
+
asset: string;
|
|
2176
|
+
amount: string;
|
|
2177
|
+
}): Promise<CAddressBuildTransferResult>;
|
|
2178
|
+
/**
|
|
2179
|
+
* Submit a user-signed transaction.
|
|
2180
|
+
* The relayer wraps it in a fee-bump transaction and submits to the network.
|
|
2181
|
+
* The user pays zero fees — the relayer covers everything.
|
|
2182
|
+
*
|
|
2183
|
+
* @param signedXDR - The user-signed transaction XDR (base64)
|
|
2184
|
+
*/
|
|
2185
|
+
submitTransfer(signedXDR: string): Promise<CAddressSubmitResult>;
|
|
2186
|
+
/**
|
|
2187
|
+
* Get transaction history for a C-address.
|
|
2188
|
+
* Returns recent transfer events (sent/received) across all supported tokens.
|
|
2189
|
+
*
|
|
2190
|
+
* @param cAddress - The C-address to query
|
|
2191
|
+
* @param limit - Maximum number of transactions to return (default: 20)
|
|
2192
|
+
*/
|
|
2193
|
+
getHistory(cAddress: string, limit?: number): Promise<CAddressHistoryResult>;
|
|
2194
|
+
/**
|
|
2195
|
+
* Health check for the C-address bridge service.
|
|
2196
|
+
*/
|
|
2197
|
+
health(): Promise<CAddressHealthResult>;
|
|
2198
|
+
validateGAddress(address: string): void;
|
|
2199
|
+
validateCAddress(address: string): void;
|
|
2200
|
+
validateAddress(address: string): boolean;
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
/**
|
|
2204
|
+
* Stellar Adapter - Gasless transactions via Fee Bump
|
|
2205
|
+
* Routes through proxy.smoothsend.xyz with API key authentication
|
|
2206
|
+
* Supports XLM, USDC, EURC and other Stellar assets
|
|
2207
|
+
*/
|
|
2208
|
+
declare class StellarAdapter implements IChainAdapter {
|
|
2209
|
+
readonly chain: SupportedChain;
|
|
2210
|
+
readonly config: ChainConfig;
|
|
2211
|
+
/** C-Address (Soroban Smart Account) operations */
|
|
2212
|
+
readonly cAddress: StellarCAddressAdapter;
|
|
2213
|
+
private httpClient;
|
|
2214
|
+
private network;
|
|
2215
|
+
constructor(chain: SupportedChain, config: ChainConfig, apiKey: string, network?: 'testnet' | 'mainnet', includeOrigin?: boolean);
|
|
2216
|
+
setNetwork(network: 'testnet' | 'mainnet'): void;
|
|
2217
|
+
getNetwork(): 'testnet' | 'mainnet';
|
|
2218
|
+
/**
|
|
2219
|
+
* Stellar gasless: relayer pays fee. Returns 0 for user.
|
|
2220
|
+
*/
|
|
2221
|
+
estimateFee(_request: TransferRequest): Promise<FeeEstimate>;
|
|
2222
|
+
/**
|
|
2223
|
+
* Submit signed XDR to relayer for Fee Bump wrapping
|
|
2224
|
+
*/
|
|
2225
|
+
executeGaslessTransfer(signedData: SignedTransferData): Promise<TransferResult>;
|
|
2226
|
+
getTransactionStatus(txHash: string): Promise<any>;
|
|
2227
|
+
getHealth(): Promise<HealthResponse>;
|
|
2228
|
+
validateAddress(address: string): boolean;
|
|
2229
|
+
validateAmount(amount: string): boolean;
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2044
2232
|
/**
|
|
2045
2233
|
* SmoothSend SDK v2.0
|
|
2046
2234
|
*
|
|
@@ -2072,7 +2260,7 @@ declare class HttpClient {
|
|
|
2072
2260
|
* SDK version
|
|
2073
2261
|
* @public
|
|
2074
2262
|
*/
|
|
2075
|
-
declare const VERSION = "
|
|
2263
|
+
declare const VERSION = "2.0.0";
|
|
2076
2264
|
|
|
2077
|
-
export { APTOS_ERROR_CODES, AptosAdapter, AuthenticationError, CHAIN_ECOSYSTEM_MAP, HttpClient, NetworkError, RateLimitError, STELLAR_ERROR_CODES, ScriptComposerClient, SmoothSendError, SmoothSendSDK, SmoothSendTransactionSubmitter, StellarAdapter, VERSION, ValidationError, createErrorFromResponse, createNetworkError, createScriptComposerClient, createSmoothSendSubmitter, SmoothSendSDK as default };
|
|
2078
|
-
export type { ApiResponse, AptosErrorCode, AptosTransferData, AptosWallet, AvalancheTransferData, BatchRelayTransferRequest, BatchTransferRequest, BuildTransferParams, BuildTransferResult, ChainConfig, ChainEcosystem, ChainInfo, DomainSeparatorResponse, EVMTransferData, ErrorResponse, EstimateGasRequest, EventListener, FeeEstimate, FeeEstimateResult, GasEstimateResponse, HealthResponse, IChainAdapter, PermitData, PrepareSignatureRequest, PrepareSignatureResponse, RelayTransferRequest, RelayTransferResponse, ScriptComposerConfig, SignatureData, SignedTransferData, SmoothSendConfig, SmoothSendTransactionSubmitterConfig, StellarWallet, SubmitSignedTransactionParams, SubmitTransactionResult, SuccessResponse, SupportedChain, TokenBalance, TokenInfo, TransactionSubmitter, TransferData, TransferEvent, TransferQuote, TransferQuoteRequest, TransferQuoteResponse, TransferRequest, TransferResult, TransferStatusResponse, UsageMetadata };
|
|
2265
|
+
export { APTOS_ERROR_CODES, AptosAdapter, AuthenticationError, CHAIN_ECOSYSTEM_MAP, HttpClient, NetworkError, RateLimitError, STELLAR_ERROR_CODES, ScriptComposerClient, SmoothSendError, SmoothSendSDK, SmoothSendTransactionSubmitter, StellarAdapter, StellarCAddressAdapter, VERSION, ValidationError, createErrorFromResponse, createNetworkError, createScriptComposerClient, createSmoothSendSubmitter, SmoothSendSDK as default };
|
|
2266
|
+
export type { ApiResponse, AptosErrorCode, AptosTransferData, AptosWallet, AvalancheTransferData, BatchRelayTransferRequest, BatchTransferRequest, BuildTransferParams, BuildTransferResult, CAddressBalance, CAddressBalanceResult, CAddressBuildTransferResult, CAddressCreateResult, CAddressHealthResult, CAddressHistoryResult, CAddressLookupResult, CAddressSubmitResult, CAddressTransaction, ChainConfig, ChainEcosystem, ChainInfo, DomainSeparatorResponse, EVMTransferData, ErrorResponse, EstimateGasRequest, EventListener, FeeEstimate, FeeEstimateResult, GasEstimateResponse, HealthResponse, IChainAdapter, PermitData, PrepareSignatureRequest, PrepareSignatureResponse, RelayTransferRequest, RelayTransferResponse, ScriptComposerConfig, SignatureData, SignedTransferData, SmoothSendConfig, SmoothSendTransactionSubmitterConfig, StellarWallet, SubmitSignedTransactionParams, SubmitTransactionResult, SuccessResponse, SupportedChain, TokenBalance, TokenInfo, TransactionSubmitter, TransferData, TransferEvent, TransferQuote, TransferQuoteRequest, TransferQuoteResponse, TransferRequest, TransferResult, TransferStatusResponse, UsageMetadata };
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAIrD,OAAO,EACL,8BAA8B,EAC9B,yBAAyB,EACzB,KAAK,oCAAoC,EACzC,KAAK,oBAAoB,GAC1B,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