@smoothsend/sdk 1.1.0 → 2.0.2
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 +223 -30
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +350 -16
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +350 -15
- package/dist/index.js.map +1 -1
- package/dist/wallet-adapter/SmoothSendTransactionSubmitter.d.ts +12 -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
|
/**
|
|
@@ -1560,6 +1567,11 @@ declare class SmoothSendTransactionSubmitter implements TransactionSubmitter {
|
|
|
1560
1567
|
additionalSignersAuthenticators?: Array<AccountAuthenticator>;
|
|
1561
1568
|
pluginParams?: Record<string, unknown>;
|
|
1562
1569
|
}): Promise<PendingTransactionResponse>;
|
|
1570
|
+
/**
|
|
1571
|
+
* Resolve the effective network from aptosConfig.
|
|
1572
|
+
* aptosConfig.network is the source of truth set by AptosWalletAdapterProvider.
|
|
1573
|
+
*/
|
|
1574
|
+
private resolveNetwork;
|
|
1563
1575
|
/**
|
|
1564
1576
|
* Make an HTTP request to the SmoothSend gateway
|
|
1565
1577
|
*/
|
|
@@ -1899,6 +1911,7 @@ declare class AptosAdapter implements IChainAdapter {
|
|
|
1899
1911
|
validateAmount(amount: string): boolean;
|
|
1900
1912
|
/**
|
|
1901
1913
|
* Get Aptos token address from symbol
|
|
1914
|
+
* Mirrors aptosrelayer/config/chains.json
|
|
1902
1915
|
*/
|
|
1903
1916
|
private getAptosTokenAddress;
|
|
1904
1917
|
/**
|
|
@@ -1939,33 +1952,6 @@ declare class AptosAdapter implements IChainAdapter {
|
|
|
1939
1952
|
callMoveFunction(functionName: string, args: any[]): Promise<any>;
|
|
1940
1953
|
}
|
|
1941
1954
|
|
|
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
1955
|
/**
|
|
1970
1956
|
* Configuration for HTTP client
|
|
1971
1957
|
*/
|
|
@@ -2041,6 +2027,213 @@ declare class HttpClient {
|
|
|
2041
2027
|
getNetwork(): 'testnet' | 'mainnet';
|
|
2042
2028
|
}
|
|
2043
2029
|
|
|
2030
|
+
/**
|
|
2031
|
+
* C-Address (Soroban Smart Account) response types
|
|
2032
|
+
*/
|
|
2033
|
+
interface CAddressCreateResult {
|
|
2034
|
+
cAddress: string;
|
|
2035
|
+
txHash: string;
|
|
2036
|
+
alreadyExisted: boolean;
|
|
2037
|
+
explorerUrl: string;
|
|
2038
|
+
}
|
|
2039
|
+
interface CAddressLookupResult {
|
|
2040
|
+
ownerGAddress: string;
|
|
2041
|
+
cAddress: string | null;
|
|
2042
|
+
hasAccount: boolean;
|
|
2043
|
+
}
|
|
2044
|
+
interface CAddressBalance {
|
|
2045
|
+
asset: string;
|
|
2046
|
+
balance: string;
|
|
2047
|
+
symbol: string;
|
|
2048
|
+
}
|
|
2049
|
+
interface CAddressBalanceResult {
|
|
2050
|
+
cAddress: string;
|
|
2051
|
+
balances: CAddressBalance[];
|
|
2052
|
+
}
|
|
2053
|
+
interface CAddressBuildTransferResult {
|
|
2054
|
+
unsignedXDR: string;
|
|
2055
|
+
networkPassphrase: string;
|
|
2056
|
+
}
|
|
2057
|
+
interface CAddressSubmitResult {
|
|
2058
|
+
txHash: string;
|
|
2059
|
+
explorerUrl: string;
|
|
2060
|
+
}
|
|
2061
|
+
interface CAddressTransaction {
|
|
2062
|
+
type: 'sent' | 'received';
|
|
2063
|
+
asset: string;
|
|
2064
|
+
amount: string;
|
|
2065
|
+
counterparty: string;
|
|
2066
|
+
txHash: string;
|
|
2067
|
+
timestamp: string;
|
|
2068
|
+
ledger: number;
|
|
2069
|
+
}
|
|
2070
|
+
interface CAddressHistoryResult {
|
|
2071
|
+
cAddress: string;
|
|
2072
|
+
transactions: CAddressTransaction[];
|
|
2073
|
+
count: number;
|
|
2074
|
+
}
|
|
2075
|
+
interface CAddressHealthResult {
|
|
2076
|
+
service: string;
|
|
2077
|
+
relayerPublicKey: string;
|
|
2078
|
+
factoryContractId: string;
|
|
2079
|
+
isReady: boolean;
|
|
2080
|
+
network: string;
|
|
2081
|
+
}
|
|
2082
|
+
/**
|
|
2083
|
+
* Stellar C-Address Adapter — SDK for Soroban Smart Account operations
|
|
2084
|
+
*
|
|
2085
|
+
* Provides a clean interface for:
|
|
2086
|
+
* - Creating C-addresses (smart accounts) from G-addresses
|
|
2087
|
+
* - Looking up existing C-addresses by owner
|
|
2088
|
+
* - Querying token balances (XLM, USDC, EURC)
|
|
2089
|
+
* - Building bridge transfers (G→C)
|
|
2090
|
+
* - Building smart account transfers (C→G, C→C)
|
|
2091
|
+
* - Submitting user-signed transactions via fee-bump
|
|
2092
|
+
* - Getting transaction history
|
|
2093
|
+
*
|
|
2094
|
+
* All transactions are gasless — the relayer covers fees via fee-bump.
|
|
2095
|
+
*
|
|
2096
|
+
* @example
|
|
2097
|
+
* ```typescript
|
|
2098
|
+
* import { SmoothSendSDK } from '@smoothsend/sdk';
|
|
2099
|
+
*
|
|
2100
|
+
* const sdk = new SmoothSendSDK({ apiKey: 'pk_nogas_xxx', network: 'testnet' });
|
|
2101
|
+
*
|
|
2102
|
+
* // Create a C-address for a G-address owner
|
|
2103
|
+
* const { cAddress } = await sdk.stellar.cAddress.create('GABCD...');
|
|
2104
|
+
*
|
|
2105
|
+
* // Get balances
|
|
2106
|
+
* const { balances } = await sdk.stellar.cAddress.getBalances(cAddress);
|
|
2107
|
+
*
|
|
2108
|
+
* // Build a bridge transfer (G→C), user signs, relayer fee-bumps
|
|
2109
|
+
* const { unsignedXDR } = await sdk.stellar.cAddress.buildBridgeTransfer({
|
|
2110
|
+
* from: 'GABCD...',
|
|
2111
|
+
* destination: cAddress,
|
|
2112
|
+
* asset: 'USDC',
|
|
2113
|
+
* amount: '10.5',
|
|
2114
|
+
* });
|
|
2115
|
+
* // Sign with wallet (e.g., Freighter)
|
|
2116
|
+
* const signedXDR = await wallet.signTransaction(unsignedXDR);
|
|
2117
|
+
* // Submit — relayer wraps in fee-bump
|
|
2118
|
+
* const { txHash } = await sdk.stellar.cAddress.submitTransfer(signedXDR);
|
|
2119
|
+
* ```
|
|
2120
|
+
*/
|
|
2121
|
+
declare class StellarCAddressAdapter {
|
|
2122
|
+
private httpClient;
|
|
2123
|
+
private basePath;
|
|
2124
|
+
constructor(httpClient: HttpClient, network?: 'testnet' | 'mainnet');
|
|
2125
|
+
/**
|
|
2126
|
+
* Create a new C-address (Soroban Smart Account) for a G-address owner.
|
|
2127
|
+
* If the owner already has a C-address, returns the existing one.
|
|
2128
|
+
*
|
|
2129
|
+
* The relayer pays all deployment fees — completely gasless for the user.
|
|
2130
|
+
*
|
|
2131
|
+
* @param ownerGAddress - The G-address that will control this smart account
|
|
2132
|
+
* @returns The new C-address, tx hash, and whether it already existed
|
|
2133
|
+
*/
|
|
2134
|
+
create(ownerGAddress: string): Promise<CAddressCreateResult>;
|
|
2135
|
+
/**
|
|
2136
|
+
* Look up the C-address for a given G-address owner.
|
|
2137
|
+
* Returns null if no C-address exists for this owner.
|
|
2138
|
+
*
|
|
2139
|
+
* @param ownerGAddress - The G-address to look up
|
|
2140
|
+
*/
|
|
2141
|
+
lookup(ownerGAddress: string): Promise<CAddressLookupResult>;
|
|
2142
|
+
/**
|
|
2143
|
+
* Get token balances for a C-address.
|
|
2144
|
+
* Returns balances for XLM, USDC, and EURC.
|
|
2145
|
+
*
|
|
2146
|
+
* @param cAddress - The C-address to query
|
|
2147
|
+
*/
|
|
2148
|
+
getBalances(cAddress: string): Promise<CAddressBalanceResult>;
|
|
2149
|
+
/**
|
|
2150
|
+
* Build a bridge transfer (G→C) using SAC.transfer.
|
|
2151
|
+
* Returns unsigned XDR for the user to sign with their wallet.
|
|
2152
|
+
* After signing, submit via submitTransfer().
|
|
2153
|
+
*
|
|
2154
|
+
* @param params.from - Sender G-address (signs the tx)
|
|
2155
|
+
* @param params.destination - Recipient C-address (or G-address)
|
|
2156
|
+
* @param params.asset - Asset to transfer: 'XLM', 'USDC', or 'EURC'
|
|
2157
|
+
* @param params.amount - Human-readable amount (e.g., '10.5')
|
|
2158
|
+
*/
|
|
2159
|
+
buildBridgeTransfer(params: {
|
|
2160
|
+
from: string;
|
|
2161
|
+
destination: string;
|
|
2162
|
+
asset: string;
|
|
2163
|
+
amount: string;
|
|
2164
|
+
}): Promise<CAddressBuildTransferResult>;
|
|
2165
|
+
/**
|
|
2166
|
+
* Build a transfer from a C-address (SmartAccount.send).
|
|
2167
|
+
* Returns unsigned XDR for the owner to sign.
|
|
2168
|
+
* After signing, submit via submitTransfer().
|
|
2169
|
+
*
|
|
2170
|
+
* @param params.from - Owner G-address (signs auth)
|
|
2171
|
+
* @param params.cAddress - Source C-address (holds the funds)
|
|
2172
|
+
* @param params.destination - Recipient (G or C address)
|
|
2173
|
+
* @param params.asset - Asset: 'XLM', 'USDC', or 'EURC'
|
|
2174
|
+
* @param params.amount - Human-readable amount
|
|
2175
|
+
*/
|
|
2176
|
+
buildTransfer(params: {
|
|
2177
|
+
from: string;
|
|
2178
|
+
cAddress: string;
|
|
2179
|
+
destination: string;
|
|
2180
|
+
asset: string;
|
|
2181
|
+
amount: string;
|
|
2182
|
+
}): Promise<CAddressBuildTransferResult>;
|
|
2183
|
+
/**
|
|
2184
|
+
* Submit a user-signed transaction.
|
|
2185
|
+
* The relayer wraps it in a fee-bump transaction and submits to the network.
|
|
2186
|
+
* The user pays zero fees — the relayer covers everything.
|
|
2187
|
+
*
|
|
2188
|
+
* @param signedXDR - The user-signed transaction XDR (base64)
|
|
2189
|
+
*/
|
|
2190
|
+
submitTransfer(signedXDR: string): Promise<CAddressSubmitResult>;
|
|
2191
|
+
/**
|
|
2192
|
+
* Get transaction history for a C-address.
|
|
2193
|
+
* Returns recent transfer events (sent/received) across all supported tokens.
|
|
2194
|
+
*
|
|
2195
|
+
* @param cAddress - The C-address to query
|
|
2196
|
+
* @param limit - Maximum number of transactions to return (default: 20)
|
|
2197
|
+
*/
|
|
2198
|
+
getHistory(cAddress: string, limit?: number): Promise<CAddressHistoryResult>;
|
|
2199
|
+
/**
|
|
2200
|
+
* Health check for the C-address bridge service.
|
|
2201
|
+
*/
|
|
2202
|
+
health(): Promise<CAddressHealthResult>;
|
|
2203
|
+
validateGAddress(address: string): void;
|
|
2204
|
+
validateCAddress(address: string): void;
|
|
2205
|
+
validateAddress(address: string): boolean;
|
|
2206
|
+
}
|
|
2207
|
+
|
|
2208
|
+
/**
|
|
2209
|
+
* Stellar Adapter - Gasless transactions via Fee Bump
|
|
2210
|
+
* Routes through proxy.smoothsend.xyz with API key authentication
|
|
2211
|
+
* Supports XLM, USDC, EURC and other Stellar assets
|
|
2212
|
+
*/
|
|
2213
|
+
declare class StellarAdapter implements IChainAdapter {
|
|
2214
|
+
readonly chain: SupportedChain;
|
|
2215
|
+
readonly config: ChainConfig;
|
|
2216
|
+
/** C-Address (Soroban Smart Account) operations */
|
|
2217
|
+
readonly cAddress: StellarCAddressAdapter;
|
|
2218
|
+
private httpClient;
|
|
2219
|
+
private network;
|
|
2220
|
+
constructor(chain: SupportedChain, config: ChainConfig, apiKey: string, network?: 'testnet' | 'mainnet', includeOrigin?: boolean);
|
|
2221
|
+
setNetwork(network: 'testnet' | 'mainnet'): void;
|
|
2222
|
+
getNetwork(): 'testnet' | 'mainnet';
|
|
2223
|
+
/**
|
|
2224
|
+
* Stellar gasless: relayer pays fee. Returns 0 for user.
|
|
2225
|
+
*/
|
|
2226
|
+
estimateFee(_request: TransferRequest): Promise<FeeEstimate>;
|
|
2227
|
+
/**
|
|
2228
|
+
* Submit signed XDR to relayer for Fee Bump wrapping
|
|
2229
|
+
*/
|
|
2230
|
+
executeGaslessTransfer(signedData: SignedTransferData): Promise<TransferResult>;
|
|
2231
|
+
getTransactionStatus(txHash: string): Promise<any>;
|
|
2232
|
+
getHealth(): Promise<HealthResponse>;
|
|
2233
|
+
validateAddress(address: string): boolean;
|
|
2234
|
+
validateAmount(amount: string): boolean;
|
|
2235
|
+
}
|
|
2236
|
+
|
|
2044
2237
|
/**
|
|
2045
2238
|
* SmoothSend SDK v2.0
|
|
2046
2239
|
*
|
|
@@ -2072,7 +2265,7 @@ declare class HttpClient {
|
|
|
2072
2265
|
* SDK version
|
|
2073
2266
|
* @public
|
|
2074
2267
|
*/
|
|
2075
|
-
declare const VERSION = "
|
|
2268
|
+
declare const VERSION = "2.0.0";
|
|
2076
2269
|
|
|
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 };
|
|
2270
|
+
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 };
|
|
2271
|
+
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,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,GACvB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,OAAO,UAAU,CAAC;AAG/B,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
|
|
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,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EACL,oBAAoB,EACpB,0BAA0B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