@bounded-sh/server 0.0.68 → 0.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -38
- package/dist/auth/providers/offchain-auth-provider.d.ts +0 -1
- package/dist/auth/providers/solana-keypair-provider.d.ts +1 -2
- package/dist/index.d.ts +1 -3
- package/dist/index.js +16 -361
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -362
- package/dist/index.mjs.map +1 -1
- package/dist/wallet-client.d.ts +3 -27
- package/package.json +4 -5
- package/dist/auth/providers/evm-keypair-provider.d.ts +0 -45
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bounded-sh/server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.70",
|
|
4
4
|
"description": "Node and server SDK for Bounded, the full-stack app builder and runtime for AI-built apps: keypair-authenticated data, files and search, functions, realtime, webhook verification, and atomic writes.",
|
|
5
5
|
"homepage": "https://bounded.sh/docs/sdk",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
17
|
"build": "rm -rf ./dist ./.rollup-tmp && tsc -p tsconfig.build.json --outDir .rollup-tmp --declarationDir .rollup-tmp --emitDeclarationOnly false && rollup -c && tsc -p tsconfig.build.json --emitDeclarationOnly --declarationDir dist && rm -rf ./.rollup-tmp",
|
|
18
|
-
"test": "node src/auth/providers/run-solana-keypair-blockhash-test.mjs && node src/auth/providers/
|
|
18
|
+
"test": "node src/auth/providers/run-solana-keypair-blockhash-test.mjs && node src/auth/providers/solana-keypair-blockhash-guard.source.test.mjs && node src/run-server-global-provider-test.mjs && node src/sanitize-headers.source.test.mjs && node src/wallet-client-config-binding.source.test.mjs && node --test src/webhooks.test.mjs && node --test src/package-lock-core-pin.test.mjs",
|
|
19
19
|
"watch": "rollup -c -w",
|
|
20
20
|
"prepare": "npm run build"
|
|
21
21
|
},
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"typescript": "5.9.3"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@bounded-sh/core": "0.0.
|
|
54
|
+
"@bounded-sh/core": "0.0.70",
|
|
55
55
|
"@coral-xyz/anchor": "0.31.1",
|
|
56
56
|
"@solana/web3.js": "1.98.4",
|
|
57
57
|
"axios": "1.18.1",
|
|
@@ -61,8 +61,7 @@
|
|
|
61
61
|
"lodash": "4.18.1",
|
|
62
62
|
"reconnecting-websocket": "4.4.0",
|
|
63
63
|
"rpc-websockets": "9.3.9",
|
|
64
|
-
"tweetnacl": "1.0.3"
|
|
65
|
-
"viem": "2.55.0"
|
|
64
|
+
"tweetnacl": "1.0.3"
|
|
66
65
|
},
|
|
67
66
|
"resolutions": {
|
|
68
67
|
"@bounded-sh/core": "portal:../tarobase-core",
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { AuthProvider, EVMTransaction, EvmReconcileRequest, SolTransaction, TransactionReconciliation, TransactionResult, User, SetOptions } from '@bounded-sh/core';
|
|
2
|
-
import { type SessionMintConfig } from '@bounded-sh/core';
|
|
3
|
-
import type { PublicKey, Transaction, VersionedTransaction } from '@solana/web3.js';
|
|
4
|
-
export interface EvmKeypairChainConfig {
|
|
5
|
-
chainId: number;
|
|
6
|
-
rpcUrl: string;
|
|
7
|
-
runtimeAddress: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare class EvmKeypairProvider implements AuthProvider {
|
|
11
|
-
readonly address: string;
|
|
12
|
-
readonly defaultChainId: number;
|
|
13
|
-
private readonly account;
|
|
14
|
-
private readonly chains;
|
|
15
|
-
constructor(privateKey: string, defaultChainId: number, chainConfigs: EvmKeypairChainConfig[]);
|
|
16
|
-
private user;
|
|
17
|
-
createBoundedSession(sessionConfig?: SessionMintConfig): Promise<{
|
|
18
|
-
address: string;
|
|
19
|
-
accessToken: string;
|
|
20
|
-
idToken: string;
|
|
21
|
-
refreshToken: string;
|
|
22
|
-
}>;
|
|
23
|
-
login(): Promise<User>;
|
|
24
|
-
restoreSession(): Promise<User>;
|
|
25
|
-
logout(): Promise<void>;
|
|
26
|
-
signMessage(message: string): Promise<string>;
|
|
27
|
-
signTransaction(_transaction: Transaction | VersionedTransaction): Promise<Transaction | VersionedTransaction>;
|
|
28
|
-
signAndSubmitTransaction(_transaction: Transaction | VersionedTransaction, _feePayer?: PublicKey): Promise<string>;
|
|
29
|
-
runTransaction(evm?: EVMTransaction, sol?: SolTransaction, options?: SetOptions): Promise<TransactionResult>;
|
|
30
|
-
/**
|
|
31
|
-
* Poll the SAME hash, and — only while the fenced nonce is still unused — put
|
|
32
|
-
* the byte-identical signed transaction back on the wire. Same nonce, same
|
|
33
|
-
* signature, so a rebroadcast can never produce a second execution.
|
|
34
|
-
*
|
|
35
|
-
* It NEVER reports a retry-safe terminal state. Nonce advancement is not proof
|
|
36
|
-
* the write did not execute: a replacement can occupy the same sender and
|
|
37
|
-
* nonce carrying identical Bounded calldata under a different hash, and plain
|
|
38
|
-
* JSON-RPC offers no transaction-by-sender-and-nonce lookup to identify it.
|
|
39
|
-
*/
|
|
40
|
-
reconcileEvmTransaction(request: EvmReconcileRequest): Promise<TransactionReconciliation>;
|
|
41
|
-
getNativeMethods(): Promise<any>;
|
|
42
|
-
transactionPolicy(): {
|
|
43
|
-
runtimeAddresses: Record<string, string>;
|
|
44
|
-
};
|
|
45
|
-
}
|