@affluent-org/sdk 0.0.1

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.
Files changed (218) hide show
  1. package/.prettierrc +11 -0
  2. package/Refactoring.md +548 -0
  3. package/dist/_compiled/Account.compiled.json +1 -0
  4. package/dist/_compiled/Receipt.compiled.json +1 -0
  5. package/dist/_compiled/WTONWallet.compiled.json +1 -0
  6. package/dist/_compiled/index.d.ts +4 -0
  7. package/dist/_compiled/index.js +12 -0
  8. package/dist/affluent.d.ts +14 -0
  9. package/dist/affluent.js +20 -0
  10. package/dist/constants/constants.d.ts +2 -0
  11. package/dist/constants/constants.js +5 -0
  12. package/dist/constants/contracts.d.ts +9 -0
  13. package/dist/constants/contracts.js +18 -0
  14. package/dist/context.d.ts +43 -0
  15. package/dist/context.js +90 -0
  16. package/dist/contracts/common/type.d.ts +16 -0
  17. package/dist/contracts/common/type.js +2 -0
  18. package/dist/contracts/common/utils.d.ts +3 -0
  19. package/dist/contracts/common/utils.js +16 -0
  20. package/dist/contracts/core/account/index.d.ts +38 -0
  21. package/dist/contracts/core/account/index.js +128 -0
  22. package/dist/contracts/core/account/type.d.ts +18 -0
  23. package/dist/contracts/core/account/type.js +2 -0
  24. package/dist/contracts/core/pool/index.d.ts +149 -0
  25. package/dist/contracts/core/pool/index.js +379 -0
  26. package/dist/contracts/core/pool/serializer.d.ts +15 -0
  27. package/dist/contracts/core/pool/serializer.js +307 -0
  28. package/dist/contracts/core/pool/type.d.ts +136 -0
  29. package/dist/contracts/core/pool/type.js +2 -0
  30. package/dist/contracts/dedust-farm/MockDedustFarm.d.ts +41 -0
  31. package/dist/contracts/dedust-farm/MockDedustFarm.js +79 -0
  32. package/dist/contracts/external/tonstaker.d.ts +18 -0
  33. package/dist/contracts/external/tonstaker.js +26 -0
  34. package/dist/contracts/factory/factory.d.ts +24 -0
  35. package/dist/contracts/factory/factory.js +58 -0
  36. package/dist/contracts/factory/type.d.ts +11 -0
  37. package/dist/contracts/factory/type.js +2 -0
  38. package/dist/contracts/farm/distributor.d.ts +43 -0
  39. package/dist/contracts/farm/distributor.js +83 -0
  40. package/dist/contracts/farm/receipt.d.ts +40 -0
  41. package/dist/contracts/farm/receipt.js +68 -0
  42. package/dist/contracts/irm/jump-irm/serializer.d.ts +4 -0
  43. package/dist/contracts/irm/jump-irm/serializer.js +26 -0
  44. package/dist/contracts/irm/jump-irm/type.d.ts +8 -0
  45. package/dist/contracts/irm/jump-irm/type.js +2 -0
  46. package/dist/contracts/jetton/jetton-minter.d.ts +23 -0
  47. package/dist/contracts/jetton/jetton-minter.js +46 -0
  48. package/dist/contracts/jetton/jetton-wallet.d.ts +67 -0
  49. package/dist/contracts/jetton/jetton-wallet.js +119 -0
  50. package/dist/contracts/jetton/type.d.ts +7 -0
  51. package/dist/contracts/jetton/type.js +2 -0
  52. package/dist/contracts/liquid_token/dedust/minter.d.ts +56 -0
  53. package/dist/contracts/liquid_token/dedust/minter.js +112 -0
  54. package/dist/contracts/liquid_token/dedust/wallet.d.ts +127 -0
  55. package/dist/contracts/liquid_token/dedust/wallet.js +213 -0
  56. package/dist/contracts/liquid_token/stonfi/LFStonfiJettonMinter.d.ts +53 -0
  57. package/dist/contracts/liquid_token/stonfi/LFStonfiJettonMinter.js +110 -0
  58. package/dist/contracts/liquid_token/stonfi/LFStonfiJettonWallet.d.ts +169 -0
  59. package/dist/contracts/liquid_token/stonfi/LFStonfiJettonWallet.js +288 -0
  60. package/dist/contracts/oracle/composite-onchain-oracle/index.d.ts +108 -0
  61. package/dist/contracts/oracle/composite-onchain-oracle/index.js +185 -0
  62. package/dist/contracts/oracle/parser.d.ts +7 -0
  63. package/dist/contracts/oracle/parser.js +77 -0
  64. package/dist/contracts/oracle/redstone-onchain-oracle/index.d.ts +56 -0
  65. package/dist/contracts/oracle/redstone-onchain-oracle/index.js +159 -0
  66. package/dist/contracts/oracle/redstone-onchain-oracle/serializer.d.ts +4 -0
  67. package/dist/contracts/oracle/redstone-onchain-oracle/serializer.js +137 -0
  68. package/dist/contracts/oracle/redstone-onchain-oracle/type.d.ts +57 -0
  69. package/dist/contracts/oracle/redstone-onchain-oracle/type.js +18 -0
  70. package/dist/contracts/oracle/redstone-oracle/serializer.d.ts +3 -0
  71. package/dist/contracts/oracle/redstone-oracle/serializer.js +30 -0
  72. package/dist/contracts/oracle/redstone-oracle/type.d.ts +9 -0
  73. package/dist/contracts/oracle/redstone-oracle/type.js +2 -0
  74. package/dist/contracts/oracle/redstone-parser.d.ts +9 -0
  75. package/dist/contracts/oracle/redstone-parser.js +58 -0
  76. package/dist/contracts/rfq/rfq_auction/index.d.ts +216 -0
  77. package/dist/contracts/rfq/rfq_auction/index.js +334 -0
  78. package/dist/contracts/rfq/rfq_batch/index.d.ts +346 -0
  79. package/dist/contracts/rfq/rfq_batch/index.js +448 -0
  80. package/dist/contracts/rfq/rfq_event_emitter/index.d.ts +132 -0
  81. package/dist/contracts/rfq/rfq_event_emitter/index.js +143 -0
  82. package/dist/contracts/stonfi-farm/MockStonfiFarmItem.d.ts +41 -0
  83. package/dist/contracts/stonfi-farm/MockStonfiFarmItem.js +83 -0
  84. package/dist/contracts/stonfi-farm/MockStonfiFarmMinter.d.ts +45 -0
  85. package/dist/contracts/stonfi-farm/MockStonfiFarmMinter.js +92 -0
  86. package/dist/contracts/unknown-contract/index.d.ts +14 -0
  87. package/dist/contracts/unknown-contract/index.js +18 -0
  88. package/dist/contracts/vault/share-vault/index.d.ts +206 -0
  89. package/dist/contracts/vault/share-vault/index.js +373 -0
  90. package/dist/contracts/vault/strategy-vault/codec.d.ts +710 -0
  91. package/dist/contracts/vault/strategy-vault/codec.js +1256 -0
  92. package/dist/contracts/vault/strategy-vault/computation.d.ts +11 -0
  93. package/dist/contracts/vault/strategy-vault/computation.js +56 -0
  94. package/dist/contracts/vault/strategy-vault/constants.d.ts +163 -0
  95. package/dist/contracts/vault/strategy-vault/constants.js +170 -0
  96. package/dist/contracts/vault/strategy-vault/index.d.ts +587 -0
  97. package/dist/contracts/vault/strategy-vault/index.js +406 -0
  98. package/dist/contracts/vault/strategy-vault/type.d.ts +115 -0
  99. package/dist/contracts/vault/strategy-vault/type.js +2 -0
  100. package/dist/contracts/wton/jetton-minter.d.ts +35 -0
  101. package/dist/contracts/wton/jetton-minter.js +71 -0
  102. package/dist/contracts/wton/jetton-wallet.d.ts +90 -0
  103. package/dist/contracts/wton/jetton-wallet.js +153 -0
  104. package/dist/contracts/wton/type.d.ts +7 -0
  105. package/dist/contracts/wton/type.js +2 -0
  106. package/dist/index.d.ts +34 -0
  107. package/dist/index.js +65 -0
  108. package/dist/lib/assert.d.ts +1 -0
  109. package/dist/lib/assert.js +9 -0
  110. package/dist/lib/query-cache.d.ts +5 -0
  111. package/dist/lib/query-cache.js +57 -0
  112. package/dist/lib/send-msg.d.ts +11 -0
  113. package/dist/lib/send-msg.js +9 -0
  114. package/dist/services/composite-oracle/computation.d.ts +55 -0
  115. package/dist/services/composite-oracle/computation.js +295 -0
  116. package/dist/services/composite-oracle/index.d.ts +45 -0
  117. package/dist/services/composite-oracle/index.js +110 -0
  118. package/dist/services/composite-oracle/query.d.ts +36 -0
  119. package/dist/services/composite-oracle/query.js +251 -0
  120. package/dist/services/composite-oracle/types.d.ts +82 -0
  121. package/dist/services/composite-oracle/types.js +11 -0
  122. package/dist/services/pool/computation.d.ts +75 -0
  123. package/dist/services/pool/computation.js +219 -0
  124. package/dist/services/pool/index.d.ts +94 -0
  125. package/dist/services/pool/index.js +139 -0
  126. package/dist/services/pool/oracle.d.ts +20 -0
  127. package/dist/services/pool/oracle.js +61 -0
  128. package/dist/services/pool/owner/index.d.ts +37 -0
  129. package/dist/services/pool/owner/index.js +76 -0
  130. package/dist/services/pool/owner/types.d.ts +18 -0
  131. package/dist/services/pool/owner/types.js +2 -0
  132. package/dist/services/pool/query.d.ts +64 -0
  133. package/dist/services/pool/query.js +282 -0
  134. package/dist/services/pool/user/index.d.ts +86 -0
  135. package/dist/services/pool/user/index.js +285 -0
  136. package/dist/services/pool/user/types.d.ts +44 -0
  137. package/dist/services/pool/user/types.js +2 -0
  138. package/dist/services/rfq-auction/index.d.ts +81 -0
  139. package/dist/services/rfq-auction/index.js +93 -0
  140. package/dist/services/rfq-auction/oracle.d.ts +19 -0
  141. package/dist/services/rfq-auction/oracle.js +60 -0
  142. package/dist/services/rfq-auction/query.d.ts +50 -0
  143. package/dist/services/rfq-auction/query.js +19 -0
  144. package/dist/services/rfq-auction/user/index.d.ts +63 -0
  145. package/dist/services/rfq-auction/user/index.js +218 -0
  146. package/dist/services/rfq-auction/user/types.d.ts +29 -0
  147. package/dist/services/rfq-auction/user/types.js +2 -0
  148. package/dist/services/rfq-batch/index.d.ts +78 -0
  149. package/dist/services/rfq-batch/index.js +132 -0
  150. package/dist/services/rfq-batch/oracle.d.ts +22 -0
  151. package/dist/services/rfq-batch/oracle.js +54 -0
  152. package/dist/services/rfq-batch/query.d.ts +46 -0
  153. package/dist/services/rfq-batch/query.js +34 -0
  154. package/dist/services/rfq-batch/user/index.d.ts +79 -0
  155. package/dist/services/rfq-batch/user/index.js +171 -0
  156. package/dist/services/rfq-batch/user/types.d.ts +37 -0
  157. package/dist/services/rfq-batch/user/types.js +2 -0
  158. package/dist/services/share-vault/computation.d.ts +24 -0
  159. package/dist/services/share-vault/computation.js +42 -0
  160. package/dist/services/share-vault/index.d.ts +90 -0
  161. package/dist/services/share-vault/index.js +128 -0
  162. package/dist/services/share-vault/manager/index.d.ts +40 -0
  163. package/dist/services/share-vault/manager/index.js +111 -0
  164. package/dist/services/share-vault/manager/types.d.ts +23 -0
  165. package/dist/services/share-vault/manager/types.js +2 -0
  166. package/dist/services/share-vault/owner/index.d.ts +64 -0
  167. package/dist/services/share-vault/owner/index.js +122 -0
  168. package/dist/services/share-vault/owner/types.d.ts +33 -0
  169. package/dist/services/share-vault/owner/types.js +2 -0
  170. package/dist/services/share-vault/query.d.ts +34 -0
  171. package/dist/services/share-vault/query.js +138 -0
  172. package/dist/services/share-vault/user/index.d.ts +33 -0
  173. package/dist/services/share-vault/user/index.js +106 -0
  174. package/dist/services/share-vault/user/types.d.ts +13 -0
  175. package/dist/services/share-vault/user/types.js +2 -0
  176. package/dist/services/strategy-vault/index.d.ts +2124 -0
  177. package/dist/services/strategy-vault/index.js +268 -0
  178. package/dist/services/strategy-vault/manager/index.d.ts +1968 -0
  179. package/dist/services/strategy-vault/manager/index.js +475 -0
  180. package/dist/services/strategy-vault/manager/types.d.ts +144 -0
  181. package/dist/services/strategy-vault/manager/types.js +2 -0
  182. package/dist/services/strategy-vault/oracle.d.ts +66 -0
  183. package/dist/services/strategy-vault/oracle.js +162 -0
  184. package/dist/services/strategy-vault/owner/index.d.ts +277 -0
  185. package/dist/services/strategy-vault/owner/index.js +333 -0
  186. package/dist/services/strategy-vault/owner/types.d.ts +146 -0
  187. package/dist/services/strategy-vault/owner/types.js +2 -0
  188. package/dist/services/strategy-vault/query.d.ts +138 -0
  189. package/dist/services/strategy-vault/query.js +59 -0
  190. package/dist/services/strategy-vault/user/index.d.ts +89 -0
  191. package/dist/services/strategy-vault/user/index.js +219 -0
  192. package/dist/services/strategy-vault/user/types.d.ts +46 -0
  193. package/dist/services/strategy-vault/user/types.js +2 -0
  194. package/dist/types/sender.d.ts +7 -0
  195. package/dist/types/sender.js +2 -0
  196. package/dist/utils/action-parser.d.ts +7 -0
  197. package/dist/utils/action-parser.js +20 -0
  198. package/dist/utils/external-message-hash.d.ts +45 -0
  199. package/dist/utils/external-message-hash.js +65 -0
  200. package/dist/utils/oracle/redstone/readonlyCachedRedstone.d.ts +3 -0
  201. package/dist/utils/oracle/redstone/readonlyCachedRedstone.js +25 -0
  202. package/dist/utils/oracle/redstone/redstoneHelper.d.ts +21 -0
  203. package/dist/utils/oracle/redstone/redstoneHelper.js +228 -0
  204. package/dist/utils/parser.d.ts +40 -0
  205. package/dist/utils/parser.js +580 -0
  206. package/dist/utils/pending-tracker/index.d.ts +14 -0
  207. package/dist/utils/pending-tracker/index.js +34 -0
  208. package/dist/utils/pending-tracker/trackable-sender.d.ts +16 -0
  209. package/dist/utils/pending-tracker/trackable-sender.js +87 -0
  210. package/dist/utils/pending-tracker/type.d.ts +78 -0
  211. package/dist/utils/pending-tracker/type.js +2 -0
  212. package/dist/utils/pending-tracker/v3-client.d.ts +31 -0
  213. package/dist/utils/pending-tracker/v3-client.js +104 -0
  214. package/dist/utils/risk_calculator/risk_calculator.d.ts +45 -0
  215. package/dist/utils/risk_calculator/risk_calculator.js +332 -0
  216. package/dist/utils/utils.d.ts +5 -0
  217. package/dist/utils/utils.js +12 -0
  218. package/package.json +46 -0
@@ -0,0 +1,1968 @@
1
+ import { Address, Cell } from "@ton/core";
2
+ import { AffluentContext } from "../../../context";
3
+ import { Pool } from "../../../contracts/core/pool";
4
+ import { StrategyVault } from "../../../contracts/vault/strategy-vault";
5
+ import { AddressSender } from "../../../types/sender";
6
+ import { SupplyToFactorialParams, BorrowFromFactorialParams, RepayToFactorialParams, WithdrawFromFactorialParams, LiquidateToFactorialParams, DepositToVaultParams, WithdrawFromVaultParams, DepositToVaultQueueParams, WithdrawFromVaultQueueParams, DepositToVaultQueueCancelParams, WithdrawFromVaultQueueCancelParams, CreateAmountRFQParams, CreateSlippageRFQParams, CancelRFQParams, UnwrapWTONParams, SendConfirmQueueParams, ExecuteDepositQueueParams, ExecuteWithdrawQueueParams } from "./types";
7
+ export * from "./types";
8
+ export declare function createSupplyToFactorialMsg(ctx: AffluentContext, sender: AddressSender, params: SupplyToFactorialParams, value?: bigint): Promise<{
9
+ opts: {
10
+ strategyVault: import("@ton/core").OpenedContract<StrategyVault>;
11
+ vaultData: {
12
+ globalDepositValueCap: bigint;
13
+ withdrawFeeRate: number;
14
+ queueWithdrawFeeRate: number;
15
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
16
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
17
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
18
+ xchainConnectorAddress: Address | null;
19
+ xchainConfig: Record<string, {
20
+ connected: boolean;
21
+ xchainAccountAddress: bigint;
22
+ oftConfig: Map<string, {
23
+ destinationAddress: Address;
24
+ forwardGas: bigint;
25
+ forwardPayload?: Cell | null;
26
+ lzTransferFeeRate?: bigint;
27
+ }> | null;
28
+ strategyConfig: Map<bigint, {
29
+ isExecutable: boolean;
30
+ }> | null;
31
+ afterStrategyConfig: Map<bigint, {
32
+ isExecutable: boolean;
33
+ }> | null;
34
+ lzGasFee: bigint;
35
+ }>;
36
+ xchainUpdateHash: bigint;
37
+ owner: Address;
38
+ manager: Address;
39
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
40
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
41
+ aggregatorIndex: bigint;
42
+ content: Cell;
43
+ totalSupply: bigint;
44
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
45
+ rfqConfig: {
46
+ priceDeviationTolerance: number;
47
+ rfqEventEmitterAddress: string | null;
48
+ } | null;
49
+ gasConfig: Record<string, bigint> | null;
50
+ isPrivateVault: boolean;
51
+ depositCloseTimestamp: number;
52
+ withdrawOpenTimestamp: number;
53
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
54
+ lastCollectTime: number;
55
+ managementFeeRatePerYear: number;
56
+ protocolFeeRatePerYear: number;
57
+ collectedManagementFee: bigint;
58
+ collectedProtocolFee: bigint;
59
+ rfqCode: Cell;
60
+ walletCode: Cell;
61
+ dataAggregatorCode: Cell;
62
+ protocolFeeManagerAddress: Address;
63
+ rfqIndex: bigint;
64
+ isExecutingStrategy: boolean;
65
+ maxLeverageRatio: number;
66
+ assetWalletDict: Record<string, string>;
67
+ walletAssetDict: Record<string, string>;
68
+ managementFeeRecipientAddress: Address | null;
69
+ guardianAddress: Address | null;
70
+ timelock: bigint;
71
+ pendingOwnerActionIndex: bigint;
72
+ pendingOwnerActionCount: bigint;
73
+ pendingOwnerAction: any;
74
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
75
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
76
+ version: string;
77
+ address: Address;
78
+ balance: bigint;
79
+ code: Cell;
80
+ } | {
81
+ globalDepositValueCap: bigint;
82
+ withdrawFeeRate: number;
83
+ queueWithdrawFeeRate: number;
84
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
85
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
86
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
87
+ xchainConnectorAddress: null;
88
+ xchainConfig: null;
89
+ xchainUpdateHash: bigint;
90
+ owner: Address;
91
+ manager: Address;
92
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
93
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
94
+ aggregatorIndex: bigint;
95
+ content: Cell;
96
+ totalSupply: bigint;
97
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
98
+ rfqConfig: {
99
+ priceDeviationTolerance: number;
100
+ rfqEventEmitterAddress: string | null;
101
+ } | null;
102
+ gasConfig: Record<string, bigint> | null;
103
+ isPrivateVault: boolean;
104
+ depositCloseTimestamp: number;
105
+ withdrawOpenTimestamp: number;
106
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
107
+ lastCollectTime: number;
108
+ managementFeeRatePerYear: number;
109
+ protocolFeeRatePerYear: number;
110
+ collectedManagementFee: bigint;
111
+ collectedProtocolFee: bigint;
112
+ rfqCode: Cell;
113
+ walletCode: Cell;
114
+ dataAggregatorCode: Cell;
115
+ protocolFeeManagerAddress: Address;
116
+ rfqIndex: bigint;
117
+ isExecutingStrategy: boolean;
118
+ maxLeverageRatio: number;
119
+ assetWalletDict: Record<string, string>;
120
+ walletAssetDict: Record<string, string>;
121
+ managementFeeRecipientAddress: Address | null;
122
+ guardianAddress: Address | null;
123
+ timelock: bigint;
124
+ pendingOwnerActionIndex: bigint;
125
+ pendingOwnerActionCount: bigint;
126
+ pendingOwnerAction: any;
127
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
128
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
129
+ version: string;
130
+ address: Address;
131
+ balance: bigint;
132
+ code: Cell;
133
+ };
134
+ poolAddress: Address;
135
+ assetAddress: Address;
136
+ };
137
+ input: {
138
+ to: Address;
139
+ value: bigint;
140
+ body: Cell;
141
+ };
142
+ }>;
143
+ export declare function createBorrowFromFactorialMsg(ctx: AffluentContext, sender: AddressSender, params: BorrowFromFactorialParams, value?: bigint): Promise<{
144
+ opts: {
145
+ strategyVault: import("@ton/core").OpenedContract<StrategyVault>;
146
+ vaultData: {
147
+ globalDepositValueCap: bigint;
148
+ withdrawFeeRate: number;
149
+ queueWithdrawFeeRate: number;
150
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
151
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
152
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
153
+ xchainConnectorAddress: Address | null;
154
+ xchainConfig: Record<string, {
155
+ connected: boolean;
156
+ xchainAccountAddress: bigint;
157
+ oftConfig: Map<string, {
158
+ destinationAddress: Address;
159
+ forwardGas: bigint;
160
+ forwardPayload?: Cell | null;
161
+ lzTransferFeeRate?: bigint;
162
+ }> | null;
163
+ strategyConfig: Map<bigint, {
164
+ isExecutable: boolean;
165
+ }> | null;
166
+ afterStrategyConfig: Map<bigint, {
167
+ isExecutable: boolean;
168
+ }> | null;
169
+ lzGasFee: bigint;
170
+ }>;
171
+ xchainUpdateHash: bigint;
172
+ owner: Address;
173
+ manager: Address;
174
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
175
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
176
+ aggregatorIndex: bigint;
177
+ content: Cell;
178
+ totalSupply: bigint;
179
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
180
+ rfqConfig: {
181
+ priceDeviationTolerance: number;
182
+ rfqEventEmitterAddress: string | null;
183
+ } | null;
184
+ gasConfig: Record<string, bigint> | null;
185
+ isPrivateVault: boolean;
186
+ depositCloseTimestamp: number;
187
+ withdrawOpenTimestamp: number;
188
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
189
+ lastCollectTime: number;
190
+ managementFeeRatePerYear: number;
191
+ protocolFeeRatePerYear: number;
192
+ collectedManagementFee: bigint;
193
+ collectedProtocolFee: bigint;
194
+ rfqCode: Cell;
195
+ walletCode: Cell;
196
+ dataAggregatorCode: Cell;
197
+ protocolFeeManagerAddress: Address;
198
+ rfqIndex: bigint;
199
+ isExecutingStrategy: boolean;
200
+ maxLeverageRatio: number;
201
+ assetWalletDict: Record<string, string>;
202
+ walletAssetDict: Record<string, string>;
203
+ managementFeeRecipientAddress: Address | null;
204
+ guardianAddress: Address | null;
205
+ timelock: bigint;
206
+ pendingOwnerActionIndex: bigint;
207
+ pendingOwnerActionCount: bigint;
208
+ pendingOwnerAction: any;
209
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
210
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
211
+ version: string;
212
+ address: Address;
213
+ balance: bigint;
214
+ code: Cell;
215
+ } | {
216
+ globalDepositValueCap: bigint;
217
+ withdrawFeeRate: number;
218
+ queueWithdrawFeeRate: number;
219
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
220
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
221
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
222
+ xchainConnectorAddress: null;
223
+ xchainConfig: null;
224
+ xchainUpdateHash: bigint;
225
+ owner: Address;
226
+ manager: Address;
227
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
228
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
229
+ aggregatorIndex: bigint;
230
+ content: Cell;
231
+ totalSupply: bigint;
232
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
233
+ rfqConfig: {
234
+ priceDeviationTolerance: number;
235
+ rfqEventEmitterAddress: string | null;
236
+ } | null;
237
+ gasConfig: Record<string, bigint> | null;
238
+ isPrivateVault: boolean;
239
+ depositCloseTimestamp: number;
240
+ withdrawOpenTimestamp: number;
241
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
242
+ lastCollectTime: number;
243
+ managementFeeRatePerYear: number;
244
+ protocolFeeRatePerYear: number;
245
+ collectedManagementFee: bigint;
246
+ collectedProtocolFee: bigint;
247
+ rfqCode: Cell;
248
+ walletCode: Cell;
249
+ dataAggregatorCode: Cell;
250
+ protocolFeeManagerAddress: Address;
251
+ rfqIndex: bigint;
252
+ isExecutingStrategy: boolean;
253
+ maxLeverageRatio: number;
254
+ assetWalletDict: Record<string, string>;
255
+ walletAssetDict: Record<string, string>;
256
+ managementFeeRecipientAddress: Address | null;
257
+ guardianAddress: Address | null;
258
+ timelock: bigint;
259
+ pendingOwnerActionIndex: bigint;
260
+ pendingOwnerActionCount: bigint;
261
+ pendingOwnerAction: any;
262
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
263
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
264
+ version: string;
265
+ address: Address;
266
+ balance: bigint;
267
+ code: Cell;
268
+ };
269
+ oraclePayload: Cell;
270
+ oracleCalculateGas: bigint;
271
+ poolAddress: Address;
272
+ assetAddress: Address;
273
+ };
274
+ input: {
275
+ to: Address;
276
+ value: bigint;
277
+ body: Cell;
278
+ };
279
+ }>;
280
+ export declare function createRepayToFactorialMsg(ctx: AffluentContext, sender: AddressSender, params: RepayToFactorialParams, value?: bigint): Promise<{
281
+ opts: {
282
+ strategyVault: import("@ton/core").OpenedContract<StrategyVault>;
283
+ vaultData: {
284
+ globalDepositValueCap: bigint;
285
+ withdrawFeeRate: number;
286
+ queueWithdrawFeeRate: number;
287
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
288
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
289
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
290
+ xchainConnectorAddress: Address | null;
291
+ xchainConfig: Record<string, {
292
+ connected: boolean;
293
+ xchainAccountAddress: bigint;
294
+ oftConfig: Map<string, {
295
+ destinationAddress: Address;
296
+ forwardGas: bigint;
297
+ forwardPayload?: Cell | null;
298
+ lzTransferFeeRate?: bigint;
299
+ }> | null;
300
+ strategyConfig: Map<bigint, {
301
+ isExecutable: boolean;
302
+ }> | null;
303
+ afterStrategyConfig: Map<bigint, {
304
+ isExecutable: boolean;
305
+ }> | null;
306
+ lzGasFee: bigint;
307
+ }>;
308
+ xchainUpdateHash: bigint;
309
+ owner: Address;
310
+ manager: Address;
311
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
312
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
313
+ aggregatorIndex: bigint;
314
+ content: Cell;
315
+ totalSupply: bigint;
316
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
317
+ rfqConfig: {
318
+ priceDeviationTolerance: number;
319
+ rfqEventEmitterAddress: string | null;
320
+ } | null;
321
+ gasConfig: Record<string, bigint> | null;
322
+ isPrivateVault: boolean;
323
+ depositCloseTimestamp: number;
324
+ withdrawOpenTimestamp: number;
325
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
326
+ lastCollectTime: number;
327
+ managementFeeRatePerYear: number;
328
+ protocolFeeRatePerYear: number;
329
+ collectedManagementFee: bigint;
330
+ collectedProtocolFee: bigint;
331
+ rfqCode: Cell;
332
+ walletCode: Cell;
333
+ dataAggregatorCode: Cell;
334
+ protocolFeeManagerAddress: Address;
335
+ rfqIndex: bigint;
336
+ isExecutingStrategy: boolean;
337
+ maxLeverageRatio: number;
338
+ assetWalletDict: Record<string, string>;
339
+ walletAssetDict: Record<string, string>;
340
+ managementFeeRecipientAddress: Address | null;
341
+ guardianAddress: Address | null;
342
+ timelock: bigint;
343
+ pendingOwnerActionIndex: bigint;
344
+ pendingOwnerActionCount: bigint;
345
+ pendingOwnerAction: any;
346
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
347
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
348
+ version: string;
349
+ address: Address;
350
+ balance: bigint;
351
+ code: Cell;
352
+ } | {
353
+ globalDepositValueCap: bigint;
354
+ withdrawFeeRate: number;
355
+ queueWithdrawFeeRate: number;
356
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
357
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
358
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
359
+ xchainConnectorAddress: null;
360
+ xchainConfig: null;
361
+ xchainUpdateHash: bigint;
362
+ owner: Address;
363
+ manager: Address;
364
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
365
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
366
+ aggregatorIndex: bigint;
367
+ content: Cell;
368
+ totalSupply: bigint;
369
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
370
+ rfqConfig: {
371
+ priceDeviationTolerance: number;
372
+ rfqEventEmitterAddress: string | null;
373
+ } | null;
374
+ gasConfig: Record<string, bigint> | null;
375
+ isPrivateVault: boolean;
376
+ depositCloseTimestamp: number;
377
+ withdrawOpenTimestamp: number;
378
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
379
+ lastCollectTime: number;
380
+ managementFeeRatePerYear: number;
381
+ protocolFeeRatePerYear: number;
382
+ collectedManagementFee: bigint;
383
+ collectedProtocolFee: bigint;
384
+ rfqCode: Cell;
385
+ walletCode: Cell;
386
+ dataAggregatorCode: Cell;
387
+ protocolFeeManagerAddress: Address;
388
+ rfqIndex: bigint;
389
+ isExecutingStrategy: boolean;
390
+ maxLeverageRatio: number;
391
+ assetWalletDict: Record<string, string>;
392
+ walletAssetDict: Record<string, string>;
393
+ managementFeeRecipientAddress: Address | null;
394
+ guardianAddress: Address | null;
395
+ timelock: bigint;
396
+ pendingOwnerActionIndex: bigint;
397
+ pendingOwnerActionCount: bigint;
398
+ pendingOwnerAction: any;
399
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
400
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
401
+ version: string;
402
+ address: Address;
403
+ balance: bigint;
404
+ code: Cell;
405
+ };
406
+ poolAddress: Address;
407
+ assetAddress: Address;
408
+ };
409
+ input: {
410
+ to: Address;
411
+ value: bigint;
412
+ body: Cell;
413
+ };
414
+ }>;
415
+ export declare function createWithdrawFromFactorialMsg(ctx: AffluentContext, sender: AddressSender, params: WithdrawFromFactorialParams, value?: bigint): Promise<{
416
+ opts: {
417
+ strategyVault: import("@ton/core").OpenedContract<StrategyVault>;
418
+ pool: import("@ton/core").OpenedContract<Pool>;
419
+ vaultData: {
420
+ globalDepositValueCap: bigint;
421
+ withdrawFeeRate: number;
422
+ queueWithdrawFeeRate: number;
423
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
424
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
425
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
426
+ xchainConnectorAddress: Address | null;
427
+ xchainConfig: Record<string, {
428
+ connected: boolean;
429
+ xchainAccountAddress: bigint;
430
+ oftConfig: Map<string, {
431
+ destinationAddress: Address;
432
+ forwardGas: bigint;
433
+ forwardPayload?: Cell | null;
434
+ lzTransferFeeRate?: bigint;
435
+ }> | null;
436
+ strategyConfig: Map<bigint, {
437
+ isExecutable: boolean;
438
+ }> | null;
439
+ afterStrategyConfig: Map<bigint, {
440
+ isExecutable: boolean;
441
+ }> | null;
442
+ lzGasFee: bigint;
443
+ }>;
444
+ xchainUpdateHash: bigint;
445
+ owner: Address;
446
+ manager: Address;
447
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
448
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
449
+ aggregatorIndex: bigint;
450
+ content: Cell;
451
+ totalSupply: bigint;
452
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
453
+ rfqConfig: {
454
+ priceDeviationTolerance: number;
455
+ rfqEventEmitterAddress: string | null;
456
+ } | null;
457
+ gasConfig: Record<string, bigint> | null;
458
+ isPrivateVault: boolean;
459
+ depositCloseTimestamp: number;
460
+ withdrawOpenTimestamp: number;
461
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
462
+ lastCollectTime: number;
463
+ managementFeeRatePerYear: number;
464
+ protocolFeeRatePerYear: number;
465
+ collectedManagementFee: bigint;
466
+ collectedProtocolFee: bigint;
467
+ rfqCode: Cell;
468
+ walletCode: Cell;
469
+ dataAggregatorCode: Cell;
470
+ protocolFeeManagerAddress: Address;
471
+ rfqIndex: bigint;
472
+ isExecutingStrategy: boolean;
473
+ maxLeverageRatio: number;
474
+ assetWalletDict: Record<string, string>;
475
+ walletAssetDict: Record<string, string>;
476
+ managementFeeRecipientAddress: Address | null;
477
+ guardianAddress: Address | null;
478
+ timelock: bigint;
479
+ pendingOwnerActionIndex: bigint;
480
+ pendingOwnerActionCount: bigint;
481
+ pendingOwnerAction: any;
482
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
483
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
484
+ version: string;
485
+ address: Address;
486
+ balance: bigint;
487
+ code: Cell;
488
+ } | {
489
+ globalDepositValueCap: bigint;
490
+ withdrawFeeRate: number;
491
+ queueWithdrawFeeRate: number;
492
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
493
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
494
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
495
+ xchainConnectorAddress: null;
496
+ xchainConfig: null;
497
+ xchainUpdateHash: bigint;
498
+ owner: Address;
499
+ manager: Address;
500
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
501
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
502
+ aggregatorIndex: bigint;
503
+ content: Cell;
504
+ totalSupply: bigint;
505
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
506
+ rfqConfig: {
507
+ priceDeviationTolerance: number;
508
+ rfqEventEmitterAddress: string | null;
509
+ } | null;
510
+ gasConfig: Record<string, bigint> | null;
511
+ isPrivateVault: boolean;
512
+ depositCloseTimestamp: number;
513
+ withdrawOpenTimestamp: number;
514
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
515
+ lastCollectTime: number;
516
+ managementFeeRatePerYear: number;
517
+ protocolFeeRatePerYear: number;
518
+ collectedManagementFee: bigint;
519
+ collectedProtocolFee: bigint;
520
+ rfqCode: Cell;
521
+ walletCode: Cell;
522
+ dataAggregatorCode: Cell;
523
+ protocolFeeManagerAddress: Address;
524
+ rfqIndex: bigint;
525
+ isExecutingStrategy: boolean;
526
+ maxLeverageRatio: number;
527
+ assetWalletDict: Record<string, string>;
528
+ walletAssetDict: Record<string, string>;
529
+ managementFeeRecipientAddress: Address | null;
530
+ guardianAddress: Address | null;
531
+ timelock: bigint;
532
+ pendingOwnerActionIndex: bigint;
533
+ pendingOwnerActionCount: bigint;
534
+ pendingOwnerAction: any;
535
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
536
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
537
+ version: string;
538
+ address: Address;
539
+ balance: bigint;
540
+ code: Cell;
541
+ };
542
+ poolData: import("../../..").PoolState;
543
+ poolOraclePayload: Cell;
544
+ poolAddress: Address;
545
+ assetAddress: Address;
546
+ };
547
+ input: {
548
+ to: Address;
549
+ value: bigint;
550
+ body: Cell;
551
+ };
552
+ }>;
553
+ export declare function createLiquidateToFactorialMsg(ctx: AffluentContext, sender: AddressSender, params: LiquidateToFactorialParams, value?: bigint): Promise<{
554
+ opts: {
555
+ strategyVault: import("@ton/core").OpenedContract<StrategyVault>;
556
+ vaultData: {
557
+ globalDepositValueCap: bigint;
558
+ withdrawFeeRate: number;
559
+ queueWithdrawFeeRate: number;
560
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
561
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
562
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
563
+ xchainConnectorAddress: Address | null;
564
+ xchainConfig: Record<string, {
565
+ connected: boolean;
566
+ xchainAccountAddress: bigint;
567
+ oftConfig: Map<string, {
568
+ destinationAddress: Address;
569
+ forwardGas: bigint;
570
+ forwardPayload?: Cell | null;
571
+ lzTransferFeeRate?: bigint;
572
+ }> | null;
573
+ strategyConfig: Map<bigint, {
574
+ isExecutable: boolean;
575
+ }> | null;
576
+ afterStrategyConfig: Map<bigint, {
577
+ isExecutable: boolean;
578
+ }> | null;
579
+ lzGasFee: bigint;
580
+ }>;
581
+ xchainUpdateHash: bigint;
582
+ owner: Address;
583
+ manager: Address;
584
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
585
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
586
+ aggregatorIndex: bigint;
587
+ content: Cell;
588
+ totalSupply: bigint;
589
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
590
+ rfqConfig: {
591
+ priceDeviationTolerance: number;
592
+ rfqEventEmitterAddress: string | null;
593
+ } | null;
594
+ gasConfig: Record<string, bigint> | null;
595
+ isPrivateVault: boolean;
596
+ depositCloseTimestamp: number;
597
+ withdrawOpenTimestamp: number;
598
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
599
+ lastCollectTime: number;
600
+ managementFeeRatePerYear: number;
601
+ protocolFeeRatePerYear: number;
602
+ collectedManagementFee: bigint;
603
+ collectedProtocolFee: bigint;
604
+ rfqCode: Cell;
605
+ walletCode: Cell;
606
+ dataAggregatorCode: Cell;
607
+ protocolFeeManagerAddress: Address;
608
+ rfqIndex: bigint;
609
+ isExecutingStrategy: boolean;
610
+ maxLeverageRatio: number;
611
+ assetWalletDict: Record<string, string>;
612
+ walletAssetDict: Record<string, string>;
613
+ managementFeeRecipientAddress: Address | null;
614
+ guardianAddress: Address | null;
615
+ timelock: bigint;
616
+ pendingOwnerActionIndex: bigint;
617
+ pendingOwnerActionCount: bigint;
618
+ pendingOwnerAction: any;
619
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
620
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
621
+ version: string;
622
+ address: Address;
623
+ balance: bigint;
624
+ code: Cell;
625
+ } | {
626
+ globalDepositValueCap: bigint;
627
+ withdrawFeeRate: number;
628
+ queueWithdrawFeeRate: number;
629
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
630
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
631
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
632
+ xchainConnectorAddress: null;
633
+ xchainConfig: null;
634
+ xchainUpdateHash: bigint;
635
+ owner: Address;
636
+ manager: Address;
637
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
638
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
639
+ aggregatorIndex: bigint;
640
+ content: Cell;
641
+ totalSupply: bigint;
642
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
643
+ rfqConfig: {
644
+ priceDeviationTolerance: number;
645
+ rfqEventEmitterAddress: string | null;
646
+ } | null;
647
+ gasConfig: Record<string, bigint> | null;
648
+ isPrivateVault: boolean;
649
+ depositCloseTimestamp: number;
650
+ withdrawOpenTimestamp: number;
651
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
652
+ lastCollectTime: number;
653
+ managementFeeRatePerYear: number;
654
+ protocolFeeRatePerYear: number;
655
+ collectedManagementFee: bigint;
656
+ collectedProtocolFee: bigint;
657
+ rfqCode: Cell;
658
+ walletCode: Cell;
659
+ dataAggregatorCode: Cell;
660
+ protocolFeeManagerAddress: Address;
661
+ rfqIndex: bigint;
662
+ isExecutingStrategy: boolean;
663
+ maxLeverageRatio: number;
664
+ assetWalletDict: Record<string, string>;
665
+ walletAssetDict: Record<string, string>;
666
+ managementFeeRecipientAddress: Address | null;
667
+ guardianAddress: Address | null;
668
+ timelock: bigint;
669
+ pendingOwnerActionIndex: bigint;
670
+ pendingOwnerActionCount: bigint;
671
+ pendingOwnerAction: any;
672
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
673
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
674
+ version: string;
675
+ address: Address;
676
+ balance: bigint;
677
+ code: Cell;
678
+ };
679
+ oraclePayload: Cell;
680
+ oracleCalculateGas: bigint;
681
+ poolAddress: Address;
682
+ borrowerAddress: Address;
683
+ repayAssetAddress: Address;
684
+ seizeAssetAddress: Address;
685
+ };
686
+ input: {
687
+ to: Address;
688
+ value: bigint;
689
+ body: Cell;
690
+ };
691
+ }>;
692
+ export declare function createDepositToVaultMsg(ctx: AffluentContext, sender: AddressSender, params: DepositToVaultParams): Promise<{
693
+ opts: {
694
+ strategyVault: import("@ton/core").OpenedContract<StrategyVault>;
695
+ strategyVaultData: {
696
+ globalDepositValueCap: bigint;
697
+ withdrawFeeRate: number;
698
+ queueWithdrawFeeRate: number;
699
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
700
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
701
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
702
+ xchainConnectorAddress: Address | null;
703
+ xchainConfig: Record<string, {
704
+ connected: boolean;
705
+ xchainAccountAddress: bigint;
706
+ oftConfig: Map<string, {
707
+ destinationAddress: Address;
708
+ forwardGas: bigint;
709
+ forwardPayload?: Cell | null;
710
+ lzTransferFeeRate?: bigint;
711
+ }> | null;
712
+ strategyConfig: Map<bigint, {
713
+ isExecutable: boolean;
714
+ }> | null;
715
+ afterStrategyConfig: Map<bigint, {
716
+ isExecutable: boolean;
717
+ }> | null;
718
+ lzGasFee: bigint;
719
+ }>;
720
+ xchainUpdateHash: bigint;
721
+ owner: Address;
722
+ manager: Address;
723
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
724
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
725
+ aggregatorIndex: bigint;
726
+ content: Cell;
727
+ totalSupply: bigint;
728
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
729
+ rfqConfig: {
730
+ priceDeviationTolerance: number;
731
+ rfqEventEmitterAddress: string | null;
732
+ } | null;
733
+ gasConfig: Record<string, bigint> | null;
734
+ isPrivateVault: boolean;
735
+ depositCloseTimestamp: number;
736
+ withdrawOpenTimestamp: number;
737
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
738
+ lastCollectTime: number;
739
+ managementFeeRatePerYear: number;
740
+ protocolFeeRatePerYear: number;
741
+ collectedManagementFee: bigint;
742
+ collectedProtocolFee: bigint;
743
+ rfqCode: Cell;
744
+ walletCode: Cell;
745
+ dataAggregatorCode: Cell;
746
+ protocolFeeManagerAddress: Address;
747
+ rfqIndex: bigint;
748
+ isExecutingStrategy: boolean;
749
+ maxLeverageRatio: number;
750
+ assetWalletDict: Record<string, string>;
751
+ walletAssetDict: Record<string, string>;
752
+ managementFeeRecipientAddress: Address | null;
753
+ guardianAddress: Address | null;
754
+ timelock: bigint;
755
+ pendingOwnerActionIndex: bigint;
756
+ pendingOwnerActionCount: bigint;
757
+ pendingOwnerAction: any;
758
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
759
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
760
+ version: string;
761
+ address: Address;
762
+ balance: bigint;
763
+ code: Cell;
764
+ } | {
765
+ globalDepositValueCap: bigint;
766
+ withdrawFeeRate: number;
767
+ queueWithdrawFeeRate: number;
768
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
769
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
770
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
771
+ xchainConnectorAddress: null;
772
+ xchainConfig: null;
773
+ xchainUpdateHash: bigint;
774
+ owner: Address;
775
+ manager: Address;
776
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
777
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
778
+ aggregatorIndex: bigint;
779
+ content: Cell;
780
+ totalSupply: bigint;
781
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
782
+ rfqConfig: {
783
+ priceDeviationTolerance: number;
784
+ rfqEventEmitterAddress: string | null;
785
+ } | null;
786
+ gasConfig: Record<string, bigint> | null;
787
+ isPrivateVault: boolean;
788
+ depositCloseTimestamp: number;
789
+ withdrawOpenTimestamp: number;
790
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
791
+ lastCollectTime: number;
792
+ managementFeeRatePerYear: number;
793
+ protocolFeeRatePerYear: number;
794
+ collectedManagementFee: bigint;
795
+ collectedProtocolFee: bigint;
796
+ rfqCode: Cell;
797
+ walletCode: Cell;
798
+ dataAggregatorCode: Cell;
799
+ protocolFeeManagerAddress: Address;
800
+ rfqIndex: bigint;
801
+ isExecutingStrategy: boolean;
802
+ maxLeverageRatio: number;
803
+ assetWalletDict: Record<string, string>;
804
+ walletAssetDict: Record<string, string>;
805
+ managementFeeRecipientAddress: Address | null;
806
+ guardianAddress: Address | null;
807
+ timelock: bigint;
808
+ pendingOwnerActionIndex: bigint;
809
+ pendingOwnerActionCount: bigint;
810
+ pendingOwnerAction: any;
811
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
812
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
813
+ version: string;
814
+ address: Address;
815
+ balance: bigint;
816
+ code: Cell;
817
+ };
818
+ targetVaultType: import("../../../context").ShareVaultType | import("../../../context").StrategyVaultType;
819
+ oracleParams: Cell;
820
+ targetVaultOracleParams: Cell | undefined;
821
+ forwardTonAmount: bigint;
822
+ vaultStrategyGas: bigint;
823
+ };
824
+ input: {
825
+ to: Address;
826
+ value: bigint;
827
+ body: Cell;
828
+ };
829
+ }>;
830
+ export declare function createWithdrawFromVaultMsg(ctx: AffluentContext, sender: AddressSender, params: WithdrawFromVaultParams): Promise<{
831
+ opts: {
832
+ strategyVault: import("@ton/core").OpenedContract<StrategyVault>;
833
+ strategyVaultData: {
834
+ globalDepositValueCap: bigint;
835
+ withdrawFeeRate: number;
836
+ queueWithdrawFeeRate: number;
837
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
838
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
839
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
840
+ xchainConnectorAddress: Address | null;
841
+ xchainConfig: Record<string, {
842
+ connected: boolean;
843
+ xchainAccountAddress: bigint;
844
+ oftConfig: Map<string, {
845
+ destinationAddress: Address;
846
+ forwardGas: bigint;
847
+ forwardPayload?: Cell | null;
848
+ lzTransferFeeRate?: bigint;
849
+ }> | null;
850
+ strategyConfig: Map<bigint, {
851
+ isExecutable: boolean;
852
+ }> | null;
853
+ afterStrategyConfig: Map<bigint, {
854
+ isExecutable: boolean;
855
+ }> | null;
856
+ lzGasFee: bigint;
857
+ }>;
858
+ xchainUpdateHash: bigint;
859
+ owner: Address;
860
+ manager: Address;
861
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
862
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
863
+ aggregatorIndex: bigint;
864
+ content: Cell;
865
+ totalSupply: bigint;
866
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
867
+ rfqConfig: {
868
+ priceDeviationTolerance: number;
869
+ rfqEventEmitterAddress: string | null;
870
+ } | null;
871
+ gasConfig: Record<string, bigint> | null;
872
+ isPrivateVault: boolean;
873
+ depositCloseTimestamp: number;
874
+ withdrawOpenTimestamp: number;
875
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
876
+ lastCollectTime: number;
877
+ managementFeeRatePerYear: number;
878
+ protocolFeeRatePerYear: number;
879
+ collectedManagementFee: bigint;
880
+ collectedProtocolFee: bigint;
881
+ rfqCode: Cell;
882
+ walletCode: Cell;
883
+ dataAggregatorCode: Cell;
884
+ protocolFeeManagerAddress: Address;
885
+ rfqIndex: bigint;
886
+ isExecutingStrategy: boolean;
887
+ maxLeverageRatio: number;
888
+ assetWalletDict: Record<string, string>;
889
+ walletAssetDict: Record<string, string>;
890
+ managementFeeRecipientAddress: Address | null;
891
+ guardianAddress: Address | null;
892
+ timelock: bigint;
893
+ pendingOwnerActionIndex: bigint;
894
+ pendingOwnerActionCount: bigint;
895
+ pendingOwnerAction: any;
896
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
897
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
898
+ version: string;
899
+ address: Address;
900
+ balance: bigint;
901
+ code: Cell;
902
+ } | {
903
+ globalDepositValueCap: bigint;
904
+ withdrawFeeRate: number;
905
+ queueWithdrawFeeRate: number;
906
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
907
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
908
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
909
+ xchainConnectorAddress: null;
910
+ xchainConfig: null;
911
+ xchainUpdateHash: bigint;
912
+ owner: Address;
913
+ manager: Address;
914
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
915
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
916
+ aggregatorIndex: bigint;
917
+ content: Cell;
918
+ totalSupply: bigint;
919
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
920
+ rfqConfig: {
921
+ priceDeviationTolerance: number;
922
+ rfqEventEmitterAddress: string | null;
923
+ } | null;
924
+ gasConfig: Record<string, bigint> | null;
925
+ isPrivateVault: boolean;
926
+ depositCloseTimestamp: number;
927
+ withdrawOpenTimestamp: number;
928
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
929
+ lastCollectTime: number;
930
+ managementFeeRatePerYear: number;
931
+ protocolFeeRatePerYear: number;
932
+ collectedManagementFee: bigint;
933
+ collectedProtocolFee: bigint;
934
+ rfqCode: Cell;
935
+ walletCode: Cell;
936
+ dataAggregatorCode: Cell;
937
+ protocolFeeManagerAddress: Address;
938
+ rfqIndex: bigint;
939
+ isExecutingStrategy: boolean;
940
+ maxLeverageRatio: number;
941
+ assetWalletDict: Record<string, string>;
942
+ walletAssetDict: Record<string, string>;
943
+ managementFeeRecipientAddress: Address | null;
944
+ guardianAddress: Address | null;
945
+ timelock: bigint;
946
+ pendingOwnerActionIndex: bigint;
947
+ pendingOwnerActionCount: bigint;
948
+ pendingOwnerAction: any;
949
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
950
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
951
+ version: string;
952
+ address: Address;
953
+ balance: bigint;
954
+ code: Cell;
955
+ };
956
+ targetVaultType: import("../../../context").ShareVaultType | import("../../../context").StrategyVaultType;
957
+ oracleParams: Cell;
958
+ targetVaultOracleParams: Cell | undefined;
959
+ forwardTonAmount: bigint;
960
+ vaultStrategyGas: bigint;
961
+ };
962
+ input: {
963
+ to: Address;
964
+ value: bigint;
965
+ body: Cell;
966
+ };
967
+ }>;
968
+ export declare function createDepositToVaultQueueMsg(ctx: AffluentContext, sender: AddressSender, params: DepositToVaultQueueParams): Promise<{
969
+ opts: {
970
+ strategyVault: import("@ton/core").OpenedContract<StrategyVault>;
971
+ strategyVaultData: {
972
+ globalDepositValueCap: bigint;
973
+ withdrawFeeRate: number;
974
+ queueWithdrawFeeRate: number;
975
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
976
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
977
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
978
+ xchainConnectorAddress: Address | null;
979
+ xchainConfig: Record<string, {
980
+ connected: boolean;
981
+ xchainAccountAddress: bigint;
982
+ oftConfig: Map<string, {
983
+ destinationAddress: Address;
984
+ forwardGas: bigint;
985
+ forwardPayload?: Cell | null;
986
+ lzTransferFeeRate?: bigint;
987
+ }> | null;
988
+ strategyConfig: Map<bigint, {
989
+ isExecutable: boolean;
990
+ }> | null;
991
+ afterStrategyConfig: Map<bigint, {
992
+ isExecutable: boolean;
993
+ }> | null;
994
+ lzGasFee: bigint;
995
+ }>;
996
+ xchainUpdateHash: bigint;
997
+ owner: Address;
998
+ manager: Address;
999
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
1000
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
1001
+ aggregatorIndex: bigint;
1002
+ content: Cell;
1003
+ totalSupply: bigint;
1004
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
1005
+ rfqConfig: {
1006
+ priceDeviationTolerance: number;
1007
+ rfqEventEmitterAddress: string | null;
1008
+ } | null;
1009
+ gasConfig: Record<string, bigint> | null;
1010
+ isPrivateVault: boolean;
1011
+ depositCloseTimestamp: number;
1012
+ withdrawOpenTimestamp: number;
1013
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
1014
+ lastCollectTime: number;
1015
+ managementFeeRatePerYear: number;
1016
+ protocolFeeRatePerYear: number;
1017
+ collectedManagementFee: bigint;
1018
+ collectedProtocolFee: bigint;
1019
+ rfqCode: Cell;
1020
+ walletCode: Cell;
1021
+ dataAggregatorCode: Cell;
1022
+ protocolFeeManagerAddress: Address;
1023
+ rfqIndex: bigint;
1024
+ isExecutingStrategy: boolean;
1025
+ maxLeverageRatio: number;
1026
+ assetWalletDict: Record<string, string>;
1027
+ walletAssetDict: Record<string, string>;
1028
+ managementFeeRecipientAddress: Address | null;
1029
+ guardianAddress: Address | null;
1030
+ timelock: bigint;
1031
+ pendingOwnerActionIndex: bigint;
1032
+ pendingOwnerActionCount: bigint;
1033
+ pendingOwnerAction: any;
1034
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
1035
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
1036
+ version: string;
1037
+ address: Address;
1038
+ balance: bigint;
1039
+ code: Cell;
1040
+ } | {
1041
+ globalDepositValueCap: bigint;
1042
+ withdrawFeeRate: number;
1043
+ queueWithdrawFeeRate: number;
1044
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1045
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1046
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
1047
+ xchainConnectorAddress: null;
1048
+ xchainConfig: null;
1049
+ xchainUpdateHash: bigint;
1050
+ owner: Address;
1051
+ manager: Address;
1052
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
1053
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
1054
+ aggregatorIndex: bigint;
1055
+ content: Cell;
1056
+ totalSupply: bigint;
1057
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
1058
+ rfqConfig: {
1059
+ priceDeviationTolerance: number;
1060
+ rfqEventEmitterAddress: string | null;
1061
+ } | null;
1062
+ gasConfig: Record<string, bigint> | null;
1063
+ isPrivateVault: boolean;
1064
+ depositCloseTimestamp: number;
1065
+ withdrawOpenTimestamp: number;
1066
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
1067
+ lastCollectTime: number;
1068
+ managementFeeRatePerYear: number;
1069
+ protocolFeeRatePerYear: number;
1070
+ collectedManagementFee: bigint;
1071
+ collectedProtocolFee: bigint;
1072
+ rfqCode: Cell;
1073
+ walletCode: Cell;
1074
+ dataAggregatorCode: Cell;
1075
+ protocolFeeManagerAddress: Address;
1076
+ rfqIndex: bigint;
1077
+ isExecutingStrategy: boolean;
1078
+ maxLeverageRatio: number;
1079
+ assetWalletDict: Record<string, string>;
1080
+ walletAssetDict: Record<string, string>;
1081
+ managementFeeRecipientAddress: Address | null;
1082
+ guardianAddress: Address | null;
1083
+ timelock: bigint;
1084
+ pendingOwnerActionIndex: bigint;
1085
+ pendingOwnerActionCount: bigint;
1086
+ pendingOwnerAction: any;
1087
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
1088
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
1089
+ version: string;
1090
+ address: Address;
1091
+ balance: bigint;
1092
+ code: Cell;
1093
+ };
1094
+ targetVault: import("@ton/core").OpenedContract<StrategyVault>;
1095
+ targetVaultData: {
1096
+ globalDepositValueCap: bigint;
1097
+ withdrawFeeRate: number;
1098
+ queueWithdrawFeeRate: number;
1099
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1100
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1101
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
1102
+ xchainConnectorAddress: Address | null;
1103
+ xchainConfig: Record<string, {
1104
+ connected: boolean;
1105
+ xchainAccountAddress: bigint;
1106
+ oftConfig: Map<string, {
1107
+ destinationAddress: Address;
1108
+ forwardGas: bigint;
1109
+ forwardPayload?: Cell | null;
1110
+ lzTransferFeeRate?: bigint;
1111
+ }> | null;
1112
+ strategyConfig: Map<bigint, {
1113
+ isExecutable: boolean;
1114
+ }> | null;
1115
+ afterStrategyConfig: Map<bigint, {
1116
+ isExecutable: boolean;
1117
+ }> | null;
1118
+ lzGasFee: bigint;
1119
+ }>;
1120
+ xchainUpdateHash: bigint;
1121
+ owner: Address;
1122
+ manager: Address;
1123
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
1124
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
1125
+ aggregatorIndex: bigint;
1126
+ content: Cell;
1127
+ totalSupply: bigint;
1128
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
1129
+ rfqConfig: {
1130
+ priceDeviationTolerance: number;
1131
+ rfqEventEmitterAddress: string | null;
1132
+ } | null;
1133
+ gasConfig: Record<string, bigint> | null;
1134
+ isPrivateVault: boolean;
1135
+ depositCloseTimestamp: number;
1136
+ withdrawOpenTimestamp: number;
1137
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
1138
+ lastCollectTime: number;
1139
+ managementFeeRatePerYear: number;
1140
+ protocolFeeRatePerYear: number;
1141
+ collectedManagementFee: bigint;
1142
+ collectedProtocolFee: bigint;
1143
+ rfqCode: Cell;
1144
+ walletCode: Cell;
1145
+ dataAggregatorCode: Cell;
1146
+ protocolFeeManagerAddress: Address;
1147
+ rfqIndex: bigint;
1148
+ isExecutingStrategy: boolean;
1149
+ maxLeverageRatio: number;
1150
+ assetWalletDict: Record<string, string>;
1151
+ walletAssetDict: Record<string, string>;
1152
+ managementFeeRecipientAddress: Address | null;
1153
+ guardianAddress: Address | null;
1154
+ timelock: bigint;
1155
+ pendingOwnerActionIndex: bigint;
1156
+ pendingOwnerActionCount: bigint;
1157
+ pendingOwnerAction: any;
1158
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
1159
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
1160
+ version: string;
1161
+ address: Address;
1162
+ balance: bigint;
1163
+ code: Cell;
1164
+ } | {
1165
+ globalDepositValueCap: bigint;
1166
+ withdrawFeeRate: number;
1167
+ queueWithdrawFeeRate: number;
1168
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1169
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1170
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
1171
+ xchainConnectorAddress: null;
1172
+ xchainConfig: null;
1173
+ xchainUpdateHash: bigint;
1174
+ owner: Address;
1175
+ manager: Address;
1176
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
1177
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
1178
+ aggregatorIndex: bigint;
1179
+ content: Cell;
1180
+ totalSupply: bigint;
1181
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
1182
+ rfqConfig: {
1183
+ priceDeviationTolerance: number;
1184
+ rfqEventEmitterAddress: string | null;
1185
+ } | null;
1186
+ gasConfig: Record<string, bigint> | null;
1187
+ isPrivateVault: boolean;
1188
+ depositCloseTimestamp: number;
1189
+ withdrawOpenTimestamp: number;
1190
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
1191
+ lastCollectTime: number;
1192
+ managementFeeRatePerYear: number;
1193
+ protocolFeeRatePerYear: number;
1194
+ collectedManagementFee: bigint;
1195
+ collectedProtocolFee: bigint;
1196
+ rfqCode: Cell;
1197
+ walletCode: Cell;
1198
+ dataAggregatorCode: Cell;
1199
+ protocolFeeManagerAddress: Address;
1200
+ rfqIndex: bigint;
1201
+ isExecutingStrategy: boolean;
1202
+ maxLeverageRatio: number;
1203
+ assetWalletDict: Record<string, string>;
1204
+ walletAssetDict: Record<string, string>;
1205
+ managementFeeRecipientAddress: Address | null;
1206
+ guardianAddress: Address | null;
1207
+ timelock: bigint;
1208
+ pendingOwnerActionIndex: bigint;
1209
+ pendingOwnerActionCount: bigint;
1210
+ pendingOwnerAction: any;
1211
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
1212
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
1213
+ version: string;
1214
+ address: Address;
1215
+ balance: bigint;
1216
+ code: Cell;
1217
+ };
1218
+ oracleParams: Cell;
1219
+ vaultStrategyGas: bigint;
1220
+ forwardTonAmount: bigint;
1221
+ };
1222
+ input: {
1223
+ to: Address;
1224
+ value: bigint;
1225
+ body: Cell;
1226
+ };
1227
+ }>;
1228
+ export declare function createWithdrawFromVaultQueueMsg(ctx: AffluentContext, sender: AddressSender, params: WithdrawFromVaultQueueParams): Promise<{
1229
+ opts: {
1230
+ strategyVault: import("@ton/core").OpenedContract<StrategyVault>;
1231
+ strategyVaultData: {
1232
+ globalDepositValueCap: bigint;
1233
+ withdrawFeeRate: number;
1234
+ queueWithdrawFeeRate: number;
1235
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1236
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1237
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
1238
+ xchainConnectorAddress: Address | null;
1239
+ xchainConfig: Record<string, {
1240
+ connected: boolean;
1241
+ xchainAccountAddress: bigint;
1242
+ oftConfig: Map<string, {
1243
+ destinationAddress: Address;
1244
+ forwardGas: bigint;
1245
+ forwardPayload?: Cell | null;
1246
+ lzTransferFeeRate?: bigint;
1247
+ }> | null;
1248
+ strategyConfig: Map<bigint, {
1249
+ isExecutable: boolean;
1250
+ }> | null;
1251
+ afterStrategyConfig: Map<bigint, {
1252
+ isExecutable: boolean;
1253
+ }> | null;
1254
+ lzGasFee: bigint;
1255
+ }>;
1256
+ xchainUpdateHash: bigint;
1257
+ owner: Address;
1258
+ manager: Address;
1259
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
1260
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
1261
+ aggregatorIndex: bigint;
1262
+ content: Cell;
1263
+ totalSupply: bigint;
1264
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
1265
+ rfqConfig: {
1266
+ priceDeviationTolerance: number;
1267
+ rfqEventEmitterAddress: string | null;
1268
+ } | null;
1269
+ gasConfig: Record<string, bigint> | null;
1270
+ isPrivateVault: boolean;
1271
+ depositCloseTimestamp: number;
1272
+ withdrawOpenTimestamp: number;
1273
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
1274
+ lastCollectTime: number;
1275
+ managementFeeRatePerYear: number;
1276
+ protocolFeeRatePerYear: number;
1277
+ collectedManagementFee: bigint;
1278
+ collectedProtocolFee: bigint;
1279
+ rfqCode: Cell;
1280
+ walletCode: Cell;
1281
+ dataAggregatorCode: Cell;
1282
+ protocolFeeManagerAddress: Address;
1283
+ rfqIndex: bigint;
1284
+ isExecutingStrategy: boolean;
1285
+ maxLeverageRatio: number;
1286
+ assetWalletDict: Record<string, string>;
1287
+ walletAssetDict: Record<string, string>;
1288
+ managementFeeRecipientAddress: Address | null;
1289
+ guardianAddress: Address | null;
1290
+ timelock: bigint;
1291
+ pendingOwnerActionIndex: bigint;
1292
+ pendingOwnerActionCount: bigint;
1293
+ pendingOwnerAction: any;
1294
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
1295
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
1296
+ version: string;
1297
+ address: Address;
1298
+ balance: bigint;
1299
+ code: Cell;
1300
+ } | {
1301
+ globalDepositValueCap: bigint;
1302
+ withdrawFeeRate: number;
1303
+ queueWithdrawFeeRate: number;
1304
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1305
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1306
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
1307
+ xchainConnectorAddress: null;
1308
+ xchainConfig: null;
1309
+ xchainUpdateHash: bigint;
1310
+ owner: Address;
1311
+ manager: Address;
1312
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
1313
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
1314
+ aggregatorIndex: bigint;
1315
+ content: Cell;
1316
+ totalSupply: bigint;
1317
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
1318
+ rfqConfig: {
1319
+ priceDeviationTolerance: number;
1320
+ rfqEventEmitterAddress: string | null;
1321
+ } | null;
1322
+ gasConfig: Record<string, bigint> | null;
1323
+ isPrivateVault: boolean;
1324
+ depositCloseTimestamp: number;
1325
+ withdrawOpenTimestamp: number;
1326
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
1327
+ lastCollectTime: number;
1328
+ managementFeeRatePerYear: number;
1329
+ protocolFeeRatePerYear: number;
1330
+ collectedManagementFee: bigint;
1331
+ collectedProtocolFee: bigint;
1332
+ rfqCode: Cell;
1333
+ walletCode: Cell;
1334
+ dataAggregatorCode: Cell;
1335
+ protocolFeeManagerAddress: Address;
1336
+ rfqIndex: bigint;
1337
+ isExecutingStrategy: boolean;
1338
+ maxLeverageRatio: number;
1339
+ assetWalletDict: Record<string, string>;
1340
+ walletAssetDict: Record<string, string>;
1341
+ managementFeeRecipientAddress: Address | null;
1342
+ guardianAddress: Address | null;
1343
+ timelock: bigint;
1344
+ pendingOwnerActionIndex: bigint;
1345
+ pendingOwnerActionCount: bigint;
1346
+ pendingOwnerAction: any;
1347
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
1348
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
1349
+ version: string;
1350
+ address: Address;
1351
+ balance: bigint;
1352
+ code: Cell;
1353
+ };
1354
+ targetVault: import("@ton/core").OpenedContract<StrategyVault>;
1355
+ targetVaultData: {
1356
+ globalDepositValueCap: bigint;
1357
+ withdrawFeeRate: number;
1358
+ queueWithdrawFeeRate: number;
1359
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1360
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1361
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
1362
+ xchainConnectorAddress: Address | null;
1363
+ xchainConfig: Record<string, {
1364
+ connected: boolean;
1365
+ xchainAccountAddress: bigint;
1366
+ oftConfig: Map<string, {
1367
+ destinationAddress: Address;
1368
+ forwardGas: bigint;
1369
+ forwardPayload?: Cell | null;
1370
+ lzTransferFeeRate?: bigint;
1371
+ }> | null;
1372
+ strategyConfig: Map<bigint, {
1373
+ isExecutable: boolean;
1374
+ }> | null;
1375
+ afterStrategyConfig: Map<bigint, {
1376
+ isExecutable: boolean;
1377
+ }> | null;
1378
+ lzGasFee: bigint;
1379
+ }>;
1380
+ xchainUpdateHash: bigint;
1381
+ owner: Address;
1382
+ manager: Address;
1383
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
1384
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
1385
+ aggregatorIndex: bigint;
1386
+ content: Cell;
1387
+ totalSupply: bigint;
1388
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
1389
+ rfqConfig: {
1390
+ priceDeviationTolerance: number;
1391
+ rfqEventEmitterAddress: string | null;
1392
+ } | null;
1393
+ gasConfig: Record<string, bigint> | null;
1394
+ isPrivateVault: boolean;
1395
+ depositCloseTimestamp: number;
1396
+ withdrawOpenTimestamp: number;
1397
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
1398
+ lastCollectTime: number;
1399
+ managementFeeRatePerYear: number;
1400
+ protocolFeeRatePerYear: number;
1401
+ collectedManagementFee: bigint;
1402
+ collectedProtocolFee: bigint;
1403
+ rfqCode: Cell;
1404
+ walletCode: Cell;
1405
+ dataAggregatorCode: Cell;
1406
+ protocolFeeManagerAddress: Address;
1407
+ rfqIndex: bigint;
1408
+ isExecutingStrategy: boolean;
1409
+ maxLeverageRatio: number;
1410
+ assetWalletDict: Record<string, string>;
1411
+ walletAssetDict: Record<string, string>;
1412
+ managementFeeRecipientAddress: Address | null;
1413
+ guardianAddress: Address | null;
1414
+ timelock: bigint;
1415
+ pendingOwnerActionIndex: bigint;
1416
+ pendingOwnerActionCount: bigint;
1417
+ pendingOwnerAction: any;
1418
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
1419
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
1420
+ version: string;
1421
+ address: Address;
1422
+ balance: bigint;
1423
+ code: Cell;
1424
+ } | {
1425
+ globalDepositValueCap: bigint;
1426
+ withdrawFeeRate: number;
1427
+ queueWithdrawFeeRate: number;
1428
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1429
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1430
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
1431
+ xchainConnectorAddress: null;
1432
+ xchainConfig: null;
1433
+ xchainUpdateHash: bigint;
1434
+ owner: Address;
1435
+ manager: Address;
1436
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
1437
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
1438
+ aggregatorIndex: bigint;
1439
+ content: Cell;
1440
+ totalSupply: bigint;
1441
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
1442
+ rfqConfig: {
1443
+ priceDeviationTolerance: number;
1444
+ rfqEventEmitterAddress: string | null;
1445
+ } | null;
1446
+ gasConfig: Record<string, bigint> | null;
1447
+ isPrivateVault: boolean;
1448
+ depositCloseTimestamp: number;
1449
+ withdrawOpenTimestamp: number;
1450
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
1451
+ lastCollectTime: number;
1452
+ managementFeeRatePerYear: number;
1453
+ protocolFeeRatePerYear: number;
1454
+ collectedManagementFee: bigint;
1455
+ collectedProtocolFee: bigint;
1456
+ rfqCode: Cell;
1457
+ walletCode: Cell;
1458
+ dataAggregatorCode: Cell;
1459
+ protocolFeeManagerAddress: Address;
1460
+ rfqIndex: bigint;
1461
+ isExecutingStrategy: boolean;
1462
+ maxLeverageRatio: number;
1463
+ assetWalletDict: Record<string, string>;
1464
+ walletAssetDict: Record<string, string>;
1465
+ managementFeeRecipientAddress: Address | null;
1466
+ guardianAddress: Address | null;
1467
+ timelock: bigint;
1468
+ pendingOwnerActionIndex: bigint;
1469
+ pendingOwnerActionCount: bigint;
1470
+ pendingOwnerAction: any;
1471
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
1472
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
1473
+ version: string;
1474
+ address: Address;
1475
+ balance: bigint;
1476
+ code: Cell;
1477
+ };
1478
+ oracleParams: Cell;
1479
+ vaultStrategyGas: bigint;
1480
+ forwardTonAmount: bigint;
1481
+ };
1482
+ input: {
1483
+ to: Address;
1484
+ value: bigint;
1485
+ body: Cell;
1486
+ };
1487
+ }>;
1488
+ export declare function createDepositToVaultQueueCancelMsg(ctx: AffluentContext, sender: AddressSender, params: DepositToVaultQueueCancelParams): Promise<{
1489
+ opts: {
1490
+ strategyVault: import("@ton/core").OpenedContract<StrategyVault>;
1491
+ };
1492
+ input: {
1493
+ to: Address;
1494
+ value: bigint;
1495
+ body: Cell;
1496
+ };
1497
+ }>;
1498
+ export declare function createWithdrawFromVaultQueueCancelMsg(ctx: AffluentContext, sender: AddressSender, params: WithdrawFromVaultQueueCancelParams): Promise<{
1499
+ opts: {
1500
+ strategyVault: import("@ton/core").OpenedContract<StrategyVault>;
1501
+ };
1502
+ input: {
1503
+ to: Address;
1504
+ value: bigint;
1505
+ body: Cell;
1506
+ };
1507
+ }>;
1508
+ export declare function createAmountRFQMsg(ctx: AffluentContext, sender: AddressSender, params: CreateAmountRFQParams, value?: bigint): Promise<{
1509
+ opts: {
1510
+ strategyVault: import("@ton/core").OpenedContract<StrategyVault>;
1511
+ vaultData: {
1512
+ globalDepositValueCap: bigint;
1513
+ withdrawFeeRate: number;
1514
+ queueWithdrawFeeRate: number;
1515
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1516
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1517
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
1518
+ xchainConnectorAddress: Address | null;
1519
+ xchainConfig: Record<string, {
1520
+ connected: boolean;
1521
+ xchainAccountAddress: bigint;
1522
+ oftConfig: Map<string, {
1523
+ destinationAddress: Address;
1524
+ forwardGas: bigint;
1525
+ forwardPayload?: Cell | null;
1526
+ lzTransferFeeRate?: bigint;
1527
+ }> | null;
1528
+ strategyConfig: Map<bigint, {
1529
+ isExecutable: boolean;
1530
+ }> | null;
1531
+ afterStrategyConfig: Map<bigint, {
1532
+ isExecutable: boolean;
1533
+ }> | null;
1534
+ lzGasFee: bigint;
1535
+ }>;
1536
+ xchainUpdateHash: bigint;
1537
+ owner: Address;
1538
+ manager: Address;
1539
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
1540
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
1541
+ aggregatorIndex: bigint;
1542
+ content: Cell;
1543
+ totalSupply: bigint;
1544
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
1545
+ rfqConfig: {
1546
+ priceDeviationTolerance: number;
1547
+ rfqEventEmitterAddress: string | null;
1548
+ } | null;
1549
+ gasConfig: Record<string, bigint> | null;
1550
+ isPrivateVault: boolean;
1551
+ depositCloseTimestamp: number;
1552
+ withdrawOpenTimestamp: number;
1553
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
1554
+ lastCollectTime: number;
1555
+ managementFeeRatePerYear: number;
1556
+ protocolFeeRatePerYear: number;
1557
+ collectedManagementFee: bigint;
1558
+ collectedProtocolFee: bigint;
1559
+ rfqCode: Cell;
1560
+ walletCode: Cell;
1561
+ dataAggregatorCode: Cell;
1562
+ protocolFeeManagerAddress: Address;
1563
+ rfqIndex: bigint;
1564
+ isExecutingStrategy: boolean;
1565
+ maxLeverageRatio: number;
1566
+ assetWalletDict: Record<string, string>;
1567
+ walletAssetDict: Record<string, string>;
1568
+ managementFeeRecipientAddress: Address | null;
1569
+ guardianAddress: Address | null;
1570
+ timelock: bigint;
1571
+ pendingOwnerActionIndex: bigint;
1572
+ pendingOwnerActionCount: bigint;
1573
+ pendingOwnerAction: any;
1574
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
1575
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
1576
+ version: string;
1577
+ address: Address;
1578
+ balance: bigint;
1579
+ code: Cell;
1580
+ } | {
1581
+ globalDepositValueCap: bigint;
1582
+ withdrawFeeRate: number;
1583
+ queueWithdrawFeeRate: number;
1584
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1585
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1586
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
1587
+ xchainConnectorAddress: null;
1588
+ xchainConfig: null;
1589
+ xchainUpdateHash: bigint;
1590
+ owner: Address;
1591
+ manager: Address;
1592
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
1593
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
1594
+ aggregatorIndex: bigint;
1595
+ content: Cell;
1596
+ totalSupply: bigint;
1597
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
1598
+ rfqConfig: {
1599
+ priceDeviationTolerance: number;
1600
+ rfqEventEmitterAddress: string | null;
1601
+ } | null;
1602
+ gasConfig: Record<string, bigint> | null;
1603
+ isPrivateVault: boolean;
1604
+ depositCloseTimestamp: number;
1605
+ withdrawOpenTimestamp: number;
1606
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
1607
+ lastCollectTime: number;
1608
+ managementFeeRatePerYear: number;
1609
+ protocolFeeRatePerYear: number;
1610
+ collectedManagementFee: bigint;
1611
+ collectedProtocolFee: bigint;
1612
+ rfqCode: Cell;
1613
+ walletCode: Cell;
1614
+ dataAggregatorCode: Cell;
1615
+ protocolFeeManagerAddress: Address;
1616
+ rfqIndex: bigint;
1617
+ isExecutingStrategy: boolean;
1618
+ maxLeverageRatio: number;
1619
+ assetWalletDict: Record<string, string>;
1620
+ walletAssetDict: Record<string, string>;
1621
+ managementFeeRecipientAddress: Address | null;
1622
+ guardianAddress: Address | null;
1623
+ timelock: bigint;
1624
+ pendingOwnerActionIndex: bigint;
1625
+ pendingOwnerActionCount: bigint;
1626
+ pendingOwnerAction: any;
1627
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
1628
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
1629
+ version: string;
1630
+ address: Address;
1631
+ balance: bigint;
1632
+ code: Cell;
1633
+ };
1634
+ rfqIndex: bigint;
1635
+ rfqAuctionAddress: Address;
1636
+ sellAssetAddress: Address;
1637
+ buyAssetAddress: Address;
1638
+ sellAssetRFQWallet: Address;
1639
+ buyAssetRFQWallet: Address;
1640
+ oracleParams: Cell;
1641
+ oracleCalculateGas: bigint;
1642
+ };
1643
+ input: {
1644
+ to: Address;
1645
+ value: bigint;
1646
+ body: Cell;
1647
+ };
1648
+ }>;
1649
+ export declare function createSlippageRFQMsg(ctx: AffluentContext, sender: AddressSender, params: CreateSlippageRFQParams, value?: bigint): Promise<{
1650
+ opts: {
1651
+ strategyVault: import("@ton/core").OpenedContract<StrategyVault>;
1652
+ vaultData: {
1653
+ globalDepositValueCap: bigint;
1654
+ withdrawFeeRate: number;
1655
+ queueWithdrawFeeRate: number;
1656
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1657
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1658
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
1659
+ xchainConnectorAddress: Address | null;
1660
+ xchainConfig: Record<string, {
1661
+ connected: boolean;
1662
+ xchainAccountAddress: bigint;
1663
+ oftConfig: Map<string, {
1664
+ destinationAddress: Address;
1665
+ forwardGas: bigint;
1666
+ forwardPayload?: Cell | null;
1667
+ lzTransferFeeRate?: bigint;
1668
+ }> | null;
1669
+ strategyConfig: Map<bigint, {
1670
+ isExecutable: boolean;
1671
+ }> | null;
1672
+ afterStrategyConfig: Map<bigint, {
1673
+ isExecutable: boolean;
1674
+ }> | null;
1675
+ lzGasFee: bigint;
1676
+ }>;
1677
+ xchainUpdateHash: bigint;
1678
+ owner: Address;
1679
+ manager: Address;
1680
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
1681
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
1682
+ aggregatorIndex: bigint;
1683
+ content: Cell;
1684
+ totalSupply: bigint;
1685
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
1686
+ rfqConfig: {
1687
+ priceDeviationTolerance: number;
1688
+ rfqEventEmitterAddress: string | null;
1689
+ } | null;
1690
+ gasConfig: Record<string, bigint> | null;
1691
+ isPrivateVault: boolean;
1692
+ depositCloseTimestamp: number;
1693
+ withdrawOpenTimestamp: number;
1694
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
1695
+ lastCollectTime: number;
1696
+ managementFeeRatePerYear: number;
1697
+ protocolFeeRatePerYear: number;
1698
+ collectedManagementFee: bigint;
1699
+ collectedProtocolFee: bigint;
1700
+ rfqCode: Cell;
1701
+ walletCode: Cell;
1702
+ dataAggregatorCode: Cell;
1703
+ protocolFeeManagerAddress: Address;
1704
+ rfqIndex: bigint;
1705
+ isExecutingStrategy: boolean;
1706
+ maxLeverageRatio: number;
1707
+ assetWalletDict: Record<string, string>;
1708
+ walletAssetDict: Record<string, string>;
1709
+ managementFeeRecipientAddress: Address | null;
1710
+ guardianAddress: Address | null;
1711
+ timelock: bigint;
1712
+ pendingOwnerActionIndex: bigint;
1713
+ pendingOwnerActionCount: bigint;
1714
+ pendingOwnerAction: any;
1715
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
1716
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
1717
+ version: string;
1718
+ address: Address;
1719
+ balance: bigint;
1720
+ code: Cell;
1721
+ } | {
1722
+ globalDepositValueCap: bigint;
1723
+ withdrawFeeRate: number;
1724
+ queueWithdrawFeeRate: number;
1725
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1726
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1727
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
1728
+ xchainConnectorAddress: null;
1729
+ xchainConfig: null;
1730
+ xchainUpdateHash: bigint;
1731
+ owner: Address;
1732
+ manager: Address;
1733
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
1734
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
1735
+ aggregatorIndex: bigint;
1736
+ content: Cell;
1737
+ totalSupply: bigint;
1738
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
1739
+ rfqConfig: {
1740
+ priceDeviationTolerance: number;
1741
+ rfqEventEmitterAddress: string | null;
1742
+ } | null;
1743
+ gasConfig: Record<string, bigint> | null;
1744
+ isPrivateVault: boolean;
1745
+ depositCloseTimestamp: number;
1746
+ withdrawOpenTimestamp: number;
1747
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
1748
+ lastCollectTime: number;
1749
+ managementFeeRatePerYear: number;
1750
+ protocolFeeRatePerYear: number;
1751
+ collectedManagementFee: bigint;
1752
+ collectedProtocolFee: bigint;
1753
+ rfqCode: Cell;
1754
+ walletCode: Cell;
1755
+ dataAggregatorCode: Cell;
1756
+ protocolFeeManagerAddress: Address;
1757
+ rfqIndex: bigint;
1758
+ isExecutingStrategy: boolean;
1759
+ maxLeverageRatio: number;
1760
+ assetWalletDict: Record<string, string>;
1761
+ walletAssetDict: Record<string, string>;
1762
+ managementFeeRecipientAddress: Address | null;
1763
+ guardianAddress: Address | null;
1764
+ timelock: bigint;
1765
+ pendingOwnerActionIndex: bigint;
1766
+ pendingOwnerActionCount: bigint;
1767
+ pendingOwnerAction: any;
1768
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
1769
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
1770
+ version: string;
1771
+ address: Address;
1772
+ balance: bigint;
1773
+ code: Cell;
1774
+ };
1775
+ rfqIndex: bigint;
1776
+ rfqAuctionAddress: Address;
1777
+ sellAssetAddress: Address;
1778
+ buyAssetAddress: Address;
1779
+ sellAssetRFQWallet: Address;
1780
+ buyAssetRFQWallet: Address;
1781
+ oracleParams: Cell;
1782
+ oracleCalculateGas: bigint;
1783
+ slippageBoundConfig: import("../../../contracts/vault/strategy-vault/computation").SlippageConfig;
1784
+ };
1785
+ input: {
1786
+ to: Address;
1787
+ value: bigint;
1788
+ body: Cell;
1789
+ };
1790
+ }>;
1791
+ export declare function createCancelRFQMsg(ctx: AffluentContext, sender: AddressSender, params: CancelRFQParams, value?: bigint): Promise<{
1792
+ opts: {
1793
+ strategyVault: import("@ton/core").OpenedContract<StrategyVault>;
1794
+ };
1795
+ input: {
1796
+ to: Address;
1797
+ value: bigint;
1798
+ body: Cell;
1799
+ };
1800
+ }>;
1801
+ export declare function sendUnwrapWTON(ctx: AffluentContext, sender: AddressSender, params: UnwrapWTONParams, value?: bigint): Promise<void>;
1802
+ export declare function createConfirmQueueMsg(ctx: AffluentContext, sender: AddressSender, params: SendConfirmQueueParams): Promise<{
1803
+ opts: {
1804
+ vault: import("@ton/core").OpenedContract<StrategyVault>;
1805
+ vaultData: {
1806
+ globalDepositValueCap: bigint;
1807
+ withdrawFeeRate: number;
1808
+ queueWithdrawFeeRate: number;
1809
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1810
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1811
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
1812
+ xchainConnectorAddress: Address | null;
1813
+ xchainConfig: Record<string, {
1814
+ connected: boolean;
1815
+ xchainAccountAddress: bigint;
1816
+ oftConfig: Map<string, {
1817
+ destinationAddress: Address;
1818
+ forwardGas: bigint;
1819
+ forwardPayload?: Cell | null;
1820
+ lzTransferFeeRate?: bigint;
1821
+ }> | null;
1822
+ strategyConfig: Map<bigint, {
1823
+ isExecutable: boolean;
1824
+ }> | null;
1825
+ afterStrategyConfig: Map<bigint, {
1826
+ isExecutable: boolean;
1827
+ }> | null;
1828
+ lzGasFee: bigint;
1829
+ }>;
1830
+ xchainUpdateHash: bigint;
1831
+ owner: Address;
1832
+ manager: Address;
1833
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
1834
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
1835
+ aggregatorIndex: bigint;
1836
+ content: Cell;
1837
+ totalSupply: bigint;
1838
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
1839
+ rfqConfig: {
1840
+ priceDeviationTolerance: number;
1841
+ rfqEventEmitterAddress: string | null;
1842
+ } | null;
1843
+ gasConfig: Record<string, bigint> | null;
1844
+ isPrivateVault: boolean;
1845
+ depositCloseTimestamp: number;
1846
+ withdrawOpenTimestamp: number;
1847
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
1848
+ lastCollectTime: number;
1849
+ managementFeeRatePerYear: number;
1850
+ protocolFeeRatePerYear: number;
1851
+ collectedManagementFee: bigint;
1852
+ collectedProtocolFee: bigint;
1853
+ rfqCode: Cell;
1854
+ walletCode: Cell;
1855
+ dataAggregatorCode: Cell;
1856
+ protocolFeeManagerAddress: Address;
1857
+ rfqIndex: bigint;
1858
+ isExecutingStrategy: boolean;
1859
+ maxLeverageRatio: number;
1860
+ assetWalletDict: Record<string, string>;
1861
+ walletAssetDict: Record<string, string>;
1862
+ managementFeeRecipientAddress: Address | null;
1863
+ guardianAddress: Address | null;
1864
+ timelock: bigint;
1865
+ pendingOwnerActionIndex: bigint;
1866
+ pendingOwnerActionCount: bigint;
1867
+ pendingOwnerAction: any;
1868
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
1869
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
1870
+ version: string;
1871
+ address: Address;
1872
+ balance: bigint;
1873
+ code: Cell;
1874
+ } | {
1875
+ globalDepositValueCap: bigint;
1876
+ withdrawFeeRate: number;
1877
+ queueWithdrawFeeRate: number;
1878
+ depositQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1879
+ withdrawQueueManager: import("../../../contracts/vault/strategy-vault").QueueManager;
1880
+ interactiveVaultDict: Record<string, import("../../../contracts/vault/strategy-vault").InteractiveVaultConfigItem>;
1881
+ xchainConnectorAddress: null;
1882
+ xchainConfig: null;
1883
+ xchainUpdateHash: bigint;
1884
+ owner: Address;
1885
+ manager: Address;
1886
+ assets: Record<string, import("../../../contracts/vault/strategy-vault").AssetV2>;
1887
+ factorialPools: Record<string, import("../../../contracts/vault/strategy-vault").FactorialPool>;
1888
+ aggregatorIndex: bigint;
1889
+ content: Cell;
1890
+ totalSupply: bigint;
1891
+ oracleConfig: Cell | import("../../../contracts/oracle/redstone-onchain-oracle/type").RedstoneOnchainOracleConfig | import("../../../contracts/oracle/redstone-oracle/type").RedstonOracleConfig;
1892
+ rfqConfig: {
1893
+ priceDeviationTolerance: number;
1894
+ rfqEventEmitterAddress: string | null;
1895
+ } | null;
1896
+ gasConfig: Record<string, bigint> | null;
1897
+ isPrivateVault: boolean;
1898
+ depositCloseTimestamp: number;
1899
+ withdrawOpenTimestamp: number;
1900
+ whitelistedMinters: import("@ton/core").Dictionary<Address, Boolean>;
1901
+ lastCollectTime: number;
1902
+ managementFeeRatePerYear: number;
1903
+ protocolFeeRatePerYear: number;
1904
+ collectedManagementFee: bigint;
1905
+ collectedProtocolFee: bigint;
1906
+ rfqCode: Cell;
1907
+ walletCode: Cell;
1908
+ dataAggregatorCode: Cell;
1909
+ protocolFeeManagerAddress: Address;
1910
+ rfqIndex: bigint;
1911
+ isExecutingStrategy: boolean;
1912
+ maxLeverageRatio: number;
1913
+ assetWalletDict: Record<string, string>;
1914
+ walletAssetDict: Record<string, string>;
1915
+ managementFeeRecipientAddress: Address | null;
1916
+ guardianAddress: Address | null;
1917
+ timelock: bigint;
1918
+ pendingOwnerActionIndex: bigint;
1919
+ pendingOwnerActionCount: bigint;
1920
+ pendingOwnerAction: any;
1921
+ getFactorialPoolAsset: (poolAddress: Address, assetAddress: Address) => import("../../../contracts/vault/strategy-vault").FactorialPoolShare;
1922
+ getAsset: (assetAddress: Address) => import("../../../contracts/vault/strategy-vault").AssetV2;
1923
+ version: string;
1924
+ address: Address;
1925
+ balance: bigint;
1926
+ code: Cell;
1927
+ };
1928
+ to: Address;
1929
+ value: bigint;
1930
+ depositAssets: Address[];
1931
+ withdrawAssets: Address[];
1932
+ oracleParams: Cell;
1933
+ queryId: bigint;
1934
+ };
1935
+ input: {
1936
+ to: Address;
1937
+ value: bigint;
1938
+ body: Cell;
1939
+ };
1940
+ }>;
1941
+ export declare function createExecuteDepositQueueMsg(ctx: AffluentContext, sender: AddressSender, params: ExecuteDepositQueueParams): Promise<{
1942
+ opts: {
1943
+ to: Address;
1944
+ value: bigint;
1945
+ asset: Address;
1946
+ count: bigint;
1947
+ queryId: bigint;
1948
+ };
1949
+ input: {
1950
+ to: Address;
1951
+ value: bigint;
1952
+ body: Cell;
1953
+ };
1954
+ }>;
1955
+ export declare function createExecuteWithdrawQueueMsg(ctx: AffluentContext, sender: AddressSender, params: ExecuteWithdrawQueueParams): Promise<{
1956
+ opts: {
1957
+ to: Address;
1958
+ value: bigint;
1959
+ asset: Address;
1960
+ count: bigint;
1961
+ queryId: bigint;
1962
+ };
1963
+ input: {
1964
+ to: Address;
1965
+ value: bigint;
1966
+ body: Cell;
1967
+ };
1968
+ }>;