@bounded-sh/server 0.0.64 → 0.0.66
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/auth/providers/evm-keypair-provider.d.ts +14 -2
- package/dist/auth/providers/solana-keypair-provider.d.ts +1 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.js +257 -470
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +253 -455
- package/dist/index.mjs.map +1 -1
- package/dist/wallet-client.d.ts +23 -5
- package/dist/webhooks.d.ts +7 -0
- package/package.json +3 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { AuthProvider, EVMTransaction, SolTransaction, TransactionResult, User, SetOptions } from '@bounded-sh/core';
|
|
1
|
+
import type { AuthProvider, EVMTransaction, EvmReconcileRequest, SolTransaction, TransactionReconciliation, TransactionResult, User, SetOptions } from '@bounded-sh/core';
|
|
2
|
+
import { type SessionMintConfig } from '@bounded-sh/core';
|
|
2
3
|
import type { PublicKey, Transaction, VersionedTransaction } from '@solana/web3.js';
|
|
3
4
|
export interface EvmKeypairChainConfig {
|
|
4
5
|
chainId: number;
|
|
@@ -13,7 +14,7 @@ export declare class EvmKeypairProvider implements AuthProvider {
|
|
|
13
14
|
private readonly chains;
|
|
14
15
|
constructor(privateKey: string, defaultChainId: number, chainConfigs: EvmKeypairChainConfig[]);
|
|
15
16
|
private user;
|
|
16
|
-
createBoundedSession(): Promise<{
|
|
17
|
+
createBoundedSession(sessionConfig?: SessionMintConfig): Promise<{
|
|
17
18
|
address: string;
|
|
18
19
|
accessToken: string;
|
|
19
20
|
idToken: string;
|
|
@@ -26,6 +27,17 @@ export declare class EvmKeypairProvider implements AuthProvider {
|
|
|
26
27
|
signTransaction(_transaction: Transaction | VersionedTransaction): Promise<Transaction | VersionedTransaction>;
|
|
27
28
|
signAndSubmitTransaction(_transaction: Transaction | VersionedTransaction, _feePayer?: PublicKey): Promise<string>;
|
|
28
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>;
|
|
29
41
|
getNativeMethods(): Promise<any>;
|
|
30
42
|
transactionPolicy(): {
|
|
31
43
|
runtimeAddresses: Record<string, string>;
|
|
@@ -31,10 +31,8 @@ export declare class SolanaKeypairProvider implements AuthProvider {
|
|
|
31
31
|
* Shared by both signAndSubmitTransaction and runTransactionInner.
|
|
32
32
|
*/
|
|
33
33
|
private submitAndConfirmTransaction;
|
|
34
|
-
private requireSupportedNetwork;
|
|
35
34
|
private getRpcUrl;
|
|
36
|
-
runTransaction(
|
|
37
|
-
private runTransactionInner;
|
|
35
|
+
runTransaction(_evmTransactionData?: EVMTransaction, _solTransactionData?: SolTransaction, _options?: SetOptions): Promise<TransactionResult>;
|
|
38
36
|
getNativeMethods(): Promise<{
|
|
39
37
|
keypair: Keypair;
|
|
40
38
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export { BoundedDeclineError, deriveDecline, DECLINE_EVENT_NAME } from '@bounded
|
|
|
4
4
|
export type { BoundedDecline, DeclineReason, DeclineBoundary } from '@bounded-sh/core';
|
|
5
5
|
export { getAuthProvider } from './auth';
|
|
6
6
|
export { get, getMany, set, setMany, setFile, getFiles, search, queryAggregate, runQuery, runQueryMany, runExpression, runExpressionMany, signMessage, signTransaction, signAndSubmitTransaction, count, aggregate, subscribe, functions, invokeFunction, live, liveIntent, liveStatus, } from './explicit-client-only';
|
|
7
|
+
export { reconcileSetResult, waitForSetResult } from '@bounded-sh/core';
|
|
8
|
+
export type { SetResult, SetEntry, SetDocuments, MirrorSync, SolanaFence, EvmFence, ChainTag, SolanaChainTag, EvmChainTag, CommittedSetResult, ConfirmedSetResult, SolanaConfirmedSetResult, EvmConfirmedSetResult, SubmittedSetResult, SolanaSubmittedSetResult, EvmFencedSubmittedSetResult, EvmHashKnownSubmittedSetResult, EvmIrreconcilableSubmittedSetResult, SolanaExpiredNotLandedSetResult, SolanaSignedSetResult, TransactionResult, TransactionReconciliation, EvmReconcileRequest, ReconcileSetResultOptions, WaitForSetResultOptions, FileUploadResult, FileDeleteResult, } from '@bounded-sh/core';
|
|
7
9
|
export type { AuthProvider, ClientConfig, User, GetOptions, SearchOptions, SetOptions, CountOptions, AggregateOptions, AggregateOperation, AggregateResult, AggregateSpec, AggregateRow, QueryAggregateOptions, GetManyResult, RunExpressionOptions, RunExpressionResult, RequestOverrides, RunQueryOptions, InvokeOptions, LiveIntentOptions, LiveStatus, LiveStatusOptions, } from '@bounded-sh/core';
|
|
8
10
|
export { getIdToken } from './utils';
|
|
9
11
|
export { createWalletClient, WalletClient } from './wallet-client';
|