@carrot-protocol/clend-rpc 0.1.25-mgmt1-dev-c9badb9 → 0.1.25-p-withdraw-dev-c863712
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 +22 -6
- package/dist/addresses.js +41 -10
- package/dist/addresses.js.map +1 -1
- package/dist/idl/clend.d.ts +1 -180
- package/dist/idl/clend.js +1 -180
- package/dist/idl/clend.js.map +1 -1
- package/dist/instructions.d.ts +0 -2
- package/dist/instructions.js +0 -46
- package/dist/instructions.js.map +1 -1
- package/dist/rpc.d.ts +0 -2
- package/dist/rpc.js +85 -113
- package/dist/rpc.js.map +1 -1
- package/package.json +2 -2
package/dist/addresses.d.ts
CHANGED
|
@@ -38,6 +38,28 @@ 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;
|
|
41
63
|
/**
|
|
42
64
|
* Derive the PDA for a bank's liquidity vault
|
|
43
65
|
* @param bank The bank public key
|
|
@@ -56,9 +78,3 @@ export declare function getBankInsuranceVaultPda(bank: web3.PublicKey): web3.Pub
|
|
|
56
78
|
* @returns The fee vault PDA
|
|
57
79
|
*/
|
|
58
80
|
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,10 +7,12 @@ 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;
|
|
10
13
|
exports.getBankLiquidityVaultPda = getBankLiquidityVaultPda;
|
|
11
14
|
exports.getBankInsuranceVaultPda = getBankInsuranceVaultPda;
|
|
12
15
|
exports.getBankFeeVaultPda = getBankFeeVaultPda;
|
|
13
|
-
exports.getClendManagerPda = getClendManagerPda;
|
|
14
16
|
const anchor_1 = require("@coral-xyz/anchor");
|
|
15
17
|
exports.CLEND_PROGRAM_ID = new anchor_1.web3.PublicKey("C73nDAFn23RYwiFa6vtHshSbcg8x6BLYjw3bERJ3vHxf");
|
|
16
18
|
/**
|
|
@@ -76,6 +78,44 @@ function getFeeStatePda() {
|
|
|
76
78
|
const [pubkey] = anchor_1.web3.PublicKey.findProgramAddressSync([Buffer.from("fee_state")], exports.CLEND_PROGRAM_ID);
|
|
77
79
|
return pubkey;
|
|
78
80
|
}
|
|
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
|
+
}
|
|
79
119
|
/**
|
|
80
120
|
* Derive the PDA for a bank's liquidity vault
|
|
81
121
|
* @param bank The bank public key
|
|
@@ -103,13 +143,4 @@ function getBankFeeVaultPda(bank) {
|
|
|
103
143
|
const [pubkey] = anchor_1.web3.PublicKey.findProgramAddressSync([Buffer.from("fee_vault"), bank.toBuffer()], exports.CLEND_PROGRAM_ID);
|
|
104
144
|
return pubkey;
|
|
105
145
|
}
|
|
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
|
-
}
|
|
115
146
|
//# 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;AAOD,4DAMC;AAOD,4DAMC;AAOD,gDAMC;
|
|
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;AAQD,gDASC;AASD,gEAkBC;AAQD,wCASC;AAOD,4DAMC;AAOD,4DAMC;AAOD,gDAMC;AA7MD,8CAA6C;AAEhC,QAAA,gBAAgB,GAAG,IAAI,aAA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,EAAE,CAAC,EAC3C,wBAAgB,CACjB,CAAC;IACF,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/dist/idl/clend.d.ts
CHANGED
|
@@ -851,91 +851,6 @@ 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
|
-
},
|
|
939
854
|
{
|
|
940
855
|
"name": "lendingPoolAccrueBankInterest";
|
|
941
856
|
"accounts": [
|
|
@@ -1524,27 +1439,12 @@ export type Clend = {
|
|
|
1524
1439
|
];
|
|
1525
1440
|
"type": "u64";
|
|
1526
1441
|
},
|
|
1527
|
-
{
|
|
1528
|
-
"name": "manager";
|
|
1529
|
-
"type": {
|
|
1530
|
-
"option": "publicKey";
|
|
1531
|
-
};
|
|
1532
|
-
},
|
|
1533
|
-
{
|
|
1534
|
-
"name": "managerPadding";
|
|
1535
|
-
"type": {
|
|
1536
|
-
"array": [
|
|
1537
|
-
"u8",
|
|
1538
|
-
7
|
|
1539
|
-
];
|
|
1540
|
-
};
|
|
1541
|
-
},
|
|
1542
1442
|
{
|
|
1543
1443
|
"name": "padding";
|
|
1544
1444
|
"type": {
|
|
1545
1445
|
"array": [
|
|
1546
1446
|
"u64",
|
|
1547
|
-
|
|
1447
|
+
63
|
|
1548
1448
|
];
|
|
1549
1449
|
};
|
|
1550
1450
|
}
|
|
@@ -1822,33 +1722,6 @@ export type Clend = {
|
|
|
1822
1722
|
];
|
|
1823
1723
|
};
|
|
1824
1724
|
},
|
|
1825
|
-
{
|
|
1826
|
-
"name": "clendManager";
|
|
1827
|
-
"docs": [
|
|
1828
|
-
"seeds = ['manager', clend_account.key().as_ref()]"
|
|
1829
|
-
];
|
|
1830
|
-
"type": {
|
|
1831
|
-
"kind": "struct";
|
|
1832
|
-
"fields": [
|
|
1833
|
-
{
|
|
1834
|
-
"name": "clendAccount";
|
|
1835
|
-
"type": "publicKey";
|
|
1836
|
-
},
|
|
1837
|
-
{
|
|
1838
|
-
"name": "fee";
|
|
1839
|
-
"type": {
|
|
1840
|
-
"defined": "ManagerFee";
|
|
1841
|
-
};
|
|
1842
|
-
},
|
|
1843
|
-
{
|
|
1844
|
-
"name": "params";
|
|
1845
|
-
"type": {
|
|
1846
|
-
"defined": "ManagerParams";
|
|
1847
|
-
};
|
|
1848
|
-
}
|
|
1849
|
-
];
|
|
1850
|
-
};
|
|
1851
|
-
},
|
|
1852
1725
|
{
|
|
1853
1726
|
"name": "feeState";
|
|
1854
1727
|
"docs": [
|
|
@@ -2128,26 +2001,6 @@ export type Clend = {
|
|
|
2128
2001
|
];
|
|
2129
2002
|
};
|
|
2130
2003
|
},
|
|
2131
|
-
{
|
|
2132
|
-
"name": "ClendAccountSetManagerArgs";
|
|
2133
|
-
"type": {
|
|
2134
|
-
"kind": "struct";
|
|
2135
|
-
"fields": [
|
|
2136
|
-
{
|
|
2137
|
-
"name": "managerFee";
|
|
2138
|
-
"type": {
|
|
2139
|
-
"defined": "ManagerFee";
|
|
2140
|
-
};
|
|
2141
|
-
},
|
|
2142
|
-
{
|
|
2143
|
-
"name": "managerParams";
|
|
2144
|
-
"type": {
|
|
2145
|
-
"defined": "ManagerParams";
|
|
2146
|
-
};
|
|
2147
|
-
}
|
|
2148
|
-
];
|
|
2149
|
-
};
|
|
2150
|
-
},
|
|
2151
2004
|
{
|
|
2152
2005
|
"name": "StakedSettingsEditConfig";
|
|
2153
2006
|
"type": {
|
|
@@ -2971,38 +2824,6 @@ export type Clend = {
|
|
|
2971
2824
|
];
|
|
2972
2825
|
};
|
|
2973
2826
|
},
|
|
2974
|
-
{
|
|
2975
|
-
"name": "ManagerFee";
|
|
2976
|
-
"type": {
|
|
2977
|
-
"kind": "struct";
|
|
2978
|
-
"fields": [
|
|
2979
|
-
{
|
|
2980
|
-
"name": "initFeeBps";
|
|
2981
|
-
"type": "u16";
|
|
2982
|
-
}
|
|
2983
|
-
];
|
|
2984
|
-
};
|
|
2985
|
-
},
|
|
2986
|
-
{
|
|
2987
|
-
"name": "ManagerParams";
|
|
2988
|
-
"type": {
|
|
2989
|
-
"kind": "struct";
|
|
2990
|
-
"fields": [
|
|
2991
|
-
{
|
|
2992
|
-
"name": "leverageTarget";
|
|
2993
|
-
"type": {
|
|
2994
|
-
"option": "u8";
|
|
2995
|
-
};
|
|
2996
|
-
},
|
|
2997
|
-
{
|
|
2998
|
-
"name": "closeThreshold";
|
|
2999
|
-
"type": {
|
|
3000
|
-
"option": "u8";
|
|
3001
|
-
};
|
|
3002
|
-
}
|
|
3003
|
-
];
|
|
3004
|
-
};
|
|
3005
|
-
},
|
|
3006
2827
|
{
|
|
3007
2828
|
"name": "BalanceIncreaseType";
|
|
3008
2829
|
"type": {
|
package/dist/idl/clend.js
CHANGED
|
@@ -854,91 +854,6 @@ 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
|
-
},
|
|
942
857
|
{
|
|
943
858
|
"name": "lendingPoolAccrueBankInterest",
|
|
944
859
|
"accounts": [
|
|
@@ -1527,27 +1442,12 @@ exports.IDL = {
|
|
|
1527
1442
|
],
|
|
1528
1443
|
"type": "u64"
|
|
1529
1444
|
},
|
|
1530
|
-
{
|
|
1531
|
-
"name": "manager",
|
|
1532
|
-
"type": {
|
|
1533
|
-
"option": "publicKey"
|
|
1534
|
-
}
|
|
1535
|
-
},
|
|
1536
|
-
{
|
|
1537
|
-
"name": "managerPadding",
|
|
1538
|
-
"type": {
|
|
1539
|
-
"array": [
|
|
1540
|
-
"u8",
|
|
1541
|
-
7
|
|
1542
|
-
]
|
|
1543
|
-
}
|
|
1544
|
-
},
|
|
1545
1445
|
{
|
|
1546
1446
|
"name": "padding",
|
|
1547
1447
|
"type": {
|
|
1548
1448
|
"array": [
|
|
1549
1449
|
"u64",
|
|
1550
|
-
|
|
1450
|
+
63
|
|
1551
1451
|
]
|
|
1552
1452
|
}
|
|
1553
1453
|
}
|
|
@@ -1825,33 +1725,6 @@ exports.IDL = {
|
|
|
1825
1725
|
]
|
|
1826
1726
|
}
|
|
1827
1727
|
},
|
|
1828
|
-
{
|
|
1829
|
-
"name": "clendManager",
|
|
1830
|
-
"docs": [
|
|
1831
|
-
"seeds = ['manager', clend_account.key().as_ref()]"
|
|
1832
|
-
],
|
|
1833
|
-
"type": {
|
|
1834
|
-
"kind": "struct",
|
|
1835
|
-
"fields": [
|
|
1836
|
-
{
|
|
1837
|
-
"name": "clendAccount",
|
|
1838
|
-
"type": "publicKey"
|
|
1839
|
-
},
|
|
1840
|
-
{
|
|
1841
|
-
"name": "fee",
|
|
1842
|
-
"type": {
|
|
1843
|
-
"defined": "ManagerFee"
|
|
1844
|
-
}
|
|
1845
|
-
},
|
|
1846
|
-
{
|
|
1847
|
-
"name": "params",
|
|
1848
|
-
"type": {
|
|
1849
|
-
"defined": "ManagerParams"
|
|
1850
|
-
}
|
|
1851
|
-
}
|
|
1852
|
-
]
|
|
1853
|
-
}
|
|
1854
|
-
},
|
|
1855
1728
|
{
|
|
1856
1729
|
"name": "feeState",
|
|
1857
1730
|
"docs": [
|
|
@@ -2131,26 +2004,6 @@ exports.IDL = {
|
|
|
2131
2004
|
]
|
|
2132
2005
|
}
|
|
2133
2006
|
},
|
|
2134
|
-
{
|
|
2135
|
-
"name": "ClendAccountSetManagerArgs",
|
|
2136
|
-
"type": {
|
|
2137
|
-
"kind": "struct",
|
|
2138
|
-
"fields": [
|
|
2139
|
-
{
|
|
2140
|
-
"name": "managerFee",
|
|
2141
|
-
"type": {
|
|
2142
|
-
"defined": "ManagerFee"
|
|
2143
|
-
}
|
|
2144
|
-
},
|
|
2145
|
-
{
|
|
2146
|
-
"name": "managerParams",
|
|
2147
|
-
"type": {
|
|
2148
|
-
"defined": "ManagerParams"
|
|
2149
|
-
}
|
|
2150
|
-
}
|
|
2151
|
-
]
|
|
2152
|
-
}
|
|
2153
|
-
},
|
|
2154
2007
|
{
|
|
2155
2008
|
"name": "StakedSettingsEditConfig",
|
|
2156
2009
|
"type": {
|
|
@@ -2974,38 +2827,6 @@ exports.IDL = {
|
|
|
2974
2827
|
]
|
|
2975
2828
|
}
|
|
2976
2829
|
},
|
|
2977
|
-
{
|
|
2978
|
-
"name": "ManagerFee",
|
|
2979
|
-
"type": {
|
|
2980
|
-
"kind": "struct",
|
|
2981
|
-
"fields": [
|
|
2982
|
-
{
|
|
2983
|
-
"name": "initFeeBps",
|
|
2984
|
-
"type": "u16"
|
|
2985
|
-
}
|
|
2986
|
-
]
|
|
2987
|
-
}
|
|
2988
|
-
},
|
|
2989
|
-
{
|
|
2990
|
-
"name": "ManagerParams",
|
|
2991
|
-
"type": {
|
|
2992
|
-
"kind": "struct",
|
|
2993
|
-
"fields": [
|
|
2994
|
-
{
|
|
2995
|
-
"name": "leverageTarget",
|
|
2996
|
-
"type": {
|
|
2997
|
-
"option": "u8"
|
|
2998
|
-
}
|
|
2999
|
-
},
|
|
3000
|
-
{
|
|
3001
|
-
"name": "closeThreshold",
|
|
3002
|
-
"type": {
|
|
3003
|
-
"option": "u8"
|
|
3004
|
-
}
|
|
3005
|
-
}
|
|
3006
|
-
]
|
|
3007
|
-
}
|
|
3008
|
-
},
|
|
3009
2830
|
{
|
|
3010
2831
|
"name": "BalanceIncreaseType",
|
|
3011
2832
|
"type": {
|