@ripe-finance/sdk 0.0.2

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 (246) hide show
  1. package/LICENSE +41 -0
  2. package/README.md +44 -0
  3. package/dist/contracts/AddyRegistry.d.ts +1109 -0
  4. package/dist/contracts/AddyRegistry.d.ts.map +1 -0
  5. package/dist/contracts/AddyRegistry.js +1392 -0
  6. package/dist/contracts/AddyRegistry_v1.d.ts +473 -0
  7. package/dist/contracts/AddyRegistry_v1.d.ts.map +1 -0
  8. package/dist/contracts/AddyRegistry_v1.js +594 -0
  9. package/dist/contracts/AddyRegistry_v2.d.ts +1050 -0
  10. package/dist/contracts/AddyRegistry_v2.d.ts.map +1 -0
  11. package/dist/contracts/AddyRegistry_v2.js +1313 -0
  12. package/dist/contracts/Agent.d.ts +2709 -0
  13. package/dist/contracts/Agent.d.ts.map +1 -0
  14. package/dist/contracts/Agent.js +3458 -0
  15. package/dist/contracts/AgentFactory.d.ts +1665 -0
  16. package/dist/contracts/AgentFactory.d.ts.map +1 -0
  17. package/dist/contracts/AgentFactory.js +2078 -0
  18. package/dist/contracts/AgentFactory_v1.d.ts +1054 -0
  19. package/dist/contracts/AgentFactory_v1.d.ts.map +1 -0
  20. package/dist/contracts/AgentFactory_v1.js +1336 -0
  21. package/dist/contracts/AgentFactory_v2.d.ts +1275 -0
  22. package/dist/contracts/AgentFactory_v2.d.ts.map +1 -0
  23. package/dist/contracts/AgentFactory_v2.js +1609 -0
  24. package/dist/contracts/AgentTemplate.d.ts +2629 -0
  25. package/dist/contracts/AgentTemplate.d.ts.map +1 -0
  26. package/dist/contracts/AgentTemplate.js +3370 -0
  27. package/dist/contracts/Agent_v1.d.ts +2631 -0
  28. package/dist/contracts/Agent_v1.d.ts.map +1 -0
  29. package/dist/contracts/Agent_v1.js +3372 -0
  30. package/dist/contracts/Agent_v2.d.ts +2709 -0
  31. package/dist/contracts/Agent_v2.d.ts.map +1 -0
  32. package/dist/contracts/Agent_v2.js +3458 -0
  33. package/dist/contracts/AuctionHouse.d.ts +1566 -0
  34. package/dist/contracts/AuctionHouse.d.ts.map +1 -0
  35. package/dist/contracts/AuctionHouse.js +1814 -0
  36. package/dist/contracts/AuctionHouseNFT.d.ts +259 -0
  37. package/dist/contracts/AuctionHouseNFT.d.ts.map +1 -0
  38. package/dist/contracts/AuctionHouseNFT.js +295 -0
  39. package/dist/contracts/BlueChipYieldPrices.d.ts +1916 -0
  40. package/dist/contracts/BlueChipYieldPrices.d.ts.map +1 -0
  41. package/dist/contracts/BlueChipYieldPrices.js +2414 -0
  42. package/dist/contracts/Boardroom.d.ts +276 -0
  43. package/dist/contracts/Boardroom.d.ts.map +1 -0
  44. package/dist/contracts/Boardroom.js +317 -0
  45. package/dist/contracts/BondRoom.d.ts +539 -0
  46. package/dist/contracts/BondRoom.d.ts.map +1 -0
  47. package/dist/contracts/BondRoom.js +640 -0
  48. package/dist/contracts/ChainlinkFeeds.d.ts +706 -0
  49. package/dist/contracts/ChainlinkFeeds.d.ts.map +1 -0
  50. package/dist/contracts/ChainlinkFeeds.js +900 -0
  51. package/dist/contracts/ChainlinkPrices.d.ts +1594 -0
  52. package/dist/contracts/ChainlinkPrices.d.ts.map +1 -0
  53. package/dist/contracts/ChainlinkPrices.js +2023 -0
  54. package/dist/contracts/Contributor.d.ts +731 -0
  55. package/dist/contracts/Contributor.d.ts.map +1 -0
  56. package/dist/contracts/Contributor.js +896 -0
  57. package/dist/contracts/CreditEngine.d.ts +2295 -0
  58. package/dist/contracts/CreditEngine.d.ts.map +1 -0
  59. package/dist/contracts/CreditEngine.js +2662 -0
  60. package/dist/contracts/CurvePrices.d.ts +2041 -0
  61. package/dist/contracts/CurvePrices.d.ts.map +1 -0
  62. package/dist/contracts/CurvePrices.js +2523 -0
  63. package/dist/contracts/DefaultsBase.d.ts +470 -0
  64. package/dist/contracts/DefaultsBase.d.ts.map +1 -0
  65. package/dist/contracts/DefaultsBase.js +512 -0
  66. package/dist/contracts/ERC20.d.ts +271 -0
  67. package/dist/contracts/ERC20.d.ts.map +1 -0
  68. package/dist/contracts/ERC20.js +339 -0
  69. package/dist/contracts/Endaoment.d.ts +2208 -0
  70. package/dist/contracts/Endaoment.d.ts.map +1 -0
  71. package/dist/contracts/Endaoment.js +2877 -0
  72. package/dist/contracts/GreenPool.d.ts +1248 -0
  73. package/dist/contracts/GreenPool.d.ts.map +1 -0
  74. package/dist/contracts/GreenPool.js +1614 -0
  75. package/dist/contracts/GreenToken.d.ts +776 -0
  76. package/dist/contracts/GreenToken.d.ts.map +1 -0
  77. package/dist/contracts/GreenToken.js +990 -0
  78. package/dist/contracts/HumanResources.d.ts +1176 -0
  79. package/dist/contracts/HumanResources.d.ts.map +1 -0
  80. package/dist/contracts/HumanResources.js +1464 -0
  81. package/dist/contracts/Ledger.d.ts +2312 -0
  82. package/dist/contracts/Ledger.d.ts.map +1 -0
  83. package/dist/contracts/Ledger.js +2712 -0
  84. package/dist/contracts/LegoAaveV3.d.ts +1033 -0
  85. package/dist/contracts/LegoAaveV3.d.ts.map +1 -0
  86. package/dist/contracts/LegoAaveV3.js +1330 -0
  87. package/dist/contracts/LegoAeroClassic.d.ts +1204 -0
  88. package/dist/contracts/LegoAeroClassic.d.ts.map +1 -0
  89. package/dist/contracts/LegoAeroClassic.js +1546 -0
  90. package/dist/contracts/LegoAeroSlipstream.d.ts +1300 -0
  91. package/dist/contracts/LegoAeroSlipstream.d.ts.map +1 -0
  92. package/dist/contracts/LegoAeroSlipstream.js +1671 -0
  93. package/dist/contracts/LegoCommon.d.ts +164 -0
  94. package/dist/contracts/LegoCommon.d.ts.map +1 -0
  95. package/dist/contracts/LegoCommon.js +202 -0
  96. package/dist/contracts/LegoCompoundV3.d.ts +1060 -0
  97. package/dist/contracts/LegoCompoundV3.d.ts.map +1 -0
  98. package/dist/contracts/LegoCompoundV3.js +1365 -0
  99. package/dist/contracts/LegoCredit.d.ts +140 -0
  100. package/dist/contracts/LegoCredit.d.ts.map +1 -0
  101. package/dist/contracts/LegoCredit.js +179 -0
  102. package/dist/contracts/LegoCurve.d.ts +1189 -0
  103. package/dist/contracts/LegoCurve.d.ts.map +1 -0
  104. package/dist/contracts/LegoCurve.js +1519 -0
  105. package/dist/contracts/LegoDex.d.ts +587 -0
  106. package/dist/contracts/LegoDex.d.ts.map +1 -0
  107. package/dist/contracts/LegoDex.js +774 -0
  108. package/dist/contracts/LegoEuler.d.ts +1074 -0
  109. package/dist/contracts/LegoEuler.d.ts.map +1 -0
  110. package/dist/contracts/LegoEuler.js +1383 -0
  111. package/dist/contracts/LegoFluid.d.ts +1025 -0
  112. package/dist/contracts/LegoFluid.d.ts.map +1 -0
  113. package/dist/contracts/LegoFluid.js +1320 -0
  114. package/dist/contracts/LegoHelper.d.ts +1563 -0
  115. package/dist/contracts/LegoHelper.d.ts.map +1 -0
  116. package/dist/contracts/LegoHelper.js +1947 -0
  117. package/dist/contracts/LegoMoonwell.d.ts +1042 -0
  118. package/dist/contracts/LegoMoonwell.d.ts.map +1 -0
  119. package/dist/contracts/LegoMoonwell.js +1342 -0
  120. package/dist/contracts/LegoMorpho.d.ts +1074 -0
  121. package/dist/contracts/LegoMorpho.d.ts.map +1 -0
  122. package/dist/contracts/LegoMorpho.js +1383 -0
  123. package/dist/contracts/LegoRegistry.d.ts +1079 -0
  124. package/dist/contracts/LegoRegistry.d.ts.map +1 -0
  125. package/dist/contracts/LegoRegistry.js +1368 -0
  126. package/dist/contracts/LegoSky.d.ts +923 -0
  127. package/dist/contracts/LegoSky.d.ts.map +1 -0
  128. package/dist/contracts/LegoSky.js +1180 -0
  129. package/dist/contracts/LegoUniswapV2.d.ts +1204 -0
  130. package/dist/contracts/LegoUniswapV2.d.ts.map +1 -0
  131. package/dist/contracts/LegoUniswapV2.js +1546 -0
  132. package/dist/contracts/LegoUniswapV3.d.ts +1338 -0
  133. package/dist/contracts/LegoUniswapV3.d.ts.map +1 -0
  134. package/dist/contracts/LegoUniswapV3.js +1718 -0
  135. package/dist/contracts/LegoYield.d.ts +390 -0
  136. package/dist/contracts/LegoYield.d.ts.map +1 -0
  137. package/dist/contracts/LegoYield.js +511 -0
  138. package/dist/contracts/Lootbox.d.ts +1258 -0
  139. package/dist/contracts/Lootbox.d.ts.map +1 -0
  140. package/dist/contracts/Lootbox.js +1435 -0
  141. package/dist/contracts/MissionControl.d.ts +2642 -0
  142. package/dist/contracts/MissionControl.d.ts.map +1 -0
  143. package/dist/contracts/MissionControl.js +2957 -0
  144. package/dist/contracts/OracleParser.d.ts +207 -0
  145. package/dist/contracts/OracleParser.d.ts.map +1 -0
  146. package/dist/contracts/OracleParser.js +264 -0
  147. package/dist/contracts/OracleRegistry.d.ts +1221 -0
  148. package/dist/contracts/OracleRegistry.d.ts.map +1 -0
  149. package/dist/contracts/OracleRegistry.js +1562 -0
  150. package/dist/contracts/PriceDesk.d.ts +1581 -0
  151. package/dist/contracts/PriceDesk.d.ts.map +1 -0
  152. package/dist/contracts/PriceDesk.js +1993 -0
  153. package/dist/contracts/PriceSheets.d.ts +1127 -0
  154. package/dist/contracts/PriceSheets.d.ts.map +1 -0
  155. package/dist/contracts/PriceSheets.js +1383 -0
  156. package/dist/contracts/PythFeeds.d.ts +640 -0
  157. package/dist/contracts/PythFeeds.d.ts.map +1 -0
  158. package/dist/contracts/PythFeeds.js +813 -0
  159. package/dist/contracts/PythPrices.d.ts +1435 -0
  160. package/dist/contracts/PythPrices.d.ts.map +1 -0
  161. package/dist/contracts/PythPrices.js +1819 -0
  162. package/dist/contracts/RebaseErc20.d.ts +1080 -0
  163. package/dist/contracts/RebaseErc20.d.ts.map +1 -0
  164. package/dist/contracts/RebaseErc20.js +1312 -0
  165. package/dist/contracts/RipeGov.d.ts +2157 -0
  166. package/dist/contracts/RipeGov.d.ts.map +1 -0
  167. package/dist/contracts/RipeGov.js +2529 -0
  168. package/dist/contracts/RipeHq.d.ts +1612 -0
  169. package/dist/contracts/RipeHq.d.ts.map +1 -0
  170. package/dist/contracts/RipeHq.js +2029 -0
  171. package/dist/contracts/RipeToken.d.ts +776 -0
  172. package/dist/contracts/RipeToken.d.ts.map +1 -0
  173. package/dist/contracts/RipeToken.js +990 -0
  174. package/dist/contracts/SavingsGreen.d.ts +1160 -0
  175. package/dist/contracts/SavingsGreen.d.ts.map +1 -0
  176. package/dist/contracts/SavingsGreen.js +1505 -0
  177. package/dist/contracts/SimpleErc20.d.ts +1028 -0
  178. package/dist/contracts/SimpleErc20.d.ts.map +1 -0
  179. package/dist/contracts/SimpleErc20.js +1243 -0
  180. package/dist/contracts/StabilityPool.d.ts +1843 -0
  181. package/dist/contracts/StabilityPool.d.ts.map +1 -0
  182. package/dist/contracts/StabilityPool.js +2229 -0
  183. package/dist/contracts/StorkFeeds.d.ts +640 -0
  184. package/dist/contracts/StorkFeeds.d.ts.map +1 -0
  185. package/dist/contracts/StorkFeeds.js +813 -0
  186. package/dist/contracts/StorkPrices.d.ts +1435 -0
  187. package/dist/contracts/StorkPrices.d.ts.map +1 -0
  188. package/dist/contracts/StorkPrices.js +1819 -0
  189. package/dist/contracts/Switchboard.d.ts +1416 -0
  190. package/dist/contracts/Switchboard.d.ts.map +1 -0
  191. package/dist/contracts/Switchboard.js +1767 -0
  192. package/dist/contracts/SwitchboardAlpha.d.ts +2647 -0
  193. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -0
  194. package/dist/contracts/SwitchboardAlpha.js +3301 -0
  195. package/dist/contracts/SwitchboardBravo.d.ts +2833 -0
  196. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -0
  197. package/dist/contracts/SwitchboardBravo.js +3640 -0
  198. package/dist/contracts/SwitchboardCharlie.d.ts +3651 -0
  199. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  200. package/dist/contracts/SwitchboardCharlie.js +4642 -0
  201. package/dist/contracts/SwitchboardDelta.d.ts +1490 -0
  202. package/dist/contracts/SwitchboardDelta.d.ts.map +1 -0
  203. package/dist/contracts/SwitchboardDelta.js +1872 -0
  204. package/dist/contracts/Teller.d.ts +2664 -0
  205. package/dist/contracts/Teller.d.ts.map +1 -0
  206. package/dist/contracts/Teller.js +3518 -0
  207. package/dist/contracts/TrainingWheels.d.ts +321 -0
  208. package/dist/contracts/TrainingWheels.d.ts.map +1 -0
  209. package/dist/contracts/TrainingWheels.js +376 -0
  210. package/dist/contracts/UserWallet.d.ts +1975 -0
  211. package/dist/contracts/UserWallet.d.ts.map +1 -0
  212. package/dist/contracts/UserWallet.js +2577 -0
  213. package/dist/contracts/UserWalletConfig.d.ts +1852 -0
  214. package/dist/contracts/UserWalletConfig.d.ts.map +1 -0
  215. package/dist/contracts/UserWalletConfig.js +2263 -0
  216. package/dist/contracts/UserWalletConfig_v1.d.ts +1400 -0
  217. package/dist/contracts/UserWalletConfig_v1.d.ts.map +1 -0
  218. package/dist/contracts/UserWalletConfig_v1.js +1676 -0
  219. package/dist/contracts/UserWalletConfig_v2.d.ts +1468 -0
  220. package/dist/contracts/UserWalletConfig_v2.d.ts.map +1 -0
  221. package/dist/contracts/UserWalletConfig_v2.js +1764 -0
  222. package/dist/contracts/UserWallet_v1.d.ts +1980 -0
  223. package/dist/contracts/UserWallet_v1.d.ts.map +1 -0
  224. package/dist/contracts/UserWallet_v1.js +2581 -0
  225. package/dist/contracts/UserWallet_v2.d.ts +1958 -0
  226. package/dist/contracts/UserWallet_v2.d.ts.map +1 -0
  227. package/dist/contracts/UserWallet_v2.js +2553 -0
  228. package/dist/contracts/VaultBook.d.ts +1416 -0
  229. package/dist/contracts/VaultBook.d.ts.map +1 -0
  230. package/dist/contracts/VaultBook.js +1767 -0
  231. package/dist/contracts/WalletConfig.d.ts +1398 -0
  232. package/dist/contracts/WalletConfig.d.ts.map +1 -0
  233. package/dist/contracts/WalletConfig.js +1674 -0
  234. package/dist/contracts/WalletFunds.d.ts +1978 -0
  235. package/dist/contracts/WalletFunds.d.ts.map +1 -0
  236. package/dist/contracts/WalletFunds.js +2579 -0
  237. package/dist/contracts/index.d.ts +37 -0
  238. package/dist/contracts/index.d.ts.map +1 -0
  239. package/dist/contracts/index.js +40 -0
  240. package/dist/contracts/sdk.d.ts +77 -0
  241. package/dist/contracts/sdk.d.ts.map +1 -0
  242. package/dist/contracts/sdk.js +80 -0
  243. package/dist/index.d.ts +2907 -0
  244. package/dist/index.d.ts.map +1 -0
  245. package/dist/index.js +317 -0
  246. package/package.json +36 -0
@@ -0,0 +1,990 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /* @ts-nocheck */
5
+ import { singleQuery, mutate } from '@dappql/async';
6
+ export const abi = [
7
+ {
8
+ name: 'Transfer',
9
+ inputs: [
10
+ {
11
+ name: 'sender',
12
+ type: 'address',
13
+ indexed: true,
14
+ },
15
+ {
16
+ name: 'recipient',
17
+ type: 'address',
18
+ indexed: true,
19
+ },
20
+ {
21
+ name: 'amount',
22
+ type: 'uint256',
23
+ indexed: false,
24
+ },
25
+ ],
26
+ anonymous: false,
27
+ type: 'event',
28
+ },
29
+ {
30
+ name: 'Approval',
31
+ inputs: [
32
+ {
33
+ name: 'owner',
34
+ type: 'address',
35
+ indexed: true,
36
+ },
37
+ {
38
+ name: 'spender',
39
+ type: 'address',
40
+ indexed: true,
41
+ },
42
+ {
43
+ name: 'amount',
44
+ type: 'uint256',
45
+ indexed: false,
46
+ },
47
+ ],
48
+ anonymous: false,
49
+ type: 'event',
50
+ },
51
+ {
52
+ name: 'BlacklistModified',
53
+ inputs: [
54
+ {
55
+ name: 'addr',
56
+ type: 'address',
57
+ indexed: true,
58
+ },
59
+ {
60
+ name: 'isBlacklisted',
61
+ type: 'bool',
62
+ indexed: false,
63
+ },
64
+ ],
65
+ anonymous: false,
66
+ type: 'event',
67
+ },
68
+ {
69
+ name: 'HqChangeInitiated',
70
+ inputs: [
71
+ {
72
+ name: 'prevHq',
73
+ type: 'address',
74
+ indexed: true,
75
+ },
76
+ {
77
+ name: 'newHq',
78
+ type: 'address',
79
+ indexed: true,
80
+ },
81
+ {
82
+ name: 'confirmBlock',
83
+ type: 'uint256',
84
+ indexed: false,
85
+ },
86
+ ],
87
+ anonymous: false,
88
+ type: 'event',
89
+ },
90
+ {
91
+ name: 'HqChangeConfirmed',
92
+ inputs: [
93
+ {
94
+ name: 'prevHq',
95
+ type: 'address',
96
+ indexed: true,
97
+ },
98
+ {
99
+ name: 'newHq',
100
+ type: 'address',
101
+ indexed: true,
102
+ },
103
+ {
104
+ name: 'initiatedBlock',
105
+ type: 'uint256',
106
+ indexed: false,
107
+ },
108
+ {
109
+ name: 'confirmBlock',
110
+ type: 'uint256',
111
+ indexed: false,
112
+ },
113
+ ],
114
+ anonymous: false,
115
+ type: 'event',
116
+ },
117
+ {
118
+ name: 'HqChangeCancelled',
119
+ inputs: [
120
+ {
121
+ name: 'cancelledHq',
122
+ type: 'address',
123
+ indexed: true,
124
+ },
125
+ {
126
+ name: 'initiatedBlock',
127
+ type: 'uint256',
128
+ indexed: false,
129
+ },
130
+ {
131
+ name: 'confirmBlock',
132
+ type: 'uint256',
133
+ indexed: false,
134
+ },
135
+ ],
136
+ anonymous: false,
137
+ type: 'event',
138
+ },
139
+ {
140
+ name: 'HqChangeTimeLockModified',
141
+ inputs: [
142
+ {
143
+ name: 'prevTimeLock',
144
+ type: 'uint256',
145
+ indexed: false,
146
+ },
147
+ {
148
+ name: 'newTimeLock',
149
+ type: 'uint256',
150
+ indexed: false,
151
+ },
152
+ ],
153
+ anonymous: false,
154
+ type: 'event',
155
+ },
156
+ {
157
+ name: 'TokenPauseModified',
158
+ inputs: [
159
+ {
160
+ name: 'isPaused',
161
+ type: 'bool',
162
+ indexed: false,
163
+ },
164
+ ],
165
+ anonymous: false,
166
+ type: 'event',
167
+ },
168
+ {
169
+ name: 'InitialRipeHqSet',
170
+ inputs: [
171
+ {
172
+ name: 'hq',
173
+ type: 'address',
174
+ indexed: true,
175
+ },
176
+ {
177
+ name: 'timeLock',
178
+ type: 'uint256',
179
+ indexed: false,
180
+ },
181
+ ],
182
+ anonymous: false,
183
+ type: 'event',
184
+ },
185
+ {
186
+ stateMutability: 'view',
187
+ type: 'function',
188
+ name: 'name',
189
+ inputs: [],
190
+ outputs: [
191
+ {
192
+ name: '',
193
+ type: 'string',
194
+ },
195
+ ],
196
+ },
197
+ {
198
+ stateMutability: 'view',
199
+ type: 'function',
200
+ name: 'symbol',
201
+ inputs: [],
202
+ outputs: [
203
+ {
204
+ name: '',
205
+ type: 'string',
206
+ },
207
+ ],
208
+ },
209
+ {
210
+ stateMutability: 'view',
211
+ type: 'function',
212
+ name: 'decimals',
213
+ inputs: [],
214
+ outputs: [
215
+ {
216
+ name: '',
217
+ type: 'uint8',
218
+ },
219
+ ],
220
+ },
221
+ {
222
+ stateMutability: 'nonpayable',
223
+ type: 'function',
224
+ name: 'transfer',
225
+ inputs: [
226
+ {
227
+ name: '_recipient',
228
+ type: 'address',
229
+ },
230
+ {
231
+ name: '_amount',
232
+ type: 'uint256',
233
+ },
234
+ ],
235
+ outputs: [
236
+ {
237
+ name: '',
238
+ type: 'bool',
239
+ },
240
+ ],
241
+ },
242
+ {
243
+ stateMutability: 'nonpayable',
244
+ type: 'function',
245
+ name: 'transferFrom',
246
+ inputs: [
247
+ {
248
+ name: '_sender',
249
+ type: 'address',
250
+ },
251
+ {
252
+ name: '_recipient',
253
+ type: 'address',
254
+ },
255
+ {
256
+ name: '_amount',
257
+ type: 'uint256',
258
+ },
259
+ ],
260
+ outputs: [
261
+ {
262
+ name: '',
263
+ type: 'bool',
264
+ },
265
+ ],
266
+ },
267
+ {
268
+ stateMutability: 'nonpayable',
269
+ type: 'function',
270
+ name: 'approve',
271
+ inputs: [
272
+ {
273
+ name: '_spender',
274
+ type: 'address',
275
+ },
276
+ {
277
+ name: '_amount',
278
+ type: 'uint256',
279
+ },
280
+ ],
281
+ outputs: [
282
+ {
283
+ name: '',
284
+ type: 'bool',
285
+ },
286
+ ],
287
+ },
288
+ {
289
+ stateMutability: 'nonpayable',
290
+ type: 'function',
291
+ name: 'increaseAllowance',
292
+ inputs: [
293
+ {
294
+ name: '_spender',
295
+ type: 'address',
296
+ },
297
+ {
298
+ name: '_amount',
299
+ type: 'uint256',
300
+ },
301
+ ],
302
+ outputs: [
303
+ {
304
+ name: '',
305
+ type: 'bool',
306
+ },
307
+ ],
308
+ },
309
+ {
310
+ stateMutability: 'nonpayable',
311
+ type: 'function',
312
+ name: 'decreaseAllowance',
313
+ inputs: [
314
+ {
315
+ name: '_spender',
316
+ type: 'address',
317
+ },
318
+ {
319
+ name: '_amount',
320
+ type: 'uint256',
321
+ },
322
+ ],
323
+ outputs: [
324
+ {
325
+ name: '',
326
+ type: 'bool',
327
+ },
328
+ ],
329
+ },
330
+ {
331
+ stateMutability: 'nonpayable',
332
+ type: 'function',
333
+ name: 'burn',
334
+ inputs: [
335
+ {
336
+ name: '_amount',
337
+ type: 'uint256',
338
+ },
339
+ ],
340
+ outputs: [
341
+ {
342
+ name: '',
343
+ type: 'bool',
344
+ },
345
+ ],
346
+ },
347
+ {
348
+ stateMutability: 'view',
349
+ type: 'function',
350
+ name: 'DOMAIN_SEPARATOR',
351
+ inputs: [],
352
+ outputs: [
353
+ {
354
+ name: '',
355
+ type: 'bytes32',
356
+ },
357
+ ],
358
+ },
359
+ {
360
+ stateMutability: 'nonpayable',
361
+ type: 'function',
362
+ name: 'permit',
363
+ inputs: [
364
+ {
365
+ name: '_owner',
366
+ type: 'address',
367
+ },
368
+ {
369
+ name: '_spender',
370
+ type: 'address',
371
+ },
372
+ {
373
+ name: '_value',
374
+ type: 'uint256',
375
+ },
376
+ {
377
+ name: '_deadline',
378
+ type: 'uint256',
379
+ },
380
+ {
381
+ name: '_signature',
382
+ type: 'bytes',
383
+ },
384
+ ],
385
+ outputs: [
386
+ {
387
+ name: '',
388
+ type: 'bool',
389
+ },
390
+ ],
391
+ },
392
+ {
393
+ stateMutability: 'nonpayable',
394
+ type: 'function',
395
+ name: 'setBlacklist',
396
+ inputs: [
397
+ {
398
+ name: '_addr',
399
+ type: 'address',
400
+ },
401
+ {
402
+ name: '_shouldBlacklist',
403
+ type: 'bool',
404
+ },
405
+ ],
406
+ outputs: [
407
+ {
408
+ name: '',
409
+ type: 'bool',
410
+ },
411
+ ],
412
+ },
413
+ {
414
+ stateMutability: 'nonpayable',
415
+ type: 'function',
416
+ name: 'burnBlacklistTokens',
417
+ inputs: [
418
+ {
419
+ name: '_addr',
420
+ type: 'address',
421
+ },
422
+ ],
423
+ outputs: [
424
+ {
425
+ name: '',
426
+ type: 'bool',
427
+ },
428
+ ],
429
+ },
430
+ {
431
+ stateMutability: 'nonpayable',
432
+ type: 'function',
433
+ name: 'burnBlacklistTokens',
434
+ inputs: [
435
+ {
436
+ name: '_addr',
437
+ type: 'address',
438
+ },
439
+ {
440
+ name: '_amount',
441
+ type: 'uint256',
442
+ },
443
+ ],
444
+ outputs: [
445
+ {
446
+ name: '',
447
+ type: 'bool',
448
+ },
449
+ ],
450
+ },
451
+ {
452
+ stateMutability: 'view',
453
+ type: 'function',
454
+ name: 'hasPendingHqChange',
455
+ inputs: [],
456
+ outputs: [
457
+ {
458
+ name: '',
459
+ type: 'bool',
460
+ },
461
+ ],
462
+ },
463
+ {
464
+ stateMutability: 'nonpayable',
465
+ type: 'function',
466
+ name: 'initiateHqChange',
467
+ inputs: [
468
+ {
469
+ name: '_newHq',
470
+ type: 'address',
471
+ },
472
+ ],
473
+ outputs: [],
474
+ },
475
+ {
476
+ stateMutability: 'nonpayable',
477
+ type: 'function',
478
+ name: 'confirmHqChange',
479
+ inputs: [],
480
+ outputs: [
481
+ {
482
+ name: '',
483
+ type: 'bool',
484
+ },
485
+ ],
486
+ },
487
+ {
488
+ stateMutability: 'nonpayable',
489
+ type: 'function',
490
+ name: 'cancelHqChange',
491
+ inputs: [],
492
+ outputs: [],
493
+ },
494
+ {
495
+ stateMutability: 'view',
496
+ type: 'function',
497
+ name: 'isValidNewRipeHq',
498
+ inputs: [
499
+ {
500
+ name: '_newHq',
501
+ type: 'address',
502
+ },
503
+ ],
504
+ outputs: [
505
+ {
506
+ name: '',
507
+ type: 'bool',
508
+ },
509
+ ],
510
+ },
511
+ {
512
+ stateMutability: 'nonpayable',
513
+ type: 'function',
514
+ name: 'setHqChangeTimeLock',
515
+ inputs: [
516
+ {
517
+ name: '_newTimeLock',
518
+ type: 'uint256',
519
+ },
520
+ ],
521
+ outputs: [
522
+ {
523
+ name: '',
524
+ type: 'bool',
525
+ },
526
+ ],
527
+ },
528
+ {
529
+ stateMutability: 'view',
530
+ type: 'function',
531
+ name: 'isValidHqChangeTimeLock',
532
+ inputs: [
533
+ {
534
+ name: '_newTimeLock',
535
+ type: 'uint256',
536
+ },
537
+ ],
538
+ outputs: [
539
+ {
540
+ name: '',
541
+ type: 'bool',
542
+ },
543
+ ],
544
+ },
545
+ {
546
+ stateMutability: 'view',
547
+ type: 'function',
548
+ name: 'minHqTimeLock',
549
+ inputs: [],
550
+ outputs: [
551
+ {
552
+ name: '',
553
+ type: 'uint256',
554
+ },
555
+ ],
556
+ },
557
+ {
558
+ stateMutability: 'view',
559
+ type: 'function',
560
+ name: 'maxHqTimeLock',
561
+ inputs: [],
562
+ outputs: [
563
+ {
564
+ name: '',
565
+ type: 'uint256',
566
+ },
567
+ ],
568
+ },
569
+ {
570
+ stateMutability: 'nonpayable',
571
+ type: 'function',
572
+ name: 'pause',
573
+ inputs: [
574
+ {
575
+ name: '_shouldPause',
576
+ type: 'bool',
577
+ },
578
+ ],
579
+ outputs: [],
580
+ },
581
+ {
582
+ stateMutability: 'nonpayable',
583
+ type: 'function',
584
+ name: 'finishTokenSetup',
585
+ inputs: [
586
+ {
587
+ name: '_newHq',
588
+ type: 'address',
589
+ },
590
+ ],
591
+ outputs: [
592
+ {
593
+ name: '',
594
+ type: 'bool',
595
+ },
596
+ ],
597
+ },
598
+ {
599
+ stateMutability: 'nonpayable',
600
+ type: 'function',
601
+ name: 'finishTokenSetup',
602
+ inputs: [
603
+ {
604
+ name: '_newHq',
605
+ type: 'address',
606
+ },
607
+ {
608
+ name: '_timeLock',
609
+ type: 'uint256',
610
+ },
611
+ ],
612
+ outputs: [
613
+ {
614
+ name: '',
615
+ type: 'bool',
616
+ },
617
+ ],
618
+ },
619
+ {
620
+ stateMutability: 'view',
621
+ type: 'function',
622
+ name: 'ripeHq',
623
+ inputs: [],
624
+ outputs: [
625
+ {
626
+ name: '',
627
+ type: 'address',
628
+ },
629
+ ],
630
+ },
631
+ {
632
+ stateMutability: 'view',
633
+ type: 'function',
634
+ name: 'blacklisted',
635
+ inputs: [
636
+ {
637
+ name: 'arg0',
638
+ type: 'address',
639
+ },
640
+ ],
641
+ outputs: [
642
+ {
643
+ name: '',
644
+ type: 'bool',
645
+ },
646
+ ],
647
+ },
648
+ {
649
+ stateMutability: 'view',
650
+ type: 'function',
651
+ name: 'isPaused',
652
+ inputs: [],
653
+ outputs: [
654
+ {
655
+ name: '',
656
+ type: 'bool',
657
+ },
658
+ ],
659
+ },
660
+ {
661
+ stateMutability: 'view',
662
+ type: 'function',
663
+ name: 'pendingHq',
664
+ inputs: [],
665
+ outputs: [
666
+ {
667
+ name: '',
668
+ type: 'tuple',
669
+ components: [
670
+ {
671
+ name: 'newHq',
672
+ type: 'address',
673
+ },
674
+ {
675
+ name: 'initiatedBlock',
676
+ type: 'uint256',
677
+ },
678
+ {
679
+ name: 'confirmBlock',
680
+ type: 'uint256',
681
+ },
682
+ ],
683
+ },
684
+ ],
685
+ },
686
+ {
687
+ stateMutability: 'view',
688
+ type: 'function',
689
+ name: 'hqChangeTimeLock',
690
+ inputs: [],
691
+ outputs: [
692
+ {
693
+ name: '',
694
+ type: 'uint256',
695
+ },
696
+ ],
697
+ },
698
+ {
699
+ stateMutability: 'view',
700
+ type: 'function',
701
+ name: 'balanceOf',
702
+ inputs: [
703
+ {
704
+ name: 'arg0',
705
+ type: 'address',
706
+ },
707
+ ],
708
+ outputs: [
709
+ {
710
+ name: '',
711
+ type: 'uint256',
712
+ },
713
+ ],
714
+ },
715
+ {
716
+ stateMutability: 'view',
717
+ type: 'function',
718
+ name: 'allowance',
719
+ inputs: [
720
+ {
721
+ name: 'arg0',
722
+ type: 'address',
723
+ },
724
+ {
725
+ name: 'arg1',
726
+ type: 'address',
727
+ },
728
+ ],
729
+ outputs: [
730
+ {
731
+ name: '',
732
+ type: 'uint256',
733
+ },
734
+ ],
735
+ },
736
+ {
737
+ stateMutability: 'view',
738
+ type: 'function',
739
+ name: 'totalSupply',
740
+ inputs: [],
741
+ outputs: [
742
+ {
743
+ name: '',
744
+ type: 'uint256',
745
+ },
746
+ ],
747
+ },
748
+ {
749
+ stateMutability: 'view',
750
+ type: 'function',
751
+ name: 'TOKEN_NAME',
752
+ inputs: [],
753
+ outputs: [
754
+ {
755
+ name: '',
756
+ type: 'string',
757
+ },
758
+ ],
759
+ },
760
+ {
761
+ stateMutability: 'view',
762
+ type: 'function',
763
+ name: 'TOKEN_SYMBOL',
764
+ inputs: [],
765
+ outputs: [
766
+ {
767
+ name: '',
768
+ type: 'string',
769
+ },
770
+ ],
771
+ },
772
+ {
773
+ stateMutability: 'view',
774
+ type: 'function',
775
+ name: 'TOKEN_DECIMALS',
776
+ inputs: [],
777
+ outputs: [
778
+ {
779
+ name: '',
780
+ type: 'uint8',
781
+ },
782
+ ],
783
+ },
784
+ {
785
+ stateMutability: 'view',
786
+ type: 'function',
787
+ name: 'VERSION',
788
+ inputs: [],
789
+ outputs: [
790
+ {
791
+ name: '',
792
+ type: 'string',
793
+ },
794
+ ],
795
+ },
796
+ {
797
+ stateMutability: 'view',
798
+ type: 'function',
799
+ name: 'nonces',
800
+ inputs: [
801
+ {
802
+ name: 'arg0',
803
+ type: 'address',
804
+ },
805
+ ],
806
+ outputs: [
807
+ {
808
+ name: '',
809
+ type: 'uint256',
810
+ },
811
+ ],
812
+ },
813
+ {
814
+ stateMutability: 'nonpayable',
815
+ type: 'function',
816
+ name: 'mint',
817
+ inputs: [
818
+ {
819
+ name: '_recipient',
820
+ type: 'address',
821
+ },
822
+ {
823
+ name: '_amount',
824
+ type: 'uint256',
825
+ },
826
+ ],
827
+ outputs: [
828
+ {
829
+ name: '',
830
+ type: 'bool',
831
+ },
832
+ ],
833
+ },
834
+ {
835
+ stateMutability: 'nonpayable',
836
+ type: 'constructor',
837
+ inputs: [
838
+ {
839
+ name: '_ripeHq',
840
+ type: 'address',
841
+ },
842
+ {
843
+ name: '_initialGov',
844
+ type: 'address',
845
+ },
846
+ {
847
+ name: '_minHqTimeLock',
848
+ type: 'uint256',
849
+ },
850
+ {
851
+ name: '_maxHqTimeLock',
852
+ type: 'uint256',
853
+ },
854
+ {
855
+ name: '_initialSupply',
856
+ type: 'uint256',
857
+ },
858
+ {
859
+ name: '_initialSupplyRecipient',
860
+ type: 'address',
861
+ },
862
+ ],
863
+ outputs: [],
864
+ },
865
+ ];
866
+ export const deployAddress = '0x2A0a59d6B975828e781EcaC125dBA40d7ee5dDC0';
867
+ function getRequest(method, args, contractAddressOrOptions) {
868
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
869
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
870
+ const call = {
871
+ contractName: 'RipeToken',
872
+ method,
873
+ args,
874
+ address,
875
+ deployAddress,
876
+ defaultValue,
877
+ getAbi: () => abi,
878
+ with: (options) => {
879
+ call.address = options.contractAddress;
880
+ call.defaultValue = options.defaultValue;
881
+ return call;
882
+ },
883
+ defaultTo: (defaultValue) => {
884
+ call.defaultValue = defaultValue;
885
+ return call;
886
+ },
887
+ at: (address) => {
888
+ call.address = address;
889
+ return call;
890
+ },
891
+ };
892
+ return call;
893
+ }
894
+ export const call = {
895
+ name: (...args) => getRequest('name', args),
896
+ symbol: (...args) => getRequest('symbol', args),
897
+ decimals: (...args) => getRequest('decimals', args),
898
+ DOMAIN_SEPARATOR: (...args) => getRequest('DOMAIN_SEPARATOR', args),
899
+ hasPendingHqChange: (...args) => getRequest('hasPendingHqChange', args),
900
+ isValidNewRipeHq: (...args) => getRequest('isValidNewRipeHq', args),
901
+ isValidHqChangeTimeLock: (...args) => getRequest('isValidHqChangeTimeLock', args),
902
+ minHqTimeLock: (...args) => getRequest('minHqTimeLock', args),
903
+ maxHqTimeLock: (...args) => getRequest('maxHqTimeLock', args),
904
+ ripeHq: (...args) => getRequest('ripeHq', args),
905
+ blacklisted: (...args) => getRequest('blacklisted', args),
906
+ isPaused: (...args) => getRequest('isPaused', args),
907
+ pendingHq: (...args) => getRequest('pendingHq', args),
908
+ hqChangeTimeLock: (...args) => getRequest('hqChangeTimeLock', args),
909
+ balanceOf: (...args) => getRequest('balanceOf', args),
910
+ allowance: (...args) => getRequest('allowance', args),
911
+ totalSupply: (...args) => getRequest('totalSupply', args),
912
+ TOKEN_NAME: (...args) => getRequest('TOKEN_NAME', args),
913
+ TOKEN_SYMBOL: (...args) => getRequest('TOKEN_SYMBOL', args),
914
+ TOKEN_DECIMALS: (...args) => getRequest('TOKEN_DECIMALS', args),
915
+ VERSION: (...args) => getRequest('VERSION', args),
916
+ nonces: (...args) => getRequest('nonces', args),
917
+ };
918
+ function getMutation(functionName) {
919
+ return {
920
+ contractName: 'RipeToken',
921
+ functionName,
922
+ deployAddress,
923
+ argsType: undefined,
924
+ getAbi: () => abi,
925
+ };
926
+ }
927
+ export const mutation = {
928
+ transfer: getMutation('transfer'),
929
+ transferFrom: getMutation('transferFrom'),
930
+ approve: getMutation('approve'),
931
+ increaseAllowance: getMutation('increaseAllowance'),
932
+ decreaseAllowance: getMutation('decreaseAllowance'),
933
+ burn: getMutation('burn'),
934
+ permit: getMutation('permit'),
935
+ setBlacklist: getMutation('setBlacklist'),
936
+ burnBlacklistTokens: getMutation('burnBlacklistTokens'),
937
+ initiateHqChange: getMutation('initiateHqChange'),
938
+ confirmHqChange: getMutation('confirmHqChange'),
939
+ cancelHqChange: getMutation('cancelHqChange'),
940
+ setHqChangeTimeLock: getMutation('setHqChangeTimeLock'),
941
+ pause: getMutation('pause'),
942
+ finishTokenSetup: getMutation('finishTokenSetup'),
943
+ mint: getMutation('mint'),
944
+ };
945
+ export function toSdk(publicClient, walletClient) {
946
+ return {
947
+ deployAddress,
948
+ abi,
949
+ // Queries
950
+ name: (...args) => singleQuery(publicClient, call.name(...args)),
951
+ symbol: (...args) => singleQuery(publicClient, call.symbol(...args)),
952
+ decimals: (...args) => singleQuery(publicClient, call.decimals(...args)),
953
+ DOMAIN_SEPARATOR: (...args) => singleQuery(publicClient, call.DOMAIN_SEPARATOR(...args)),
954
+ hasPendingHqChange: (...args) => singleQuery(publicClient, call.hasPendingHqChange(...args)),
955
+ isValidNewRipeHq: (...args) => singleQuery(publicClient, call.isValidNewRipeHq(...args)),
956
+ isValidHqChangeTimeLock: (...args) => singleQuery(publicClient, call.isValidHqChangeTimeLock(...args)),
957
+ minHqTimeLock: (...args) => singleQuery(publicClient, call.minHqTimeLock(...args)),
958
+ maxHqTimeLock: (...args) => singleQuery(publicClient, call.maxHqTimeLock(...args)),
959
+ ripeHq: (...args) => singleQuery(publicClient, call.ripeHq(...args)),
960
+ blacklisted: (...args) => singleQuery(publicClient, call.blacklisted(...args)),
961
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
962
+ pendingHq: (...args) => singleQuery(publicClient, call.pendingHq(...args)),
963
+ hqChangeTimeLock: (...args) => singleQuery(publicClient, call.hqChangeTimeLock(...args)),
964
+ balanceOf: (...args) => singleQuery(publicClient, call.balanceOf(...args)),
965
+ allowance: (...args) => singleQuery(publicClient, call.allowance(...args)),
966
+ totalSupply: (...args) => singleQuery(publicClient, call.totalSupply(...args)),
967
+ TOKEN_NAME: (...args) => singleQuery(publicClient, call.TOKEN_NAME(...args)),
968
+ TOKEN_SYMBOL: (...args) => singleQuery(publicClient, call.TOKEN_SYMBOL(...args)),
969
+ TOKEN_DECIMALS: (...args) => singleQuery(publicClient, call.TOKEN_DECIMALS(...args)),
970
+ VERSION: (...args) => singleQuery(publicClient, call.VERSION(...args)),
971
+ nonces: (...args) => singleQuery(publicClient, call.nonces(...args)),
972
+ // Mutations
973
+ transfer: (...args) => mutate(walletClient, mutation.transfer)(...args),
974
+ transferFrom: (...args) => mutate(walletClient, mutation.transferFrom)(...args),
975
+ approve: (...args) => mutate(walletClient, mutation.approve)(...args),
976
+ increaseAllowance: (...args) => mutate(walletClient, mutation.increaseAllowance)(...args),
977
+ decreaseAllowance: (...args) => mutate(walletClient, mutation.decreaseAllowance)(...args),
978
+ burn: (...args) => mutate(walletClient, mutation.burn)(...args),
979
+ permit: (...args) => mutate(walletClient, mutation.permit)(...args),
980
+ setBlacklist: (...args) => mutate(walletClient, mutation.setBlacklist)(...args),
981
+ burnBlacklistTokens: (...args) => mutate(walletClient, mutation.burnBlacklistTokens)(...args),
982
+ initiateHqChange: (...args) => mutate(walletClient, mutation.initiateHqChange)(...args),
983
+ confirmHqChange: (...args) => mutate(walletClient, mutation.confirmHqChange)(...args),
984
+ cancelHqChange: (...args) => mutate(walletClient, mutation.cancelHqChange)(...args),
985
+ setHqChangeTimeLock: (...args) => mutate(walletClient, mutation.setHqChangeTimeLock)(...args),
986
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
987
+ finishTokenSetup: (...args) => mutate(walletClient, mutation.finishTokenSetup)(...args),
988
+ mint: (...args) => mutate(walletClient, mutation.mint)(...args),
989
+ };
990
+ }