@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.
- package/dist/index.js +2324 -1614
- package/dist/src/constants.d.ts +7 -8
- package/dist/src/types.d.ts +5 -5
- package/package.json +1 -1
package/dist/src/constants.d.ts
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
|
|
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:
|
|
5
|
+
export declare const ER_VALIDATOR: PublicKey;
|
|
7
6
|
/**
|
|
8
7
|
* Telegram Private Transfer program ID
|
|
9
8
|
*/
|
|
10
|
-
export declare const PROGRAM_ID:
|
|
9
|
+
export declare const PROGRAM_ID: PublicKey;
|
|
11
10
|
/**
|
|
12
11
|
* MagicBlock Delegation Program ID
|
|
13
12
|
*/
|
|
14
|
-
export declare const DELEGATION_PROGRAM_ID:
|
|
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:
|
|
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:
|
|
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:
|
|
25
|
+
export declare const MAGIC_CONTEXT_ID: PublicKey;
|
|
27
26
|
/**
|
|
28
27
|
* PDA seed for deposit accounts
|
|
29
28
|
*/
|
package/dist/src/types.d.ts
CHANGED
|
@@ -216,12 +216,12 @@ export interface TransferToUsernameDepositParams {
|
|
|
216
216
|
*/
|
|
217
217
|
export interface DelegationRecord {
|
|
218
218
|
authority: string;
|
|
219
|
-
owner
|
|
220
|
-
delegationSlot
|
|
221
|
-
lamports
|
|
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
|
|
237
|
+
result: DelegationStatusResult;
|
|
238
238
|
error?: {
|
|
239
239
|
code: number;
|
|
240
240
|
message: string;
|