@xitadel-fi/sdk 0.1.2 → 0.1.3
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.
|
@@ -26,6 +26,13 @@ export declare class XitadelProgram {
|
|
|
26
26
|
* @returns Transaction instruction for initializing the program configuration
|
|
27
27
|
*/
|
|
28
28
|
initConfig(manager: PublicKey, payer?: PublicKey): Promise<TransactionInstruction>;
|
|
29
|
+
/**
|
|
30
|
+
* Transfer manager authority to a new manager
|
|
31
|
+
* @param currentManager The current manager's public key (must sign)
|
|
32
|
+
* @param newManager The new manager's public key
|
|
33
|
+
* @returns Transaction instruction for transferring manager authority
|
|
34
|
+
*/
|
|
35
|
+
transferManager(currentManager: PublicKey, newManager: PublicKey): Promise<TransactionInstruction>;
|
|
29
36
|
/**
|
|
30
37
|
* Helper method to get LTT configuration PDA
|
|
31
38
|
* @param lttId The LTT ID (Pubkey)
|
package/dist/sdk/src/program.js
CHANGED
|
@@ -61,6 +61,24 @@ class XitadelProgram {
|
|
|
61
61
|
})
|
|
62
62
|
.instruction();
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Transfer manager authority to a new manager
|
|
66
|
+
* @param currentManager The current manager's public key (must sign)
|
|
67
|
+
* @param newManager The new manager's public key
|
|
68
|
+
* @returns Transaction instruction for transferring manager authority
|
|
69
|
+
*/
|
|
70
|
+
async transferManager(currentManager, newManager) {
|
|
71
|
+
const configPda = this.getConfigPda();
|
|
72
|
+
return this.program.methods
|
|
73
|
+
.transferManager()
|
|
74
|
+
.accountsPartial({
|
|
75
|
+
config: configPda,
|
|
76
|
+
currentManager,
|
|
77
|
+
newManager,
|
|
78
|
+
systemProgram: web3_js_2.SystemProgram.programId,
|
|
79
|
+
})
|
|
80
|
+
.instruction();
|
|
81
|
+
}
|
|
64
82
|
/**
|
|
65
83
|
* Helper method to get LTT configuration PDA
|
|
66
84
|
* @param lttId The LTT ID (Pubkey)
|
|
@@ -3750,6 +3750,53 @@
|
|
|
3750
3750
|
}
|
|
3751
3751
|
]
|
|
3752
3752
|
},
|
|
3753
|
+
{
|
|
3754
|
+
"name": "transfer_manager",
|
|
3755
|
+
"discriminator": [
|
|
3756
|
+
183,
|
|
3757
|
+
122,
|
|
3758
|
+
218,
|
|
3759
|
+
241,
|
|
3760
|
+
4,
|
|
3761
|
+
151,
|
|
3762
|
+
156,
|
|
3763
|
+
120
|
|
3764
|
+
],
|
|
3765
|
+
"accounts": [
|
|
3766
|
+
{
|
|
3767
|
+
"name": "config",
|
|
3768
|
+
"writable": true,
|
|
3769
|
+
"pda": {
|
|
3770
|
+
"seeds": [
|
|
3771
|
+
{
|
|
3772
|
+
"kind": "const",
|
|
3773
|
+
"value": [
|
|
3774
|
+
99,
|
|
3775
|
+
111,
|
|
3776
|
+
110,
|
|
3777
|
+
102,
|
|
3778
|
+
105,
|
|
3779
|
+
103
|
|
3780
|
+
]
|
|
3781
|
+
}
|
|
3782
|
+
]
|
|
3783
|
+
}
|
|
3784
|
+
},
|
|
3785
|
+
{
|
|
3786
|
+
"name": "current_manager",
|
|
3787
|
+
"writable": true,
|
|
3788
|
+
"signer": true
|
|
3789
|
+
},
|
|
3790
|
+
{
|
|
3791
|
+
"name": "new_manager"
|
|
3792
|
+
},
|
|
3793
|
+
{
|
|
3794
|
+
"name": "system_program",
|
|
3795
|
+
"address": "11111111111111111111111111111111"
|
|
3796
|
+
}
|
|
3797
|
+
],
|
|
3798
|
+
"args": []
|
|
3799
|
+
},
|
|
3753
3800
|
{
|
|
3754
3801
|
"name": "update_ltt_status",
|
|
3755
3802
|
"discriminator": [
|
|
@@ -3756,6 +3756,53 @@ export type Xitadel = {
|
|
|
3756
3756
|
}
|
|
3757
3757
|
];
|
|
3758
3758
|
},
|
|
3759
|
+
{
|
|
3760
|
+
"name": "transferManager";
|
|
3761
|
+
"discriminator": [
|
|
3762
|
+
183,
|
|
3763
|
+
122,
|
|
3764
|
+
218,
|
|
3765
|
+
241,
|
|
3766
|
+
4,
|
|
3767
|
+
151,
|
|
3768
|
+
156,
|
|
3769
|
+
120
|
|
3770
|
+
];
|
|
3771
|
+
"accounts": [
|
|
3772
|
+
{
|
|
3773
|
+
"name": "config";
|
|
3774
|
+
"writable": true;
|
|
3775
|
+
"pda": {
|
|
3776
|
+
"seeds": [
|
|
3777
|
+
{
|
|
3778
|
+
"kind": "const";
|
|
3779
|
+
"value": [
|
|
3780
|
+
99,
|
|
3781
|
+
111,
|
|
3782
|
+
110,
|
|
3783
|
+
102,
|
|
3784
|
+
105,
|
|
3785
|
+
103
|
|
3786
|
+
];
|
|
3787
|
+
}
|
|
3788
|
+
];
|
|
3789
|
+
};
|
|
3790
|
+
},
|
|
3791
|
+
{
|
|
3792
|
+
"name": "currentManager";
|
|
3793
|
+
"writable": true;
|
|
3794
|
+
"signer": true;
|
|
3795
|
+
},
|
|
3796
|
+
{
|
|
3797
|
+
"name": "newManager";
|
|
3798
|
+
},
|
|
3799
|
+
{
|
|
3800
|
+
"name": "systemProgram";
|
|
3801
|
+
"address": "11111111111111111111111111111111";
|
|
3802
|
+
}
|
|
3803
|
+
];
|
|
3804
|
+
"args": [];
|
|
3805
|
+
},
|
|
3759
3806
|
{
|
|
3760
3807
|
"name": "updateLttStatus";
|
|
3761
3808
|
"discriminator": [
|