@smoothsend/sdk 2.1.3 → 2.2.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.
@@ -27,10 +27,11 @@
27
27
  * ```
28
28
  */
29
29
  import type { AptosConfig, PendingTransactionResponse, AnyRawTransaction, AccountAuthenticator } from '@aptos-labs/ts-sdk';
30
+ import { Account } from '@aptos-labs/ts-sdk';
30
31
  export type { AptosConfig, PendingTransactionResponse, AnyRawTransaction, AccountAuthenticator };
31
32
  /**
32
- * Configuration options for SmoothSendTransactionSubmitter
33
- */
33
+ * Configuration options for SmoothSendTransactionSubmitter
34
+ */
34
35
  export interface SmoothSendTransactionSubmitterConfig {
35
36
  /**
36
37
  * Your SmoothSend API key
@@ -64,6 +65,33 @@ export interface SmoothSendTransactionSubmitterConfig {
64
65
  * @default false
65
66
  */
66
67
  debug?: boolean;
68
+ /**
69
+ * Enable session key mode — user signs once, all subsequent transactions
70
+ * are signed silently by an in-memory session key. Zero wallet popups after setup.
71
+ *
72
+ * Uses Aptos Account Abstraction (AIP-103 Permissioned Signers) — enforced on-chain.
73
+ * Live on mainnet and testnet (as of April 2025).
74
+ * SmoothSend pays gas for the one-time session setup transaction too.
75
+ *
76
+ * @default false
77
+ *
78
+ * @example
79
+ * ```typescript
80
+ * const smoothSend = new SmoothSendTransactionSubmitter({
81
+ * apiKey: 'pk_nogas_xxx',
82
+ * network: 'mainnet',
83
+ * session: true,
84
+ * });
85
+ * ```
86
+ */
87
+ session?: boolean;
88
+ /**
89
+ * How long the session key stays valid.
90
+ * Format: number + unit (s, m, h, d)
91
+ * Use "never" for client-side indefinite session validity.
92
+ * @default '24h'
93
+ */
94
+ sessionDuration?: string;
67
95
  }
68
96
  /**
69
97
  * TransactionSubmitter interface compatible with @aptos-labs/ts-sdk v2.x
@@ -94,7 +122,30 @@ export declare class SmoothSendTransactionSubmitter implements TransactionSubmit
94
122
  private readonly timeout;
95
123
  private readonly getCaptchaToken?;
96
124
  private readonly debug;
125
+ readonly sessionEnabled: boolean;
126
+ private readonly sessionDuration;
127
+ private _session;
97
128
  constructor(config: SmoothSendTransactionSubmitterConfig);
129
+ /**
130
+ * Whether a valid session is currently active.
131
+ */
132
+ hasSession(): boolean;
133
+ /**
134
+ * Create a session key for the given master account.
135
+ * Called once by useSmoothSend when session: true and no session exists.
136
+ * SmoothSend pays gas for the setup transaction.
137
+ *
138
+ * @param masterAccount - The user's wallet account (from wallet adapter)
139
+ */
140
+ createSession(masterAccount: Account): Promise<void>;
141
+ private isPermissionedSignerEnabled;
142
+ private signSenderAuthenticator;
143
+ /**
144
+ * Submit a transaction using the active session key — no wallet popup.
145
+ * Called by useSmoothSend after session is established.
146
+ */
147
+ submitWithSession(functionName: `${string}::${string}::${string}`, functionArguments?: any[], typeArguments?: string[]): Promise<PendingTransactionResponse>;
148
+ private _parseDuration;
98
149
  /**
99
150
  * Submit a transaction through SmoothSend's gasless relayer
100
151
  *
@@ -1 +1 @@
1
- {"version":3,"file":"SmoothSendTransactionSubmitter.d.ts","sourceRoot":"","sources":["../../src/wallet-adapter/SmoothSendTransactionSubmitter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EACV,WAAW,EACX,0BAA0B,EAC1B,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAG5B,YAAY,EAAE,WAAW,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,CAAC;AAEjG;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACnD;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAEhC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,OA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,OAAO,CAAC,cAAc;IAkBtB;;OAEG;YACW,WAAW;IA0DzB,OAAO,CAAC,uBAAuB,CAAyB;IACxD,OAAO,CAAC,yBAAyB,CAAK;IACtC,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAiB;IAErD;;;OAGG;IACG,qBAAqB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAgBhD;;;OAGG;IACG,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAQzD;OACG;IACH,SAAS,IAAI,QAAQ,CAAC,oCAAoC,CAAC;CAS5D;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,oCAAoC,EAAE,QAAQ,CAAC,CAAC,GACtE,8BAA8B,CAKhC"}
1
+ {"version":3,"file":"SmoothSendTransactionSubmitter.d.ts","sourceRoot":"","sources":["../../src/wallet-adapter/SmoothSendTransactionSubmitter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EACV,WAAW,EACX,0BAA0B,EAC1B,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAIL,OAAO,EAKR,MAAM,oBAAoB,CAAC;AAI5B,YAAY,EAAE,WAAW,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,CAAC;AAUhG;;EAEE;AACH,MAAM,WAAW,oCAAoC;IACnD;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAEhC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,OAAO,CAAC,MAA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AuB;IAoBrC;;;OAGG;IACG,iBAAiB,CAAC,YAAY,EAAE,GAAG,MAAM,KAAK,MAAM,KAAK,MAAM,EAAE,EAAE,iBAAiB,GAAE,GAAG,EAAO,EAAE,aAAa,GAAE,MAAM,EAAO,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAgC1K,OAAO,CAAC,cAAc;IAgBtB;;;;;;OAMG;IACG,iBAAiB,CAAC,IAAI,EAAE;QAC5B,WAAW,EAAE,WAAW,CAAC;QACzB,WAAW,EAAE,iBAAiB,CAAC;QAC/B,mBAAmB,EAAE,oBAAoB,CAAC;QAC1C,qBAAqB,CAAC,EAAE,oBAAoB,CAAC;QAC7C,+BAA+B,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC9D,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACxC,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAqEvC;;;OAGG;IACH,OAAO,CAAC,cAAc;IAkBtB;;OAEG;YACW,WAAW;IA0DzB,OAAO,CAAC,uBAAuB,CAAyB;IACxD,OAAO,CAAC,yBAAyB,CAAK;IACtC,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAiB;IAErD;;;OAGG;IACG,qBAAqB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAgBhD;;;OAGG;IACG,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAQzD;OACG;IACH,SAAS,IAAI,QAAQ,CAAC,oCAAoC,CAAC;CAS5D;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,oCAAoC,EAAE,QAAQ,CAAC,CAAC,GACtE,8BAA8B,CAKhC"}
@@ -7,6 +7,10 @@
7
7
  * - Function in allowlist → fee-payer gasless path via SmoothSend
8
8
  * - Function not in allowlist → regular wallet submission (user pays gas)
9
9
  *
10
+ * When submitter has session: true, the first transaction triggers a one-time
11
+ * wallet sign to register a session key on-chain. Every transaction after that
12
+ * is signed silently — zero wallet popups.
13
+ *
10
14
  * Requires: react >=17, @aptos-labs/wallet-adapter-react >=3, @aptos-labs/ts-sdk >=1
11
15
  *
12
16
  * @example
@@ -23,16 +27,17 @@ export interface UseSmoothSendResult {
23
27
  /**
24
28
  * Smart signAndSubmitTransaction — same signature as the wallet adapter's version.
25
29
  * Sponsored functions go gasless via SmoothSend; others fall back to user-pays-gas.
30
+ * With session: true, zero wallet popups after the first transaction.
26
31
  */
27
32
  signAndSubmitTransaction: (input: {
28
33
  data: any;
29
34
  options?: any;
30
35
  }) => Promise<any>;
36
+ /**
37
+ * Whether a session key is currently active (only relevant when session: true).
38
+ * Updates reactively when session is created or expires.
39
+ */
40
+ hasSession: boolean;
31
41
  }
32
- /**
33
- * useSmoothSend
34
- *
35
- * @param submitter - A SmoothSendTransactionSubmitter instance (created once, e.g. at module scope)
36
- */
37
42
  export declare function useSmoothSend(submitter: SmoothSendTransactionSubmitter): UseSmoothSendResult;
38
43
  //# sourceMappingURL=useSmoothSend.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSmoothSend.d.ts","sourceRoot":"","sources":["../../src/wallet-adapter/useSmoothSend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAKH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAEvF,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,wBAAwB,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,GAAG,CAAC;QAAC,OAAO,CAAC,EAAE,GAAG,CAAA;KAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;CACjF;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,8BAA8B,GAAG,mBAAmB,CAoF5F"}
1
+ {"version":3,"file":"useSmoothSend.d.ts","sourceRoot":"","sources":["../../src/wallet-adapter/useSmoothSend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAKH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAEvF,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,wBAAwB,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,GAAG,CAAC;QAAC,OAAO,CAAC,EAAE,GAAG,CAAA;KAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAChF;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,SAAS,EAAE,8BAA8B,GAAG,mBAAmB,CAgL5F"}
package/package.json CHANGED
@@ -1,110 +1,110 @@
1
- {
2
- "name": "@smoothsend/sdk",
3
- "version": "2.1.3",
4
- "description": "Multi-chain gasless transaction SDK with C-Address (Soroban Smart Account) support for Stellar, Aptos & more",
5
- "type": "module",
6
- "main": "dist/index.js",
7
- "module": "dist/index.esm.js",
8
- "types": "dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "import": "./dist/index.esm.js",
12
- "require": "./dist/index.js",
13
- "types": "./dist/index.d.ts"
14
- }
15
- },
16
- "files": [
17
- "dist",
18
- "README.md"
19
- ],
20
- "scripts": {
21
- "build": "rollup -c",
22
- "dev": "rollup -c -w",
23
- "test": "jest",
24
- "lint": "eslint src --ext .ts",
25
- "lint:fix": "eslint src --ext .ts --fix",
26
- "typecheck": "tsc --noEmit",
27
- "prepublishOnly": "npm run build",
28
- "example:authentication": "ts-node examples/authentication.ts",
29
- "example:health-status": "ts-node examples/health-and-status.ts",
30
- "example:usage-tracking": "ts-node examples/usage-tracking.ts",
31
- "example:token-sender": "cd examples/token-sender && npm run dev",
32
- "example:nft-marketplace": "cd examples/nft-marketplace && npm run dev"
33
- },
34
- "keywords": [
35
- "aptos",
36
- "stellar",
37
- "gasless",
38
- "transactions",
39
- "gas-free",
40
- "sponsored-transactions",
41
- "c-address",
42
- "smart-account",
43
- "soroban",
44
- "wallet-adapter",
45
- "move",
46
- "xlm",
47
- "usdc",
48
- "blockchain",
49
- "dapp",
50
- "web3",
51
- "relayer",
52
- "smoothsend"
53
- ],
54
- "author": "SmoothSend Team",
55
- "license": "MIT",
56
- "repository": {
57
- "type": "git",
58
- "url": "https://github.com/smoothsend-sdk.git"
59
- },
60
- "bugs": {
61
- "url": "https://github.com/smoothsend-sdk/issues"
62
- },
63
- "homepage": "https://smoothsend.xyz",
64
- "peerDependencies": {
65
- "@aptos-labs/ts-sdk": ">=5.0.0",
66
- "@aptos-labs/wallet-adapter-core": ">=3.0.0",
67
- "@aptos-labs/wallet-adapter-react": ">=3.0.0",
68
- "react": ">=17.0.0"
69
- },
70
- "peerDependenciesMeta": {
71
- "@aptos-labs/ts-sdk": {
72
- "optional": false
73
- },
74
- "@aptos-labs/wallet-adapter-core": {
75
- "optional": true
76
- },
77
- "@aptos-labs/wallet-adapter-react": {
78
- "optional": true
79
- },
80
- "react": {
81
- "optional": true
82
- }
83
- },
84
- "dependencies": {
85
- "axios": "^1.6.0"
86
- },
87
- "devDependencies": {
88
- "@aptos-labs/ts-sdk": "^5.2.0",
89
- "@aptos-labs/wallet-adapter-react": "^3.0.0",
90
- "@rollup/plugin-commonjs": "^25.0.7",
91
- "@rollup/plugin-node-resolve": "^15.2.3",
92
- "@rollup/plugin-typescript": "^11.1.5",
93
- "@types/jest": "^29.5.5",
94
- "@types/node": "^20.8.0",
95
- "@types/react": "^18.0.0",
96
- "@typescript-eslint/eslint-plugin": "^6.8.0",
97
- "@typescript-eslint/parser": "^6.8.0",
98
- "eslint": "^8.51.0",
99
- "jest": "^29.7.0",
100
- "react": "^18.0.0",
101
- "rollup": "^4.0.0",
102
- "rollup-plugin-dts": "^6.1.0",
103
- "ts-jest": "^29.1.1",
104
- "tslib": "^2.8.1",
105
- "typescript": "^5.2.2"
106
- },
107
- "engines": {
108
- "node": ">=16.0.0"
109
- }
110
- }
1
+ {
2
+ "name": "@smoothsend/sdk",
3
+ "version": "2.2.1",
4
+ "description": "Multi-chain gasless transaction SDK with C-Address (Soroban Smart Account) support for Stellar, Aptos & more",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "module": "dist/index.esm.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/index.esm.js",
12
+ "require": "./dist/index.js",
13
+ "types": "./dist/index.d.ts"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "README.md"
19
+ ],
20
+ "scripts": {
21
+ "build": "rollup -c",
22
+ "dev": "rollup -c -w",
23
+ "test": "jest",
24
+ "lint": "eslint src --ext .ts",
25
+ "lint:fix": "eslint src --ext .ts --fix",
26
+ "typecheck": "tsc --noEmit",
27
+ "prepublishOnly": "npm run build",
28
+ "example:authentication": "ts-node examples/authentication.ts",
29
+ "example:health-status": "ts-node examples/health-and-status.ts",
30
+ "example:usage-tracking": "ts-node examples/usage-tracking.ts",
31
+ "example:token-sender": "cd examples/token-sender && npm run dev",
32
+ "example:nft-marketplace": "cd examples/nft-marketplace && npm run dev"
33
+ },
34
+ "keywords": [
35
+ "aptos",
36
+ "stellar",
37
+ "gasless",
38
+ "transactions",
39
+ "gas-free",
40
+ "sponsored-transactions",
41
+ "c-address",
42
+ "smart-account",
43
+ "soroban",
44
+ "wallet-adapter",
45
+ "move",
46
+ "xlm",
47
+ "usdc",
48
+ "blockchain",
49
+ "dapp",
50
+ "web3",
51
+ "relayer",
52
+ "smoothsend"
53
+ ],
54
+ "author": "SmoothSend Team",
55
+ "license": "MIT",
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "https://github.com/smoothsend-sdk.git"
59
+ },
60
+ "bugs": {
61
+ "url": "https://github.com/smoothsend-sdk/issues"
62
+ },
63
+ "homepage": "https://smoothsend.xyz",
64
+ "peerDependencies": {
65
+ "@aptos-labs/ts-sdk": ">=6.0.0",
66
+ "@aptos-labs/wallet-adapter-core": ">=3.0.0",
67
+ "@aptos-labs/wallet-adapter-react": ">=3.0.0",
68
+ "react": ">=17.0.0"
69
+ },
70
+ "peerDependenciesMeta": {
71
+ "@aptos-labs/ts-sdk": {
72
+ "optional": false
73
+ },
74
+ "@aptos-labs/wallet-adapter-core": {
75
+ "optional": true
76
+ },
77
+ "@aptos-labs/wallet-adapter-react": {
78
+ "optional": true
79
+ },
80
+ "react": {
81
+ "optional": true
82
+ }
83
+ },
84
+ "dependencies": {
85
+ "axios": "^1.6.0"
86
+ },
87
+ "devDependencies": {
88
+ "@aptos-labs/ts-sdk": "^6.3.1",
89
+ "@aptos-labs/wallet-adapter-react": "^3.0.0",
90
+ "@rollup/plugin-commonjs": "^25.0.7",
91
+ "@rollup/plugin-node-resolve": "^15.2.3",
92
+ "@rollup/plugin-typescript": "^11.1.5",
93
+ "@types/jest": "^29.5.5",
94
+ "@types/node": "^20.8.0",
95
+ "@types/react": "^18.0.0",
96
+ "@typescript-eslint/eslint-plugin": "^6.8.0",
97
+ "@typescript-eslint/parser": "^6.8.0",
98
+ "eslint": "^8.51.0",
99
+ "jest": "^29.7.0",
100
+ "react": "^18.0.0",
101
+ "rollup": "^4.0.0",
102
+ "rollup-plugin-dts": "^6.1.0",
103
+ "ts-jest": "^29.1.1",
104
+ "tslib": "^2.8.1",
105
+ "typescript": "^5.2.2"
106
+ },
107
+ "engines": {
108
+ "node": ">=16.0.0"
109
+ }
110
+ }