@reserve-protocol/dtf-sdk 0.1.0

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 (234) hide show
  1. package/README.md +134 -0
  2. package/dist/abi/deployer.d.ts +281 -0
  3. package/dist/abi/deployer.d.ts.map +1 -0
  4. package/dist/abi/deployer.js +178 -0
  5. package/dist/abi/deployer.js.map +1 -0
  6. package/dist/abi/erc20.d.ts +73 -0
  7. package/dist/abi/erc20.d.ts.map +1 -0
  8. package/dist/abi/erc20.js +58 -0
  9. package/dist/abi/erc20.js.map +1 -0
  10. package/dist/abi/folio.d.ts +1950 -0
  11. package/dist/abi/folio.d.ts.map +1 -0
  12. package/dist/abi/folio.js +1430 -0
  13. package/dist/abi/folio.js.map +1 -0
  14. package/dist/abi/governance-deployer.d.ts +130 -0
  15. package/dist/abi/governance-deployer.d.ts.map +1 -0
  16. package/dist/abi/governance-deployer.js +77 -0
  17. package/dist/abi/governance-deployer.js.map +1 -0
  18. package/dist/abi/governor.d.ts +1276 -0
  19. package/dist/abi/governor.d.ts.map +1 -0
  20. package/dist/abi/governor.js +1661 -0
  21. package/dist/abi/governor.js.map +1 -0
  22. package/dist/abi/proxy-admin.d.ts +49 -0
  23. package/dist/abi/proxy-admin.d.ts.map +1 -0
  24. package/dist/abi/proxy-admin.js +42 -0
  25. package/dist/abi/proxy-admin.js.map +1 -0
  26. package/dist/abi/spells.d.ts +67 -0
  27. package/dist/abi/spells.d.ts.map +1 -0
  28. package/dist/abi/spells.js +61 -0
  29. package/dist/abi/spells.js.map +1 -0
  30. package/dist/abi/timelock.d.ts +673 -0
  31. package/dist/abi/timelock.d.ts.map +1 -0
  32. package/dist/abi/timelock.js +469 -0
  33. package/dist/abi/timelock.js.map +1 -0
  34. package/dist/abi/vote-lock.d.ts +164 -0
  35. package/dist/abi/vote-lock.d.ts.map +1 -0
  36. package/dist/abi/vote-lock.js +116 -0
  37. package/dist/abi/vote-lock.js.map +1 -0
  38. package/dist/clients/chains.d.ts +5 -0
  39. package/dist/clients/chains.d.ts.map +1 -0
  40. package/dist/clients/chains.js +23 -0
  41. package/dist/clients/chains.js.map +1 -0
  42. package/dist/clients/create-clients.d.ts +14 -0
  43. package/dist/clients/create-clients.d.ts.map +1 -0
  44. package/dist/clients/create-clients.js +32 -0
  45. package/dist/clients/create-clients.js.map +1 -0
  46. package/dist/clients/create-price-client.d.ts +7 -0
  47. package/dist/clients/create-price-client.d.ts.map +1 -0
  48. package/dist/clients/create-price-client.js +15 -0
  49. package/dist/clients/create-price-client.js.map +1 -0
  50. package/dist/constants.d.ts +35 -0
  51. package/dist/constants.d.ts.map +1 -0
  52. package/dist/constants.js +100 -0
  53. package/dist/constants.js.map +1 -0
  54. package/dist/deploy/build-deploy.d.ts +7 -0
  55. package/dist/deploy/build-deploy.d.ts.map +1 -0
  56. package/dist/deploy/build-deploy.js +84 -0
  57. package/dist/deploy/build-deploy.js.map +1 -0
  58. package/dist/deploy/extract-deployed-address.d.ts +8 -0
  59. package/dist/deploy/extract-deployed-address.d.ts.map +1 -0
  60. package/dist/deploy/extract-deployed-address.js +36 -0
  61. package/dist/deploy/extract-deployed-address.js.map +1 -0
  62. package/dist/deploy/permissionless-defaults.d.ts +35 -0
  63. package/dist/deploy/permissionless-defaults.d.ts.map +1 -0
  64. package/dist/deploy/permissionless-defaults.js +76 -0
  65. package/dist/deploy/permissionless-defaults.js.map +1 -0
  66. package/dist/deploy/token-registry.d.ts +9 -0
  67. package/dist/deploy/token-registry.d.ts.map +1 -0
  68. package/dist/deploy/token-registry.js +68 -0
  69. package/dist/deploy/token-registry.js.map +1 -0
  70. package/dist/deploy/zap-deploy.d.ts +4 -0
  71. package/dist/deploy/zap-deploy.d.ts.map +1 -0
  72. package/dist/deploy/zap-deploy.js +50 -0
  73. package/dist/deploy/zap-deploy.js.map +1 -0
  74. package/dist/dtf/fees.d.ts +10 -0
  75. package/dist/dtf/fees.d.ts.map +1 -0
  76. package/dist/dtf/fees.js +103 -0
  77. package/dist/dtf/fees.js.map +1 -0
  78. package/dist/dtf/fetch-analytics.d.ts +27 -0
  79. package/dist/dtf/fetch-analytics.d.ts.map +1 -0
  80. package/dist/dtf/fetch-analytics.js +63 -0
  81. package/dist/dtf/fetch-analytics.js.map +1 -0
  82. package/dist/dtf/fetch-basket.d.ts +16 -0
  83. package/dist/dtf/fetch-basket.d.ts.map +1 -0
  84. package/dist/dtf/fetch-basket.js +32 -0
  85. package/dist/dtf/fetch-basket.js.map +1 -0
  86. package/dist/dtf/fetch-discover.d.ts +10 -0
  87. package/dist/dtf/fetch-discover.d.ts.map +1 -0
  88. package/dist/dtf/fetch-discover.js +17 -0
  89. package/dist/dtf/fetch-discover.js.map +1 -0
  90. package/dist/dtf/fetch-dtf.d.ts +25 -0
  91. package/dist/dtf/fetch-dtf.d.ts.map +1 -0
  92. package/dist/dtf/fetch-dtf.js +39 -0
  93. package/dist/dtf/fetch-dtf.js.map +1 -0
  94. package/dist/dtf/mint.d.ts +9 -0
  95. package/dist/dtf/mint.d.ts.map +1 -0
  96. package/dist/dtf/mint.js +82 -0
  97. package/dist/dtf/mint.js.map +1 -0
  98. package/dist/dtf/read-basket.d.ts +4 -0
  99. package/dist/dtf/read-basket.d.ts.map +1 -0
  100. package/dist/dtf/read-basket.js +20 -0
  101. package/dist/dtf/read-basket.js.map +1 -0
  102. package/dist/dtf/read-config.d.ts +4 -0
  103. package/dist/dtf/read-config.d.ts.map +1 -0
  104. package/dist/dtf/read-config.js +80 -0
  105. package/dist/dtf/read-config.js.map +1 -0
  106. package/dist/dtf/read-dtf.d.ts +6 -0
  107. package/dist/dtf/read-dtf.d.ts.map +1 -0
  108. package/dist/dtf/read-dtf.js +32 -0
  109. package/dist/dtf/read-dtf.js.map +1 -0
  110. package/dist/dtf/read-rebalance-control.d.ts +4 -0
  111. package/dist/dtf/read-rebalance-control.d.ts.map +1 -0
  112. package/dist/dtf/read-rebalance-control.js +14 -0
  113. package/dist/dtf/read-rebalance-control.js.map +1 -0
  114. package/dist/dtf/read-roles.d.ts +4 -0
  115. package/dist/dtf/read-roles.d.ts.map +1 -0
  116. package/dist/dtf/read-roles.js +29 -0
  117. package/dist/dtf/read-roles.js.map +1 -0
  118. package/dist/dtf/read-version.d.ts +3 -0
  119. package/dist/dtf/read-version.d.ts.map +1 -0
  120. package/dist/dtf/read-version.js +9 -0
  121. package/dist/dtf/read-version.js.map +1 -0
  122. package/dist/dtf/redeem.d.ts +5 -0
  123. package/dist/dtf/redeem.d.ts.map +1 -0
  124. package/dist/dtf/redeem.js +27 -0
  125. package/dist/dtf/redeem.js.map +1 -0
  126. package/dist/governance/build-proposal.d.ts +11 -0
  127. package/dist/governance/build-proposal.d.ts.map +1 -0
  128. package/dist/governance/build-proposal.js +78 -0
  129. package/dist/governance/build-proposal.js.map +1 -0
  130. package/dist/governance/build-settings-calldata.d.ts +39 -0
  131. package/dist/governance/build-settings-calldata.d.ts.map +1 -0
  132. package/dist/governance/build-settings-calldata.js +145 -0
  133. package/dist/governance/build-settings-calldata.js.map +1 -0
  134. package/dist/governance/compute-proposal-state.d.ts +18 -0
  135. package/dist/governance/compute-proposal-state.d.ts.map +1 -0
  136. package/dist/governance/compute-proposal-state.js +87 -0
  137. package/dist/governance/compute-proposal-state.js.map +1 -0
  138. package/dist/governance/decode-proposal.d.ts +22 -0
  139. package/dist/governance/decode-proposal.d.ts.map +1 -0
  140. package/dist/governance/decode-proposal.js +164 -0
  141. package/dist/governance/decode-proposal.js.map +1 -0
  142. package/dist/governance/fetch-proposals.d.ts +41 -0
  143. package/dist/governance/fetch-proposals.d.ts.map +1 -0
  144. package/dist/governance/fetch-proposals.js +173 -0
  145. package/dist/governance/fetch-proposals.js.map +1 -0
  146. package/dist/governance/read-governance.d.ts +7 -0
  147. package/dist/governance/read-governance.d.ts.map +1 -0
  148. package/dist/governance/read-governance.js +97 -0
  149. package/dist/governance/read-governance.js.map +1 -0
  150. package/dist/governance/read-proposals.d.ts +11 -0
  151. package/dist/governance/read-proposals.d.ts.map +1 -0
  152. package/dist/governance/read-proposals.js +104 -0
  153. package/dist/governance/read-proposals.js.map +1 -0
  154. package/dist/governance/read-voting-power.d.ts +8 -0
  155. package/dist/governance/read-voting-power.d.ts.map +1 -0
  156. package/dist/governance/read-voting-power.js +25 -0
  157. package/dist/governance/read-voting-power.js.map +1 -0
  158. package/dist/index.d.ts +57 -0
  159. package/dist/index.d.ts.map +1 -0
  160. package/dist/index.js +73 -0
  161. package/dist/index.js.map +1 -0
  162. package/dist/prices/chainlink.d.ts +8 -0
  163. package/dist/prices/chainlink.d.ts.map +1 -0
  164. package/dist/prices/chainlink.js +116 -0
  165. package/dist/prices/chainlink.js.map +1 -0
  166. package/dist/prices/reserve-api.d.ts +7 -0
  167. package/dist/prices/reserve-api.d.ts.map +1 -0
  168. package/dist/prices/reserve-api.js +47 -0
  169. package/dist/prices/reserve-api.js.map +1 -0
  170. package/dist/rebalance/build-auction.d.ts +25 -0
  171. package/dist/rebalance/build-auction.d.ts.map +1 -0
  172. package/dist/rebalance/build-auction.js +73 -0
  173. package/dist/rebalance/build-auction.js.map +1 -0
  174. package/dist/rebalance/build-rebalance.d.ts +22 -0
  175. package/dist/rebalance/build-rebalance.d.ts.map +1 -0
  176. package/dist/rebalance/build-rebalance.js +30 -0
  177. package/dist/rebalance/build-rebalance.js.map +1 -0
  178. package/dist/rebalance/read-auction.d.ts +4 -0
  179. package/dist/rebalance/read-auction.d.ts.map +1 -0
  180. package/dist/rebalance/read-auction.js +31 -0
  181. package/dist/rebalance/read-auction.js.map +1 -0
  182. package/dist/rebalance/read-rebalance.d.ts +4 -0
  183. package/dist/rebalance/read-rebalance.d.ts.map +1 -0
  184. package/dist/rebalance/read-rebalance.js +50 -0
  185. package/dist/rebalance/read-rebalance.js.map +1 -0
  186. package/dist/rebalance/transform.d.ts +22 -0
  187. package/dist/rebalance/transform.d.ts.map +1 -0
  188. package/dist/rebalance/transform.js +47 -0
  189. package/dist/rebalance/transform.js.map +1 -0
  190. package/dist/revenue/compute-revenue.d.ts +45 -0
  191. package/dist/revenue/compute-revenue.d.ts.map +1 -0
  192. package/dist/revenue/compute-revenue.js +216 -0
  193. package/dist/revenue/compute-revenue.js.map +1 -0
  194. package/dist/revenue/fetch-revenue.d.ts +8 -0
  195. package/dist/revenue/fetch-revenue.d.ts.map +1 -0
  196. package/dist/revenue/fetch-revenue.js +182 -0
  197. package/dist/revenue/fetch-revenue.js.map +1 -0
  198. package/dist/revenue/fetch-rsr-burns.d.ts +9 -0
  199. package/dist/revenue/fetch-rsr-burns.d.ts.map +1 -0
  200. package/dist/revenue/fetch-rsr-burns.js +106 -0
  201. package/dist/revenue/fetch-rsr-burns.js.map +1 -0
  202. package/dist/types.d.ts +546 -0
  203. package/dist/types.d.ts.map +1 -0
  204. package/dist/types.js +2 -0
  205. package/dist/types.js.map +1 -0
  206. package/dist/utils/assert.d.ts +2 -0
  207. package/dist/utils/assert.d.ts.map +1 -0
  208. package/dist/utils/assert.js +5 -0
  209. package/dist/utils/assert.js.map +1 -0
  210. package/dist/utils/fetch-token-metadata.d.ts +7 -0
  211. package/dist/utils/fetch-token-metadata.d.ts.map +1 -0
  212. package/dist/utils/fetch-token-metadata.js +29 -0
  213. package/dist/utils/fetch-token-metadata.js.map +1 -0
  214. package/dist/utils/fetch-with-retry.d.ts +7 -0
  215. package/dist/utils/fetch-with-retry.d.ts.map +1 -0
  216. package/dist/utils/fetch-with-retry.js +38 -0
  217. package/dist/utils/fetch-with-retry.js.map +1 -0
  218. package/dist/utils/query-subgraph.d.ts +7 -0
  219. package/dist/utils/query-subgraph.d.ts.map +1 -0
  220. package/dist/utils/query-subgraph.js +25 -0
  221. package/dist/utils/query-subgraph.js.map +1 -0
  222. package/dist/utils/validate-price-control.d.ts +3 -0
  223. package/dist/utils/validate-price-control.d.ts.map +1 -0
  224. package/dist/utils/validate-price-control.js +6 -0
  225. package/dist/utils/validate-price-control.js.map +1 -0
  226. package/dist/vote-lock/build-vote-lock.d.ts +10 -0
  227. package/dist/vote-lock/build-vote-lock.d.ts.map +1 -0
  228. package/dist/vote-lock/build-vote-lock.js +73 -0
  229. package/dist/vote-lock/build-vote-lock.js.map +1 -0
  230. package/dist/vote-lock/read-vote-lock.d.ts +7 -0
  231. package/dist/vote-lock/read-vote-lock.d.ts.map +1 -0
  232. package/dist/vote-lock/read-vote-lock.js +64 -0
  233. package/dist/vote-lock/read-vote-lock.js.map +1 -0
  234. package/package.json +28 -0
@@ -0,0 +1,1430 @@
1
+ export default [
2
+ { inputs: [], stateMutability: 'nonpayable', type: 'constructor' },
3
+ { inputs: [], name: 'AccessControlBadConfirmation', type: 'error' },
4
+ {
5
+ inputs: [
6
+ { internalType: 'address', name: 'account', type: 'address' },
7
+ { internalType: 'bytes32', name: 'neededRole', type: 'bytes32' },
8
+ ],
9
+ name: 'AccessControlUnauthorizedAccount',
10
+ type: 'error',
11
+ },
12
+ {
13
+ inputs: [
14
+ { internalType: 'address', name: 'spender', type: 'address' },
15
+ { internalType: 'uint256', name: 'allowance', type: 'uint256' },
16
+ { internalType: 'uint256', name: 'needed', type: 'uint256' },
17
+ ],
18
+ name: 'ERC20InsufficientAllowance',
19
+ type: 'error',
20
+ },
21
+ {
22
+ inputs: [
23
+ { internalType: 'address', name: 'sender', type: 'address' },
24
+ { internalType: 'uint256', name: 'balance', type: 'uint256' },
25
+ { internalType: 'uint256', name: 'needed', type: 'uint256' },
26
+ ],
27
+ name: 'ERC20InsufficientBalance',
28
+ type: 'error',
29
+ },
30
+ {
31
+ inputs: [{ internalType: 'address', name: 'approver', type: 'address' }],
32
+ name: 'ERC20InvalidApprover',
33
+ type: 'error',
34
+ },
35
+ {
36
+ inputs: [{ internalType: 'address', name: 'receiver', type: 'address' }],
37
+ name: 'ERC20InvalidReceiver',
38
+ type: 'error',
39
+ },
40
+ {
41
+ inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],
42
+ name: 'ERC20InvalidSender',
43
+ type: 'error',
44
+ },
45
+ {
46
+ inputs: [{ internalType: 'address', name: 'spender', type: 'address' }],
47
+ name: 'ERC20InvalidSpender',
48
+ type: 'error',
49
+ },
50
+ {
51
+ inputs: [],
52
+ name: 'Folio__AuctionCannotBeOpenedWithoutRestriction',
53
+ type: 'error',
54
+ },
55
+ { inputs: [], name: 'Folio__AuctionNotOngoing', type: 'error' },
56
+ { inputs: [], name: 'Folio__BadFeeTotal', type: 'error' },
57
+ { inputs: [], name: 'Folio__BalanceNotRemovable', type: 'error' },
58
+ { inputs: [], name: 'Folio__BasketModificationFailed', type: 'error' },
59
+ { inputs: [], name: 'Folio__DuplicateAsset', type: 'error' },
60
+ { inputs: [], name: 'Folio__EmptyAssets', type: 'error' },
61
+ { inputs: [], name: 'Folio__EmptyAuction', type: 'error' },
62
+ { inputs: [], name: 'Folio__FeeRecipientInvalidAddress', type: 'error' },
63
+ { inputs: [], name: 'Folio__FeeRecipientInvalidFeeShare', type: 'error' },
64
+ { inputs: [], name: 'Folio__FolioDeprecated', type: 'error' },
65
+ { inputs: [], name: 'Folio__InsufficientBid', type: 'error' },
66
+ { inputs: [], name: 'Folio__InsufficientBuyAvailable', type: 'error' },
67
+ { inputs: [], name: 'Folio__InsufficientSellAvailable', type: 'error' },
68
+ { inputs: [], name: 'Folio__InsufficientSharesOut', type: 'error' },
69
+ { inputs: [], name: 'Folio__InvalidArrayLengths', type: 'error' },
70
+ { inputs: [], name: 'Folio__InvalidAsset', type: 'error' },
71
+ {
72
+ inputs: [{ internalType: 'address', name: 'asset', type: 'address' }],
73
+ name: 'Folio__InvalidAssetAmount',
74
+ type: 'error',
75
+ },
76
+ { inputs: [], name: 'Folio__InvalidAuctionLength', type: 'error' },
77
+ { inputs: [], name: 'Folio__InvalidLimits', type: 'error' },
78
+ { inputs: [], name: 'Folio__InvalidPrices', type: 'error' },
79
+ { inputs: [], name: 'Folio__InvalidRegistry', type: 'error' },
80
+ { inputs: [], name: 'Folio__InvalidTTL', type: 'error' },
81
+ { inputs: [], name: 'Folio__InvalidTransferToSelf', type: 'error' },
82
+ { inputs: [], name: 'Folio__InvalidWeights', type: 'error' },
83
+ { inputs: [], name: 'Folio__MintFeeTooHigh', type: 'error' },
84
+ { inputs: [], name: 'Folio__MixedAtomicSwaps', type: 'error' },
85
+ { inputs: [], name: 'Folio__NotRebalancing', type: 'error' },
86
+ { inputs: [], name: 'Folio__SlippageExceeded', type: 'error' },
87
+ { inputs: [], name: 'Folio__TVLFeeTooHigh', type: 'error' },
88
+ { inputs: [], name: 'Folio__TVLFeeTooLow', type: 'error' },
89
+ { inputs: [], name: 'Folio__TooManyFeeRecipients', type: 'error' },
90
+ { inputs: [], name: 'Folio__TrustedFillerRegistryAlreadySet', type: 'error' },
91
+ { inputs: [], name: 'Folio__TrustedFillerRegistryNotEnabled', type: 'error' },
92
+ { inputs: [], name: 'Folio__Unauthorized', type: 'error' },
93
+ { inputs: [], name: 'Folio__ZeroInitialShares', type: 'error' },
94
+ { inputs: [], name: 'InvalidInitialization', type: 'error' },
95
+ { inputs: [], name: 'NotInitializing', type: 'error' },
96
+ { inputs: [], name: 'ReentrancyGuardReentrantCall', type: 'error' },
97
+ {
98
+ inputs: [{ internalType: 'address', name: 'token', type: 'address' }],
99
+ name: 'SafeERC20FailedOperation',
100
+ type: 'error',
101
+ },
102
+ {
103
+ anonymous: false,
104
+ inputs: [
105
+ {
106
+ indexed: true,
107
+ internalType: 'address',
108
+ name: 'owner',
109
+ type: 'address',
110
+ },
111
+ {
112
+ indexed: true,
113
+ internalType: 'address',
114
+ name: 'spender',
115
+ type: 'address',
116
+ },
117
+ {
118
+ indexed: false,
119
+ internalType: 'uint256',
120
+ name: 'value',
121
+ type: 'uint256',
122
+ },
123
+ ],
124
+ name: 'Approval',
125
+ type: 'event',
126
+ },
127
+ {
128
+ anonymous: false,
129
+ inputs: [
130
+ {
131
+ indexed: true,
132
+ internalType: 'uint256',
133
+ name: 'auctionId',
134
+ type: 'uint256',
135
+ },
136
+ {
137
+ indexed: true,
138
+ internalType: 'address',
139
+ name: 'sellToken',
140
+ type: 'address',
141
+ },
142
+ {
143
+ indexed: true,
144
+ internalType: 'address',
145
+ name: 'buyToken',
146
+ type: 'address',
147
+ },
148
+ {
149
+ indexed: false,
150
+ internalType: 'uint256',
151
+ name: 'sellAmount',
152
+ type: 'uint256',
153
+ },
154
+ {
155
+ indexed: false,
156
+ internalType: 'uint256',
157
+ name: 'buyAmount',
158
+ type: 'uint256',
159
+ },
160
+ ],
161
+ name: 'AuctionBid',
162
+ type: 'event',
163
+ },
164
+ {
165
+ anonymous: false,
166
+ inputs: [
167
+ {
168
+ indexed: true,
169
+ internalType: 'uint256',
170
+ name: 'auctionId',
171
+ type: 'uint256',
172
+ },
173
+ ],
174
+ name: 'AuctionClosed',
175
+ type: 'event',
176
+ },
177
+ {
178
+ anonymous: false,
179
+ inputs: [
180
+ {
181
+ indexed: false,
182
+ internalType: 'uint256',
183
+ name: 'newAuctionDelay',
184
+ type: 'uint256',
185
+ },
186
+ ],
187
+ name: 'AuctionDelaySet',
188
+ type: 'event',
189
+ },
190
+ {
191
+ anonymous: false,
192
+ inputs: [
193
+ {
194
+ indexed: false,
195
+ internalType: 'uint256',
196
+ name: 'newAuctionLength',
197
+ type: 'uint256',
198
+ },
199
+ ],
200
+ name: 'AuctionLengthSet',
201
+ type: 'event',
202
+ },
203
+ {
204
+ anonymous: false,
205
+ inputs: [
206
+ {
207
+ indexed: true,
208
+ internalType: 'uint256',
209
+ name: 'rebalanceNonce',
210
+ type: 'uint256',
211
+ },
212
+ {
213
+ indexed: true,
214
+ internalType: 'uint256',
215
+ name: 'auctionId',
216
+ type: 'uint256',
217
+ },
218
+ {
219
+ indexed: false,
220
+ internalType: 'address[]',
221
+ name: 'tokens',
222
+ type: 'address[]',
223
+ },
224
+ {
225
+ components: [
226
+ { internalType: 'uint256', name: 'low', type: 'uint256' },
227
+ { internalType: 'uint256', name: 'spot', type: 'uint256' },
228
+ { internalType: 'uint256', name: 'high', type: 'uint256' },
229
+ ],
230
+ indexed: false,
231
+ internalType: 'struct IFolio.WeightRange[]',
232
+ name: 'weights',
233
+ type: 'tuple[]',
234
+ },
235
+ {
236
+ components: [
237
+ { internalType: 'uint256', name: 'low', type: 'uint256' },
238
+ { internalType: 'uint256', name: 'high', type: 'uint256' },
239
+ ],
240
+ indexed: false,
241
+ internalType: 'struct IFolio.PriceRange[]',
242
+ name: 'prices',
243
+ type: 'tuple[]',
244
+ },
245
+ {
246
+ components: [
247
+ { internalType: 'uint256', name: 'low', type: 'uint256' },
248
+ { internalType: 'uint256', name: 'spot', type: 'uint256' },
249
+ { internalType: 'uint256', name: 'high', type: 'uint256' },
250
+ ],
251
+ indexed: false,
252
+ internalType: 'struct IFolio.RebalanceLimits',
253
+ name: 'limits',
254
+ type: 'tuple',
255
+ },
256
+ {
257
+ indexed: false,
258
+ internalType: 'uint256',
259
+ name: 'startTime',
260
+ type: 'uint256',
261
+ },
262
+ {
263
+ indexed: false,
264
+ internalType: 'uint256',
265
+ name: 'endTime',
266
+ type: 'uint256',
267
+ },
268
+ ],
269
+ name: 'AuctionOpened',
270
+ type: 'event',
271
+ },
272
+ {
273
+ anonymous: false,
274
+ inputs: [
275
+ {
276
+ indexed: true,
277
+ internalType: 'uint256',
278
+ name: 'auctionId',
279
+ type: 'uint256',
280
+ },
281
+ {
282
+ indexed: false,
283
+ internalType: 'address',
284
+ name: 'filler',
285
+ type: 'address',
286
+ },
287
+ ],
288
+ name: 'AuctionTrustedFillCreated',
289
+ type: 'event',
290
+ },
291
+ {
292
+ anonymous: false,
293
+ inputs: [
294
+ {
295
+ indexed: true,
296
+ internalType: 'address',
297
+ name: 'token',
298
+ type: 'address',
299
+ },
300
+ ],
301
+ name: 'BasketTokenAdded',
302
+ type: 'event',
303
+ },
304
+ {
305
+ anonymous: false,
306
+ inputs: [
307
+ {
308
+ indexed: true,
309
+ internalType: 'address',
310
+ name: 'token',
311
+ type: 'address',
312
+ },
313
+ ],
314
+ name: 'BasketTokenRemoved',
315
+ type: 'event',
316
+ },
317
+ {
318
+ anonymous: false,
319
+ inputs: [
320
+ {
321
+ indexed: false,
322
+ internalType: 'address',
323
+ name: 'token',
324
+ type: 'address',
325
+ },
326
+ {
327
+ indexed: false,
328
+ internalType: 'uint256',
329
+ name: 'newDustAmount',
330
+ type: 'uint256',
331
+ },
332
+ ],
333
+ name: 'DustAmountSet',
334
+ type: 'event',
335
+ },
336
+ {
337
+ anonymous: false,
338
+ inputs: [
339
+ {
340
+ components: [
341
+ { internalType: 'address', name: 'recipient', type: 'address' },
342
+ { internalType: 'uint96', name: 'portion', type: 'uint96' },
343
+ ],
344
+ indexed: false,
345
+ internalType: 'struct IFolio.FeeRecipient[]',
346
+ name: 'recipients',
347
+ type: 'tuple[]',
348
+ },
349
+ ],
350
+ name: 'FeeRecipientsSet',
351
+ type: 'event',
352
+ },
353
+ { anonymous: false, inputs: [], name: 'FolioDeprecated', type: 'event' },
354
+ {
355
+ anonymous: false,
356
+ inputs: [
357
+ {
358
+ indexed: true,
359
+ internalType: 'address',
360
+ name: 'recipient',
361
+ type: 'address',
362
+ },
363
+ {
364
+ indexed: false,
365
+ internalType: 'uint256',
366
+ name: 'amount',
367
+ type: 'uint256',
368
+ },
369
+ ],
370
+ name: 'FolioFeePaid',
371
+ type: 'event',
372
+ },
373
+ {
374
+ anonymous: false,
375
+ inputs: [
376
+ {
377
+ indexed: false,
378
+ internalType: 'uint64',
379
+ name: 'version',
380
+ type: 'uint64',
381
+ },
382
+ ],
383
+ name: 'Initialized',
384
+ type: 'event',
385
+ },
386
+ {
387
+ anonymous: false,
388
+ inputs: [
389
+ {
390
+ indexed: false,
391
+ internalType: 'string',
392
+ name: 'newMandate',
393
+ type: 'string',
394
+ },
395
+ ],
396
+ name: 'MandateSet',
397
+ type: 'event',
398
+ },
399
+ {
400
+ anonymous: false,
401
+ inputs: [
402
+ {
403
+ indexed: false,
404
+ internalType: 'uint256',
405
+ name: 'newFee',
406
+ type: 'uint256',
407
+ },
408
+ ],
409
+ name: 'MintFeeSet',
410
+ type: 'event',
411
+ },
412
+ {
413
+ anonymous: false,
414
+ inputs: [
415
+ {
416
+ indexed: true,
417
+ internalType: 'address',
418
+ name: 'recipient',
419
+ type: 'address',
420
+ },
421
+ {
422
+ indexed: false,
423
+ internalType: 'uint256',
424
+ name: 'amount',
425
+ type: 'uint256',
426
+ },
427
+ ],
428
+ name: 'ProtocolFeePaid',
429
+ type: 'event',
430
+ },
431
+ {
432
+ anonymous: false,
433
+ inputs: [
434
+ {
435
+ components: [
436
+ { internalType: 'bool', name: 'weightControl', type: 'bool' },
437
+ {
438
+ internalType: 'enum IFolio.PriceControl',
439
+ name: 'priceControl',
440
+ type: 'uint8',
441
+ },
442
+ ],
443
+ indexed: false,
444
+ internalType: 'struct IFolio.RebalanceControl',
445
+ name: 'newControl',
446
+ type: 'tuple',
447
+ },
448
+ ],
449
+ name: 'RebalanceControlSet',
450
+ type: 'event',
451
+ },
452
+ {
453
+ anonymous: false,
454
+ inputs: [
455
+ {
456
+ indexed: false,
457
+ internalType: 'uint256',
458
+ name: 'nonce',
459
+ type: 'uint256',
460
+ },
461
+ ],
462
+ name: 'RebalanceEnded',
463
+ type: 'event',
464
+ },
465
+ {
466
+ anonymous: false,
467
+ inputs: [
468
+ {
469
+ indexed: false,
470
+ internalType: 'uint256',
471
+ name: 'nonce',
472
+ type: 'uint256',
473
+ },
474
+ {
475
+ indexed: false,
476
+ internalType: 'enum IFolio.PriceControl',
477
+ name: 'priceControl',
478
+ type: 'uint8',
479
+ },
480
+ {
481
+ indexed: false,
482
+ internalType: 'address[]',
483
+ name: 'tokens',
484
+ type: 'address[]',
485
+ },
486
+ {
487
+ components: [
488
+ { internalType: 'uint256', name: 'low', type: 'uint256' },
489
+ { internalType: 'uint256', name: 'spot', type: 'uint256' },
490
+ { internalType: 'uint256', name: 'high', type: 'uint256' },
491
+ ],
492
+ indexed: false,
493
+ internalType: 'struct IFolio.WeightRange[]',
494
+ name: 'weights',
495
+ type: 'tuple[]',
496
+ },
497
+ {
498
+ components: [
499
+ { internalType: 'uint256', name: 'low', type: 'uint256' },
500
+ { internalType: 'uint256', name: 'high', type: 'uint256' },
501
+ ],
502
+ indexed: false,
503
+ internalType: 'struct IFolio.PriceRange[]',
504
+ name: 'prices',
505
+ type: 'tuple[]',
506
+ },
507
+ {
508
+ components: [
509
+ { internalType: 'uint256', name: 'low', type: 'uint256' },
510
+ { internalType: 'uint256', name: 'spot', type: 'uint256' },
511
+ { internalType: 'uint256', name: 'high', type: 'uint256' },
512
+ ],
513
+ indexed: false,
514
+ internalType: 'struct IFolio.RebalanceLimits',
515
+ name: 'limits',
516
+ type: 'tuple',
517
+ },
518
+ {
519
+ indexed: false,
520
+ internalType: 'uint256',
521
+ name: 'restrictedUntil',
522
+ type: 'uint256',
523
+ },
524
+ {
525
+ indexed: false,
526
+ internalType: 'uint256',
527
+ name: 'availableUntil',
528
+ type: 'uint256',
529
+ },
530
+ ],
531
+ name: 'RebalanceStarted',
532
+ type: 'event',
533
+ },
534
+ {
535
+ anonymous: false,
536
+ inputs: [
537
+ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' },
538
+ {
539
+ indexed: true,
540
+ internalType: 'bytes32',
541
+ name: 'previousAdminRole',
542
+ type: 'bytes32',
543
+ },
544
+ {
545
+ indexed: true,
546
+ internalType: 'bytes32',
547
+ name: 'newAdminRole',
548
+ type: 'bytes32',
549
+ },
550
+ ],
551
+ name: 'RoleAdminChanged',
552
+ type: 'event',
553
+ },
554
+ {
555
+ anonymous: false,
556
+ inputs: [
557
+ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' },
558
+ {
559
+ indexed: true,
560
+ internalType: 'address',
561
+ name: 'account',
562
+ type: 'address',
563
+ },
564
+ {
565
+ indexed: true,
566
+ internalType: 'address',
567
+ name: 'sender',
568
+ type: 'address',
569
+ },
570
+ ],
571
+ name: 'RoleGranted',
572
+ type: 'event',
573
+ },
574
+ {
575
+ anonymous: false,
576
+ inputs: [
577
+ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' },
578
+ {
579
+ indexed: true,
580
+ internalType: 'address',
581
+ name: 'account',
582
+ type: 'address',
583
+ },
584
+ {
585
+ indexed: true,
586
+ internalType: 'address',
587
+ name: 'sender',
588
+ type: 'address',
589
+ },
590
+ ],
591
+ name: 'RoleRevoked',
592
+ type: 'event',
593
+ },
594
+ {
595
+ anonymous: false,
596
+ inputs: [
597
+ {
598
+ indexed: false,
599
+ internalType: 'uint256',
600
+ name: 'newFee',
601
+ type: 'uint256',
602
+ },
603
+ {
604
+ indexed: false,
605
+ internalType: 'uint256',
606
+ name: 'feeAnnually',
607
+ type: 'uint256',
608
+ },
609
+ ],
610
+ name: 'TVLFeeSet',
611
+ type: 'event',
612
+ },
613
+ {
614
+ anonymous: false,
615
+ inputs: [
616
+ { indexed: true, internalType: 'address', name: 'from', type: 'address' },
617
+ { indexed: true, internalType: 'address', name: 'to', type: 'address' },
618
+ {
619
+ indexed: false,
620
+ internalType: 'uint256',
621
+ name: 'value',
622
+ type: 'uint256',
623
+ },
624
+ ],
625
+ name: 'Transfer',
626
+ type: 'event',
627
+ },
628
+ {
629
+ anonymous: false,
630
+ inputs: [
631
+ {
632
+ indexed: false,
633
+ internalType: 'address',
634
+ name: 'trustedFillerRegistry',
635
+ type: 'address',
636
+ },
637
+ { indexed: false, internalType: 'bool', name: 'isEnabled', type: 'bool' },
638
+ ],
639
+ name: 'TrustedFillerRegistrySet',
640
+ type: 'event',
641
+ },
642
+ {
643
+ inputs: [],
644
+ name: 'DEFAULT_ADMIN_ROLE',
645
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
646
+ stateMutability: 'view',
647
+ type: 'function',
648
+ },
649
+ {
650
+ inputs: [
651
+ { internalType: 'contract IERC20', name: 'token', type: 'address' },
652
+ ],
653
+ name: 'addToBasket',
654
+ outputs: [],
655
+ stateMutability: 'nonpayable',
656
+ type: 'function',
657
+ },
658
+ {
659
+ inputs: [
660
+ { internalType: 'address', name: 'owner', type: 'address' },
661
+ { internalType: 'address', name: 'spender', type: 'address' },
662
+ ],
663
+ name: 'allowance',
664
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
665
+ stateMutability: 'view',
666
+ type: 'function',
667
+ },
668
+ {
669
+ inputs: [
670
+ { internalType: 'address', name: 'spender', type: 'address' },
671
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
672
+ ],
673
+ name: 'approve',
674
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
675
+ stateMutability: 'nonpayable',
676
+ type: 'function',
677
+ },
678
+ {
679
+ inputs: [],
680
+ name: 'auctionLength',
681
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
682
+ stateMutability: 'view',
683
+ type: 'function',
684
+ },
685
+ {
686
+ inputs: [{ internalType: 'uint256', name: 'id', type: 'uint256' }],
687
+ name: 'auctions',
688
+ outputs: [
689
+ { internalType: 'uint256', name: 'rebalanceNonce', type: 'uint256' },
690
+ { internalType: 'uint256', name: 'startTime', type: 'uint256' },
691
+ { internalType: 'uint256', name: 'endTime', type: 'uint256' },
692
+ ],
693
+ stateMutability: 'view',
694
+ type: 'function',
695
+ },
696
+ {
697
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
698
+ name: 'balanceOf',
699
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
700
+ stateMutability: 'view',
701
+ type: 'function',
702
+ },
703
+ {
704
+ inputs: [
705
+ { internalType: 'uint256', name: 'auctionId', type: 'uint256' },
706
+ { internalType: 'contract IERC20', name: 'sellToken', type: 'address' },
707
+ { internalType: 'contract IERC20', name: 'buyToken', type: 'address' },
708
+ { internalType: 'uint256', name: 'sellAmount', type: 'uint256' },
709
+ { internalType: 'uint256', name: 'maxBuyAmount', type: 'uint256' },
710
+ { internalType: 'bool', name: 'withCallback', type: 'bool' },
711
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
712
+ ],
713
+ name: 'bid',
714
+ outputs: [{ internalType: 'uint256', name: 'boughtAmt', type: 'uint256' }],
715
+ stateMutability: 'nonpayable',
716
+ type: 'function',
717
+ },
718
+ {
719
+ inputs: [{ internalType: 'uint256', name: 'auctionId', type: 'uint256' }],
720
+ name: 'closeAuction',
721
+ outputs: [],
722
+ stateMutability: 'nonpayable',
723
+ type: 'function',
724
+ },
725
+ {
726
+ inputs: [
727
+ { internalType: 'uint256', name: 'auctionId', type: 'uint256' },
728
+ { internalType: 'contract IERC20', name: 'sellToken', type: 'address' },
729
+ { internalType: 'contract IERC20', name: 'buyToken', type: 'address' },
730
+ { internalType: 'address', name: 'targetFiller', type: 'address' },
731
+ { internalType: 'bytes32', name: 'deploymentSalt', type: 'bytes32' },
732
+ ],
733
+ name: 'createTrustedFill',
734
+ outputs: [
735
+ {
736
+ internalType: 'contract IBaseTrustedFiller',
737
+ name: 'filler',
738
+ type: 'address',
739
+ },
740
+ ],
741
+ stateMutability: 'nonpayable',
742
+ type: 'function',
743
+ },
744
+ {
745
+ inputs: [],
746
+ name: 'daoFeeRegistry',
747
+ outputs: [
748
+ {
749
+ internalType: 'contract IFolioDAOFeeRegistry',
750
+ name: '',
751
+ type: 'address',
752
+ },
753
+ ],
754
+ stateMutability: 'view',
755
+ type: 'function',
756
+ },
757
+ {
758
+ inputs: [],
759
+ name: 'daoPendingFeeShares',
760
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
761
+ stateMutability: 'view',
762
+ type: 'function',
763
+ },
764
+ {
765
+ inputs: [],
766
+ name: 'decimals',
767
+ outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],
768
+ stateMutability: 'view',
769
+ type: 'function',
770
+ },
771
+ {
772
+ inputs: [],
773
+ name: 'deprecateFolio',
774
+ outputs: [],
775
+ stateMutability: 'nonpayable',
776
+ type: 'function',
777
+ },
778
+ {
779
+ inputs: [],
780
+ name: 'distributeFees',
781
+ outputs: [],
782
+ stateMutability: 'nonpayable',
783
+ type: 'function',
784
+ },
785
+ {
786
+ inputs: [],
787
+ name: 'endRebalance',
788
+ outputs: [],
789
+ stateMutability: 'nonpayable',
790
+ type: 'function',
791
+ },
792
+ {
793
+ inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
794
+ name: 'feeRecipients',
795
+ outputs: [
796
+ { internalType: 'address', name: 'recipient', type: 'address' },
797
+ { internalType: 'uint96', name: 'portion', type: 'uint96' },
798
+ ],
799
+ stateMutability: 'view',
800
+ type: 'function',
801
+ },
802
+ {
803
+ inputs: [],
804
+ name: 'feeRecipientsPendingFeeShares',
805
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
806
+ stateMutability: 'view',
807
+ type: 'function',
808
+ },
809
+ {
810
+ inputs: [
811
+ { internalType: 'uint256', name: 'auctionId', type: 'uint256' },
812
+ { internalType: 'contract IERC20', name: 'sellToken', type: 'address' },
813
+ { internalType: 'contract IERC20', name: 'buyToken', type: 'address' },
814
+ { internalType: 'uint256', name: 'timestamp', type: 'uint256' },
815
+ { internalType: 'uint256', name: 'maxSellAmount', type: 'uint256' },
816
+ ],
817
+ name: 'getBid',
818
+ outputs: [
819
+ { internalType: 'uint256', name: 'sellAmount', type: 'uint256' },
820
+ { internalType: 'uint256', name: 'bidAmount', type: 'uint256' },
821
+ { internalType: 'uint256', name: 'price', type: 'uint256' },
822
+ ],
823
+ stateMutability: 'view',
824
+ type: 'function',
825
+ },
826
+ {
827
+ inputs: [],
828
+ name: 'getPendingFeeShares',
829
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
830
+ stateMutability: 'view',
831
+ type: 'function',
832
+ },
833
+ {
834
+ inputs: [],
835
+ name: 'getRebalance',
836
+ outputs: [
837
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
838
+ {
839
+ internalType: 'enum IFolio.PriceControl',
840
+ name: 'priceControl',
841
+ type: 'uint8',
842
+ },
843
+ {
844
+ components: [
845
+ { internalType: 'address', name: 'token', type: 'address' },
846
+ {
847
+ components: [
848
+ { internalType: 'uint256', name: 'low', type: 'uint256' },
849
+ { internalType: 'uint256', name: 'spot', type: 'uint256' },
850
+ { internalType: 'uint256', name: 'high', type: 'uint256' },
851
+ ],
852
+ internalType: 'struct IFolio.WeightRange',
853
+ name: 'weight',
854
+ type: 'tuple',
855
+ },
856
+ {
857
+ components: [
858
+ { internalType: 'uint256', name: 'low', type: 'uint256' },
859
+ { internalType: 'uint256', name: 'high', type: 'uint256' },
860
+ ],
861
+ internalType: 'struct IFolio.PriceRange',
862
+ name: 'price',
863
+ type: 'tuple',
864
+ },
865
+ { internalType: 'uint256', name: 'maxAuctionSize', type: 'uint256' },
866
+ { internalType: 'bool', name: 'inRebalance', type: 'bool' },
867
+ ],
868
+ internalType: 'struct IFolio.TokenRebalanceParams[]',
869
+ name: 'tokens',
870
+ type: 'tuple[]',
871
+ },
872
+ {
873
+ components: [
874
+ { internalType: 'uint256', name: 'low', type: 'uint256' },
875
+ { internalType: 'uint256', name: 'spot', type: 'uint256' },
876
+ { internalType: 'uint256', name: 'high', type: 'uint256' },
877
+ ],
878
+ internalType: 'struct IFolio.RebalanceLimits',
879
+ name: 'limits',
880
+ type: 'tuple',
881
+ },
882
+ {
883
+ components: [
884
+ { internalType: 'uint256', name: 'startedAt', type: 'uint256' },
885
+ { internalType: 'uint256', name: 'restrictedUntil', type: 'uint256' },
886
+ { internalType: 'uint256', name: 'availableUntil', type: 'uint256' },
887
+ ],
888
+ internalType: 'struct IFolio.RebalanceTimestamps',
889
+ name: 'timestamps',
890
+ type: 'tuple',
891
+ },
892
+ { internalType: 'bool', name: 'bidsEnabled', type: 'bool' },
893
+ ],
894
+ stateMutability: 'view',
895
+ type: 'function',
896
+ },
897
+ {
898
+ inputs: [{ internalType: 'bytes32', name: 'role', type: 'bytes32' }],
899
+ name: 'getRoleAdmin',
900
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
901
+ stateMutability: 'view',
902
+ type: 'function',
903
+ },
904
+ {
905
+ inputs: [
906
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
907
+ { internalType: 'uint256', name: 'index', type: 'uint256' },
908
+ ],
909
+ name: 'getRoleMember',
910
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
911
+ stateMutability: 'view',
912
+ type: 'function',
913
+ },
914
+ {
915
+ inputs: [{ internalType: 'bytes32', name: 'role', type: 'bytes32' }],
916
+ name: 'getRoleMemberCount',
917
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
918
+ stateMutability: 'view',
919
+ type: 'function',
920
+ },
921
+ {
922
+ inputs: [{ internalType: 'bytes32', name: 'role', type: 'bytes32' }],
923
+ name: 'getRoleMembers',
924
+ outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }],
925
+ stateMutability: 'view',
926
+ type: 'function',
927
+ },
928
+ {
929
+ inputs: [
930
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
931
+ { internalType: 'address', name: 'account', type: 'address' },
932
+ ],
933
+ name: 'grantRole',
934
+ outputs: [],
935
+ stateMutability: 'nonpayable',
936
+ type: 'function',
937
+ },
938
+ {
939
+ inputs: [
940
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
941
+ { internalType: 'address', name: 'account', type: 'address' },
942
+ ],
943
+ name: 'hasRole',
944
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
945
+ stateMutability: 'view',
946
+ type: 'function',
947
+ },
948
+ {
949
+ inputs: [
950
+ {
951
+ components: [
952
+ { internalType: 'string', name: 'name', type: 'string' },
953
+ { internalType: 'string', name: 'symbol', type: 'string' },
954
+ { internalType: 'address[]', name: 'assets', type: 'address[]' },
955
+ { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' },
956
+ { internalType: 'uint256', name: 'initialShares', type: 'uint256' },
957
+ ],
958
+ internalType: 'struct IFolio.FolioBasicDetails',
959
+ name: '_basicDetails',
960
+ type: 'tuple',
961
+ },
962
+ {
963
+ components: [
964
+ { internalType: 'uint256', name: 'auctionLength', type: 'uint256' },
965
+ {
966
+ components: [
967
+ { internalType: 'address', name: 'recipient', type: 'address' },
968
+ { internalType: 'uint96', name: 'portion', type: 'uint96' },
969
+ ],
970
+ internalType: 'struct IFolio.FeeRecipient[]',
971
+ name: 'feeRecipients',
972
+ type: 'tuple[]',
973
+ },
974
+ { internalType: 'uint256', name: 'tvlFee', type: 'uint256' },
975
+ { internalType: 'uint256', name: 'mintFee', type: 'uint256' },
976
+ { internalType: 'string', name: 'mandate', type: 'string' },
977
+ ],
978
+ internalType: 'struct IFolio.FolioAdditionalDetails',
979
+ name: '_additionalDetails',
980
+ type: 'tuple',
981
+ },
982
+ {
983
+ components: [
984
+ { internalType: 'address', name: 'daoFeeRegistry', type: 'address' },
985
+ {
986
+ internalType: 'address',
987
+ name: 'trustedFillerRegistry',
988
+ type: 'address',
989
+ },
990
+ ],
991
+ internalType: 'struct IFolio.FolioRegistryIndex',
992
+ name: '_folioRegistries',
993
+ type: 'tuple',
994
+ },
995
+ {
996
+ components: [
997
+ { internalType: 'bool', name: 'trustedFillerEnabled', type: 'bool' },
998
+ {
999
+ components: [
1000
+ { internalType: 'bool', name: 'weightControl', type: 'bool' },
1001
+ {
1002
+ internalType: 'enum IFolio.PriceControl',
1003
+ name: 'priceControl',
1004
+ type: 'uint8',
1005
+ },
1006
+ ],
1007
+ internalType: 'struct IFolio.RebalanceControl',
1008
+ name: 'rebalanceControl',
1009
+ type: 'tuple',
1010
+ },
1011
+ ],
1012
+ internalType: 'struct IFolio.FolioFlags',
1013
+ name: '_folioFlags',
1014
+ type: 'tuple',
1015
+ },
1016
+ { internalType: 'address', name: '_creator', type: 'address' },
1017
+ ],
1018
+ name: 'initialize',
1019
+ outputs: [],
1020
+ stateMutability: 'nonpayable',
1021
+ type: 'function',
1022
+ },
1023
+ {
1024
+ inputs: [],
1025
+ name: 'isDeprecated',
1026
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1027
+ stateMutability: 'view',
1028
+ type: 'function',
1029
+ },
1030
+ {
1031
+ inputs: [],
1032
+ name: 'lastPoke',
1033
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1034
+ stateMutability: 'view',
1035
+ type: 'function',
1036
+ },
1037
+ {
1038
+ inputs: [],
1039
+ name: 'mandate',
1040
+ outputs: [{ internalType: 'string', name: '', type: 'string' }],
1041
+ stateMutability: 'view',
1042
+ type: 'function',
1043
+ },
1044
+ {
1045
+ inputs: [
1046
+ { internalType: 'uint256', name: 'shares', type: 'uint256' },
1047
+ { internalType: 'address', name: 'receiver', type: 'address' },
1048
+ { internalType: 'uint256', name: 'minSharesOut', type: 'uint256' },
1049
+ ],
1050
+ name: 'mint',
1051
+ outputs: [
1052
+ { internalType: 'address[]', name: '_assets', type: 'address[]' },
1053
+ { internalType: 'uint256[]', name: '_amounts', type: 'uint256[]' },
1054
+ ],
1055
+ stateMutability: 'nonpayable',
1056
+ type: 'function',
1057
+ },
1058
+ {
1059
+ inputs: [],
1060
+ name: 'mintFee',
1061
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1062
+ stateMutability: 'view',
1063
+ type: 'function',
1064
+ },
1065
+ {
1066
+ inputs: [],
1067
+ name: 'name',
1068
+ outputs: [{ internalType: 'string', name: '', type: 'string' }],
1069
+ stateMutability: 'view',
1070
+ type: 'function',
1071
+ },
1072
+ {
1073
+ inputs: [],
1074
+ name: 'nextAuctionId',
1075
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1076
+ stateMutability: 'view',
1077
+ type: 'function',
1078
+ },
1079
+ {
1080
+ inputs: [
1081
+ { internalType: 'uint256', name: 'rebalanceNonce', type: 'uint256' },
1082
+ { internalType: 'address[]', name: 'tokens', type: 'address[]' },
1083
+ {
1084
+ components: [
1085
+ { internalType: 'uint256', name: 'low', type: 'uint256' },
1086
+ { internalType: 'uint256', name: 'spot', type: 'uint256' },
1087
+ { internalType: 'uint256', name: 'high', type: 'uint256' },
1088
+ ],
1089
+ internalType: 'struct IFolio.WeightRange[]',
1090
+ name: 'newWeights',
1091
+ type: 'tuple[]',
1092
+ },
1093
+ {
1094
+ components: [
1095
+ { internalType: 'uint256', name: 'low', type: 'uint256' },
1096
+ { internalType: 'uint256', name: 'high', type: 'uint256' },
1097
+ ],
1098
+ internalType: 'struct IFolio.PriceRange[]',
1099
+ name: 'newPrices',
1100
+ type: 'tuple[]',
1101
+ },
1102
+ {
1103
+ components: [
1104
+ { internalType: 'uint256', name: 'low', type: 'uint256' },
1105
+ { internalType: 'uint256', name: 'spot', type: 'uint256' },
1106
+ { internalType: 'uint256', name: 'high', type: 'uint256' },
1107
+ ],
1108
+ internalType: 'struct IFolio.RebalanceLimits',
1109
+ name: 'newLimits',
1110
+ type: 'tuple',
1111
+ },
1112
+ ],
1113
+ name: 'openAuction',
1114
+ outputs: [{ internalType: 'uint256', name: 'auctionId', type: 'uint256' }],
1115
+ stateMutability: 'nonpayable',
1116
+ type: 'function',
1117
+ },
1118
+ {
1119
+ inputs: [
1120
+ { internalType: 'uint256', name: 'rebalanceNonce', type: 'uint256' },
1121
+ ],
1122
+ name: 'openAuctionUnrestricted',
1123
+ outputs: [{ internalType: 'uint256', name: 'auctionId', type: 'uint256' }],
1124
+ stateMutability: 'nonpayable',
1125
+ type: 'function',
1126
+ },
1127
+ {
1128
+ inputs: [],
1129
+ name: 'poke',
1130
+ outputs: [],
1131
+ stateMutability: 'nonpayable',
1132
+ type: 'function',
1133
+ },
1134
+ {
1135
+ inputs: [],
1136
+ name: 'rebalanceControl',
1137
+ outputs: [
1138
+ { internalType: 'bool', name: 'weightControl', type: 'bool' },
1139
+ {
1140
+ internalType: 'enum IFolio.PriceControl',
1141
+ name: 'priceControl',
1142
+ type: 'uint8',
1143
+ },
1144
+ ],
1145
+ stateMutability: 'view',
1146
+ type: 'function',
1147
+ },
1148
+ {
1149
+ inputs: [
1150
+ { internalType: 'uint256', name: 'shares', type: 'uint256' },
1151
+ { internalType: 'address', name: 'receiver', type: 'address' },
1152
+ { internalType: 'address[]', name: 'assets', type: 'address[]' },
1153
+ { internalType: 'uint256[]', name: 'minAmountsOut', type: 'uint256[]' },
1154
+ ],
1155
+ name: 'redeem',
1156
+ outputs: [
1157
+ { internalType: 'uint256[]', name: '_amounts', type: 'uint256[]' },
1158
+ ],
1159
+ stateMutability: 'nonpayable',
1160
+ type: 'function',
1161
+ },
1162
+ {
1163
+ inputs: [
1164
+ { internalType: 'contract IERC20', name: 'token', type: 'address' },
1165
+ ],
1166
+ name: 'removeFromBasket',
1167
+ outputs: [],
1168
+ stateMutability: 'nonpayable',
1169
+ type: 'function',
1170
+ },
1171
+ {
1172
+ inputs: [
1173
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
1174
+ { internalType: 'address', name: 'callerConfirmation', type: 'address' },
1175
+ ],
1176
+ name: 'renounceRole',
1177
+ outputs: [],
1178
+ stateMutability: 'nonpayable',
1179
+ type: 'function',
1180
+ },
1181
+ {
1182
+ inputs: [
1183
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
1184
+ { internalType: 'address', name: 'account', type: 'address' },
1185
+ ],
1186
+ name: 'revokeRole',
1187
+ outputs: [],
1188
+ stateMutability: 'nonpayable',
1189
+ type: 'function',
1190
+ },
1191
+ {
1192
+ inputs: [{ internalType: 'uint256', name: '_newLength', type: 'uint256' }],
1193
+ name: 'setAuctionLength',
1194
+ outputs: [],
1195
+ stateMutability: 'nonpayable',
1196
+ type: 'function',
1197
+ },
1198
+ {
1199
+ inputs: [
1200
+ {
1201
+ components: [
1202
+ { internalType: 'address', name: 'recipient', type: 'address' },
1203
+ { internalType: 'uint96', name: 'portion', type: 'uint96' },
1204
+ ],
1205
+ internalType: 'struct IFolio.FeeRecipient[]',
1206
+ name: '_newRecipients',
1207
+ type: 'tuple[]',
1208
+ },
1209
+ ],
1210
+ name: 'setFeeRecipients',
1211
+ outputs: [],
1212
+ stateMutability: 'nonpayable',
1213
+ type: 'function',
1214
+ },
1215
+ {
1216
+ inputs: [{ internalType: 'string', name: '_newMandate', type: 'string' }],
1217
+ name: 'setMandate',
1218
+ outputs: [],
1219
+ stateMutability: 'nonpayable',
1220
+ type: 'function',
1221
+ },
1222
+ {
1223
+ inputs: [{ internalType: 'uint256', name: '_newFee', type: 'uint256' }],
1224
+ name: 'setMintFee',
1225
+ outputs: [],
1226
+ stateMutability: 'nonpayable',
1227
+ type: 'function',
1228
+ },
1229
+ {
1230
+ inputs: [
1231
+ {
1232
+ components: [
1233
+ { internalType: 'bool', name: 'weightControl', type: 'bool' },
1234
+ {
1235
+ internalType: 'enum IFolio.PriceControl',
1236
+ name: 'priceControl',
1237
+ type: 'uint8',
1238
+ },
1239
+ ],
1240
+ internalType: 'struct IFolio.RebalanceControl',
1241
+ name: '_rebalanceControl',
1242
+ type: 'tuple',
1243
+ },
1244
+ ],
1245
+ name: 'setRebalanceControl',
1246
+ outputs: [],
1247
+ stateMutability: 'nonpayable',
1248
+ type: 'function',
1249
+ },
1250
+ {
1251
+ inputs: [{ internalType: 'uint256', name: '_newFee', type: 'uint256' }],
1252
+ name: 'setTVLFee',
1253
+ outputs: [],
1254
+ stateMutability: 'nonpayable',
1255
+ type: 'function',
1256
+ },
1257
+ {
1258
+ inputs: [
1259
+ { internalType: 'address', name: '_newFillerRegistry', type: 'address' },
1260
+ { internalType: 'bool', name: '_enabled', type: 'bool' },
1261
+ ],
1262
+ name: 'setTrustedFillerRegistry',
1263
+ outputs: [],
1264
+ stateMutability: 'nonpayable',
1265
+ type: 'function',
1266
+ },
1267
+ {
1268
+ inputs: [
1269
+ {
1270
+ components: [
1271
+ { internalType: 'address', name: 'token', type: 'address' },
1272
+ {
1273
+ components: [
1274
+ { internalType: 'uint256', name: 'low', type: 'uint256' },
1275
+ { internalType: 'uint256', name: 'spot', type: 'uint256' },
1276
+ { internalType: 'uint256', name: 'high', type: 'uint256' },
1277
+ ],
1278
+ internalType: 'struct IFolio.WeightRange',
1279
+ name: 'weight',
1280
+ type: 'tuple',
1281
+ },
1282
+ {
1283
+ components: [
1284
+ { internalType: 'uint256', name: 'low', type: 'uint256' },
1285
+ { internalType: 'uint256', name: 'high', type: 'uint256' },
1286
+ ],
1287
+ internalType: 'struct IFolio.PriceRange',
1288
+ name: 'price',
1289
+ type: 'tuple',
1290
+ },
1291
+ { internalType: 'uint256', name: 'maxAuctionSize', type: 'uint256' },
1292
+ { internalType: 'bool', name: 'inRebalance', type: 'bool' },
1293
+ ],
1294
+ internalType: 'struct IFolio.TokenRebalanceParams[]',
1295
+ name: 'tokens',
1296
+ type: 'tuple[]',
1297
+ },
1298
+ {
1299
+ components: [
1300
+ { internalType: 'uint256', name: 'low', type: 'uint256' },
1301
+ { internalType: 'uint256', name: 'spot', type: 'uint256' },
1302
+ { internalType: 'uint256', name: 'high', type: 'uint256' },
1303
+ ],
1304
+ internalType: 'struct IFolio.RebalanceLimits',
1305
+ name: 'limits',
1306
+ type: 'tuple',
1307
+ },
1308
+ {
1309
+ internalType: 'uint256',
1310
+ name: 'auctionLauncherWindow',
1311
+ type: 'uint256',
1312
+ },
1313
+ { internalType: 'uint256', name: 'ttl', type: 'uint256' },
1314
+ ],
1315
+ name: 'startRebalance',
1316
+ outputs: [],
1317
+ stateMutability: 'nonpayable',
1318
+ type: 'function',
1319
+ },
1320
+ {
1321
+ inputs: [],
1322
+ name: 'stateChangeActive',
1323
+ outputs: [
1324
+ { internalType: 'bool', name: 'syncStateChangeActive', type: 'bool' },
1325
+ { internalType: 'bool', name: 'asyncStateChangeActive', type: 'bool' },
1326
+ ],
1327
+ stateMutability: 'view',
1328
+ type: 'function',
1329
+ },
1330
+ {
1331
+ inputs: [{ internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }],
1332
+ name: 'supportsInterface',
1333
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1334
+ stateMutability: 'view',
1335
+ type: 'function',
1336
+ },
1337
+ {
1338
+ inputs: [],
1339
+ name: 'symbol',
1340
+ outputs: [{ internalType: 'string', name: '', type: 'string' }],
1341
+ stateMutability: 'view',
1342
+ type: 'function',
1343
+ },
1344
+ {
1345
+ inputs: [
1346
+ { internalType: 'uint256', name: 'shares', type: 'uint256' },
1347
+ { internalType: 'enum Math.Rounding', name: 'rounding', type: 'uint8' },
1348
+ ],
1349
+ name: 'toAssets',
1350
+ outputs: [
1351
+ { internalType: 'address[]', name: '_assets', type: 'address[]' },
1352
+ { internalType: 'uint256[]', name: '_amounts', type: 'uint256[]' },
1353
+ ],
1354
+ stateMutability: 'view',
1355
+ type: 'function',
1356
+ },
1357
+ {
1358
+ inputs: [],
1359
+ name: 'totalAssets',
1360
+ outputs: [
1361
+ { internalType: 'address[]', name: '_assets', type: 'address[]' },
1362
+ { internalType: 'uint256[]', name: '_amounts', type: 'uint256[]' },
1363
+ ],
1364
+ stateMutability: 'view',
1365
+ type: 'function',
1366
+ },
1367
+ {
1368
+ inputs: [],
1369
+ name: 'totalSupply',
1370
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1371
+ stateMutability: 'view',
1372
+ type: 'function',
1373
+ },
1374
+ {
1375
+ inputs: [
1376
+ { internalType: 'address', name: 'to', type: 'address' },
1377
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
1378
+ ],
1379
+ name: 'transfer',
1380
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1381
+ stateMutability: 'nonpayable',
1382
+ type: 'function',
1383
+ },
1384
+ {
1385
+ inputs: [
1386
+ { internalType: 'address', name: 'from', type: 'address' },
1387
+ { internalType: 'address', name: 'to', type: 'address' },
1388
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
1389
+ ],
1390
+ name: 'transferFrom',
1391
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1392
+ stateMutability: 'nonpayable',
1393
+ type: 'function',
1394
+ },
1395
+ {
1396
+ inputs: [],
1397
+ name: 'trustedFillerEnabled',
1398
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1399
+ stateMutability: 'view',
1400
+ type: 'function',
1401
+ },
1402
+ {
1403
+ inputs: [],
1404
+ name: 'trustedFillerRegistry',
1405
+ outputs: [
1406
+ {
1407
+ internalType: 'contract ITrustedFillerRegistry',
1408
+ name: '',
1409
+ type: 'address',
1410
+ },
1411
+ ],
1412
+ stateMutability: 'view',
1413
+ type: 'function',
1414
+ },
1415
+ {
1416
+ inputs: [],
1417
+ name: 'tvlFee',
1418
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1419
+ stateMutability: 'view',
1420
+ type: 'function',
1421
+ },
1422
+ {
1423
+ inputs: [],
1424
+ name: 'version',
1425
+ outputs: [{ internalType: 'string', name: '', type: 'string' }],
1426
+ stateMutability: 'pure',
1427
+ type: 'function',
1428
+ },
1429
+ ];
1430
+ //# sourceMappingURL=folio.js.map