@ripe-finance/sdk 1.14.1 → 1.15.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 (197) hide show
  1. package/dist/contracts/AuctionHouse.d.ts +126 -60
  2. package/dist/contracts/AuctionHouse.d.ts.map +1 -1
  3. package/dist/contracts/AuctionHouse.js +145 -75
  4. package/dist/contracts/BondRoom.js +1 -1
  5. package/dist/contracts/CreditEngine.d.ts +741 -272
  6. package/dist/contracts/CreditEngine.d.ts.map +1 -1
  7. package/dist/contracts/CreditEngine.js +820 -266
  8. package/dist/contracts/CreditRedeem.d.ts +475 -0
  9. package/dist/contracts/CreditRedeem.d.ts.map +1 -0
  10. package/dist/contracts/CreditRedeem.js +551 -0
  11. package/dist/contracts/Deleverage.d.ts +929 -0
  12. package/dist/contracts/Deleverage.d.ts.map +1 -0
  13. package/dist/contracts/Deleverage.js +1095 -0
  14. package/dist/contracts/Endaoment.d.ts +230 -1138
  15. package/dist/contracts/Endaoment.d.ts.map +1 -1
  16. package/dist/contracts/Endaoment.js +216 -1445
  17. package/dist/contracts/EndaomentFunds.d.ts +241 -0
  18. package/dist/contracts/EndaomentFunds.d.ts.map +1 -0
  19. package/dist/contracts/EndaomentFunds.js +278 -0
  20. package/dist/contracts/EndaomentPSM.d.ts +1229 -0
  21. package/dist/contracts/EndaomentPSM.d.ts.map +1 -0
  22. package/dist/contracts/{PriceSheets.js → EndaomentPSM.js} +840 -685
  23. package/dist/contracts/Lootbox.d.ts +184 -0
  24. package/dist/contracts/Lootbox.d.ts.map +1 -1
  25. package/dist/contracts/Lootbox.js +232 -1
  26. package/dist/contracts/PriceDesk.js +1 -1
  27. package/dist/contracts/PythPrices.d.ts +60 -8
  28. package/dist/contracts/PythPrices.d.ts.map +1 -1
  29. package/dist/contracts/PythPrices.js +77 -9
  30. package/dist/contracts/RedStone.d.ts +1581 -0
  31. package/dist/contracts/RedStone.d.ts.map +1 -0
  32. package/dist/contracts/{AgentFactory_v2.js → RedStone.js} +1077 -682
  33. package/dist/contracts/RipePoolAero.d.ts +5 -5
  34. package/dist/contracts/RipePoolAero.d.ts.map +1 -1
  35. package/dist/contracts/StorkPrices.d.ts +8 -8
  36. package/dist/contracts/StorkPrices.d.ts.map +1 -1
  37. package/dist/contracts/StorkPrices.js +9 -9
  38. package/dist/contracts/SwitchboardAlpha.d.ts +168 -0
  39. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
  40. package/dist/contracts/SwitchboardAlpha.js +217 -1
  41. package/dist/contracts/SwitchboardCharlie.d.ts +133 -1760
  42. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
  43. package/dist/contracts/SwitchboardCharlie.js +129 -2217
  44. package/dist/contracts/SwitchboardDelta.d.ts +115 -0
  45. package/dist/contracts/SwitchboardDelta.d.ts.map +1 -1
  46. package/dist/contracts/SwitchboardDelta.js +144 -1
  47. package/dist/contracts/SwitchboardEcho.d.ts +3296 -0
  48. package/dist/contracts/SwitchboardEcho.d.ts.map +1 -0
  49. package/dist/contracts/{Agent.js → SwitchboardEcho.js} +2424 -1698
  50. package/dist/contracts/Teller.d.ts +378 -0
  51. package/dist/contracts/Teller.d.ts.map +1 -1
  52. package/dist/contracts/Teller.js +475 -1
  53. package/dist/contracts/TellerUtils.d.ts +819 -0
  54. package/dist/contracts/TellerUtils.d.ts.map +1 -0
  55. package/dist/contracts/TellerUtils.js +994 -0
  56. package/dist/contracts/UnderscoreVault.d.ts +1028 -0
  57. package/dist/contracts/UnderscoreVault.d.ts.map +1 -0
  58. package/dist/contracts/UnderscoreVault.js +1243 -0
  59. package/dist/contracts/UndyVaultPrices.d.ts +1781 -0
  60. package/dist/contracts/UndyVaultPrices.d.ts.map +1 -0
  61. package/dist/contracts/{AgentFactory.js → UndyVaultPrices.js} +1185 -1024
  62. package/dist/contracts/index.d.ts +10 -0
  63. package/dist/contracts/index.d.ts.map +1 -1
  64. package/dist/contracts/index.js +10 -0
  65. package/dist/contracts/sdk.d.ts +20 -0
  66. package/dist/contracts/sdk.d.ts.map +1 -1
  67. package/dist/contracts/sdk.js +20 -0
  68. package/dist/contracts/{LegoMorpho.d.ts → wsuperOETHbPrices.d.ts} +610 -573
  69. package/dist/contracts/wsuperOETHbPrices.d.ts.map +1 -0
  70. package/dist/contracts/{LegoMorpho.js → wsuperOETHbPrices.js} +654 -632
  71. package/dist/index.d.ts +354 -68
  72. package/dist/index.d.ts.map +1 -1
  73. package/dist/index.js +21 -0
  74. package/package.json +3 -3
  75. package/dist/contracts/AddyRegistry.d.ts +0 -1109
  76. package/dist/contracts/AddyRegistry.d.ts.map +0 -1
  77. package/dist/contracts/AddyRegistry.js +0 -1392
  78. package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
  79. package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
  80. package/dist/contracts/AddyRegistry_v1.js +0 -594
  81. package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
  82. package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
  83. package/dist/contracts/AddyRegistry_v2.js +0 -1313
  84. package/dist/contracts/Agent.d.ts +0 -2709
  85. package/dist/contracts/Agent.d.ts.map +0 -1
  86. package/dist/contracts/AgentFactory.d.ts +0 -1665
  87. package/dist/contracts/AgentFactory.d.ts.map +0 -1
  88. package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
  89. package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
  90. package/dist/contracts/AgentFactory_v1.js +0 -1336
  91. package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
  92. package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
  93. package/dist/contracts/AgentTemplate.d.ts +0 -2629
  94. package/dist/contracts/AgentTemplate.d.ts.map +0 -1
  95. package/dist/contracts/AgentTemplate.js +0 -3370
  96. package/dist/contracts/Agent_v1.d.ts +0 -2631
  97. package/dist/contracts/Agent_v1.d.ts.map +0 -1
  98. package/dist/contracts/Agent_v1.js +0 -3372
  99. package/dist/contracts/Agent_v2.d.ts +0 -2709
  100. package/dist/contracts/Agent_v2.d.ts.map +0 -1
  101. package/dist/contracts/Agent_v2.js +0 -3458
  102. package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
  103. package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
  104. package/dist/contracts/ChainlinkFeeds.js +0 -900
  105. package/dist/contracts/LegoAaveV3.d.ts +0 -1033
  106. package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
  107. package/dist/contracts/LegoAaveV3.js +0 -1330
  108. package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
  109. package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
  110. package/dist/contracts/LegoAeroClassic.js +0 -1546
  111. package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
  112. package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
  113. package/dist/contracts/LegoAeroSlipstream.js +0 -1671
  114. package/dist/contracts/LegoCommon.d.ts +0 -164
  115. package/dist/contracts/LegoCommon.d.ts.map +0 -1
  116. package/dist/contracts/LegoCommon.js +0 -202
  117. package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
  118. package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
  119. package/dist/contracts/LegoCompoundV3.js +0 -1365
  120. package/dist/contracts/LegoCredit.d.ts +0 -140
  121. package/dist/contracts/LegoCredit.d.ts.map +0 -1
  122. package/dist/contracts/LegoCredit.js +0 -179
  123. package/dist/contracts/LegoCurve.d.ts +0 -1189
  124. package/dist/contracts/LegoCurve.d.ts.map +0 -1
  125. package/dist/contracts/LegoCurve.js +0 -1519
  126. package/dist/contracts/LegoDex.d.ts +0 -587
  127. package/dist/contracts/LegoDex.d.ts.map +0 -1
  128. package/dist/contracts/LegoDex.js +0 -774
  129. package/dist/contracts/LegoEuler.d.ts +0 -1074
  130. package/dist/contracts/LegoEuler.d.ts.map +0 -1
  131. package/dist/contracts/LegoEuler.js +0 -1383
  132. package/dist/contracts/LegoFluid.d.ts +0 -1025
  133. package/dist/contracts/LegoFluid.d.ts.map +0 -1
  134. package/dist/contracts/LegoFluid.js +0 -1320
  135. package/dist/contracts/LegoHelper.d.ts +0 -1563
  136. package/dist/contracts/LegoHelper.d.ts.map +0 -1
  137. package/dist/contracts/LegoHelper.js +0 -1947
  138. package/dist/contracts/LegoMoonwell.d.ts +0 -1042
  139. package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
  140. package/dist/contracts/LegoMoonwell.js +0 -1342
  141. package/dist/contracts/LegoMorpho.d.ts.map +0 -1
  142. package/dist/contracts/LegoRegistry.d.ts +0 -1079
  143. package/dist/contracts/LegoRegistry.d.ts.map +0 -1
  144. package/dist/contracts/LegoRegistry.js +0 -1368
  145. package/dist/contracts/LegoSky.d.ts +0 -923
  146. package/dist/contracts/LegoSky.d.ts.map +0 -1
  147. package/dist/contracts/LegoSky.js +0 -1180
  148. package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
  149. package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
  150. package/dist/contracts/LegoUniswapV2.js +0 -1546
  151. package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
  152. package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
  153. package/dist/contracts/LegoUniswapV3.js +0 -1718
  154. package/dist/contracts/LegoYield.d.ts +0 -390
  155. package/dist/contracts/LegoYield.d.ts.map +0 -1
  156. package/dist/contracts/LegoYield.js +0 -511
  157. package/dist/contracts/OracleParser.d.ts +0 -207
  158. package/dist/contracts/OracleParser.d.ts.map +0 -1
  159. package/dist/contracts/OracleParser.js +0 -264
  160. package/dist/contracts/OracleRegistry.d.ts +0 -1221
  161. package/dist/contracts/OracleRegistry.d.ts.map +0 -1
  162. package/dist/contracts/OracleRegistry.js +0 -1562
  163. package/dist/contracts/PriceSheets.d.ts +0 -1127
  164. package/dist/contracts/PriceSheets.d.ts.map +0 -1
  165. package/dist/contracts/PythFeeds.d.ts +0 -640
  166. package/dist/contracts/PythFeeds.d.ts.map +0 -1
  167. package/dist/contracts/PythFeeds.js +0 -813
  168. package/dist/contracts/RipePool.d.ts +0 -1264
  169. package/dist/contracts/RipePool.d.ts.map +0 -1
  170. package/dist/contracts/RipePool.js +0 -1627
  171. package/dist/contracts/StorkFeeds.d.ts +0 -640
  172. package/dist/contracts/StorkFeeds.d.ts.map +0 -1
  173. package/dist/contracts/StorkFeeds.js +0 -813
  174. package/dist/contracts/UserWallet.d.ts +0 -1975
  175. package/dist/contracts/UserWallet.d.ts.map +0 -1
  176. package/dist/contracts/UserWallet.js +0 -2577
  177. package/dist/contracts/UserWalletConfig.d.ts +0 -1852
  178. package/dist/contracts/UserWalletConfig.d.ts.map +0 -1
  179. package/dist/contracts/UserWalletConfig.js +0 -2263
  180. package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
  181. package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
  182. package/dist/contracts/UserWalletConfig_v1.js +0 -1676
  183. package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
  184. package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
  185. package/dist/contracts/UserWalletConfig_v2.js +0 -1764
  186. package/dist/contracts/UserWallet_v1.d.ts +0 -1980
  187. package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
  188. package/dist/contracts/UserWallet_v1.js +0 -2581
  189. package/dist/contracts/UserWallet_v2.d.ts +0 -1958
  190. package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
  191. package/dist/contracts/UserWallet_v2.js +0 -2553
  192. package/dist/contracts/WalletConfig.d.ts +0 -1398
  193. package/dist/contracts/WalletConfig.d.ts.map +0 -1
  194. package/dist/contracts/WalletConfig.js +0 -1674
  195. package/dist/contracts/WalletFunds.d.ts +0 -1978
  196. package/dist/contracts/WalletFunds.d.ts.map +0 -1
  197. package/dist/contracts/WalletFunds.js +0 -2579
@@ -5,778 +5,865 @@
5
5
  import { singleQuery, mutate } from '@dappql/async';
6
6
  export const abi = [
7
7
  {
8
- anonymous: false,
8
+ name: 'MintGreen',
9
9
  inputs: [
10
10
  {
11
- indexed: true,
12
- name: 'agent',
11
+ name: 'user',
13
12
  type: 'address',
13
+ indexed: true,
14
14
  },
15
15
  {
16
- indexed: true,
17
- name: 'asset',
16
+ name: 'sender',
18
17
  type: 'address',
18
+ indexed: true,
19
19
  },
20
20
  {
21
- indexed: false,
22
- name: 'usdValue',
21
+ name: 'usdcIn',
23
22
  type: 'uint256',
23
+ indexed: false,
24
24
  },
25
25
  {
26
+ name: 'greenOut',
27
+ type: 'uint256',
26
28
  indexed: false,
27
- name: 'trialPeriod',
29
+ },
30
+ {
31
+ name: 'usdcFee',
28
32
  type: 'uint256',
33
+ indexed: false,
29
34
  },
30
35
  {
36
+ name: 'receivedSavingsGreen',
37
+ type: 'bool',
31
38
  indexed: false,
32
- name: 'payPeriod',
33
- type: 'uint256',
34
39
  },
35
40
  ],
36
- name: 'AgentSubPriceSet',
41
+ anonymous: false,
37
42
  type: 'event',
38
43
  },
39
44
  {
40
- anonymous: false,
45
+ name: 'RedeemGreen',
41
46
  inputs: [
42
47
  {
43
- indexed: true,
44
- name: 'agent',
48
+ name: 'user',
45
49
  type: 'address',
50
+ indexed: true,
46
51
  },
47
52
  {
48
- indexed: true,
49
- name: 'asset',
53
+ name: 'sender',
50
54
  type: 'address',
55
+ indexed: true,
51
56
  },
52
57
  {
53
- indexed: false,
54
- name: 'usdValue',
58
+ name: 'greenIn',
55
59
  type: 'uint256',
60
+ indexed: false,
56
61
  },
57
62
  {
58
- indexed: false,
59
- name: 'trialPeriod',
63
+ name: 'usdcOut',
60
64
  type: 'uint256',
65
+ indexed: false,
61
66
  },
62
67
  {
63
- indexed: false,
64
- name: 'payPeriod',
68
+ name: 'usdcFee',
65
69
  type: 'uint256',
70
+ indexed: false,
66
71
  },
67
72
  {
73
+ name: 'paidWithSavingsGreen',
74
+ type: 'bool',
68
75
  indexed: false,
69
- name: 'effectiveBlock',
70
- type: 'uint256',
71
76
  },
72
77
  ],
73
- name: 'PendingAgentSubPriceSet',
78
+ anonymous: false,
74
79
  type: 'event',
75
80
  },
76
81
  {
77
- anonymous: false,
82
+ name: 'EndaomentPSMYieldDeposit',
78
83
  inputs: [
79
84
  {
80
- indexed: true,
81
- name: 'asset',
82
- type: 'address',
85
+ name: 'amount',
86
+ type: 'uint256',
87
+ indexed: false,
83
88
  },
84
89
  {
85
- indexed: false,
86
- name: 'usdValue',
87
- type: 'uint256',
90
+ name: 'vaultToken',
91
+ type: 'address',
92
+ indexed: true,
88
93
  },
89
94
  {
90
- indexed: false,
91
- name: 'trialPeriod',
95
+ name: 'vaultTokenReceived',
92
96
  type: 'uint256',
97
+ indexed: false,
93
98
  },
94
99
  {
95
- indexed: false,
96
- name: 'payPeriod',
100
+ name: 'usdValue',
97
101
  type: 'uint256',
102
+ indexed: false,
98
103
  },
99
104
  ],
100
- name: 'ProtocolSubPriceSet',
105
+ anonymous: false,
101
106
  type: 'event',
102
107
  },
103
108
  {
104
- anonymous: false,
109
+ name: 'EndaomentPSMYieldWithdrawal',
105
110
  inputs: [
106
111
  {
107
- indexed: true,
108
- name: 'agent',
112
+ name: 'vaultToken',
109
113
  type: 'address',
110
- },
111
- {
112
114
  indexed: true,
113
- name: 'asset',
114
- type: 'address',
115
115
  },
116
116
  {
117
- indexed: false,
118
- name: 'usdValue',
117
+ name: 'vaultTokenBurned',
119
118
  type: 'uint256',
119
+ indexed: false,
120
120
  },
121
121
  {
122
- indexed: false,
123
- name: 'trialPeriod',
122
+ name: 'usdcReceived',
124
123
  type: 'uint256',
124
+ indexed: false,
125
125
  },
126
126
  {
127
- indexed: false,
128
- name: 'payPeriod',
127
+ name: 'usdValue',
129
128
  type: 'uint256',
129
+ indexed: false,
130
130
  },
131
131
  ],
132
- name: 'AgentSubPriceRemoved',
132
+ anonymous: false,
133
133
  type: 'event',
134
134
  },
135
135
  {
136
- anonymous: false,
136
+ name: 'CanMintUpdated',
137
137
  inputs: [
138
138
  {
139
- indexed: true,
140
- name: 'asset',
141
- type: 'address',
142
- },
143
- {
144
- indexed: false,
145
- name: 'usdValue',
146
- type: 'uint256',
147
- },
148
- {
149
- indexed: false,
150
- name: 'trialPeriod',
151
- type: 'uint256',
152
- },
153
- {
139
+ name: 'canMint',
140
+ type: 'bool',
154
141
  indexed: false,
155
- name: 'payPeriod',
156
- type: 'uint256',
157
142
  },
158
143
  ],
159
- name: 'ProtocolSubPriceRemoved',
144
+ anonymous: false,
160
145
  type: 'event',
161
146
  },
162
147
  {
163
- anonymous: false,
148
+ name: 'CanRedeemUpdated',
164
149
  inputs: [
165
150
  {
166
- indexed: false,
167
- name: 'isEnabled',
151
+ name: 'canRedeem',
168
152
  type: 'bool',
153
+ indexed: false,
169
154
  },
170
155
  ],
171
- name: 'AgentSubPricingEnabled',
156
+ anonymous: false,
172
157
  type: 'event',
173
158
  },
174
159
  {
175
- anonymous: false,
160
+ name: 'MintFeeUpdated',
176
161
  inputs: [
177
162
  {
178
- indexed: false,
179
- name: 'yieldFee',
180
- type: 'uint256',
181
- },
182
- {
183
- indexed: false,
184
- name: 'swapFee',
163
+ name: 'fee',
185
164
  type: 'uint256',
186
- },
187
- {
188
165
  indexed: false,
189
- name: 'claimRewardsFee',
190
- type: 'uint256',
191
166
  },
192
167
  ],
193
- name: 'ProtocolTxPriceSheetSet',
168
+ anonymous: false,
194
169
  type: 'event',
195
170
  },
196
171
  {
197
- anonymous: false,
172
+ name: 'RedeemFeeUpdated',
198
173
  inputs: [
199
174
  {
200
- indexed: false,
201
- name: 'yieldFee',
175
+ name: 'fee',
202
176
  type: 'uint256',
203
- },
204
- {
205
177
  indexed: false,
206
- name: 'swapFee',
207
- type: 'uint256',
208
178
  },
179
+ ],
180
+ anonymous: false,
181
+ type: 'event',
182
+ },
183
+ {
184
+ name: 'MaxIntervalMintUpdated',
185
+ inputs: [
209
186
  {
210
- indexed: false,
211
- name: 'claimRewardsFee',
187
+ name: 'maxAmount',
212
188
  type: 'uint256',
189
+ indexed: false,
213
190
  },
214
191
  ],
215
- name: 'ProtocolTxPriceSheetRemoved',
192
+ anonymous: false,
216
193
  type: 'event',
217
194
  },
218
195
  {
219
- anonymous: false,
196
+ name: 'MaxIntervalRedeemUpdated',
220
197
  inputs: [
221
198
  {
222
- indexed: true,
223
- name: 'recipient',
224
- type: 'address',
199
+ name: 'maxAmount',
200
+ type: 'uint256',
201
+ indexed: false,
225
202
  },
226
203
  ],
227
- name: 'ProtocolRecipientSet',
204
+ anonymous: false,
228
205
  type: 'event',
229
206
  },
230
207
  {
231
- anonymous: false,
208
+ name: 'NumBlocksPerIntervalUpdated',
232
209
  inputs: [
233
210
  {
234
- indexed: false,
235
- name: 'delayBlocks',
211
+ name: 'blocks',
236
212
  type: 'uint256',
213
+ indexed: false,
237
214
  },
238
215
  ],
239
- name: 'PriceChangeDelaySet',
216
+ anonymous: false,
240
217
  type: 'event',
241
218
  },
242
219
  {
243
- anonymous: false,
220
+ name: 'ShouldEnforceMintAllowlistUpdated',
244
221
  inputs: [
245
222
  {
223
+ name: 'shouldEnforce',
224
+ type: 'bool',
246
225
  indexed: false,
247
- name: 'ratio',
248
- type: 'uint256',
249
226
  },
250
227
  ],
251
- name: 'AmbassadorRatioSet',
228
+ anonymous: false,
252
229
  type: 'event',
253
230
  },
254
231
  {
255
- anonymous: false,
232
+ name: 'ShouldEnforceRedeemAllowlistUpdated',
256
233
  inputs: [
257
234
  {
258
- indexed: false,
259
- name: 'isActivated',
235
+ name: 'shouldEnforce',
260
236
  type: 'bool',
237
+ indexed: false,
261
238
  },
262
239
  ],
263
- name: 'PriceSheetsActivated',
240
+ anonymous: false,
264
241
  type: 'event',
265
242
  },
266
243
  {
267
- anonymous: false,
244
+ name: 'MintAllowlistUpdated',
268
245
  inputs: [
269
246
  {
270
- indexed: true,
271
- name: 'prevGov',
247
+ name: 'user',
272
248
  type: 'address',
273
- },
274
- {
275
249
  indexed: true,
276
- name: 'newGov',
277
- type: 'address',
278
250
  },
279
251
  {
252
+ name: 'isAllowed',
253
+ type: 'bool',
280
254
  indexed: false,
281
- name: 'confirmBlock',
282
- type: 'uint256',
283
255
  },
284
256
  ],
285
- name: 'GovChangeInitiated',
257
+ anonymous: false,
286
258
  type: 'event',
287
259
  },
288
260
  {
289
- anonymous: false,
261
+ name: 'RedeemAllowlistUpdated',
290
262
  inputs: [
291
263
  {
292
- indexed: true,
293
- name: 'prevGov',
264
+ name: 'user',
294
265
  type: 'address',
295
- },
296
- {
297
266
  indexed: true,
298
- name: 'newGov',
299
- type: 'address',
300
- },
301
- {
302
- indexed: false,
303
- name: 'initiatedBlock',
304
- type: 'uint256',
305
267
  },
306
268
  {
269
+ name: 'isAllowed',
270
+ type: 'bool',
307
271
  indexed: false,
308
- name: 'confirmBlock',
309
- type: 'uint256',
310
272
  },
311
273
  ],
312
- name: 'GovChangeConfirmed',
274
+ anonymous: false,
313
275
  type: 'event',
314
276
  },
315
277
  {
316
- anonymous: false,
278
+ name: 'UsdcYieldPositionUpdated',
317
279
  inputs: [
318
280
  {
319
- indexed: true,
320
- name: 'cancelledGov',
321
- type: 'address',
322
- },
323
- {
324
- indexed: false,
325
- name: 'initiatedBlock',
281
+ name: 'legoId',
326
282
  type: 'uint256',
283
+ indexed: false,
327
284
  },
328
285
  {
329
- indexed: false,
330
- name: 'confirmBlock',
331
- type: 'uint256',
286
+ name: 'vaultToken',
287
+ type: 'address',
288
+ indexed: true,
332
289
  },
333
290
  ],
334
- name: 'GovChangeCancelled',
291
+ anonymous: false,
335
292
  type: 'event',
336
293
  },
337
294
  {
338
- anonymous: false,
295
+ name: 'ShouldAutoDepositUpdated',
339
296
  inputs: [
340
297
  {
298
+ name: 'shouldAutoDeposit',
299
+ type: 'bool',
341
300
  indexed: false,
342
- name: 'delayBlocks',
343
- type: 'uint256',
344
301
  },
345
302
  ],
346
- name: 'GovChangeDelaySet',
303
+ anonymous: false,
347
304
  type: 'event',
348
305
  },
349
306
  {
307
+ name: 'DepartmentPauseModified',
350
308
  inputs: [
351
309
  {
352
- name: '_address',
353
- type: 'address',
354
- },
355
- ],
356
- name: 'canGovern',
357
- outputs: [
358
- {
359
- name: '',
310
+ name: 'isPaused',
360
311
  type: 'bool',
312
+ indexed: false,
361
313
  },
362
314
  ],
363
- stateMutability: 'view',
364
- type: 'function',
315
+ anonymous: false,
316
+ type: 'event',
365
317
  },
366
318
  {
367
- inputs: [],
368
- name: 'hasPendingGovChange',
369
- outputs: [
319
+ name: 'DepartmentFundsRecovered',
320
+ inputs: [
370
321
  {
371
- name: '',
372
- type: 'bool',
322
+ name: 'asset',
323
+ type: 'address',
324
+ indexed: true,
373
325
  },
374
- ],
375
- stateMutability: 'view',
376
- type: 'function',
377
- },
378
- {
379
- inputs: [
380
326
  {
381
- name: '_newGov',
327
+ name: 'recipient',
382
328
  type: 'address',
329
+ indexed: true,
383
330
  },
384
- ],
385
- name: 'changeGovernance',
386
- outputs: [],
387
- stateMutability: 'nonpayable',
388
- type: 'function',
389
- },
390
- {
391
- inputs: [],
392
- name: 'confirmGovernanceChange',
393
- outputs: [],
394
- stateMutability: 'nonpayable',
395
- type: 'function',
396
- },
397
- {
398
- inputs: [],
399
- name: 'cancelGovernanceChange',
400
- outputs: [],
401
- stateMutability: 'nonpayable',
402
- type: 'function',
403
- },
404
- {
405
- inputs: [
406
331
  {
407
- name: '_numBlocks',
332
+ name: 'balance',
408
333
  type: 'uint256',
334
+ indexed: false,
409
335
  },
410
336
  ],
411
- name: 'setGovernanceChangeDelay',
412
- outputs: [],
413
- stateMutability: 'nonpayable',
414
- type: 'function',
337
+ anonymous: false,
338
+ type: 'event',
415
339
  },
416
340
  {
417
- inputs: [],
418
- name: 'governance',
419
- outputs: [
420
- {
421
- name: '',
422
- type: 'address',
423
- },
424
- ],
425
341
  stateMutability: 'view',
426
342
  type: 'function',
427
- },
428
- {
343
+ name: 'getAddys',
429
344
  inputs: [],
430
- name: 'pendingGov',
431
345
  outputs: [
432
346
  {
347
+ name: '',
348
+ type: 'tuple',
433
349
  components: [
434
350
  {
435
- name: 'newGov',
351
+ name: 'hq',
436
352
  type: 'address',
437
353
  },
438
354
  {
439
- name: 'initiatedBlock',
440
- type: 'uint256',
355
+ name: 'greenToken',
356
+ type: 'address',
441
357
  },
442
358
  {
443
- name: 'confirmBlock',
444
- type: 'uint256',
359
+ name: 'savingsGreen',
360
+ type: 'address',
445
361
  },
446
- ],
447
- name: '',
448
- type: 'tuple',
449
- },
450
- ],
451
- stateMutability: 'view',
452
- type: 'function',
453
- },
454
- {
455
- inputs: [],
456
- name: 'govChangeDelay',
457
- outputs: [
458
- {
459
- name: '',
460
- type: 'uint256',
461
- },
462
- ],
463
- stateMutability: 'view',
464
- type: 'function',
465
- },
466
- {
467
- inputs: [],
468
- name: 'MIN_GOV_CHANGE_DELAY',
469
- outputs: [
470
- {
471
- name: '',
472
- type: 'uint256',
362
+ {
363
+ name: 'ripeToken',
364
+ type: 'address',
365
+ },
366
+ {
367
+ name: 'ledger',
368
+ type: 'address',
369
+ },
370
+ {
371
+ name: 'missionControl',
372
+ type: 'address',
373
+ },
374
+ {
375
+ name: 'switchboard',
376
+ type: 'address',
377
+ },
378
+ {
379
+ name: 'priceDesk',
380
+ type: 'address',
381
+ },
382
+ {
383
+ name: 'vaultBook',
384
+ type: 'address',
385
+ },
386
+ {
387
+ name: 'auctionHouse',
388
+ type: 'address',
389
+ },
390
+ {
391
+ name: 'auctionHouseNft',
392
+ type: 'address',
393
+ },
394
+ {
395
+ name: 'boardroom',
396
+ type: 'address',
397
+ },
398
+ {
399
+ name: 'bondRoom',
400
+ type: 'address',
401
+ },
402
+ {
403
+ name: 'creditEngine',
404
+ type: 'address',
405
+ },
406
+ {
407
+ name: 'endaoment',
408
+ type: 'address',
409
+ },
410
+ {
411
+ name: 'humanResources',
412
+ type: 'address',
413
+ },
414
+ {
415
+ name: 'lootbox',
416
+ type: 'address',
417
+ },
418
+ {
419
+ name: 'teller',
420
+ type: 'address',
421
+ },
422
+ ],
473
423
  },
474
424
  ],
425
+ },
426
+ {
475
427
  stateMutability: 'view',
476
428
  type: 'function',
429
+ name: 'getRipeHq',
430
+ inputs: [],
431
+ outputs: [
432
+ {
433
+ name: '',
434
+ type: 'address',
435
+ },
436
+ ],
477
437
  },
478
438
  {
439
+ stateMutability: 'view',
440
+ type: 'function',
441
+ name: 'canMintGreen',
479
442
  inputs: [],
480
- name: 'MAX_GOV_CHANGE_DELAY',
481
443
  outputs: [
482
444
  {
483
445
  name: '',
484
- type: 'uint256',
446
+ type: 'bool',
485
447
  },
486
448
  ],
449
+ },
450
+ {
487
451
  stateMutability: 'view',
488
452
  type: 'function',
453
+ name: 'canMintRipe',
454
+ inputs: [],
455
+ outputs: [
456
+ {
457
+ name: '',
458
+ type: 'bool',
459
+ },
460
+ ],
489
461
  },
490
462
  {
463
+ stateMutability: 'nonpayable',
464
+ type: 'function',
465
+ name: 'pause',
491
466
  inputs: [
492
467
  {
493
- name: '_user',
494
- type: 'address',
468
+ name: '_shouldPause',
469
+ type: 'bool',
495
470
  },
471
+ ],
472
+ outputs: [],
473
+ },
474
+ {
475
+ stateMutability: 'nonpayable',
476
+ type: 'function',
477
+ name: 'recoverFunds',
478
+ inputs: [
496
479
  {
497
- name: '_agent',
480
+ name: '_recipient',
498
481
  type: 'address',
499
482
  },
500
483
  {
501
- name: '_agentPaidThru',
502
- type: 'uint256',
484
+ name: '_asset',
485
+ type: 'address',
503
486
  },
487
+ ],
488
+ outputs: [],
489
+ },
490
+ {
491
+ stateMutability: 'nonpayable',
492
+ type: 'function',
493
+ name: 'recoverFundsMany',
494
+ inputs: [
504
495
  {
505
- name: '_protocolPaidThru',
506
- type: 'uint256',
496
+ name: '_recipient',
497
+ type: 'address',
507
498
  },
508
499
  {
509
- name: '_oracleRegistry',
510
- type: 'address',
500
+ name: '_assets',
501
+ type: 'address[]',
511
502
  },
512
503
  ],
513
- name: 'getCombinedSubData',
504
+ outputs: [],
505
+ },
506
+ {
507
+ stateMutability: 'view',
508
+ type: 'function',
509
+ name: 'isPaused',
510
+ inputs: [],
514
511
  outputs: [
515
512
  {
516
- components: [
517
- {
518
- name: 'recipient',
519
- type: 'address',
520
- },
521
- {
522
- name: 'asset',
523
- type: 'address',
524
- },
525
- {
526
- name: 'amount',
527
- type: 'uint256',
528
- },
529
- {
530
- name: 'usdValue',
531
- type: 'uint256',
532
- },
533
- {
534
- name: 'paidThroughBlock',
535
- type: 'uint256',
536
- },
537
- {
538
- name: 'didChange',
539
- type: 'bool',
540
- },
541
- ],
542
513
  name: '',
543
- type: 'tuple',
514
+ type: 'bool',
544
515
  },
516
+ ],
517
+ },
518
+ {
519
+ stateMutability: 'nonpayable',
520
+ type: 'function',
521
+ name: 'mintGreen',
522
+ inputs: [],
523
+ outputs: [
545
524
  {
546
- components: [
547
- {
548
- name: 'recipient',
549
- type: 'address',
550
- },
551
- {
552
- name: 'asset',
553
- type: 'address',
554
- },
555
- {
556
- name: 'amount',
557
- type: 'uint256',
558
- },
559
- {
560
- name: 'usdValue',
561
- type: 'uint256',
562
- },
563
- {
564
- name: 'paidThroughBlock',
565
- type: 'uint256',
566
- },
567
- {
568
- name: 'didChange',
569
- type: 'bool',
570
- },
571
- ],
572
525
  name: '',
573
- type: 'tuple',
526
+ type: 'uint256',
574
527
  },
575
528
  ],
576
- stateMutability: 'view',
577
- type: 'function',
578
529
  },
579
530
  {
531
+ stateMutability: 'nonpayable',
532
+ type: 'function',
533
+ name: 'mintGreen',
580
534
  inputs: [
581
535
  {
582
- name: '_agent',
583
- type: 'address',
536
+ name: '_usdcAmount',
537
+ type: 'uint256',
584
538
  },
585
539
  ],
586
- name: 'getAgentSubPriceData',
587
540
  outputs: [
588
541
  {
589
- components: [
590
- {
591
- name: 'asset',
592
- type: 'address',
593
- },
594
- {
595
- name: 'usdValue',
596
- type: 'uint256',
597
- },
598
- {
599
- name: 'trialPeriod',
600
- type: 'uint256',
601
- },
602
- {
603
- name: 'payPeriod',
604
- type: 'uint256',
605
- },
606
- ],
607
542
  name: '',
608
- type: 'tuple',
543
+ type: 'uint256',
609
544
  },
610
545
  ],
611
- stateMutability: 'view',
612
- type: 'function',
613
546
  },
614
547
  {
548
+ stateMutability: 'nonpayable',
549
+ type: 'function',
550
+ name: 'mintGreen',
615
551
  inputs: [
616
552
  {
617
- name: '_asset',
553
+ name: '_usdcAmount',
554
+ type: 'uint256',
555
+ },
556
+ {
557
+ name: '_recipient',
618
558
  type: 'address',
619
559
  },
560
+ ],
561
+ outputs: [
620
562
  {
621
- name: '_usdValue',
563
+ name: '',
622
564
  type: 'uint256',
623
565
  },
566
+ ],
567
+ },
568
+ {
569
+ stateMutability: 'nonpayable',
570
+ type: 'function',
571
+ name: 'mintGreen',
572
+ inputs: [
624
573
  {
625
- name: '_trialPeriod',
574
+ name: '_usdcAmount',
626
575
  type: 'uint256',
627
576
  },
628
577
  {
629
- name: '_payPeriod',
630
- type: 'uint256',
578
+ name: '_recipient',
579
+ type: 'address',
580
+ },
581
+ {
582
+ name: '_wantsSavingsGreen',
583
+ type: 'bool',
631
584
  },
632
585
  ],
633
- name: 'isValidSubPrice',
634
586
  outputs: [
635
587
  {
636
588
  name: '',
637
- type: 'bool',
589
+ type: 'uint256',
638
590
  },
639
591
  ],
592
+ },
593
+ {
640
594
  stateMutability: 'view',
641
595
  type: 'function',
596
+ name: 'getMaxUsdcAmountForMint',
597
+ inputs: [],
598
+ outputs: [
599
+ {
600
+ name: '',
601
+ type: 'uint256',
602
+ },
603
+ ],
642
604
  },
643
605
  {
606
+ stateMutability: 'view',
607
+ type: 'function',
608
+ name: 'getMaxUsdcAmountForMint',
644
609
  inputs: [
645
610
  {
646
- name: '_agent',
611
+ name: '_user',
647
612
  type: 'address',
648
613
  },
614
+ ],
615
+ outputs: [
649
616
  {
650
- name: '_asset',
617
+ name: '',
618
+ type: 'uint256',
619
+ },
620
+ ],
621
+ },
622
+ {
623
+ stateMutability: 'view',
624
+ type: 'function',
625
+ name: 'getMaxUsdcAmountForMint',
626
+ inputs: [
627
+ {
628
+ name: '_user',
651
629
  type: 'address',
652
630
  },
653
631
  {
654
- name: '_usdValue',
655
- type: 'uint256',
632
+ name: '_isUnderscoreAddr',
633
+ type: 'bool',
656
634
  },
635
+ ],
636
+ outputs: [
657
637
  {
658
- name: '_trialPeriod',
638
+ name: '',
659
639
  type: 'uint256',
660
640
  },
641
+ ],
642
+ },
643
+ {
644
+ stateMutability: 'view',
645
+ type: 'function',
646
+ name: 'getAvailIntervalMint',
647
+ inputs: [],
648
+ outputs: [
661
649
  {
662
- name: '_payPeriod',
650
+ name: '',
663
651
  type: 'uint256',
664
652
  },
665
653
  ],
666
- name: 'setAgentSubPrice',
654
+ },
655
+ {
656
+ stateMutability: 'nonpayable',
657
+ type: 'function',
658
+ name: 'redeemGreen',
659
+ inputs: [],
667
660
  outputs: [
668
661
  {
669
662
  name: '',
670
- type: 'bool',
663
+ type: 'uint256',
671
664
  },
672
665
  ],
666
+ },
667
+ {
673
668
  stateMutability: 'nonpayable',
674
669
  type: 'function',
670
+ name: 'redeemGreen',
671
+ inputs: [
672
+ {
673
+ name: '_paymentAmount',
674
+ type: 'uint256',
675
+ },
676
+ ],
677
+ outputs: [
678
+ {
679
+ name: '',
680
+ type: 'uint256',
681
+ },
682
+ ],
675
683
  },
676
684
  {
685
+ stateMutability: 'nonpayable',
686
+ type: 'function',
687
+ name: 'redeemGreen',
677
688
  inputs: [
678
689
  {
679
- name: '_agent',
690
+ name: '_paymentAmount',
691
+ type: 'uint256',
692
+ },
693
+ {
694
+ name: '_recipient',
680
695
  type: 'address',
681
696
  },
682
697
  ],
683
- name: 'finalizePendingAgentSubPrice',
684
698
  outputs: [
685
699
  {
686
700
  name: '',
687
- type: 'bool',
701
+ type: 'uint256',
688
702
  },
689
703
  ],
690
- stateMutability: 'nonpayable',
691
- type: 'function',
692
704
  },
693
705
  {
706
+ stateMutability: 'nonpayable',
707
+ type: 'function',
708
+ name: 'redeemGreen',
694
709
  inputs: [
695
710
  {
696
- name: '_agent',
711
+ name: '_paymentAmount',
712
+ type: 'uint256',
713
+ },
714
+ {
715
+ name: '_recipient',
697
716
  type: 'address',
698
717
  },
718
+ {
719
+ name: '_isPaymentSavingsGreen',
720
+ type: 'bool',
721
+ },
699
722
  ],
700
- name: 'removeAgentSubPrice',
701
723
  outputs: [
702
724
  {
703
725
  name: '',
704
- type: 'bool',
726
+ type: 'uint256',
705
727
  },
706
728
  ],
707
- stateMutability: 'nonpayable',
729
+ },
730
+ {
731
+ stateMutability: 'view',
708
732
  type: 'function',
733
+ name: 'getMaxRedeemableGreenAmount',
734
+ inputs: [],
735
+ outputs: [
736
+ {
737
+ name: '',
738
+ type: 'uint256',
739
+ },
740
+ ],
709
741
  },
710
742
  {
743
+ stateMutability: 'view',
744
+ type: 'function',
745
+ name: 'getMaxRedeemableGreenAmount',
711
746
  inputs: [
712
747
  {
713
- name: '_isEnabled',
714
- type: 'bool',
748
+ name: '_user',
749
+ type: 'address',
715
750
  },
716
751
  ],
717
- name: 'setAgentSubPricingEnabled',
718
752
  outputs: [
719
753
  {
720
754
  name: '',
721
- type: 'bool',
755
+ type: 'uint256',
722
756
  },
723
757
  ],
724
- stateMutability: 'nonpayable',
725
- type: 'function',
726
758
  },
727
759
  {
760
+ stateMutability: 'view',
761
+ type: 'function',
762
+ name: 'getMaxRedeemableGreenAmount',
728
763
  inputs: [
729
764
  {
730
- name: '_asset',
765
+ name: '_user',
731
766
  type: 'address',
732
767
  },
733
768
  {
734
- name: '_usdValue',
735
- type: 'uint256',
769
+ name: '_isUnderscoreAddr',
770
+ type: 'bool',
736
771
  },
772
+ ],
773
+ outputs: [
737
774
  {
738
- name: '_trialPeriod',
775
+ name: '',
739
776
  type: 'uint256',
740
777
  },
778
+ ],
779
+ },
780
+ {
781
+ stateMutability: 'view',
782
+ type: 'function',
783
+ name: 'getAvailIntervalRedemptions',
784
+ inputs: [],
785
+ outputs: [
741
786
  {
742
- name: '_payPeriod',
787
+ name: '',
743
788
  type: 'uint256',
744
789
  },
745
790
  ],
746
- name: 'setProtocolSubPrice',
791
+ },
792
+ {
793
+ stateMutability: 'view',
794
+ type: 'function',
795
+ name: 'getUsdcYieldPositionVaultToken',
796
+ inputs: [],
747
797
  outputs: [
748
798
  {
749
799
  name: '',
750
- type: 'bool',
800
+ type: 'address',
751
801
  },
752
802
  ],
803
+ },
804
+ {
753
805
  stateMutability: 'nonpayable',
754
806
  type: 'function',
807
+ name: 'depositToYield',
808
+ inputs: [],
809
+ outputs: [
810
+ {
811
+ name: '',
812
+ type: 'uint256',
813
+ },
814
+ ],
755
815
  },
756
816
  {
817
+ stateMutability: 'nonpayable',
818
+ type: 'function',
819
+ name: 'withdrawFromYield',
757
820
  inputs: [],
758
- name: 'removeProtocolSubPrice',
759
821
  outputs: [
760
822
  {
761
823
  name: '',
762
- type: 'bool',
824
+ type: 'uint256',
825
+ },
826
+ {
827
+ name: '',
828
+ type: 'uint256',
763
829
  },
764
830
  ],
831
+ },
832
+ {
765
833
  stateMutability: 'nonpayable',
766
834
  type: 'function',
835
+ name: 'withdrawFromYield',
836
+ inputs: [
837
+ {
838
+ name: '_amount',
839
+ type: 'uint256',
840
+ },
841
+ ],
842
+ outputs: [
843
+ {
844
+ name: '',
845
+ type: 'uint256',
846
+ },
847
+ {
848
+ name: '',
849
+ type: 'uint256',
850
+ },
851
+ ],
767
852
  },
768
853
  {
854
+ stateMutability: 'nonpayable',
855
+ type: 'function',
856
+ name: 'withdrawFromYield',
769
857
  inputs: [
770
858
  {
771
- name: '_user',
772
- type: 'address',
859
+ name: '_amount',
860
+ type: 'uint256',
773
861
  },
774
862
  {
775
- name: '_action',
776
- type: 'uint256',
863
+ name: '_shouldTransferToEndaoFunds',
864
+ type: 'bool',
777
865
  },
778
866
  ],
779
- name: 'getTransactionFeeDataWithAmbassadorRatio',
780
867
  outputs: [
781
868
  {
782
869
  name: '',
@@ -784,472 +871,530 @@ export const abi = [
784
871
  },
785
872
  {
786
873
  name: '',
787
- type: 'address',
874
+ type: 'uint256',
875
+ },
876
+ ],
877
+ },
878
+ {
879
+ stateMutability: 'nonpayable',
880
+ type: 'function',
881
+ name: 'withdrawFromYield',
882
+ inputs: [
883
+ {
884
+ name: '_amount',
885
+ type: 'uint256',
886
+ },
887
+ {
888
+ name: '_shouldTransferToEndaoFunds',
889
+ type: 'bool',
890
+ },
891
+ {
892
+ name: '_shouldFullSweep',
893
+ type: 'bool',
894
+ },
895
+ ],
896
+ outputs: [
897
+ {
898
+ name: '',
899
+ type: 'uint256',
788
900
  },
789
901
  {
790
902
  name: '',
791
903
  type: 'uint256',
792
904
  },
793
905
  ],
906
+ },
907
+ {
794
908
  stateMutability: 'view',
795
909
  type: 'function',
910
+ name: 'getUnderlyingYieldAmount',
911
+ inputs: [],
912
+ outputs: [
913
+ {
914
+ name: '',
915
+ type: 'uint256',
916
+ },
917
+ ],
796
918
  },
797
919
  {
920
+ stateMutability: 'nonpayable',
921
+ type: 'function',
922
+ name: 'transferUsdcToEndaomentFunds',
798
923
  inputs: [
799
924
  {
800
- name: '_user',
801
- type: 'address',
802
- },
803
- {
804
- name: '_action',
925
+ name: '_amount',
805
926
  type: 'uint256',
806
927
  },
807
928
  ],
808
- name: 'getTransactionFeeData',
809
929
  outputs: [
810
930
  {
811
931
  name: '',
812
932
  type: 'uint256',
813
933
  },
934
+ ],
935
+ },
936
+ {
937
+ stateMutability: 'view',
938
+ type: 'function',
939
+ name: 'getAvailableUsdc',
940
+ inputs: [],
941
+ outputs: [
814
942
  {
815
943
  name: '',
816
- type: 'address',
944
+ type: 'uint256',
817
945
  },
818
946
  ],
819
- stateMutability: 'view',
947
+ },
948
+ {
949
+ stateMutability: 'nonpayable',
820
950
  type: 'function',
951
+ name: 'setCanMint',
952
+ inputs: [
953
+ {
954
+ name: '_canMint',
955
+ type: 'bool',
956
+ },
957
+ ],
958
+ outputs: [],
821
959
  },
822
960
  {
961
+ stateMutability: 'nonpayable',
962
+ type: 'function',
963
+ name: 'setMintFee',
823
964
  inputs: [
824
965
  {
825
- name: '_yieldFee',
966
+ name: '_fee',
826
967
  type: 'uint256',
827
968
  },
969
+ ],
970
+ outputs: [],
971
+ },
972
+ {
973
+ stateMutability: 'nonpayable',
974
+ type: 'function',
975
+ name: 'setMaxIntervalMint',
976
+ inputs: [
828
977
  {
829
- name: '_swapFee',
978
+ name: '_maxGreenAmount',
830
979
  type: 'uint256',
831
980
  },
981
+ ],
982
+ outputs: [],
983
+ },
984
+ {
985
+ stateMutability: 'nonpayable',
986
+ type: 'function',
987
+ name: 'setShouldEnforceMintAllowlist',
988
+ inputs: [
989
+ {
990
+ name: '_shouldEnforce',
991
+ type: 'bool',
992
+ },
993
+ ],
994
+ outputs: [],
995
+ },
996
+ {
997
+ stateMutability: 'nonpayable',
998
+ type: 'function',
999
+ name: 'updateMintAllowlist',
1000
+ inputs: [
1001
+ {
1002
+ name: '_user',
1003
+ type: 'address',
1004
+ },
832
1005
  {
833
- name: '_claimRewardsFee',
834
- type: 'uint256',
1006
+ name: '_isAllowed',
1007
+ type: 'bool',
835
1008
  },
836
1009
  ],
837
- name: 'isValidTxPriceSheet',
838
- outputs: [
1010
+ outputs: [],
1011
+ },
1012
+ {
1013
+ stateMutability: 'nonpayable',
1014
+ type: 'function',
1015
+ name: 'setCanRedeem',
1016
+ inputs: [
839
1017
  {
840
- name: '',
1018
+ name: '_canRedeem',
841
1019
  type: 'bool',
842
1020
  },
843
1021
  ],
844
- stateMutability: 'view',
845
- type: 'function',
1022
+ outputs: [],
846
1023
  },
847
1024
  {
1025
+ stateMutability: 'nonpayable',
1026
+ type: 'function',
1027
+ name: 'setRedeemFee',
848
1028
  inputs: [
849
1029
  {
850
- name: '_yieldFee',
851
- type: 'uint256',
852
- },
853
- {
854
- name: '_swapFee',
855
- type: 'uint256',
856
- },
857
- {
858
- name: '_claimRewardsFee',
1030
+ name: '_fee',
859
1031
  type: 'uint256',
860
1032
  },
861
1033
  ],
862
- name: 'setProtocolTxPriceSheet',
863
- outputs: [
1034
+ outputs: [],
1035
+ },
1036
+ {
1037
+ stateMutability: 'nonpayable',
1038
+ type: 'function',
1039
+ name: 'setMaxIntervalRedeem',
1040
+ inputs: [
864
1041
  {
865
- name: '',
866
- type: 'bool',
1042
+ name: '_maxGreenAmount',
1043
+ type: 'uint256',
867
1044
  },
868
1045
  ],
869
- stateMutability: 'nonpayable',
870
- type: 'function',
1046
+ outputs: [],
871
1047
  },
872
1048
  {
873
- inputs: [],
874
- name: 'removeProtocolTxPriceSheet',
875
- outputs: [
1049
+ stateMutability: 'nonpayable',
1050
+ type: 'function',
1051
+ name: 'setShouldEnforceRedeemAllowlist',
1052
+ inputs: [
876
1053
  {
877
- name: '',
1054
+ name: '_shouldEnforce',
878
1055
  type: 'bool',
879
1056
  },
880
1057
  ],
881
- stateMutability: 'nonpayable',
882
- type: 'function',
1058
+ outputs: [],
883
1059
  },
884
1060
  {
1061
+ stateMutability: 'nonpayable',
1062
+ type: 'function',
1063
+ name: 'updateRedeemAllowlist',
885
1064
  inputs: [
886
1065
  {
887
- name: '_recipient',
1066
+ name: '_user',
888
1067
  type: 'address',
889
1068
  },
890
- ],
891
- name: 'setProtocolRecipient',
892
- outputs: [
893
1069
  {
894
- name: '',
1070
+ name: '_isAllowed',
895
1071
  type: 'bool',
896
1072
  },
897
1073
  ],
898
- stateMutability: 'nonpayable',
899
- type: 'function',
1074
+ outputs: [],
900
1075
  },
901
1076
  {
1077
+ stateMutability: 'nonpayable',
1078
+ type: 'function',
1079
+ name: 'setUsdcYieldPosition',
902
1080
  inputs: [
903
1081
  {
904
- name: '_delayBlocks',
1082
+ name: '_legoId',
905
1083
  type: 'uint256',
906
1084
  },
907
- ],
908
- name: 'setPriceChangeDelay',
909
- outputs: [
910
1085
  {
911
- name: '',
912
- type: 'bool',
1086
+ name: '_vaultToken',
1087
+ type: 'address',
913
1088
  },
914
1089
  ],
915
- stateMutability: 'nonpayable',
916
- type: 'function',
1090
+ outputs: [],
917
1091
  },
918
1092
  {
1093
+ stateMutability: 'nonpayable',
1094
+ type: 'function',
1095
+ name: 'setNumBlocksPerInterval',
919
1096
  inputs: [
920
1097
  {
921
- name: '_ratio',
1098
+ name: '_blocks',
922
1099
  type: 'uint256',
923
1100
  },
924
1101
  ],
925
- name: 'setAmbassadorRatio',
926
- outputs: [
927
- {
928
- name: '',
929
- type: 'bool',
930
- },
931
- ],
932
- stateMutability: 'nonpayable',
933
- type: 'function',
1102
+ outputs: [],
934
1103
  },
935
1104
  {
1105
+ stateMutability: 'nonpayable',
1106
+ type: 'function',
1107
+ name: 'setShouldAutoDeposit',
936
1108
  inputs: [
937
1109
  {
938
- name: '_shouldActivate',
1110
+ name: '_shouldAutoDeposit',
939
1111
  type: 'bool',
940
1112
  },
941
1113
  ],
942
- name: 'activate',
943
1114
  outputs: [],
944
- stateMutability: 'nonpayable',
945
- type: 'function',
946
1115
  },
947
1116
  {
1117
+ stateMutability: 'view',
1118
+ type: 'function',
1119
+ name: 'numBlocksPerInterval',
948
1120
  inputs: [],
949
- name: 'protocolRecipient',
950
1121
  outputs: [
951
1122
  {
952
1123
  name: '',
953
- type: 'address',
1124
+ type: 'uint256',
954
1125
  },
955
1126
  ],
956
- stateMutability: 'view',
957
- type: 'function',
958
1127
  },
959
1128
  {
1129
+ stateMutability: 'view',
1130
+ type: 'function',
1131
+ name: 'usdcYieldPosition',
960
1132
  inputs: [],
961
- name: 'protocolTxPriceData',
962
1133
  outputs: [
963
1134
  {
1135
+ name: '',
1136
+ type: 'tuple',
964
1137
  components: [
965
1138
  {
966
- name: 'yieldFee',
1139
+ name: 'legoId',
967
1140
  type: 'uint256',
968
1141
  },
969
1142
  {
970
- name: 'swapFee',
971
- type: 'uint256',
972
- },
973
- {
974
- name: 'claimRewardsFee',
975
- type: 'uint256',
1143
+ name: 'vaultToken',
1144
+ type: 'address',
976
1145
  },
977
1146
  ],
978
- name: '',
979
- type: 'tuple',
980
1147
  },
981
1148
  ],
982
- stateMutability: 'view',
983
- type: 'function',
984
1149
  },
985
1150
  {
1151
+ stateMutability: 'view',
1152
+ type: 'function',
1153
+ name: 'shouldAutoDeposit',
986
1154
  inputs: [],
987
- name: 'protocolSubPriceData',
988
1155
  outputs: [
989
1156
  {
990
- components: [
991
- {
992
- name: 'asset',
993
- type: 'address',
994
- },
995
- {
996
- name: 'usdValue',
997
- type: 'uint256',
998
- },
999
- {
1000
- name: 'trialPeriod',
1001
- type: 'uint256',
1002
- },
1003
- {
1004
- name: 'payPeriod',
1005
- type: 'uint256',
1006
- },
1007
- ],
1008
1157
  name: '',
1009
- type: 'tuple',
1158
+ type: 'bool',
1010
1159
  },
1011
1160
  ],
1012
- stateMutability: 'view',
1013
- type: 'function',
1014
1161
  },
1015
1162
  {
1163
+ stateMutability: 'view',
1164
+ type: 'function',
1165
+ name: 'canMint',
1016
1166
  inputs: [],
1017
- name: 'isAgentSubPricingEnabled',
1018
1167
  outputs: [
1019
1168
  {
1020
1169
  name: '',
1021
1170
  type: 'bool',
1022
1171
  },
1023
1172
  ],
1024
- stateMutability: 'view',
1025
- type: 'function',
1026
1173
  },
1027
1174
  {
1028
- inputs: [
1175
+ stateMutability: 'view',
1176
+ type: 'function',
1177
+ name: 'mintFee',
1178
+ inputs: [],
1179
+ outputs: [
1029
1180
  {
1030
- name: 'arg0',
1031
- type: 'address',
1181
+ name: '',
1182
+ type: 'uint256',
1032
1183
  },
1033
1184
  ],
1034
- name: 'agentSubPriceData',
1185
+ },
1186
+ {
1187
+ stateMutability: 'view',
1188
+ type: 'function',
1189
+ name: 'maxIntervalMint',
1190
+ inputs: [],
1035
1191
  outputs: [
1036
1192
  {
1037
- components: [
1038
- {
1039
- name: 'asset',
1040
- type: 'address',
1041
- },
1042
- {
1043
- name: 'usdValue',
1044
- type: 'uint256',
1045
- },
1046
- {
1047
- name: 'trialPeriod',
1048
- type: 'uint256',
1049
- },
1050
- {
1051
- name: 'payPeriod',
1052
- type: 'uint256',
1053
- },
1054
- ],
1055
1193
  name: '',
1056
- type: 'tuple',
1194
+ type: 'uint256',
1057
1195
  },
1058
1196
  ],
1059
- stateMutability: 'view',
1060
- type: 'function',
1061
1197
  },
1062
1198
  {
1199
+ stateMutability: 'view',
1200
+ type: 'function',
1201
+ name: 'mintAllowlist',
1063
1202
  inputs: [
1064
1203
  {
1065
1204
  name: 'arg0',
1066
1205
  type: 'address',
1067
1206
  },
1068
1207
  ],
1069
- name: 'pendingAgentSubPrices',
1070
1208
  outputs: [
1071
1209
  {
1072
- components: [
1073
- {
1074
- components: [
1075
- {
1076
- name: 'asset',
1077
- type: 'address',
1078
- },
1079
- {
1080
- name: 'usdValue',
1081
- type: 'uint256',
1082
- },
1083
- {
1084
- name: 'trialPeriod',
1085
- type: 'uint256',
1086
- },
1087
- {
1088
- name: 'payPeriod',
1089
- type: 'uint256',
1090
- },
1091
- ],
1092
- name: 'subInfo',
1093
- type: 'tuple',
1094
- },
1095
- {
1096
- name: 'effectiveBlock',
1097
- type: 'uint256',
1098
- },
1099
- ],
1100
1210
  name: '',
1101
- type: 'tuple',
1211
+ type: 'bool',
1102
1212
  },
1103
1213
  ],
1104
- stateMutability: 'view',
1105
- type: 'function',
1106
1214
  },
1107
1215
  {
1216
+ stateMutability: 'view',
1217
+ type: 'function',
1218
+ name: 'shouldEnforceMintAllowlist',
1108
1219
  inputs: [],
1109
- name: 'priceChangeDelay',
1110
1220
  outputs: [
1111
1221
  {
1112
1222
  name: '',
1113
- type: 'uint256',
1223
+ type: 'bool',
1114
1224
  },
1115
1225
  ],
1116
- stateMutability: 'view',
1117
- type: 'function',
1118
1226
  },
1119
1227
  {
1228
+ stateMutability: 'view',
1229
+ type: 'function',
1230
+ name: 'globalMintInterval',
1120
1231
  inputs: [],
1121
- name: 'ambassadorRatio',
1122
1232
  outputs: [
1123
1233
  {
1124
1234
  name: '',
1125
- type: 'uint256',
1235
+ type: 'tuple',
1236
+ components: [
1237
+ {
1238
+ name: 'start',
1239
+ type: 'uint256',
1240
+ },
1241
+ {
1242
+ name: 'amount',
1243
+ type: 'uint256',
1244
+ },
1245
+ ],
1126
1246
  },
1127
1247
  ],
1128
- stateMutability: 'view',
1129
- type: 'function',
1130
1248
  },
1131
1249
  {
1250
+ stateMutability: 'view',
1251
+ type: 'function',
1252
+ name: 'canRedeem',
1132
1253
  inputs: [],
1133
- name: 'ADDY_REGISTRY',
1134
1254
  outputs: [
1135
1255
  {
1136
1256
  name: '',
1137
- type: 'address',
1257
+ type: 'bool',
1138
1258
  },
1139
1259
  ],
1140
- stateMutability: 'view',
1141
- type: 'function',
1142
1260
  },
1143
1261
  {
1262
+ stateMutability: 'view',
1263
+ type: 'function',
1264
+ name: 'redeemFee',
1144
1265
  inputs: [],
1145
- name: 'isActivated',
1146
1266
  outputs: [
1147
1267
  {
1148
1268
  name: '',
1149
- type: 'bool',
1269
+ type: 'uint256',
1150
1270
  },
1151
1271
  ],
1152
- stateMutability: 'view',
1153
- type: 'function',
1154
1272
  },
1155
1273
  {
1274
+ stateMutability: 'view',
1275
+ type: 'function',
1276
+ name: 'maxIntervalRedeem',
1156
1277
  inputs: [],
1157
- name: 'MIN_TRIAL_PERIOD',
1158
1278
  outputs: [
1159
1279
  {
1160
1280
  name: '',
1161
1281
  type: 'uint256',
1162
1282
  },
1163
1283
  ],
1164
- stateMutability: 'view',
1165
- type: 'function',
1166
1284
  },
1167
1285
  {
1168
- inputs: [],
1169
- name: 'MAX_TRIAL_PERIOD',
1286
+ stateMutability: 'view',
1287
+ type: 'function',
1288
+ name: 'redeemAllowlist',
1289
+ inputs: [
1290
+ {
1291
+ name: 'arg0',
1292
+ type: 'address',
1293
+ },
1294
+ ],
1170
1295
  outputs: [
1171
1296
  {
1172
1297
  name: '',
1173
- type: 'uint256',
1298
+ type: 'bool',
1174
1299
  },
1175
1300
  ],
1176
- stateMutability: 'view',
1177
- type: 'function',
1178
1301
  },
1179
1302
  {
1303
+ stateMutability: 'view',
1304
+ type: 'function',
1305
+ name: 'shouldEnforceRedeemAllowlist',
1180
1306
  inputs: [],
1181
- name: 'MIN_PAY_PERIOD',
1182
1307
  outputs: [
1183
1308
  {
1184
1309
  name: '',
1185
- type: 'uint256',
1310
+ type: 'bool',
1186
1311
  },
1187
1312
  ],
1188
- stateMutability: 'view',
1189
- type: 'function',
1190
1313
  },
1191
1314
  {
1315
+ stateMutability: 'view',
1316
+ type: 'function',
1317
+ name: 'globalRedeemInterval',
1192
1318
  inputs: [],
1193
- name: 'MAX_PAY_PERIOD',
1194
1319
  outputs: [
1195
1320
  {
1196
1321
  name: '',
1197
- type: 'uint256',
1322
+ type: 'tuple',
1323
+ components: [
1324
+ {
1325
+ name: 'start',
1326
+ type: 'uint256',
1327
+ },
1328
+ {
1329
+ name: 'amount',
1330
+ type: 'uint256',
1331
+ },
1332
+ ],
1198
1333
  },
1199
1334
  ],
1200
- stateMutability: 'view',
1201
- type: 'function',
1202
1335
  },
1203
1336
  {
1337
+ stateMutability: 'view',
1338
+ type: 'function',
1339
+ name: 'USDC',
1204
1340
  inputs: [],
1205
- name: 'MIN_PRICE_CHANGE_BUFFER',
1206
1341
  outputs: [
1207
1342
  {
1208
1343
  name: '',
1209
- type: 'uint256',
1344
+ type: 'address',
1210
1345
  },
1211
1346
  ],
1212
- stateMutability: 'view',
1213
- type: 'function',
1214
1347
  },
1215
1348
  {
1349
+ stateMutability: 'nonpayable',
1350
+ type: 'constructor',
1216
1351
  inputs: [
1217
1352
  {
1218
- name: '_minTrialPeriod',
1353
+ name: '_ripeHq',
1354
+ type: 'address',
1355
+ },
1356
+ {
1357
+ name: '_numBlocksPerInterval',
1219
1358
  type: 'uint256',
1220
1359
  },
1221
1360
  {
1222
- name: '_maxTrialPeriod',
1361
+ name: '_mintFee',
1223
1362
  type: 'uint256',
1224
1363
  },
1225
1364
  {
1226
- name: '_minPayPeriod',
1365
+ name: '_maxIntervalMint',
1227
1366
  type: 'uint256',
1228
1367
  },
1229
1368
  {
1230
- name: '_maxPayPeriod',
1369
+ name: '_redeemFee',
1231
1370
  type: 'uint256',
1232
1371
  },
1233
1372
  {
1234
- name: '_minPriceChangeBuffer',
1373
+ name: '_maxIntervalRedeem',
1235
1374
  type: 'uint256',
1236
1375
  },
1237
1376
  {
1238
- name: '_addyRegistry',
1377
+ name: '_usdc',
1378
+ type: 'address',
1379
+ },
1380
+ {
1381
+ name: '_usdcYieldLegoId',
1382
+ type: 'uint256',
1383
+ },
1384
+ {
1385
+ name: '_usdcYieldVaultToken',
1239
1386
  type: 'address',
1240
1387
  },
1241
1388
  ],
1242
1389
  outputs: [],
1243
- stateMutability: 'nonpayable',
1244
- type: 'constructor',
1245
1390
  },
1246
1391
  ];
1247
- export const deployAddress = '0xD15331Cf355B5D8EF017c1FD49516b95593FA6aA';
1392
+ export const deployAddress = '0x2893d0dfa54571bDc7DE60F2d8a456d3377CcAA7';
1248
1393
  function getRequest(method, args, contractAddressOrOptions) {
1249
1394
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1250
1395
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1251
1396
  const call = {
1252
- contractName: 'PriceSheets',
1397
+ contractName: 'EndaomentPSM',
1253
1398
  method,
1254
1399
  args,
1255
1400
  address,
@@ -1273,38 +1418,38 @@ function getRequest(method, args, contractAddressOrOptions) {
1273
1418
  return call;
1274
1419
  }
1275
1420
  export const call = {
1276
- canGovern: (...args) => getRequest('canGovern', args),
1277
- hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
1278
- governance: (...args) => getRequest('governance', args),
1279
- pendingGov: (...args) => getRequest('pendingGov', args),
1280
- govChangeDelay: (...args) => getRequest('govChangeDelay', args),
1281
- MIN_GOV_CHANGE_DELAY: (...args) => getRequest('MIN_GOV_CHANGE_DELAY', args),
1282
- MAX_GOV_CHANGE_DELAY: (...args) => getRequest('MAX_GOV_CHANGE_DELAY', args),
1283
- getCombinedSubData: (...args) => getRequest('getCombinedSubData', args),
1284
- getAgentSubPriceData: (...args) => getRequest('getAgentSubPriceData', args),
1285
- isValidSubPrice: (...args) => getRequest('isValidSubPrice', args),
1286
- getTransactionFeeDataWithAmbassadorRatio: (...args) => getRequest('getTransactionFeeDataWithAmbassadorRatio', args),
1287
- getTransactionFeeData: (...args) => getRequest('getTransactionFeeData', args),
1288
- isValidTxPriceSheet: (...args) => getRequest('isValidTxPriceSheet', args),
1289
- protocolRecipient: (...args) => getRequest('protocolRecipient', args),
1290
- protocolTxPriceData: (...args) => getRequest('protocolTxPriceData', args),
1291
- protocolSubPriceData: (...args) => getRequest('protocolSubPriceData', args),
1292
- isAgentSubPricingEnabled: (...args) => getRequest('isAgentSubPricingEnabled', args),
1293
- agentSubPriceData: (...args) => getRequest('agentSubPriceData', args),
1294
- pendingAgentSubPrices: (...args) => getRequest('pendingAgentSubPrices', args),
1295
- priceChangeDelay: (...args) => getRequest('priceChangeDelay', args),
1296
- ambassadorRatio: (...args) => getRequest('ambassadorRatio', args),
1297
- ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
1298
- isActivated: (...args) => getRequest('isActivated', args),
1299
- MIN_TRIAL_PERIOD: (...args) => getRequest('MIN_TRIAL_PERIOD', args),
1300
- MAX_TRIAL_PERIOD: (...args) => getRequest('MAX_TRIAL_PERIOD', args),
1301
- MIN_PAY_PERIOD: (...args) => getRequest('MIN_PAY_PERIOD', args),
1302
- MAX_PAY_PERIOD: (...args) => getRequest('MAX_PAY_PERIOD', args),
1303
- MIN_PRICE_CHANGE_BUFFER: (...args) => getRequest('MIN_PRICE_CHANGE_BUFFER', args),
1421
+ getAddys: (...args) => getRequest('getAddys', args),
1422
+ getRipeHq: (...args) => getRequest('getRipeHq', args),
1423
+ canMintGreen: (...args) => getRequest('canMintGreen', args),
1424
+ canMintRipe: (...args) => getRequest('canMintRipe', args),
1425
+ isPaused: (...args) => getRequest('isPaused', args),
1426
+ getMaxUsdcAmountForMint: (...args) => getRequest('getMaxUsdcAmountForMint', args),
1427
+ getAvailIntervalMint: (...args) => getRequest('getAvailIntervalMint', args),
1428
+ getMaxRedeemableGreenAmount: (...args) => getRequest('getMaxRedeemableGreenAmount', args),
1429
+ getAvailIntervalRedemptions: (...args) => getRequest('getAvailIntervalRedemptions', args),
1430
+ getUsdcYieldPositionVaultToken: (...args) => getRequest('getUsdcYieldPositionVaultToken', args),
1431
+ getUnderlyingYieldAmount: (...args) => getRequest('getUnderlyingYieldAmount', args),
1432
+ getAvailableUsdc: (...args) => getRequest('getAvailableUsdc', args),
1433
+ numBlocksPerInterval: (...args) => getRequest('numBlocksPerInterval', args),
1434
+ usdcYieldPosition: (...args) => getRequest('usdcYieldPosition', args),
1435
+ shouldAutoDeposit: (...args) => getRequest('shouldAutoDeposit', args),
1436
+ canMint: (...args) => getRequest('canMint', args),
1437
+ mintFee: (...args) => getRequest('mintFee', args),
1438
+ maxIntervalMint: (...args) => getRequest('maxIntervalMint', args),
1439
+ mintAllowlist: (...args) => getRequest('mintAllowlist', args),
1440
+ shouldEnforceMintAllowlist: (...args) => getRequest('shouldEnforceMintAllowlist', args),
1441
+ globalMintInterval: (...args) => getRequest('globalMintInterval', args),
1442
+ canRedeem: (...args) => getRequest('canRedeem', args),
1443
+ redeemFee: (...args) => getRequest('redeemFee', args),
1444
+ maxIntervalRedeem: (...args) => getRequest('maxIntervalRedeem', args),
1445
+ redeemAllowlist: (...args) => getRequest('redeemAllowlist', args),
1446
+ shouldEnforceRedeemAllowlist: (...args) => getRequest('shouldEnforceRedeemAllowlist', args),
1447
+ globalRedeemInterval: (...args) => getRequest('globalRedeemInterval', args),
1448
+ USDC: (...args) => getRequest('USDC', args),
1304
1449
  };
1305
1450
  function getMutation(functionName) {
1306
1451
  return {
1307
- contractName: 'PriceSheets',
1452
+ contractName: 'EndaomentPSM',
1308
1453
  functionName,
1309
1454
  deployAddress,
1310
1455
  argsType: undefined,
@@ -1312,72 +1457,82 @@ function getMutation(functionName) {
1312
1457
  };
1313
1458
  }
1314
1459
  export const mutation = {
1315
- changeGovernance: getMutation('changeGovernance'),
1316
- confirmGovernanceChange: getMutation('confirmGovernanceChange'),
1317
- cancelGovernanceChange: getMutation('cancelGovernanceChange'),
1318
- setGovernanceChangeDelay: getMutation('setGovernanceChangeDelay'),
1319
- setAgentSubPrice: getMutation('setAgentSubPrice'),
1320
- finalizePendingAgentSubPrice: getMutation('finalizePendingAgentSubPrice'),
1321
- removeAgentSubPrice: getMutation('removeAgentSubPrice'),
1322
- setAgentSubPricingEnabled: getMutation('setAgentSubPricingEnabled'),
1323
- setProtocolSubPrice: getMutation('setProtocolSubPrice'),
1324
- removeProtocolSubPrice: getMutation('removeProtocolSubPrice'),
1325
- setProtocolTxPriceSheet: getMutation('setProtocolTxPriceSheet'),
1326
- removeProtocolTxPriceSheet: getMutation('removeProtocolTxPriceSheet'),
1327
- setProtocolRecipient: getMutation('setProtocolRecipient'),
1328
- setPriceChangeDelay: getMutation('setPriceChangeDelay'),
1329
- setAmbassadorRatio: getMutation('setAmbassadorRatio'),
1330
- activate: getMutation('activate'),
1460
+ pause: getMutation('pause'),
1461
+ recoverFunds: getMutation('recoverFunds'),
1462
+ recoverFundsMany: getMutation('recoverFundsMany'),
1463
+ mintGreen: getMutation('mintGreen'),
1464
+ redeemGreen: getMutation('redeemGreen'),
1465
+ depositToYield: getMutation('depositToYield'),
1466
+ withdrawFromYield: getMutation('withdrawFromYield'),
1467
+ transferUsdcToEndaomentFunds: getMutation('transferUsdcToEndaomentFunds'),
1468
+ setCanMint: getMutation('setCanMint'),
1469
+ setMintFee: getMutation('setMintFee'),
1470
+ setMaxIntervalMint: getMutation('setMaxIntervalMint'),
1471
+ setShouldEnforceMintAllowlist: getMutation('setShouldEnforceMintAllowlist'),
1472
+ updateMintAllowlist: getMutation('updateMintAllowlist'),
1473
+ setCanRedeem: getMutation('setCanRedeem'),
1474
+ setRedeemFee: getMutation('setRedeemFee'),
1475
+ setMaxIntervalRedeem: getMutation('setMaxIntervalRedeem'),
1476
+ setShouldEnforceRedeemAllowlist: getMutation('setShouldEnforceRedeemAllowlist'),
1477
+ updateRedeemAllowlist: getMutation('updateRedeemAllowlist'),
1478
+ setUsdcYieldPosition: getMutation('setUsdcYieldPosition'),
1479
+ setNumBlocksPerInterval: getMutation('setNumBlocksPerInterval'),
1480
+ setShouldAutoDeposit: getMutation('setShouldAutoDeposit'),
1331
1481
  };
1332
- export function toSdk(deployAddress, publicClient, walletClient) {
1482
+ export function toSdk(publicClient, walletClient) {
1333
1483
  return {
1334
1484
  deployAddress,
1335
1485
  abi,
1336
1486
  // Queries
1337
- canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args).at(deployAddress)),
1338
- hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args).at(deployAddress)),
1339
- governance: (...args) => singleQuery(publicClient, call.governance(...args).at(deployAddress)),
1340
- pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args).at(deployAddress)),
1341
- govChangeDelay: (...args) => singleQuery(publicClient, call.govChangeDelay(...args).at(deployAddress)),
1342
- MIN_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_GOV_CHANGE_DELAY(...args).at(deployAddress)),
1343
- MAX_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_GOV_CHANGE_DELAY(...args).at(deployAddress)),
1344
- getCombinedSubData: (...args) => singleQuery(publicClient, call.getCombinedSubData(...args).at(deployAddress)),
1345
- getAgentSubPriceData: (...args) => singleQuery(publicClient, call.getAgentSubPriceData(...args).at(deployAddress)),
1346
- isValidSubPrice: (...args) => singleQuery(publicClient, call.isValidSubPrice(...args).at(deployAddress)),
1347
- getTransactionFeeDataWithAmbassadorRatio: (...args) => singleQuery(publicClient, call.getTransactionFeeDataWithAmbassadorRatio(...args).at(deployAddress)),
1348
- getTransactionFeeData: (...args) => singleQuery(publicClient, call.getTransactionFeeData(...args).at(deployAddress)),
1349
- isValidTxPriceSheet: (...args) => singleQuery(publicClient, call.isValidTxPriceSheet(...args).at(deployAddress)),
1350
- protocolRecipient: (...args) => singleQuery(publicClient, call.protocolRecipient(...args).at(deployAddress)),
1351
- protocolTxPriceData: (...args) => singleQuery(publicClient, call.protocolTxPriceData(...args).at(deployAddress)),
1352
- protocolSubPriceData: (...args) => singleQuery(publicClient, call.protocolSubPriceData(...args).at(deployAddress)),
1353
- isAgentSubPricingEnabled: (...args) => singleQuery(publicClient, call.isAgentSubPricingEnabled(...args).at(deployAddress)),
1354
- agentSubPriceData: (...args) => singleQuery(publicClient, call.agentSubPriceData(...args).at(deployAddress)),
1355
- pendingAgentSubPrices: (...args) => singleQuery(publicClient, call.pendingAgentSubPrices(...args).at(deployAddress)),
1356
- priceChangeDelay: (...args) => singleQuery(publicClient, call.priceChangeDelay(...args).at(deployAddress)),
1357
- ambassadorRatio: (...args) => singleQuery(publicClient, call.ambassadorRatio(...args).at(deployAddress)),
1358
- ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args).at(deployAddress)),
1359
- isActivated: (...args) => singleQuery(publicClient, call.isActivated(...args).at(deployAddress)),
1360
- MIN_TRIAL_PERIOD: (...args) => singleQuery(publicClient, call.MIN_TRIAL_PERIOD(...args).at(deployAddress)),
1361
- MAX_TRIAL_PERIOD: (...args) => singleQuery(publicClient, call.MAX_TRIAL_PERIOD(...args).at(deployAddress)),
1362
- MIN_PAY_PERIOD: (...args) => singleQuery(publicClient, call.MIN_PAY_PERIOD(...args).at(deployAddress)),
1363
- MAX_PAY_PERIOD: (...args) => singleQuery(publicClient, call.MAX_PAY_PERIOD(...args).at(deployAddress)),
1364
- MIN_PRICE_CHANGE_BUFFER: (...args) => singleQuery(publicClient, call.MIN_PRICE_CHANGE_BUFFER(...args).at(deployAddress)),
1487
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args)),
1488
+ getRipeHq: (...args) => singleQuery(publicClient, call.getRipeHq(...args)),
1489
+ canMintGreen: (...args) => singleQuery(publicClient, call.canMintGreen(...args)),
1490
+ canMintRipe: (...args) => singleQuery(publicClient, call.canMintRipe(...args)),
1491
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
1492
+ getMaxUsdcAmountForMint: (...args) => singleQuery(publicClient, call.getMaxUsdcAmountForMint(...args)),
1493
+ getAvailIntervalMint: (...args) => singleQuery(publicClient, call.getAvailIntervalMint(...args)),
1494
+ getMaxRedeemableGreenAmount: (...args) => singleQuery(publicClient, call.getMaxRedeemableGreenAmount(...args)),
1495
+ getAvailIntervalRedemptions: (...args) => singleQuery(publicClient, call.getAvailIntervalRedemptions(...args)),
1496
+ getUsdcYieldPositionVaultToken: (...args) => singleQuery(publicClient, call.getUsdcYieldPositionVaultToken(...args)),
1497
+ getUnderlyingYieldAmount: (...args) => singleQuery(publicClient, call.getUnderlyingYieldAmount(...args)),
1498
+ getAvailableUsdc: (...args) => singleQuery(publicClient, call.getAvailableUsdc(...args)),
1499
+ numBlocksPerInterval: (...args) => singleQuery(publicClient, call.numBlocksPerInterval(...args)),
1500
+ usdcYieldPosition: (...args) => singleQuery(publicClient, call.usdcYieldPosition(...args)),
1501
+ shouldAutoDeposit: (...args) => singleQuery(publicClient, call.shouldAutoDeposit(...args)),
1502
+ canMint: (...args) => singleQuery(publicClient, call.canMint(...args)),
1503
+ mintFee: (...args) => singleQuery(publicClient, call.mintFee(...args)),
1504
+ maxIntervalMint: (...args) => singleQuery(publicClient, call.maxIntervalMint(...args)),
1505
+ mintAllowlist: (...args) => singleQuery(publicClient, call.mintAllowlist(...args)),
1506
+ shouldEnforceMintAllowlist: (...args) => singleQuery(publicClient, call.shouldEnforceMintAllowlist(...args)),
1507
+ globalMintInterval: (...args) => singleQuery(publicClient, call.globalMintInterval(...args)),
1508
+ canRedeem: (...args) => singleQuery(publicClient, call.canRedeem(...args)),
1509
+ redeemFee: (...args) => singleQuery(publicClient, call.redeemFee(...args)),
1510
+ maxIntervalRedeem: (...args) => singleQuery(publicClient, call.maxIntervalRedeem(...args)),
1511
+ redeemAllowlist: (...args) => singleQuery(publicClient, call.redeemAllowlist(...args)),
1512
+ shouldEnforceRedeemAllowlist: (...args) => singleQuery(publicClient, call.shouldEnforceRedeemAllowlist(...args)),
1513
+ globalRedeemInterval: (...args) => singleQuery(publicClient, call.globalRedeemInterval(...args)),
1514
+ USDC: (...args) => singleQuery(publicClient, call.USDC(...args)),
1365
1515
  // Mutations
1366
- changeGovernance: (...args) => mutate(walletClient, mutation.changeGovernance, { address: deployAddress })(...args),
1367
- confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange, { address: deployAddress })(...args),
1368
- cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange, { address: deployAddress })(...args),
1369
- setGovernanceChangeDelay: (...args) => mutate(walletClient, mutation.setGovernanceChangeDelay, { address: deployAddress })(...args),
1370
- setAgentSubPrice: (...args) => mutate(walletClient, mutation.setAgentSubPrice, { address: deployAddress })(...args),
1371
- finalizePendingAgentSubPrice: (...args) => mutate(walletClient, mutation.finalizePendingAgentSubPrice, { address: deployAddress })(...args),
1372
- removeAgentSubPrice: (...args) => mutate(walletClient, mutation.removeAgentSubPrice, { address: deployAddress })(...args),
1373
- setAgentSubPricingEnabled: (...args) => mutate(walletClient, mutation.setAgentSubPricingEnabled, { address: deployAddress })(...args),
1374
- setProtocolSubPrice: (...args) => mutate(walletClient, mutation.setProtocolSubPrice, { address: deployAddress })(...args),
1375
- removeProtocolSubPrice: (...args) => mutate(walletClient, mutation.removeProtocolSubPrice, { address: deployAddress })(...args),
1376
- setProtocolTxPriceSheet: (...args) => mutate(walletClient, mutation.setProtocolTxPriceSheet, { address: deployAddress })(...args),
1377
- removeProtocolTxPriceSheet: (...args) => mutate(walletClient, mutation.removeProtocolTxPriceSheet, { address: deployAddress })(...args),
1378
- setProtocolRecipient: (...args) => mutate(walletClient, mutation.setProtocolRecipient, { address: deployAddress })(...args),
1379
- setPriceChangeDelay: (...args) => mutate(walletClient, mutation.setPriceChangeDelay, { address: deployAddress })(...args),
1380
- setAmbassadorRatio: (...args) => mutate(walletClient, mutation.setAmbassadorRatio, { address: deployAddress })(...args),
1381
- activate: (...args) => mutate(walletClient, mutation.activate, { address: deployAddress })(...args),
1516
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
1517
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
1518
+ recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
1519
+ mintGreen: (...args) => mutate(walletClient, mutation.mintGreen)(...args),
1520
+ redeemGreen: (...args) => mutate(walletClient, mutation.redeemGreen)(...args),
1521
+ depositToYield: (...args) => mutate(walletClient, mutation.depositToYield)(...args),
1522
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
1523
+ transferUsdcToEndaomentFunds: (...args) => mutate(walletClient, mutation.transferUsdcToEndaomentFunds)(...args),
1524
+ setCanMint: (...args) => mutate(walletClient, mutation.setCanMint)(...args),
1525
+ setMintFee: (...args) => mutate(walletClient, mutation.setMintFee)(...args),
1526
+ setMaxIntervalMint: (...args) => mutate(walletClient, mutation.setMaxIntervalMint)(...args),
1527
+ setShouldEnforceMintAllowlist: (...args) => mutate(walletClient, mutation.setShouldEnforceMintAllowlist)(...args),
1528
+ updateMintAllowlist: (...args) => mutate(walletClient, mutation.updateMintAllowlist)(...args),
1529
+ setCanRedeem: (...args) => mutate(walletClient, mutation.setCanRedeem)(...args),
1530
+ setRedeemFee: (...args) => mutate(walletClient, mutation.setRedeemFee)(...args),
1531
+ setMaxIntervalRedeem: (...args) => mutate(walletClient, mutation.setMaxIntervalRedeem)(...args),
1532
+ setShouldEnforceRedeemAllowlist: (...args) => mutate(walletClient, mutation.setShouldEnforceRedeemAllowlist)(...args),
1533
+ updateRedeemAllowlist: (...args) => mutate(walletClient, mutation.updateRedeemAllowlist)(...args),
1534
+ setUsdcYieldPosition: (...args) => mutate(walletClient, mutation.setUsdcYieldPosition)(...args),
1535
+ setNumBlocksPerInterval: (...args) => mutate(walletClient, mutation.setNumBlocksPerInterval)(...args),
1536
+ setShouldAutoDeposit: (...args) => mutate(walletClient, mutation.setShouldAutoDeposit)(...args),
1382
1537
  };
1383
1538
  }