@carrot-protocol/clend-rpc 0.1.24 → 0.1.25-mgmt1-dev-f72a388
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/addresses.d.ts +6 -22
- package/dist/addresses.js +10 -41
- package/dist/addresses.js.map +1 -1
- package/dist/idl/clend.d.ts +171 -0
- package/dist/idl/clend.js +171 -0
- package/dist/idl/clend.js.map +1 -1
- package/dist/instructions.d.ts +2 -0
- package/dist/instructions.js +30 -0
- package/dist/instructions.js.map +1 -1
- package/dist/rpc.d.ts +2 -0
- package/dist/rpc.js +8 -0
- package/dist/rpc.js.map +1 -1
- package/package.json +1 -1
package/dist/addresses.d.ts
CHANGED
|
@@ -38,28 +38,6 @@ export declare function getBankFeeVaultAuthorityPda(bank: web3.PublicKey): web3.
|
|
|
38
38
|
* @returns The fee state PDA
|
|
39
39
|
*/
|
|
40
40
|
export declare function getFeeStatePda(): web3.PublicKey;
|
|
41
|
-
/**
|
|
42
|
-
* Derive the PDA for a clend account
|
|
43
|
-
* @param authority The authority public key
|
|
44
|
-
* @param clendGroup The clend group public key
|
|
45
|
-
* @returns The clend account PDA
|
|
46
|
-
*/
|
|
47
|
-
export declare function getClendAccountPda(authority: web3.PublicKey, clendGroup: web3.PublicKey): web3.PublicKey;
|
|
48
|
-
/**
|
|
49
|
-
* Derive the PDA for a clend account with seed
|
|
50
|
-
* @param authority The authority public key
|
|
51
|
-
* @param clendGroup The clend group public key
|
|
52
|
-
* @param seed The seed value
|
|
53
|
-
* @returns The clend account PDA
|
|
54
|
-
*/
|
|
55
|
-
export declare function getClendAccountWithSeedPda(authority: web3.PublicKey, clendGroup: web3.PublicKey, seed: BN): web3.PublicKey;
|
|
56
|
-
/**
|
|
57
|
-
* Derive the PDA for a position in a clend account
|
|
58
|
-
* @param clendAccount The clend account public key
|
|
59
|
-
* @param bank The bank public key
|
|
60
|
-
* @returns The position PDA
|
|
61
|
-
*/
|
|
62
|
-
export declare function getPositionPda(clendAccount: web3.PublicKey, bank: web3.PublicKey): web3.PublicKey;
|
|
63
41
|
/**
|
|
64
42
|
* Derive the PDA for a bank's liquidity vault
|
|
65
43
|
* @param bank The bank public key
|
|
@@ -78,3 +56,9 @@ export declare function getBankInsuranceVaultPda(bank: web3.PublicKey): web3.Pub
|
|
|
78
56
|
* @returns The fee vault PDA
|
|
79
57
|
*/
|
|
80
58
|
export declare function getBankFeeVaultPda(bank: web3.PublicKey): web3.PublicKey;
|
|
59
|
+
/**
|
|
60
|
+
* Derive the PDA for a clend manager
|
|
61
|
+
* @param clendAccount The clend account public key
|
|
62
|
+
* @returns The clend manager PDA
|
|
63
|
+
*/
|
|
64
|
+
export declare function getClendManagerPda(clendAccount: web3.PublicKey): web3.PublicKey;
|
package/dist/addresses.js
CHANGED
|
@@ -7,12 +7,10 @@ exports.getBankLiquidityVaultAuthorityPda = getBankLiquidityVaultAuthorityPda;
|
|
|
7
7
|
exports.getBankInsuranceVaultAuthorityPda = getBankInsuranceVaultAuthorityPda;
|
|
8
8
|
exports.getBankFeeVaultAuthorityPda = getBankFeeVaultAuthorityPda;
|
|
9
9
|
exports.getFeeStatePda = getFeeStatePda;
|
|
10
|
-
exports.getClendAccountPda = getClendAccountPda;
|
|
11
|
-
exports.getClendAccountWithSeedPda = getClendAccountWithSeedPda;
|
|
12
|
-
exports.getPositionPda = getPositionPda;
|
|
13
10
|
exports.getBankLiquidityVaultPda = getBankLiquidityVaultPda;
|
|
14
11
|
exports.getBankInsuranceVaultPda = getBankInsuranceVaultPda;
|
|
15
12
|
exports.getBankFeeVaultPda = getBankFeeVaultPda;
|
|
13
|
+
exports.getClendManagerPda = getClendManagerPda;
|
|
16
14
|
const anchor_1 = require("@coral-xyz/anchor");
|
|
17
15
|
exports.CLEND_PROGRAM_ID = new anchor_1.web3.PublicKey("C73nDAFn23RYwiFa6vtHshSbcg8x6BLYjw3bERJ3vHxf");
|
|
18
16
|
/**
|
|
@@ -78,44 +76,6 @@ function getFeeStatePda() {
|
|
|
78
76
|
const [pubkey] = anchor_1.web3.PublicKey.findProgramAddressSync([Buffer.from("fee_state")], exports.CLEND_PROGRAM_ID);
|
|
79
77
|
return pubkey;
|
|
80
78
|
}
|
|
81
|
-
/**
|
|
82
|
-
* Derive the PDA for a clend account
|
|
83
|
-
* @param authority The authority public key
|
|
84
|
-
* @param clendGroup The clend group public key
|
|
85
|
-
* @returns The clend account PDA
|
|
86
|
-
*/
|
|
87
|
-
function getClendAccountPda(authority, clendGroup) {
|
|
88
|
-
const [pubkey] = anchor_1.web3.PublicKey.findProgramAddressSync([Buffer.from("clend_account"), authority.toBuffer(), clendGroup.toBuffer()], exports.CLEND_PROGRAM_ID);
|
|
89
|
-
return pubkey;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Derive the PDA for a clend account with seed
|
|
93
|
-
* @param authority The authority public key
|
|
94
|
-
* @param clendGroup The clend group public key
|
|
95
|
-
* @param seed The seed value
|
|
96
|
-
* @returns The clend account PDA
|
|
97
|
-
*/
|
|
98
|
-
function getClendAccountWithSeedPda(authority, clendGroup, seed) {
|
|
99
|
-
const seedBuffer = Buffer.alloc(8);
|
|
100
|
-
seedBuffer.writeBigUInt64LE(BigInt(seed.toString()));
|
|
101
|
-
const [pubkey] = anchor_1.web3.PublicKey.findProgramAddressSync([
|
|
102
|
-
Buffer.from("clend_account_with_seed"),
|
|
103
|
-
authority.toBuffer(),
|
|
104
|
-
clendGroup.toBuffer(),
|
|
105
|
-
seedBuffer,
|
|
106
|
-
], exports.CLEND_PROGRAM_ID);
|
|
107
|
-
return pubkey;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Derive the PDA for a position in a clend account
|
|
111
|
-
* @param clendAccount The clend account public key
|
|
112
|
-
* @param bank The bank public key
|
|
113
|
-
* @returns The position PDA
|
|
114
|
-
*/
|
|
115
|
-
function getPositionPda(clendAccount, bank) {
|
|
116
|
-
const [pubkey] = anchor_1.web3.PublicKey.findProgramAddressSync([Buffer.from("position"), clendAccount.toBuffer(), bank.toBuffer()], exports.CLEND_PROGRAM_ID);
|
|
117
|
-
return pubkey;
|
|
118
|
-
}
|
|
119
79
|
/**
|
|
120
80
|
* Derive the PDA for a bank's liquidity vault
|
|
121
81
|
* @param bank The bank public key
|
|
@@ -143,4 +103,13 @@ function getBankFeeVaultPda(bank) {
|
|
|
143
103
|
const [pubkey] = anchor_1.web3.PublicKey.findProgramAddressSync([Buffer.from("fee_vault"), bank.toBuffer()], exports.CLEND_PROGRAM_ID);
|
|
144
104
|
return pubkey;
|
|
145
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Derive the PDA for a clend manager
|
|
108
|
+
* @param clendAccount The clend account public key
|
|
109
|
+
* @returns The clend manager PDA
|
|
110
|
+
*/
|
|
111
|
+
function getClendManagerPda(clendAccount) {
|
|
112
|
+
const [pubkey] = anchor_1.web3.PublicKey.findProgramAddressSync([Buffer.from("clend_manager"), clendAccount.toBuffer()], exports.CLEND_PROGRAM_ID);
|
|
113
|
+
return pubkey;
|
|
114
|
+
}
|
|
146
115
|
//# sourceMappingURL=addresses.js.map
|
package/dist/addresses.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../src/addresses.ts"],"names":[],"mappings":";;;AAYA,gCASC;AASD,gDAkBC;AAOD,8EAQC;AAOD,8EAQC;AAOD,kEAQC;AAMD,wCAMC;
|
|
1
|
+
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../src/addresses.ts"],"names":[],"mappings":";;;AAYA,gCASC;AASD,gDAkBC;AAOD,8EAQC;AAOD,8EAQC;AAOD,kEAQC;AAMD,wCAMC;AAOD,4DAMC;AAOD,4DAMC;AAOD,gDAMC;AAOD,gDAQC;AA/JD,8CAA6C;AAEhC,QAAA,gBAAgB,GAAG,IAAI,aAAI,CAAC,SAAS,CAChD,8CAA8C,CAC/C,CAAC;AAEF;;;;;GAKG;AACH,SAAgB,UAAU,C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I,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,EAC3C,wBAAgB,CACjB,CAAC;IACF,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;GAIG;AACH,SAAgB,kBAAkB,CAChC,YAA4B;IAE5B,MAAM,CAAC,MAAM,CAAC,GAAG,aAAI,CAAC,SAAS,CAAC,sBAAsB,CACpD,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,YAAY,CAAC,QAAQ,EAAE,CAAC,EACvD,wBAAgB,CACjB,CAAC;IACF,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/dist/idl/clend.d.ts
CHANGED
|
@@ -851,6 +851,90 @@ export type Clend = {
|
|
|
851
851
|
];
|
|
852
852
|
"args": [];
|
|
853
853
|
},
|
|
854
|
+
{
|
|
855
|
+
"name": "lendingAccountSetManager";
|
|
856
|
+
"accounts": [
|
|
857
|
+
{
|
|
858
|
+
"name": "clendGroup";
|
|
859
|
+
"isMut": true;
|
|
860
|
+
"isSigner": false;
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"name": "feeBank";
|
|
864
|
+
"isMut": true;
|
|
865
|
+
"isSigner": false;
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"name": "clendManager";
|
|
869
|
+
"isMut": true;
|
|
870
|
+
"isSigner": false;
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"name": "clendAccount";
|
|
874
|
+
"isMut": true;
|
|
875
|
+
"isSigner": false;
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"name": "managerClendAccount";
|
|
879
|
+
"isMut": true;
|
|
880
|
+
"isSigner": false;
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"name": "clendAccountAuthority";
|
|
884
|
+
"isMut": false;
|
|
885
|
+
"isSigner": true;
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"name": "managerAuthority";
|
|
889
|
+
"isMut": false;
|
|
890
|
+
"isSigner": true;
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"name": "feePayer";
|
|
894
|
+
"isMut": true;
|
|
895
|
+
"isSigner": true;
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
"name": "systemProgram";
|
|
899
|
+
"isMut": false;
|
|
900
|
+
"isSigner": false;
|
|
901
|
+
}
|
|
902
|
+
];
|
|
903
|
+
"args": [
|
|
904
|
+
{
|
|
905
|
+
"name": "args";
|
|
906
|
+
"type": {
|
|
907
|
+
"defined": "ClendAccountSetManagerArgs";
|
|
908
|
+
};
|
|
909
|
+
}
|
|
910
|
+
];
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"name": "lendingAccountRemoveManager";
|
|
914
|
+
"accounts": [
|
|
915
|
+
{
|
|
916
|
+
"name": "clendAccount";
|
|
917
|
+
"isMut": true;
|
|
918
|
+
"isSigner": false;
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"name": "clendManager";
|
|
922
|
+
"isMut": true;
|
|
923
|
+
"isSigner": false;
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"name": "signer";
|
|
927
|
+
"isMut": false;
|
|
928
|
+
"isSigner": true;
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"name": "feePayer";
|
|
932
|
+
"isMut": true;
|
|
933
|
+
"isSigner": true;
|
|
934
|
+
}
|
|
935
|
+
];
|
|
936
|
+
"args": [];
|
|
937
|
+
},
|
|
854
938
|
{
|
|
855
939
|
"name": "lendingPoolAccrueBankInterest";
|
|
856
940
|
"accounts": [
|
|
@@ -1722,6 +1806,37 @@ export type Clend = {
|
|
|
1722
1806
|
];
|
|
1723
1807
|
};
|
|
1724
1808
|
},
|
|
1809
|
+
{
|
|
1810
|
+
"name": "clendManager";
|
|
1811
|
+
"docs": [
|
|
1812
|
+
"seeds = ['manager', clend_account.key().as_ref()]"
|
|
1813
|
+
];
|
|
1814
|
+
"type": {
|
|
1815
|
+
"kind": "struct";
|
|
1816
|
+
"fields": [
|
|
1817
|
+
{
|
|
1818
|
+
"name": "authority";
|
|
1819
|
+
"type": "publicKey";
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
"name": "clendAccount";
|
|
1823
|
+
"type": "publicKey";
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
"name": "fee";
|
|
1827
|
+
"type": {
|
|
1828
|
+
"defined": "ManagerFee";
|
|
1829
|
+
};
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
"name": "params";
|
|
1833
|
+
"type": {
|
|
1834
|
+
"defined": "ManagerParams";
|
|
1835
|
+
};
|
|
1836
|
+
}
|
|
1837
|
+
];
|
|
1838
|
+
};
|
|
1839
|
+
},
|
|
1725
1840
|
{
|
|
1726
1841
|
"name": "feeState";
|
|
1727
1842
|
"docs": [
|
|
@@ -2001,6 +2116,26 @@ export type Clend = {
|
|
|
2001
2116
|
];
|
|
2002
2117
|
};
|
|
2003
2118
|
},
|
|
2119
|
+
{
|
|
2120
|
+
"name": "ClendAccountSetManagerArgs";
|
|
2121
|
+
"type": {
|
|
2122
|
+
"kind": "struct";
|
|
2123
|
+
"fields": [
|
|
2124
|
+
{
|
|
2125
|
+
"name": "managerFee";
|
|
2126
|
+
"type": {
|
|
2127
|
+
"defined": "ManagerFee";
|
|
2128
|
+
};
|
|
2129
|
+
},
|
|
2130
|
+
{
|
|
2131
|
+
"name": "managerParams";
|
|
2132
|
+
"type": {
|
|
2133
|
+
"defined": "ManagerParams";
|
|
2134
|
+
};
|
|
2135
|
+
}
|
|
2136
|
+
];
|
|
2137
|
+
};
|
|
2138
|
+
},
|
|
2004
2139
|
{
|
|
2005
2140
|
"name": "StakedSettingsEditConfig";
|
|
2006
2141
|
"type": {
|
|
@@ -2824,6 +2959,42 @@ export type Clend = {
|
|
|
2824
2959
|
];
|
|
2825
2960
|
};
|
|
2826
2961
|
},
|
|
2962
|
+
{
|
|
2963
|
+
"name": "ManagerFee";
|
|
2964
|
+
"type": {
|
|
2965
|
+
"kind": "struct";
|
|
2966
|
+
"fields": [
|
|
2967
|
+
{
|
|
2968
|
+
"name": "bank";
|
|
2969
|
+
"type": "publicKey";
|
|
2970
|
+
},
|
|
2971
|
+
{
|
|
2972
|
+
"name": "initFeeBps";
|
|
2973
|
+
"type": "u16";
|
|
2974
|
+
}
|
|
2975
|
+
];
|
|
2976
|
+
};
|
|
2977
|
+
},
|
|
2978
|
+
{
|
|
2979
|
+
"name": "ManagerParams";
|
|
2980
|
+
"type": {
|
|
2981
|
+
"kind": "struct";
|
|
2982
|
+
"fields": [
|
|
2983
|
+
{
|
|
2984
|
+
"name": "leverageTarget";
|
|
2985
|
+
"type": {
|
|
2986
|
+
"option": "u8";
|
|
2987
|
+
};
|
|
2988
|
+
},
|
|
2989
|
+
{
|
|
2990
|
+
"name": "closeThreshold";
|
|
2991
|
+
"type": {
|
|
2992
|
+
"option": "u8";
|
|
2993
|
+
};
|
|
2994
|
+
}
|
|
2995
|
+
];
|
|
2996
|
+
};
|
|
2997
|
+
},
|
|
2827
2998
|
{
|
|
2828
2999
|
"name": "BalanceIncreaseType";
|
|
2829
3000
|
"type": {
|
package/dist/idl/clend.js
CHANGED
|
@@ -854,6 +854,90 @@ exports.IDL = {
|
|
|
854
854
|
],
|
|
855
855
|
"args": []
|
|
856
856
|
},
|
|
857
|
+
{
|
|
858
|
+
"name": "lendingAccountSetManager",
|
|
859
|
+
"accounts": [
|
|
860
|
+
{
|
|
861
|
+
"name": "clendGroup",
|
|
862
|
+
"isMut": true,
|
|
863
|
+
"isSigner": false
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"name": "feeBank",
|
|
867
|
+
"isMut": true,
|
|
868
|
+
"isSigner": false
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
"name": "clendManager",
|
|
872
|
+
"isMut": true,
|
|
873
|
+
"isSigner": false
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"name": "clendAccount",
|
|
877
|
+
"isMut": true,
|
|
878
|
+
"isSigner": false
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"name": "managerClendAccount",
|
|
882
|
+
"isMut": true,
|
|
883
|
+
"isSigner": false
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
"name": "clendAccountAuthority",
|
|
887
|
+
"isMut": false,
|
|
888
|
+
"isSigner": true
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
"name": "managerAuthority",
|
|
892
|
+
"isMut": false,
|
|
893
|
+
"isSigner": true
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
"name": "feePayer",
|
|
897
|
+
"isMut": true,
|
|
898
|
+
"isSigner": true
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
"name": "systemProgram",
|
|
902
|
+
"isMut": false,
|
|
903
|
+
"isSigner": false
|
|
904
|
+
}
|
|
905
|
+
],
|
|
906
|
+
"args": [
|
|
907
|
+
{
|
|
908
|
+
"name": "args",
|
|
909
|
+
"type": {
|
|
910
|
+
"defined": "ClendAccountSetManagerArgs"
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
]
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"name": "lendingAccountRemoveManager",
|
|
917
|
+
"accounts": [
|
|
918
|
+
{
|
|
919
|
+
"name": "clendAccount",
|
|
920
|
+
"isMut": true,
|
|
921
|
+
"isSigner": false
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
"name": "clendManager",
|
|
925
|
+
"isMut": true,
|
|
926
|
+
"isSigner": false
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"name": "signer",
|
|
930
|
+
"isMut": false,
|
|
931
|
+
"isSigner": true
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"name": "feePayer",
|
|
935
|
+
"isMut": true,
|
|
936
|
+
"isSigner": true
|
|
937
|
+
}
|
|
938
|
+
],
|
|
939
|
+
"args": []
|
|
940
|
+
},
|
|
857
941
|
{
|
|
858
942
|
"name": "lendingPoolAccrueBankInterest",
|
|
859
943
|
"accounts": [
|
|
@@ -1725,6 +1809,37 @@ exports.IDL = {
|
|
|
1725
1809
|
]
|
|
1726
1810
|
}
|
|
1727
1811
|
},
|
|
1812
|
+
{
|
|
1813
|
+
"name": "clendManager",
|
|
1814
|
+
"docs": [
|
|
1815
|
+
"seeds = ['manager', clend_account.key().as_ref()]"
|
|
1816
|
+
],
|
|
1817
|
+
"type": {
|
|
1818
|
+
"kind": "struct",
|
|
1819
|
+
"fields": [
|
|
1820
|
+
{
|
|
1821
|
+
"name": "authority",
|
|
1822
|
+
"type": "publicKey"
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
"name": "clendAccount",
|
|
1826
|
+
"type": "publicKey"
|
|
1827
|
+
},
|
|
1828
|
+
{
|
|
1829
|
+
"name": "fee",
|
|
1830
|
+
"type": {
|
|
1831
|
+
"defined": "ManagerFee"
|
|
1832
|
+
}
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
"name": "params",
|
|
1836
|
+
"type": {
|
|
1837
|
+
"defined": "ManagerParams"
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
]
|
|
1841
|
+
}
|
|
1842
|
+
},
|
|
1728
1843
|
{
|
|
1729
1844
|
"name": "feeState",
|
|
1730
1845
|
"docs": [
|
|
@@ -2004,6 +2119,26 @@ exports.IDL = {
|
|
|
2004
2119
|
]
|
|
2005
2120
|
}
|
|
2006
2121
|
},
|
|
2122
|
+
{
|
|
2123
|
+
"name": "ClendAccountSetManagerArgs",
|
|
2124
|
+
"type": {
|
|
2125
|
+
"kind": "struct",
|
|
2126
|
+
"fields": [
|
|
2127
|
+
{
|
|
2128
|
+
"name": "managerFee",
|
|
2129
|
+
"type": {
|
|
2130
|
+
"defined": "ManagerFee"
|
|
2131
|
+
}
|
|
2132
|
+
},
|
|
2133
|
+
{
|
|
2134
|
+
"name": "managerParams",
|
|
2135
|
+
"type": {
|
|
2136
|
+
"defined": "ManagerParams"
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2139
|
+
]
|
|
2140
|
+
}
|
|
2141
|
+
},
|
|
2007
2142
|
{
|
|
2008
2143
|
"name": "StakedSettingsEditConfig",
|
|
2009
2144
|
"type": {
|
|
@@ -2827,6 +2962,42 @@ exports.IDL = {
|
|
|
2827
2962
|
]
|
|
2828
2963
|
}
|
|
2829
2964
|
},
|
|
2965
|
+
{
|
|
2966
|
+
"name": "ManagerFee",
|
|
2967
|
+
"type": {
|
|
2968
|
+
"kind": "struct",
|
|
2969
|
+
"fields": [
|
|
2970
|
+
{
|
|
2971
|
+
"name": "bank",
|
|
2972
|
+
"type": "publicKey"
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
"name": "initFeeBps",
|
|
2976
|
+
"type": "u16"
|
|
2977
|
+
}
|
|
2978
|
+
]
|
|
2979
|
+
}
|
|
2980
|
+
},
|
|
2981
|
+
{
|
|
2982
|
+
"name": "ManagerParams",
|
|
2983
|
+
"type": {
|
|
2984
|
+
"kind": "struct",
|
|
2985
|
+
"fields": [
|
|
2986
|
+
{
|
|
2987
|
+
"name": "leverageTarget",
|
|
2988
|
+
"type": {
|
|
2989
|
+
"option": "u8"
|
|
2990
|
+
}
|
|
2991
|
+
},
|
|
2992
|
+
{
|
|
2993
|
+
"name": "closeThreshold",
|
|
2994
|
+
"type": {
|
|
2995
|
+
"option": "u8"
|
|
2996
|
+
}
|
|
2997
|
+
}
|
|
2998
|
+
]
|
|
2999
|
+
}
|
|
3000
|
+
},
|
|
2830
3001
|
{
|
|
2831
3002
|
"name": "BalanceIncreaseType",
|
|
2832
3003
|
"type": {
|