@loyal-labs/private-transactions 0.2.0 → 0.2.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.
@@ -1,29 +1,28 @@
1
- /// <reference types="node" />
2
- import { LAMPORTS_PER_SOL } from "@solana/web3.js";
1
+ import { PublicKey, LAMPORTS_PER_SOL } from "@solana/web3.js";
3
2
  /**
4
3
  * TEE ER Validator
5
4
  */
6
- export declare const ER_VALIDATOR: any;
5
+ export declare const ER_VALIDATOR: PublicKey;
7
6
  /**
8
7
  * Telegram Private Transfer program ID
9
8
  */
10
- export declare const PROGRAM_ID: any;
9
+ export declare const PROGRAM_ID: PublicKey;
11
10
  /**
12
11
  * MagicBlock Delegation Program ID
13
12
  */
14
- export declare const DELEGATION_PROGRAM_ID: any;
13
+ export declare const DELEGATION_PROGRAM_ID: PublicKey;
15
14
  /**
16
15
  * MagicBlock Permission Program ID (ACL)
17
16
  */
18
- export declare const PERMISSION_PROGRAM_ID: any;
17
+ export declare const PERMISSION_PROGRAM_ID: PublicKey;
19
18
  /**
20
19
  * MagicBlock Magic Program ID (for undelegation)
21
20
  */
22
- export declare const MAGIC_PROGRAM_ID: any;
21
+ export declare const MAGIC_PROGRAM_ID: PublicKey;
23
22
  /**
24
23
  * MagicBlock Magic Context Account (for undelegation)
25
24
  */
26
- export declare const MAGIC_CONTEXT_ID: any;
25
+ export declare const MAGIC_CONTEXT_ID: PublicKey;
27
26
  /**
28
27
  * PDA seed for deposit accounts
29
28
  */
@@ -216,12 +216,12 @@ export interface TransferToUsernameDepositParams {
216
216
  */
217
217
  export interface DelegationRecord {
218
218
  authority: string;
219
- owner: string;
220
- delegationSlot: number;
221
- lamports: number;
219
+ owner?: string;
220
+ delegationSlot?: number;
221
+ lamports?: number;
222
222
  }
223
223
  /**
224
- * Response from MagicBlock getDelegationStatus RPC call
224
+ * Response from MagicBlock getDelegationStatus RPC call.
225
225
  */
226
226
  export interface DelegationStatusResult {
227
227
  isDelegated: boolean;
@@ -234,7 +234,7 @@ export interface DelegationStatusResult {
234
234
  export interface DelegationStatusResponse {
235
235
  jsonrpc: "2.0";
236
236
  id: number | string;
237
- result?: DelegationStatusResult;
237
+ result: DelegationStatusResult;
238
238
  error?: {
239
239
  code: number;
240
240
  message: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loyal-labs/private-transactions",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "SDK for Telegram-based private Solana deposits",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",