@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.
- package/dist/contracts/AuctionHouse.d.ts +126 -60
- package/dist/contracts/AuctionHouse.d.ts.map +1 -1
- package/dist/contracts/AuctionHouse.js +145 -75
- package/dist/contracts/BondRoom.js +1 -1
- package/dist/contracts/CreditEngine.d.ts +741 -272
- package/dist/contracts/CreditEngine.d.ts.map +1 -1
- package/dist/contracts/CreditEngine.js +820 -266
- package/dist/contracts/CreditRedeem.d.ts +475 -0
- package/dist/contracts/CreditRedeem.d.ts.map +1 -0
- package/dist/contracts/CreditRedeem.js +551 -0
- package/dist/contracts/Deleverage.d.ts +929 -0
- package/dist/contracts/Deleverage.d.ts.map +1 -0
- package/dist/contracts/Deleverage.js +1095 -0
- package/dist/contracts/Endaoment.d.ts +230 -1138
- package/dist/contracts/Endaoment.d.ts.map +1 -1
- package/dist/contracts/Endaoment.js +216 -1445
- package/dist/contracts/EndaomentFunds.d.ts +241 -0
- package/dist/contracts/EndaomentFunds.d.ts.map +1 -0
- package/dist/contracts/EndaomentFunds.js +278 -0
- package/dist/contracts/EndaomentPSM.d.ts +1229 -0
- package/dist/contracts/EndaomentPSM.d.ts.map +1 -0
- package/dist/contracts/{PriceSheets.js → EndaomentPSM.js} +840 -685
- package/dist/contracts/Lootbox.d.ts +184 -0
- package/dist/contracts/Lootbox.d.ts.map +1 -1
- package/dist/contracts/Lootbox.js +232 -1
- package/dist/contracts/PriceDesk.js +1 -1
- package/dist/contracts/PythPrices.d.ts +60 -8
- package/dist/contracts/PythPrices.d.ts.map +1 -1
- package/dist/contracts/PythPrices.js +77 -9
- package/dist/contracts/RedStone.d.ts +1581 -0
- package/dist/contracts/RedStone.d.ts.map +1 -0
- package/dist/contracts/{AgentFactory_v2.js → RedStone.js} +1077 -682
- package/dist/contracts/RipePoolAero.d.ts +5 -5
- package/dist/contracts/RipePoolAero.d.ts.map +1 -1
- package/dist/contracts/StorkPrices.d.ts +8 -8
- package/dist/contracts/StorkPrices.d.ts.map +1 -1
- package/dist/contracts/StorkPrices.js +9 -9
- package/dist/contracts/SwitchboardAlpha.d.ts +168 -0
- package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
- package/dist/contracts/SwitchboardAlpha.js +217 -1
- package/dist/contracts/SwitchboardCharlie.d.ts +133 -1760
- package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
- package/dist/contracts/SwitchboardCharlie.js +129 -2217
- package/dist/contracts/SwitchboardDelta.d.ts +115 -0
- package/dist/contracts/SwitchboardDelta.d.ts.map +1 -1
- package/dist/contracts/SwitchboardDelta.js +144 -1
- package/dist/contracts/SwitchboardEcho.d.ts +3296 -0
- package/dist/contracts/SwitchboardEcho.d.ts.map +1 -0
- package/dist/contracts/{Agent.js → SwitchboardEcho.js} +2424 -1698
- package/dist/contracts/Teller.d.ts +378 -0
- package/dist/contracts/Teller.d.ts.map +1 -1
- package/dist/contracts/Teller.js +475 -1
- package/dist/contracts/TellerUtils.d.ts +819 -0
- package/dist/contracts/TellerUtils.d.ts.map +1 -0
- package/dist/contracts/TellerUtils.js +994 -0
- package/dist/contracts/UnderscoreVault.d.ts +1028 -0
- package/dist/contracts/UnderscoreVault.d.ts.map +1 -0
- package/dist/contracts/UnderscoreVault.js +1243 -0
- package/dist/contracts/UndyVaultPrices.d.ts +1781 -0
- package/dist/contracts/UndyVaultPrices.d.ts.map +1 -0
- package/dist/contracts/{AgentFactory.js → UndyVaultPrices.js} +1185 -1024
- package/dist/contracts/index.d.ts +10 -0
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +10 -0
- package/dist/contracts/sdk.d.ts +20 -0
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +20 -0
- package/dist/contracts/{LegoMorpho.d.ts → wsuperOETHbPrices.d.ts} +610 -573
- package/dist/contracts/wsuperOETHbPrices.d.ts.map +1 -0
- package/dist/contracts/{LegoMorpho.js → wsuperOETHbPrices.js} +654 -632
- package/dist/index.d.ts +354 -68
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -0
- package/package.json +3 -3
- package/dist/contracts/AddyRegistry.d.ts +0 -1109
- package/dist/contracts/AddyRegistry.d.ts.map +0 -1
- package/dist/contracts/AddyRegistry.js +0 -1392
- package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
- package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
- package/dist/contracts/AddyRegistry_v1.js +0 -594
- package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
- package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
- package/dist/contracts/AddyRegistry_v2.js +0 -1313
- package/dist/contracts/Agent.d.ts +0 -2709
- package/dist/contracts/Agent.d.ts.map +0 -1
- package/dist/contracts/AgentFactory.d.ts +0 -1665
- package/dist/contracts/AgentFactory.d.ts.map +0 -1
- package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
- package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
- package/dist/contracts/AgentFactory_v1.js +0 -1336
- package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
- package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
- package/dist/contracts/AgentTemplate.d.ts +0 -2629
- package/dist/contracts/AgentTemplate.d.ts.map +0 -1
- package/dist/contracts/AgentTemplate.js +0 -3370
- package/dist/contracts/Agent_v1.d.ts +0 -2631
- package/dist/contracts/Agent_v1.d.ts.map +0 -1
- package/dist/contracts/Agent_v1.js +0 -3372
- package/dist/contracts/Agent_v2.d.ts +0 -2709
- package/dist/contracts/Agent_v2.d.ts.map +0 -1
- package/dist/contracts/Agent_v2.js +0 -3458
- package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
- package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
- package/dist/contracts/ChainlinkFeeds.js +0 -900
- package/dist/contracts/LegoAaveV3.d.ts +0 -1033
- package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
- package/dist/contracts/LegoAaveV3.js +0 -1330
- package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
- package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
- package/dist/contracts/LegoAeroClassic.js +0 -1546
- package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
- package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
- package/dist/contracts/LegoAeroSlipstream.js +0 -1671
- package/dist/contracts/LegoCommon.d.ts +0 -164
- package/dist/contracts/LegoCommon.d.ts.map +0 -1
- package/dist/contracts/LegoCommon.js +0 -202
- package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
- package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
- package/dist/contracts/LegoCompoundV3.js +0 -1365
- package/dist/contracts/LegoCredit.d.ts +0 -140
- package/dist/contracts/LegoCredit.d.ts.map +0 -1
- package/dist/contracts/LegoCredit.js +0 -179
- package/dist/contracts/LegoCurve.d.ts +0 -1189
- package/dist/contracts/LegoCurve.d.ts.map +0 -1
- package/dist/contracts/LegoCurve.js +0 -1519
- package/dist/contracts/LegoDex.d.ts +0 -587
- package/dist/contracts/LegoDex.d.ts.map +0 -1
- package/dist/contracts/LegoDex.js +0 -774
- package/dist/contracts/LegoEuler.d.ts +0 -1074
- package/dist/contracts/LegoEuler.d.ts.map +0 -1
- package/dist/contracts/LegoEuler.js +0 -1383
- package/dist/contracts/LegoFluid.d.ts +0 -1025
- package/dist/contracts/LegoFluid.d.ts.map +0 -1
- package/dist/contracts/LegoFluid.js +0 -1320
- package/dist/contracts/LegoHelper.d.ts +0 -1563
- package/dist/contracts/LegoHelper.d.ts.map +0 -1
- package/dist/contracts/LegoHelper.js +0 -1947
- package/dist/contracts/LegoMoonwell.d.ts +0 -1042
- package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
- package/dist/contracts/LegoMoonwell.js +0 -1342
- package/dist/contracts/LegoMorpho.d.ts.map +0 -1
- package/dist/contracts/LegoRegistry.d.ts +0 -1079
- package/dist/contracts/LegoRegistry.d.ts.map +0 -1
- package/dist/contracts/LegoRegistry.js +0 -1368
- package/dist/contracts/LegoSky.d.ts +0 -923
- package/dist/contracts/LegoSky.d.ts.map +0 -1
- package/dist/contracts/LegoSky.js +0 -1180
- package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
- package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
- package/dist/contracts/LegoUniswapV2.js +0 -1546
- package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
- package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
- package/dist/contracts/LegoUniswapV3.js +0 -1718
- package/dist/contracts/LegoYield.d.ts +0 -390
- package/dist/contracts/LegoYield.d.ts.map +0 -1
- package/dist/contracts/LegoYield.js +0 -511
- package/dist/contracts/OracleParser.d.ts +0 -207
- package/dist/contracts/OracleParser.d.ts.map +0 -1
- package/dist/contracts/OracleParser.js +0 -264
- package/dist/contracts/OracleRegistry.d.ts +0 -1221
- package/dist/contracts/OracleRegistry.d.ts.map +0 -1
- package/dist/contracts/OracleRegistry.js +0 -1562
- package/dist/contracts/PriceSheets.d.ts +0 -1127
- package/dist/contracts/PriceSheets.d.ts.map +0 -1
- package/dist/contracts/PythFeeds.d.ts +0 -640
- package/dist/contracts/PythFeeds.d.ts.map +0 -1
- package/dist/contracts/PythFeeds.js +0 -813
- package/dist/contracts/RipePool.d.ts +0 -1264
- package/dist/contracts/RipePool.d.ts.map +0 -1
- package/dist/contracts/RipePool.js +0 -1627
- package/dist/contracts/StorkFeeds.d.ts +0 -640
- package/dist/contracts/StorkFeeds.d.ts.map +0 -1
- package/dist/contracts/StorkFeeds.js +0 -813
- package/dist/contracts/UserWallet.d.ts +0 -1975
- package/dist/contracts/UserWallet.d.ts.map +0 -1
- package/dist/contracts/UserWallet.js +0 -2577
- package/dist/contracts/UserWalletConfig.d.ts +0 -1852
- package/dist/contracts/UserWalletConfig.d.ts.map +0 -1
- package/dist/contracts/UserWalletConfig.js +0 -2263
- package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
- package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
- package/dist/contracts/UserWalletConfig_v1.js +0 -1676
- package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
- package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
- package/dist/contracts/UserWalletConfig_v2.js +0 -1764
- package/dist/contracts/UserWallet_v1.d.ts +0 -1980
- package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
- package/dist/contracts/UserWallet_v1.js +0 -2581
- package/dist/contracts/UserWallet_v2.d.ts +0 -1958
- package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
- package/dist/contracts/UserWallet_v2.js +0 -2553
- package/dist/contracts/WalletConfig.d.ts +0 -1398
- package/dist/contracts/WalletConfig.d.ts.map +0 -1
- package/dist/contracts/WalletConfig.js +0 -1674
- package/dist/contracts/WalletFunds.d.ts +0 -1978
- package/dist/contracts/WalletFunds.d.ts.map +0 -1
- 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
|
-
|
|
8
|
+
name: 'MintGreen',
|
|
9
9
|
inputs: [
|
|
10
10
|
{
|
|
11
|
-
|
|
12
|
-
name: 'agent',
|
|
11
|
+
name: 'user',
|
|
13
12
|
type: 'address',
|
|
13
|
+
indexed: true,
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
-
|
|
17
|
-
name: 'asset',
|
|
16
|
+
name: 'sender',
|
|
18
17
|
type: 'address',
|
|
18
|
+
indexed: true,
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
|
-
|
|
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
|
-
|
|
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
|
-
|
|
41
|
+
anonymous: false,
|
|
37
42
|
type: 'event',
|
|
38
43
|
},
|
|
39
44
|
{
|
|
40
|
-
|
|
45
|
+
name: 'RedeemGreen',
|
|
41
46
|
inputs: [
|
|
42
47
|
{
|
|
43
|
-
|
|
44
|
-
name: 'agent',
|
|
48
|
+
name: 'user',
|
|
45
49
|
type: 'address',
|
|
50
|
+
indexed: true,
|
|
46
51
|
},
|
|
47
52
|
{
|
|
48
|
-
|
|
49
|
-
name: 'asset',
|
|
53
|
+
name: 'sender',
|
|
50
54
|
type: 'address',
|
|
55
|
+
indexed: true,
|
|
51
56
|
},
|
|
52
57
|
{
|
|
53
|
-
|
|
54
|
-
name: 'usdValue',
|
|
58
|
+
name: 'greenIn',
|
|
55
59
|
type: 'uint256',
|
|
60
|
+
indexed: false,
|
|
56
61
|
},
|
|
57
62
|
{
|
|
58
|
-
|
|
59
|
-
name: 'trialPeriod',
|
|
63
|
+
name: 'usdcOut',
|
|
60
64
|
type: 'uint256',
|
|
65
|
+
indexed: false,
|
|
61
66
|
},
|
|
62
67
|
{
|
|
63
|
-
|
|
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
|
-
|
|
78
|
+
anonymous: false,
|
|
74
79
|
type: 'event',
|
|
75
80
|
},
|
|
76
81
|
{
|
|
77
|
-
|
|
82
|
+
name: 'EndaomentPSMYieldDeposit',
|
|
78
83
|
inputs: [
|
|
79
84
|
{
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
85
|
+
name: 'amount',
|
|
86
|
+
type: 'uint256',
|
|
87
|
+
indexed: false,
|
|
83
88
|
},
|
|
84
89
|
{
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
90
|
+
name: 'vaultToken',
|
|
91
|
+
type: 'address',
|
|
92
|
+
indexed: true,
|
|
88
93
|
},
|
|
89
94
|
{
|
|
90
|
-
|
|
91
|
-
name: 'trialPeriod',
|
|
95
|
+
name: 'vaultTokenReceived',
|
|
92
96
|
type: 'uint256',
|
|
97
|
+
indexed: false,
|
|
93
98
|
},
|
|
94
99
|
{
|
|
95
|
-
|
|
96
|
-
name: 'payPeriod',
|
|
100
|
+
name: 'usdValue',
|
|
97
101
|
type: 'uint256',
|
|
102
|
+
indexed: false,
|
|
98
103
|
},
|
|
99
104
|
],
|
|
100
|
-
|
|
105
|
+
anonymous: false,
|
|
101
106
|
type: 'event',
|
|
102
107
|
},
|
|
103
108
|
{
|
|
104
|
-
|
|
109
|
+
name: 'EndaomentPSMYieldWithdrawal',
|
|
105
110
|
inputs: [
|
|
106
111
|
{
|
|
107
|
-
|
|
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
|
-
|
|
118
|
-
name: 'usdValue',
|
|
117
|
+
name: 'vaultTokenBurned',
|
|
119
118
|
type: 'uint256',
|
|
119
|
+
indexed: false,
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
|
|
123
|
-
name: 'trialPeriod',
|
|
122
|
+
name: 'usdcReceived',
|
|
124
123
|
type: 'uint256',
|
|
124
|
+
indexed: false,
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
|
-
|
|
128
|
-
name: 'payPeriod',
|
|
127
|
+
name: 'usdValue',
|
|
129
128
|
type: 'uint256',
|
|
129
|
+
indexed: false,
|
|
130
130
|
},
|
|
131
131
|
],
|
|
132
|
-
|
|
132
|
+
anonymous: false,
|
|
133
133
|
type: 'event',
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
|
-
|
|
136
|
+
name: 'CanMintUpdated',
|
|
137
137
|
inputs: [
|
|
138
138
|
{
|
|
139
|
-
|
|
140
|
-
|
|
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
|
-
|
|
144
|
+
anonymous: false,
|
|
160
145
|
type: 'event',
|
|
161
146
|
},
|
|
162
147
|
{
|
|
163
|
-
|
|
148
|
+
name: 'CanRedeemUpdated',
|
|
164
149
|
inputs: [
|
|
165
150
|
{
|
|
166
|
-
|
|
167
|
-
name: 'isEnabled',
|
|
151
|
+
name: 'canRedeem',
|
|
168
152
|
type: 'bool',
|
|
153
|
+
indexed: false,
|
|
169
154
|
},
|
|
170
155
|
],
|
|
171
|
-
|
|
156
|
+
anonymous: false,
|
|
172
157
|
type: 'event',
|
|
173
158
|
},
|
|
174
159
|
{
|
|
175
|
-
|
|
160
|
+
name: 'MintFeeUpdated',
|
|
176
161
|
inputs: [
|
|
177
162
|
{
|
|
178
|
-
|
|
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
|
-
|
|
168
|
+
anonymous: false,
|
|
194
169
|
type: 'event',
|
|
195
170
|
},
|
|
196
171
|
{
|
|
197
|
-
|
|
172
|
+
name: 'RedeemFeeUpdated',
|
|
198
173
|
inputs: [
|
|
199
174
|
{
|
|
200
|
-
|
|
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
|
-
|
|
211
|
-
name: 'claimRewardsFee',
|
|
187
|
+
name: 'maxAmount',
|
|
212
188
|
type: 'uint256',
|
|
189
|
+
indexed: false,
|
|
213
190
|
},
|
|
214
191
|
],
|
|
215
|
-
|
|
192
|
+
anonymous: false,
|
|
216
193
|
type: 'event',
|
|
217
194
|
},
|
|
218
195
|
{
|
|
219
|
-
|
|
196
|
+
name: 'MaxIntervalRedeemUpdated',
|
|
220
197
|
inputs: [
|
|
221
198
|
{
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
199
|
+
name: 'maxAmount',
|
|
200
|
+
type: 'uint256',
|
|
201
|
+
indexed: false,
|
|
225
202
|
},
|
|
226
203
|
],
|
|
227
|
-
|
|
204
|
+
anonymous: false,
|
|
228
205
|
type: 'event',
|
|
229
206
|
},
|
|
230
207
|
{
|
|
231
|
-
|
|
208
|
+
name: 'NumBlocksPerIntervalUpdated',
|
|
232
209
|
inputs: [
|
|
233
210
|
{
|
|
234
|
-
|
|
235
|
-
name: 'delayBlocks',
|
|
211
|
+
name: 'blocks',
|
|
236
212
|
type: 'uint256',
|
|
213
|
+
indexed: false,
|
|
237
214
|
},
|
|
238
215
|
],
|
|
239
|
-
|
|
216
|
+
anonymous: false,
|
|
240
217
|
type: 'event',
|
|
241
218
|
},
|
|
242
219
|
{
|
|
243
|
-
|
|
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
|
-
|
|
228
|
+
anonymous: false,
|
|
252
229
|
type: 'event',
|
|
253
230
|
},
|
|
254
231
|
{
|
|
255
|
-
|
|
232
|
+
name: 'ShouldEnforceRedeemAllowlistUpdated',
|
|
256
233
|
inputs: [
|
|
257
234
|
{
|
|
258
|
-
|
|
259
|
-
name: 'isActivated',
|
|
235
|
+
name: 'shouldEnforce',
|
|
260
236
|
type: 'bool',
|
|
237
|
+
indexed: false,
|
|
261
238
|
},
|
|
262
239
|
],
|
|
263
|
-
|
|
240
|
+
anonymous: false,
|
|
264
241
|
type: 'event',
|
|
265
242
|
},
|
|
266
243
|
{
|
|
267
|
-
|
|
244
|
+
name: 'MintAllowlistUpdated',
|
|
268
245
|
inputs: [
|
|
269
246
|
{
|
|
270
|
-
|
|
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
|
-
|
|
257
|
+
anonymous: false,
|
|
286
258
|
type: 'event',
|
|
287
259
|
},
|
|
288
260
|
{
|
|
289
|
-
|
|
261
|
+
name: 'RedeemAllowlistUpdated',
|
|
290
262
|
inputs: [
|
|
291
263
|
{
|
|
292
|
-
|
|
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
|
-
|
|
274
|
+
anonymous: false,
|
|
313
275
|
type: 'event',
|
|
314
276
|
},
|
|
315
277
|
{
|
|
316
|
-
|
|
278
|
+
name: 'UsdcYieldPositionUpdated',
|
|
317
279
|
inputs: [
|
|
318
280
|
{
|
|
319
|
-
|
|
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
|
-
|
|
330
|
-
|
|
331
|
-
|
|
286
|
+
name: 'vaultToken',
|
|
287
|
+
type: 'address',
|
|
288
|
+
indexed: true,
|
|
332
289
|
},
|
|
333
290
|
],
|
|
334
|
-
|
|
291
|
+
anonymous: false,
|
|
335
292
|
type: 'event',
|
|
336
293
|
},
|
|
337
294
|
{
|
|
338
|
-
|
|
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
|
-
|
|
303
|
+
anonymous: false,
|
|
347
304
|
type: 'event',
|
|
348
305
|
},
|
|
349
306
|
{
|
|
307
|
+
name: 'DepartmentPauseModified',
|
|
350
308
|
inputs: [
|
|
351
309
|
{
|
|
352
|
-
name: '
|
|
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
|
-
|
|
364
|
-
type: '
|
|
315
|
+
anonymous: false,
|
|
316
|
+
type: 'event',
|
|
365
317
|
},
|
|
366
318
|
{
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
outputs: [
|
|
319
|
+
name: 'DepartmentFundsRecovered',
|
|
320
|
+
inputs: [
|
|
370
321
|
{
|
|
371
|
-
name: '',
|
|
372
|
-
type: '
|
|
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: '
|
|
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: '
|
|
332
|
+
name: 'balance',
|
|
408
333
|
type: 'uint256',
|
|
334
|
+
indexed: false,
|
|
409
335
|
},
|
|
410
336
|
],
|
|
411
|
-
|
|
412
|
-
|
|
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: '
|
|
351
|
+
name: 'hq',
|
|
436
352
|
type: 'address',
|
|
437
353
|
},
|
|
438
354
|
{
|
|
439
|
-
name: '
|
|
440
|
-
type: '
|
|
355
|
+
name: 'greenToken',
|
|
356
|
+
type: 'address',
|
|
441
357
|
},
|
|
442
358
|
{
|
|
443
|
-
name: '
|
|
444
|
-
type: '
|
|
359
|
+
name: 'savingsGreen',
|
|
360
|
+
type: 'address',
|
|
445
361
|
},
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
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: '
|
|
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: '
|
|
494
|
-
type: '
|
|
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: '
|
|
480
|
+
name: '_recipient',
|
|
498
481
|
type: 'address',
|
|
499
482
|
},
|
|
500
483
|
{
|
|
501
|
-
name: '
|
|
502
|
-
type: '
|
|
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: '
|
|
506
|
-
type: '
|
|
496
|
+
name: '_recipient',
|
|
497
|
+
type: 'address',
|
|
507
498
|
},
|
|
508
499
|
{
|
|
509
|
-
name: '
|
|
510
|
-
type: 'address',
|
|
500
|
+
name: '_assets',
|
|
501
|
+
type: 'address[]',
|
|
511
502
|
},
|
|
512
503
|
],
|
|
513
|
-
|
|
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: '
|
|
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: '
|
|
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: '
|
|
583
|
-
type: '
|
|
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: '
|
|
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: '
|
|
553
|
+
name: '_usdcAmount',
|
|
554
|
+
type: 'uint256',
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
name: '_recipient',
|
|
618
558
|
type: 'address',
|
|
619
559
|
},
|
|
560
|
+
],
|
|
561
|
+
outputs: [
|
|
620
562
|
{
|
|
621
|
-
name: '
|
|
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: '
|
|
574
|
+
name: '_usdcAmount',
|
|
626
575
|
type: 'uint256',
|
|
627
576
|
},
|
|
628
577
|
{
|
|
629
|
-
name: '
|
|
630
|
-
type: '
|
|
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: '
|
|
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: '
|
|
611
|
+
name: '_user',
|
|
647
612
|
type: 'address',
|
|
648
613
|
},
|
|
614
|
+
],
|
|
615
|
+
outputs: [
|
|
649
616
|
{
|
|
650
|
-
name: '
|
|
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: '
|
|
655
|
-
type: '
|
|
632
|
+
name: '_isUnderscoreAddr',
|
|
633
|
+
type: 'bool',
|
|
656
634
|
},
|
|
635
|
+
],
|
|
636
|
+
outputs: [
|
|
657
637
|
{
|
|
658
|
-
name: '
|
|
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: '
|
|
650
|
+
name: '',
|
|
663
651
|
type: 'uint256',
|
|
664
652
|
},
|
|
665
653
|
],
|
|
666
|
-
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
stateMutability: 'nonpayable',
|
|
657
|
+
type: 'function',
|
|
658
|
+
name: 'redeemGreen',
|
|
659
|
+
inputs: [],
|
|
667
660
|
outputs: [
|
|
668
661
|
{
|
|
669
662
|
name: '',
|
|
670
|
-
type: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
726
|
+
type: 'uint256',
|
|
705
727
|
},
|
|
706
728
|
],
|
|
707
|
-
|
|
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: '
|
|
714
|
-
type: '
|
|
748
|
+
name: '_user',
|
|
749
|
+
type: 'address',
|
|
715
750
|
},
|
|
716
751
|
],
|
|
717
|
-
name: 'setAgentSubPricingEnabled',
|
|
718
752
|
outputs: [
|
|
719
753
|
{
|
|
720
754
|
name: '',
|
|
721
|
-
type: '
|
|
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: '
|
|
765
|
+
name: '_user',
|
|
731
766
|
type: 'address',
|
|
732
767
|
},
|
|
733
768
|
{
|
|
734
|
-
name: '
|
|
735
|
-
type: '
|
|
769
|
+
name: '_isUnderscoreAddr',
|
|
770
|
+
type: 'bool',
|
|
736
771
|
},
|
|
772
|
+
],
|
|
773
|
+
outputs: [
|
|
737
774
|
{
|
|
738
|
-
name: '
|
|
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: '
|
|
787
|
+
name: '',
|
|
743
788
|
type: 'uint256',
|
|
744
789
|
},
|
|
745
790
|
],
|
|
746
|
-
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
stateMutability: 'view',
|
|
794
|
+
type: 'function',
|
|
795
|
+
name: 'getUsdcYieldPositionVaultToken',
|
|
796
|
+
inputs: [],
|
|
747
797
|
outputs: [
|
|
748
798
|
{
|
|
749
799
|
name: '',
|
|
750
|
-
type: '
|
|
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: '
|
|
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: '
|
|
772
|
-
type: '
|
|
859
|
+
name: '_amount',
|
|
860
|
+
type: 'uint256',
|
|
773
861
|
},
|
|
774
862
|
{
|
|
775
|
-
name: '
|
|
776
|
-
type: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
944
|
+
type: 'uint256',
|
|
817
945
|
},
|
|
818
946
|
],
|
|
819
|
-
|
|
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: '
|
|
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: '
|
|
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: '
|
|
834
|
-
type: '
|
|
1006
|
+
name: '_isAllowed',
|
|
1007
|
+
type: 'bool',
|
|
835
1008
|
},
|
|
836
1009
|
],
|
|
837
|
-
|
|
838
|
-
|
|
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
|
-
|
|
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: '
|
|
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
|
-
|
|
863
|
-
|
|
1034
|
+
outputs: [],
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
stateMutability: 'nonpayable',
|
|
1038
|
+
type: 'function',
|
|
1039
|
+
name: 'setMaxIntervalRedeem',
|
|
1040
|
+
inputs: [
|
|
864
1041
|
{
|
|
865
|
-
name: '',
|
|
866
|
-
type: '
|
|
1042
|
+
name: '_maxGreenAmount',
|
|
1043
|
+
type: 'uint256',
|
|
867
1044
|
},
|
|
868
1045
|
],
|
|
869
|
-
|
|
870
|
-
type: 'function',
|
|
1046
|
+
outputs: [],
|
|
871
1047
|
},
|
|
872
1048
|
{
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
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
|
-
|
|
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: '
|
|
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
|
-
|
|
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: '
|
|
1082
|
+
name: '_legoId',
|
|
905
1083
|
type: 'uint256',
|
|
906
1084
|
},
|
|
907
|
-
],
|
|
908
|
-
name: 'setPriceChangeDelay',
|
|
909
|
-
outputs: [
|
|
910
1085
|
{
|
|
911
|
-
name: '',
|
|
912
|
-
type: '
|
|
1086
|
+
name: '_vaultToken',
|
|
1087
|
+
type: 'address',
|
|
913
1088
|
},
|
|
914
1089
|
],
|
|
915
|
-
|
|
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: '
|
|
1098
|
+
name: '_blocks',
|
|
922
1099
|
type: 'uint256',
|
|
923
1100
|
},
|
|
924
1101
|
],
|
|
925
|
-
|
|
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: '
|
|
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: '
|
|
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: '
|
|
1139
|
+
name: 'legoId',
|
|
967
1140
|
type: 'uint256',
|
|
968
1141
|
},
|
|
969
1142
|
{
|
|
970
|
-
name: '
|
|
971
|
-
type: '
|
|
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: '
|
|
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
|
-
|
|
1175
|
+
stateMutability: 'view',
|
|
1176
|
+
type: 'function',
|
|
1177
|
+
name: 'mintFee',
|
|
1178
|
+
inputs: [],
|
|
1179
|
+
outputs: [
|
|
1029
1180
|
{
|
|
1030
|
-
name: '
|
|
1031
|
-
type: '
|
|
1181
|
+
name: '',
|
|
1182
|
+
type: 'uint256',
|
|
1032
1183
|
},
|
|
1033
1184
|
],
|
|
1034
|
-
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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
|
-
|
|
1169
|
-
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
1353
|
+
name: '_ripeHq',
|
|
1354
|
+
type: 'address',
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
name: '_numBlocksPerInterval',
|
|
1219
1358
|
type: 'uint256',
|
|
1220
1359
|
},
|
|
1221
1360
|
{
|
|
1222
|
-
name: '
|
|
1361
|
+
name: '_mintFee',
|
|
1223
1362
|
type: 'uint256',
|
|
1224
1363
|
},
|
|
1225
1364
|
{
|
|
1226
|
-
name: '
|
|
1365
|
+
name: '_maxIntervalMint',
|
|
1227
1366
|
type: 'uint256',
|
|
1228
1367
|
},
|
|
1229
1368
|
{
|
|
1230
|
-
name: '
|
|
1369
|
+
name: '_redeemFee',
|
|
1231
1370
|
type: 'uint256',
|
|
1232
1371
|
},
|
|
1233
1372
|
{
|
|
1234
|
-
name: '
|
|
1373
|
+
name: '_maxIntervalRedeem',
|
|
1235
1374
|
type: 'uint256',
|
|
1236
1375
|
},
|
|
1237
1376
|
{
|
|
1238
|
-
name: '
|
|
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 = '
|
|
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: '
|
|
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
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
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: '
|
|
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
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
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(
|
|
1482
|
+
export function toSdk(publicClient, walletClient) {
|
|
1333
1483
|
return {
|
|
1334
1484
|
deployAddress,
|
|
1335
1485
|
abi,
|
|
1336
1486
|
// Queries
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
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
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
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
|
}
|