@bounded-sh/client 0.0.19 → 0.0.21

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.
Files changed (31) hide show
  1. package/README.md +2 -2
  2. package/dist/auth/providers/offchain-auth-provider.d.ts +2 -4
  3. package/dist/index.d.ts +0 -1
  4. package/dist/index.js +150 -214
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +151 -213
  7. package/dist/index.mjs.map +1 -1
  8. package/dist/{index.native-DI_Xgv-n.js → index.native-DdKzAUjN.js} +154 -218
  9. package/dist/index.native-DdKzAUjN.js.map +1 -0
  10. package/dist/{index.native-DWI_i6-6.mjs → index.native-N3xLU862.mjs} +155 -217
  11. package/dist/index.native-N3xLU862.mjs.map +1 -0
  12. package/dist/index.native.d.ts +0 -1
  13. package/dist/index.native.js +1 -3
  14. package/dist/index.native.js.map +1 -1
  15. package/dist/index.native.mjs +1 -1
  16. package/dist/{phantom-wallet-provider-DDwgNMg_.mjs → phantom-wallet-provider-DcE4A2_e.mjs} +2 -2
  17. package/dist/{phantom-wallet-provider-DDwgNMg_.mjs.map → phantom-wallet-provider-DcE4A2_e.mjs.map} +1 -1
  18. package/dist/{phantom-wallet-provider-fyOrJZP6.js → phantom-wallet-provider-Dz9lQvNv.js} +2 -2
  19. package/dist/{phantom-wallet-provider-fyOrJZP6.js.map → phantom-wallet-provider-Dz9lQvNv.js.map} +1 -1
  20. package/dist/{privy-wallet-provider-BIr9lDS7.js → privy-wallet-provider-DUvjxNXK.js} +3 -3
  21. package/dist/{privy-wallet-provider-BIr9lDS7.js.map → privy-wallet-provider-DUvjxNXK.js.map} +1 -1
  22. package/dist/{privy-wallet-provider-D7VoQCYf.mjs → privy-wallet-provider-oG3o5vko.mjs} +3 -3
  23. package/dist/{privy-wallet-provider-D7VoQCYf.mjs.map → privy-wallet-provider-oG3o5vko.mjs.map} +1 -1
  24. package/dist/{solana-mobile-wallet-provider-Cush-URL.js → solana-mobile-wallet-provider-DdBoG6c2.js} +2 -2
  25. package/dist/{solana-mobile-wallet-provider-Cush-URL.js.map → solana-mobile-wallet-provider-DdBoG6c2.js.map} +1 -1
  26. package/dist/{solana-mobile-wallet-provider-DgcGxDoL.mjs → solana-mobile-wallet-provider-aS60_GZR.mjs} +2 -2
  27. package/dist/{solana-mobile-wallet-provider-DgcGxDoL.mjs.map → solana-mobile-wallet-provider-aS60_GZR.mjs.map} +1 -1
  28. package/package.json +2 -2
  29. package/dist/auth/providers/mock-auth-provider.d.ts +0 -49
  30. package/dist/index.native-DI_Xgv-n.js.map +0 -1
  31. package/dist/index.native-DWI_i6-6.mjs.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bounded-sh/client",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": "JavaScript SDK for Tarobase API",
5
5
  "main": "./dist/index.js",
6
6
  "react-native": "./dist/index.native.js",
@@ -97,7 +97,7 @@
97
97
  "typescript": "5.9.3"
98
98
  },
99
99
  "dependencies": {
100
- "@bounded-sh/core": "0.0.19",
100
+ "@bounded-sh/core": "0.0.21",
101
101
  "@coral-xyz/anchor": "0.31.1",
102
102
  "@solana/web3.js": "1.98.4",
103
103
  "bs58": "6.0.0",
@@ -1,49 +0,0 @@
1
- import { AuthProvider, User, TransactionResult, SolTransaction, EVMTransaction } from '@bounded-sh/core';
2
- import { SetOptions } from '@bounded-sh/core';
3
- import { Transaction, VersionedTransaction } from '@solana/web3.js';
4
- export declare const DEFAULT_TEST_ADDRESS = "HKbZbRR7jWWR5VRN8KFjvTCHEzJQgameYxKQxh2gPoof";
5
- /**
6
- * MockAuthProvider bypasses real wallet authentication for testing purposes.
7
- * Uses session storage to simulate logged-in user, with fallback to default test address.
8
- *
9
- * This is enabled by passing mockAuth: true to init()
10
- */
11
- export declare class MockAuthProvider implements AuthProvider {
12
- /**
13
- * Mock login - reads user from session storage or uses default test address
14
- */
15
- login(): Promise<User | null>;
16
- /**
17
- * Mock transaction - returns fake signature without actual blockchain interaction
18
- * The real transaction will be handled by the backend using test headers
19
- */
20
- runTransaction(evmTransactionData?: EVMTransaction, solTransactionData?: SolTransaction, options?: SetOptions): Promise<TransactionResult>;
21
- /**
22
- * Mock message signing
23
- */
24
- signMessage(message: string): Promise<string>;
25
- signMessageMock(message: string): Promise<string>;
26
- /**
27
- * Mock transaction signing - returns the transaction as-is (no actual signing)
28
- */
29
- signTransaction(transaction: Transaction | VersionedTransaction): Promise<Transaction | VersionedTransaction>;
30
- /**
31
- * Sign and submit transaction - not supported in mock environment.
32
- * See the real providers (PhantomWalletProvider, SolanaKeypairProvider)
33
- * for the full implementation with blockhash handling and feePayer support.
34
- */
35
- signAndSubmitTransaction(_transaction: Transaction | VersionedTransaction, _feePayer?: any): Promise<string>;
36
- /**
37
- * Restore session - only restores if user previously called login() explicitly.
38
- * This prevents auto-login on first page load, but allows session persistence after login.
39
- */
40
- restoreSession(): Promise<User | null>;
41
- /**
42
- * Mock logout - clears test user from session storage
43
- */
44
- logout(): Promise<void>;
45
- /**
46
- * Get native wallet methods (not needed for mock auth)
47
- */
48
- getNativeMethods(): Promise<any>;
49
- }