@carrot-protocol/clend-rpc 0.1.24 → 0.1.25-mgmt1-dev-c1741f0
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 +168 -0
- package/dist/idl/clend.js +168 -0
- package/dist/idl/clend.js.map +1 -1
- package/dist/instructions.d.ts +2 -0
- package/dist/instructions.js +46 -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("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,CACx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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,SAAS,CAAC,EAAE,YAAY,CAAC,QAAQ,EAAE,CAAC,EACjD,wBAAgB,CACjB,CAAC;IACF,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/dist/idl/clend.d.ts
CHANGED
|
@@ -851,6 +851,91 @@ 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
|
+
"isOptional": true;
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"name": "clendManager";
|
|
870
|
+
"isMut": true;
|
|
871
|
+
"isSigner": false;
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
"name": "clendAccount";
|
|
875
|
+
"isMut": true;
|
|
876
|
+
"isSigner": false;
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
"name": "managerClendAccount";
|
|
880
|
+
"isMut": true;
|
|
881
|
+
"isSigner": false;
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"name": "clendAccountAuthority";
|
|
885
|
+
"isMut": false;
|
|
886
|
+
"isSigner": true;
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
"name": "managerAuthority";
|
|
890
|
+
"isMut": false;
|
|
891
|
+
"isSigner": true;
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
"name": "feePayer";
|
|
895
|
+
"isMut": true;
|
|
896
|
+
"isSigner": true;
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"name": "systemProgram";
|
|
900
|
+
"isMut": false;
|
|
901
|
+
"isSigner": false;
|
|
902
|
+
}
|
|
903
|
+
];
|
|
904
|
+
"args": [
|
|
905
|
+
{
|
|
906
|
+
"name": "args";
|
|
907
|
+
"type": {
|
|
908
|
+
"defined": "ClendAccountSetManagerArgs";
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
];
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
"name": "lendingAccountRemoveManager";
|
|
915
|
+
"accounts": [
|
|
916
|
+
{
|
|
917
|
+
"name": "clendAccount";
|
|
918
|
+
"isMut": true;
|
|
919
|
+
"isSigner": false;
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"name": "clendManager";
|
|
923
|
+
"isMut": true;
|
|
924
|
+
"isSigner": false;
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
"name": "signer";
|
|
928
|
+
"isMut": false;
|
|
929
|
+
"isSigner": true;
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"name": "feePayer";
|
|
933
|
+
"isMut": true;
|
|
934
|
+
"isSigner": true;
|
|
935
|
+
}
|
|
936
|
+
];
|
|
937
|
+
"args": [];
|
|
938
|
+
},
|
|
854
939
|
{
|
|
855
940
|
"name": "lendingPoolAccrueBankInterest";
|
|
856
941
|
"accounts": [
|
|
@@ -1722,6 +1807,37 @@ export type Clend = {
|
|
|
1722
1807
|
];
|
|
1723
1808
|
};
|
|
1724
1809
|
},
|
|
1810
|
+
{
|
|
1811
|
+
"name": "clendManager";
|
|
1812
|
+
"docs": [
|
|
1813
|
+
"seeds = ['manager', clend_account.key().as_ref()]"
|
|
1814
|
+
];
|
|
1815
|
+
"type": {
|
|
1816
|
+
"kind": "struct";
|
|
1817
|
+
"fields": [
|
|
1818
|
+
{
|
|
1819
|
+
"name": "authority";
|
|
1820
|
+
"type": "publicKey";
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
"name": "clendAccount";
|
|
1824
|
+
"type": "publicKey";
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
"name": "fee";
|
|
1828
|
+
"type": {
|
|
1829
|
+
"defined": "ManagerFee";
|
|
1830
|
+
};
|
|
1831
|
+
},
|
|
1832
|
+
{
|
|
1833
|
+
"name": "params";
|
|
1834
|
+
"type": {
|
|
1835
|
+
"defined": "ManagerParams";
|
|
1836
|
+
};
|
|
1837
|
+
}
|
|
1838
|
+
];
|
|
1839
|
+
};
|
|
1840
|
+
},
|
|
1725
1841
|
{
|
|
1726
1842
|
"name": "feeState";
|
|
1727
1843
|
"docs": [
|
|
@@ -2001,6 +2117,26 @@ export type Clend = {
|
|
|
2001
2117
|
];
|
|
2002
2118
|
};
|
|
2003
2119
|
},
|
|
2120
|
+
{
|
|
2121
|
+
"name": "ClendAccountSetManagerArgs";
|
|
2122
|
+
"type": {
|
|
2123
|
+
"kind": "struct";
|
|
2124
|
+
"fields": [
|
|
2125
|
+
{
|
|
2126
|
+
"name": "managerFee";
|
|
2127
|
+
"type": {
|
|
2128
|
+
"defined": "ManagerFee";
|
|
2129
|
+
};
|
|
2130
|
+
},
|
|
2131
|
+
{
|
|
2132
|
+
"name": "managerParams";
|
|
2133
|
+
"type": {
|
|
2134
|
+
"defined": "ManagerParams";
|
|
2135
|
+
};
|
|
2136
|
+
}
|
|
2137
|
+
];
|
|
2138
|
+
};
|
|
2139
|
+
},
|
|
2004
2140
|
{
|
|
2005
2141
|
"name": "StakedSettingsEditConfig";
|
|
2006
2142
|
"type": {
|
|
@@ -2824,6 +2960,38 @@ export type Clend = {
|
|
|
2824
2960
|
];
|
|
2825
2961
|
};
|
|
2826
2962
|
},
|
|
2963
|
+
{
|
|
2964
|
+
"name": "ManagerFee";
|
|
2965
|
+
"type": {
|
|
2966
|
+
"kind": "struct";
|
|
2967
|
+
"fields": [
|
|
2968
|
+
{
|
|
2969
|
+
"name": "initFeeBps";
|
|
2970
|
+
"type": "u16";
|
|
2971
|
+
}
|
|
2972
|
+
];
|
|
2973
|
+
};
|
|
2974
|
+
},
|
|
2975
|
+
{
|
|
2976
|
+
"name": "ManagerParams";
|
|
2977
|
+
"type": {
|
|
2978
|
+
"kind": "struct";
|
|
2979
|
+
"fields": [
|
|
2980
|
+
{
|
|
2981
|
+
"name": "leverageTarget";
|
|
2982
|
+
"type": {
|
|
2983
|
+
"option": "u8";
|
|
2984
|
+
};
|
|
2985
|
+
},
|
|
2986
|
+
{
|
|
2987
|
+
"name": "closeThreshold";
|
|
2988
|
+
"type": {
|
|
2989
|
+
"option": "u8";
|
|
2990
|
+
};
|
|
2991
|
+
}
|
|
2992
|
+
];
|
|
2993
|
+
};
|
|
2994
|
+
},
|
|
2827
2995
|
{
|
|
2828
2996
|
"name": "BalanceIncreaseType";
|
|
2829
2997
|
"type": {
|
package/dist/idl/clend.js
CHANGED
|
@@ -854,6 +854,91 @@ 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
|
+
"isOptional": true
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"name": "clendManager",
|
|
873
|
+
"isMut": true,
|
|
874
|
+
"isSigner": false
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"name": "clendAccount",
|
|
878
|
+
"isMut": true,
|
|
879
|
+
"isSigner": false
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"name": "managerClendAccount",
|
|
883
|
+
"isMut": true,
|
|
884
|
+
"isSigner": false
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"name": "clendAccountAuthority",
|
|
888
|
+
"isMut": false,
|
|
889
|
+
"isSigner": true
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"name": "managerAuthority",
|
|
893
|
+
"isMut": false,
|
|
894
|
+
"isSigner": true
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"name": "feePayer",
|
|
898
|
+
"isMut": true,
|
|
899
|
+
"isSigner": true
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"name": "systemProgram",
|
|
903
|
+
"isMut": false,
|
|
904
|
+
"isSigner": false
|
|
905
|
+
}
|
|
906
|
+
],
|
|
907
|
+
"args": [
|
|
908
|
+
{
|
|
909
|
+
"name": "args",
|
|
910
|
+
"type": {
|
|
911
|
+
"defined": "ClendAccountSetManagerArgs"
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
]
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"name": "lendingAccountRemoveManager",
|
|
918
|
+
"accounts": [
|
|
919
|
+
{
|
|
920
|
+
"name": "clendAccount",
|
|
921
|
+
"isMut": true,
|
|
922
|
+
"isSigner": false
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
"name": "clendManager",
|
|
926
|
+
"isMut": true,
|
|
927
|
+
"isSigner": false
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"name": "signer",
|
|
931
|
+
"isMut": false,
|
|
932
|
+
"isSigner": true
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"name": "feePayer",
|
|
936
|
+
"isMut": true,
|
|
937
|
+
"isSigner": true
|
|
938
|
+
}
|
|
939
|
+
],
|
|
940
|
+
"args": []
|
|
941
|
+
},
|
|
857
942
|
{
|
|
858
943
|
"name": "lendingPoolAccrueBankInterest",
|
|
859
944
|
"accounts": [
|
|
@@ -1725,6 +1810,37 @@ exports.IDL = {
|
|
|
1725
1810
|
]
|
|
1726
1811
|
}
|
|
1727
1812
|
},
|
|
1813
|
+
{
|
|
1814
|
+
"name": "clendManager",
|
|
1815
|
+
"docs": [
|
|
1816
|
+
"seeds = ['manager', clend_account.key().as_ref()]"
|
|
1817
|
+
],
|
|
1818
|
+
"type": {
|
|
1819
|
+
"kind": "struct",
|
|
1820
|
+
"fields": [
|
|
1821
|
+
{
|
|
1822
|
+
"name": "authority",
|
|
1823
|
+
"type": "publicKey"
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
"name": "clendAccount",
|
|
1827
|
+
"type": "publicKey"
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
"name": "fee",
|
|
1831
|
+
"type": {
|
|
1832
|
+
"defined": "ManagerFee"
|
|
1833
|
+
}
|
|
1834
|
+
},
|
|
1835
|
+
{
|
|
1836
|
+
"name": "params",
|
|
1837
|
+
"type": {
|
|
1838
|
+
"defined": "ManagerParams"
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
]
|
|
1842
|
+
}
|
|
1843
|
+
},
|
|
1728
1844
|
{
|
|
1729
1845
|
"name": "feeState",
|
|
1730
1846
|
"docs": [
|
|
@@ -2004,6 +2120,26 @@ exports.IDL = {
|
|
|
2004
2120
|
]
|
|
2005
2121
|
}
|
|
2006
2122
|
},
|
|
2123
|
+
{
|
|
2124
|
+
"name": "ClendAccountSetManagerArgs",
|
|
2125
|
+
"type": {
|
|
2126
|
+
"kind": "struct",
|
|
2127
|
+
"fields": [
|
|
2128
|
+
{
|
|
2129
|
+
"name": "managerFee",
|
|
2130
|
+
"type": {
|
|
2131
|
+
"defined": "ManagerFee"
|
|
2132
|
+
}
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
"name": "managerParams",
|
|
2136
|
+
"type": {
|
|
2137
|
+
"defined": "ManagerParams"
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
]
|
|
2141
|
+
}
|
|
2142
|
+
},
|
|
2007
2143
|
{
|
|
2008
2144
|
"name": "StakedSettingsEditConfig",
|
|
2009
2145
|
"type": {
|
|
@@ -2827,6 +2963,38 @@ exports.IDL = {
|
|
|
2827
2963
|
]
|
|
2828
2964
|
}
|
|
2829
2965
|
},
|
|
2966
|
+
{
|
|
2967
|
+
"name": "ManagerFee",
|
|
2968
|
+
"type": {
|
|
2969
|
+
"kind": "struct",
|
|
2970
|
+
"fields": [
|
|
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
|
+
},
|
|
2830
2998
|
{
|
|
2831
2999
|
"name": "BalanceIncreaseType",
|
|
2832
3000
|
"type": {
|