@underscore-finance/sdk 0.3.4 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contracts/AaveV3.d.ts +2120 -0
- package/dist/contracts/AaveV3.d.ts.map +1 -0
- package/dist/contracts/AaveV3.js +2714 -0
- package/dist/contracts/AeroClassic.d.ts +2017 -0
- package/dist/contracts/AeroClassic.d.ts.map +1 -0
- package/dist/contracts/AeroClassic.js +2567 -0
- package/dist/contracts/AeroSlipstream.d.ts +2113 -0
- package/dist/contracts/AeroSlipstream.d.ts.map +1 -0
- package/dist/contracts/AeroSlipstream.js +2692 -0
- package/dist/contracts/Agent.d.ts +2189 -1138
- package/dist/contracts/Agent.d.ts.map +1 -1
- package/dist/contracts/Agent.js +2807 -1343
- package/dist/contracts/AgentWrapper.d.ts +3760 -0
- package/dist/contracts/AgentWrapper.d.ts.map +1 -0
- package/dist/contracts/AgentWrapper.js +4922 -0
- package/dist/contracts/Appraiser.d.ts +997 -0
- package/dist/contracts/Appraiser.d.ts.map +1 -0
- package/dist/contracts/Appraiser.js +1285 -0
- package/dist/contracts/Billing.d.ts +420 -0
- package/dist/contracts/Billing.d.ts.map +1 -0
- package/dist/contracts/Billing.js +506 -0
- package/dist/contracts/ChequeBook.d.ts +1184 -0
- package/dist/contracts/ChequeBook.d.ts.map +1 -0
- package/dist/contracts/ChequeBook.js +1352 -0
- package/dist/contracts/CompoundV3.d.ts +2158 -0
- package/dist/contracts/CompoundV3.d.ts.map +1 -0
- package/dist/contracts/CompoundV3.js +2764 -0
- package/dist/contracts/Curve.d.ts +1077 -0
- package/dist/contracts/Curve.d.ts.map +1 -0
- package/dist/contracts/Curve.js +1357 -0
- package/dist/contracts/DefaultsBase.d.ts +290 -0
- package/dist/contracts/DefaultsBase.d.ts.map +1 -0
- package/dist/contracts/DefaultsBase.js +316 -0
- package/dist/contracts/Euler.d.ts +2172 -0
- package/dist/contracts/Euler.d.ts.map +1 -0
- package/dist/contracts/Euler.js +2782 -0
- package/dist/contracts/Fluid.d.ts +2106 -0
- package/dist/contracts/Fluid.d.ts.map +1 -0
- package/dist/contracts/Fluid.js +2696 -0
- package/dist/contracts/Hatchery.d.ts +541 -0
- package/dist/contracts/Hatchery.d.ts.map +1 -0
- package/dist/contracts/Hatchery.js +671 -0
- package/dist/contracts/HighCommand.d.ts +1868 -0
- package/dist/contracts/HighCommand.d.ts.map +1 -0
- package/dist/contracts/HighCommand.js +2149 -0
- package/dist/contracts/Kernel.d.ts +354 -0
- package/dist/contracts/Kernel.d.ts.map +1 -0
- package/dist/contracts/Kernel.js +412 -0
- package/dist/contracts/Ledger.d.ts +694 -0
- package/dist/contracts/Ledger.d.ts.map +1 -0
- package/dist/contracts/Ledger.js +834 -0
- package/dist/contracts/LegoBook.d.ts +1424 -0
- package/dist/contracts/LegoBook.d.ts.map +1 -0
- package/dist/contracts/LegoBook.js +1783 -0
- package/dist/contracts/LegoTools.d.ts +1898 -0
- package/dist/contracts/LegoTools.d.ts.map +1 -0
- package/dist/contracts/LegoTools.js +2378 -0
- package/dist/contracts/LegoUniswapV0_2.d.ts +1204 -0
- package/dist/contracts/LegoUniswapV0_2.d.ts.map +1 -0
- package/dist/contracts/LegoUniswapV0_2.js +1546 -0
- package/dist/contracts/LootDistributor.d.ts +996 -0
- package/dist/contracts/LootDistributor.d.ts.map +1 -0
- package/dist/contracts/LootDistributor.js +1255 -0
- package/dist/contracts/Migrator.d.ts +268 -0
- package/dist/contracts/Migrator.d.ts.map +1 -0
- package/dist/contracts/Migrator.js +324 -0
- package/dist/contracts/MissionControl.d.ts +1331 -0
- package/dist/contracts/MissionControl.d.ts.map +1 -0
- package/dist/contracts/MissionControl.js +1485 -0
- package/dist/contracts/Moonwell.d.ts +2137 -0
- package/dist/contracts/Moonwell.d.ts.map +1 -0
- package/dist/contracts/Moonwell.js +2737 -0
- package/dist/contracts/Morpho.d.ts +2172 -0
- package/dist/contracts/Morpho.d.ts.map +1 -0
- package/dist/contracts/Morpho.js +2782 -0
- package/dist/contracts/Paymaster.d.ts +1679 -0
- package/dist/contracts/Paymaster.d.ts.map +1 -0
- package/dist/contracts/Paymaster.js +2077 -0
- package/dist/contracts/RipeLego.d.ts +2263 -0
- package/dist/contracts/RipeLego.d.ts.map +1 -0
- package/dist/contracts/RipeLego.js +2891 -0
- package/dist/contracts/Sentinel.d.ts +1804 -0
- package/dist/contracts/Sentinel.d.ts.map +1 -0
- package/dist/contracts/Sentinel.js +2152 -0
- package/dist/contracts/Switchboard.d.ts +1395 -0
- package/dist/contracts/Switchboard.d.ts.map +1 -0
- package/dist/contracts/Switchboard.js +1746 -0
- package/dist/contracts/SwitchboardAlpha.d.ts +2228 -0
- package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -0
- package/dist/contracts/SwitchboardAlpha.js +2743 -0
- package/dist/contracts/SwitchboardBravo.d.ts +1498 -0
- package/dist/contracts/SwitchboardBravo.d.ts.map +1 -0
- package/dist/contracts/SwitchboardBravo.js +1855 -0
- package/dist/contracts/UndyHq.d.ts +1580 -0
- package/dist/contracts/UndyHq.d.ts.map +1 -0
- package/dist/contracts/UndyHq.js +1986 -0
- package/dist/contracts/UniswapV2.d.ts +2017 -0
- package/dist/contracts/UniswapV2.d.ts.map +1 -0
- package/dist/contracts/UniswapV2.js +2567 -0
- package/dist/contracts/UniswapV3.d.ts +2113 -0
- package/dist/contracts/UniswapV3.d.ts.map +1 -0
- package/dist/contracts/UniswapV3.js +2692 -0
- package/dist/contracts/UserWallet.d.ts +1438 -784
- package/dist/contracts/UserWallet.d.ts.map +1 -1
- package/dist/contracts/UserWallet.js +1854 -935
- package/dist/contracts/UserWalletConfig.d.ts +3034 -1231
- package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
- package/dist/contracts/UserWalletConfig.js +3395 -1407
- package/dist/contracts/WalletBackpack.d.ts +1183 -0
- package/dist/contracts/WalletBackpack.d.ts.map +1 -0
- package/dist/contracts/WalletBackpack.js +1484 -0
- package/dist/contracts/index.d.ts +72 -36
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +72 -36
- package/dist/contracts/sdk.d.ts +146 -72
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +146 -72
- package/dist/contracts/v0_1_AddyRegistry.d.ts +473 -0
- package/dist/contracts/v0_1_AddyRegistry.d.ts.map +1 -0
- package/dist/contracts/v0_1_AddyRegistry.js +594 -0
- package/dist/contracts/v0_1_Agent.d.ts +2631 -0
- package/dist/contracts/v0_1_Agent.d.ts.map +1 -0
- package/dist/contracts/v0_1_Agent.js +3372 -0
- package/dist/contracts/v0_1_AgentFactory.d.ts +1054 -0
- package/dist/contracts/v0_1_AgentFactory.d.ts.map +1 -0
- package/dist/contracts/v0_1_AgentFactory.js +1336 -0
- package/dist/contracts/v0_1_UserWallet.d.ts +1980 -0
- package/dist/contracts/v0_1_UserWallet.d.ts.map +1 -0
- package/dist/contracts/v0_1_UserWallet.js +2581 -0
- package/dist/contracts/v0_1_UserWalletConfig.d.ts +1400 -0
- package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +1 -0
- package/dist/contracts/v0_1_UserWalletConfig.js +1676 -0
- package/dist/contracts/v0_2_AddyRegistry.d.ts +1050 -0
- package/dist/contracts/v0_2_AddyRegistry.d.ts.map +1 -0
- package/dist/contracts/v0_2_AddyRegistry.js +1313 -0
- package/dist/contracts/v0_2_Agent.d.ts +2709 -0
- package/dist/contracts/v0_2_Agent.d.ts.map +1 -0
- package/dist/contracts/v0_2_Agent.js +3458 -0
- package/dist/contracts/v0_2_AgentFactory.d.ts +1275 -0
- package/dist/contracts/v0_2_AgentFactory.d.ts.map +1 -0
- package/dist/contracts/v0_2_AgentFactory.js +1609 -0
- package/dist/contracts/v0_2_UserWallet.d.ts +1958 -0
- package/dist/contracts/v0_2_UserWallet.d.ts.map +1 -0
- package/dist/contracts/v0_2_UserWallet.js +2553 -0
- package/dist/contracts/v0_2_UserWalletConfig.d.ts +1468 -0
- package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +1 -0
- package/dist/contracts/v0_2_UserWalletConfig.js +1764 -0
- package/dist/contracts/v0_3_AddyRegistry.d.ts +1109 -0
- package/dist/contracts/v0_3_AddyRegistry.d.ts.map +1 -0
- package/dist/contracts/v0_3_AddyRegistry.js +1392 -0
- package/dist/contracts/v0_3_Agent.d.ts +2709 -0
- package/dist/contracts/v0_3_Agent.d.ts.map +1 -0
- package/dist/contracts/v0_3_Agent.js +3458 -0
- package/dist/contracts/v0_3_AgentFactory.d.ts +1665 -0
- package/dist/contracts/v0_3_AgentFactory.d.ts.map +1 -0
- package/dist/contracts/v0_3_AgentFactory.js +2078 -0
- package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +706 -0
- package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +1 -0
- package/dist/contracts/v0_3_ChainlinkFeeds.js +900 -0
- package/dist/contracts/v0_3_LegoAaveV3.d.ts +1033 -0
- package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +1 -0
- package/dist/contracts/v0_3_LegoAaveV3.js +1330 -0
- package/dist/contracts/v0_3_LegoAeroClassic.d.ts +1204 -0
- package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +1 -0
- package/dist/contracts/v0_3_LegoAeroClassic.js +1546 -0
- package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +1300 -0
- package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +1 -0
- package/dist/contracts/v0_3_LegoAeroSlipstream.js +1671 -0
- package/dist/contracts/v0_3_LegoCommon.d.ts +164 -0
- package/dist/contracts/v0_3_LegoCommon.d.ts.map +1 -0
- package/dist/contracts/v0_3_LegoCommon.js +202 -0
- package/dist/contracts/v0_3_LegoCompoundV3.d.ts +1060 -0
- package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +1 -0
- package/dist/contracts/v0_3_LegoCompoundV3.js +1365 -0
- package/dist/contracts/v0_3_LegoCredit.d.ts +140 -0
- package/dist/contracts/v0_3_LegoCredit.d.ts.map +1 -0
- package/dist/contracts/v0_3_LegoCredit.js +179 -0
- package/dist/contracts/v0_3_LegoCurve.d.ts +1189 -0
- package/dist/contracts/v0_3_LegoCurve.d.ts.map +1 -0
- package/dist/contracts/v0_3_LegoCurve.js +1519 -0
- package/dist/contracts/v0_3_LegoDex.d.ts +587 -0
- package/dist/contracts/v0_3_LegoDex.d.ts.map +1 -0
- package/dist/contracts/v0_3_LegoDex.js +774 -0
- package/dist/contracts/v0_3_LegoEuler.d.ts +1074 -0
- package/dist/contracts/v0_3_LegoEuler.d.ts.map +1 -0
- package/dist/contracts/v0_3_LegoEuler.js +1383 -0
- package/dist/contracts/v0_3_LegoFluid.d.ts +1025 -0
- package/dist/contracts/v0_3_LegoFluid.d.ts.map +1 -0
- package/dist/contracts/v0_3_LegoFluid.js +1320 -0
- package/dist/contracts/v0_3_LegoHelper.d.ts +1563 -0
- package/dist/contracts/v0_3_LegoHelper.d.ts.map +1 -0
- package/dist/contracts/v0_3_LegoHelper.js +1947 -0
- package/dist/contracts/v0_3_LegoMoonwell.d.ts +1042 -0
- package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +1 -0
- package/dist/contracts/v0_3_LegoMoonwell.js +1342 -0
- package/dist/contracts/v0_3_LegoMorpho.d.ts +1074 -0
- package/dist/contracts/v0_3_LegoMorpho.d.ts.map +1 -0
- package/dist/contracts/v0_3_LegoMorpho.js +1383 -0
- package/dist/contracts/v0_3_LegoRegistry.d.ts +1079 -0
- package/dist/contracts/v0_3_LegoRegistry.d.ts.map +1 -0
- package/dist/contracts/v0_3_LegoRegistry.js +1368 -0
- package/dist/contracts/v0_3_LegoSky.d.ts +923 -0
- package/dist/contracts/v0_3_LegoSky.d.ts.map +1 -0
- package/dist/contracts/v0_3_LegoSky.js +1180 -0
- package/dist/contracts/v0_3_LegoUniswapV3.d.ts +1338 -0
- package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +1 -0
- package/dist/contracts/v0_3_LegoUniswapV3.js +1718 -0
- package/dist/contracts/v0_3_LegoYield.d.ts +390 -0
- package/dist/contracts/v0_3_LegoYield.d.ts.map +1 -0
- package/dist/contracts/v0_3_LegoYield.js +511 -0
- package/dist/contracts/v0_3_OracleParser.d.ts +207 -0
- package/dist/contracts/v0_3_OracleParser.d.ts.map +1 -0
- package/dist/contracts/v0_3_OracleParser.js +264 -0
- package/dist/contracts/v0_3_OracleRegistry.d.ts +1221 -0
- package/dist/contracts/v0_3_OracleRegistry.d.ts.map +1 -0
- package/dist/contracts/v0_3_OracleRegistry.js +1562 -0
- package/dist/contracts/v0_3_PriceSheets.d.ts +1127 -0
- package/dist/contracts/v0_3_PriceSheets.d.ts.map +1 -0
- package/dist/contracts/v0_3_PriceSheets.js +1383 -0
- package/dist/contracts/v0_3_PythFeeds.d.ts +640 -0
- package/dist/contracts/v0_3_PythFeeds.d.ts.map +1 -0
- package/dist/contracts/v0_3_PythFeeds.js +813 -0
- package/dist/contracts/v0_3_StorkFeeds.d.ts +640 -0
- package/dist/contracts/v0_3_StorkFeeds.d.ts.map +1 -0
- package/dist/contracts/v0_3_StorkFeeds.js +813 -0
- package/dist/contracts/v0_3_UserWallet.d.ts +1975 -0
- package/dist/contracts/v0_3_UserWallet.d.ts.map +1 -0
- package/dist/contracts/v0_3_UserWallet.js +2577 -0
- package/dist/contracts/v0_3_UserWalletConfig.d.ts +1852 -0
- package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +1 -0
- package/dist/contracts/v0_3_UserWalletConfig.js +2263 -0
- package/dist/getContracts.d.ts +77 -0
- package/dist/getContracts.d.ts.map +1 -0
- package/dist/getContracts.js +67 -0
- package/dist/getLegacyContracts.d.ts +69 -0
- package/dist/getLegacyContracts.d.ts.map +1 -0
- package/dist/getLegacyContracts.js +55 -0
- package/dist/getSwapInstructions.d.ts +60 -0
- package/dist/getSwapInstructions.d.ts.map +1 -0
- package/dist/getSwapInstructions.js +41 -0
- package/dist/index.d.ts +7 -477
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -182
- package/package.json +2 -2
|
@@ -0,0 +1,511 @@
|
|
|
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
|
+
stateMutability: 'nonpayable',
|
|
9
|
+
type: 'function',
|
|
10
|
+
name: 'depositTokens',
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
name: '_asset',
|
|
14
|
+
type: 'address',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: '_amount',
|
|
18
|
+
type: 'uint256',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: '_vault',
|
|
22
|
+
type: 'address',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: '_recipient',
|
|
26
|
+
type: 'address',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
outputs: [
|
|
30
|
+
{
|
|
31
|
+
name: '',
|
|
32
|
+
type: 'uint256',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: '',
|
|
36
|
+
type: 'address',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: '',
|
|
40
|
+
type: 'uint256',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: '',
|
|
44
|
+
type: 'uint256',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: '',
|
|
48
|
+
type: 'uint256',
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
stateMutability: 'nonpayable',
|
|
54
|
+
type: 'function',
|
|
55
|
+
name: 'depositTokens',
|
|
56
|
+
inputs: [
|
|
57
|
+
{
|
|
58
|
+
name: '_asset',
|
|
59
|
+
type: 'address',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: '_amount',
|
|
63
|
+
type: 'uint256',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: '_vault',
|
|
67
|
+
type: 'address',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: '_recipient',
|
|
71
|
+
type: 'address',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: '_oracleRegistry',
|
|
75
|
+
type: 'address',
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
outputs: [
|
|
79
|
+
{
|
|
80
|
+
name: '',
|
|
81
|
+
type: 'uint256',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: '',
|
|
85
|
+
type: 'address',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: '',
|
|
89
|
+
type: 'uint256',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: '',
|
|
93
|
+
type: 'uint256',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: '',
|
|
97
|
+
type: 'uint256',
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
stateMutability: 'nonpayable',
|
|
103
|
+
type: 'function',
|
|
104
|
+
name: 'withdrawTokens',
|
|
105
|
+
inputs: [
|
|
106
|
+
{
|
|
107
|
+
name: '_asset',
|
|
108
|
+
type: 'address',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: '_amount',
|
|
112
|
+
type: 'uint256',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: '_vaultToken',
|
|
116
|
+
type: 'address',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: '_recipient',
|
|
120
|
+
type: 'address',
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
outputs: [
|
|
124
|
+
{
|
|
125
|
+
name: '',
|
|
126
|
+
type: 'uint256',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: '',
|
|
130
|
+
type: 'uint256',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: '',
|
|
134
|
+
type: 'uint256',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: '',
|
|
138
|
+
type: 'uint256',
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
stateMutability: 'nonpayable',
|
|
144
|
+
type: 'function',
|
|
145
|
+
name: 'withdrawTokens',
|
|
146
|
+
inputs: [
|
|
147
|
+
{
|
|
148
|
+
name: '_asset',
|
|
149
|
+
type: 'address',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: '_amount',
|
|
153
|
+
type: 'uint256',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: '_vaultToken',
|
|
157
|
+
type: 'address',
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
name: '_recipient',
|
|
161
|
+
type: 'address',
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: '_oracleRegistry',
|
|
165
|
+
type: 'address',
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
outputs: [
|
|
169
|
+
{
|
|
170
|
+
name: '',
|
|
171
|
+
type: 'uint256',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: '',
|
|
175
|
+
type: 'uint256',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: '',
|
|
179
|
+
type: 'uint256',
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: '',
|
|
183
|
+
type: 'uint256',
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
stateMutability: 'view',
|
|
189
|
+
type: 'function',
|
|
190
|
+
name: 'getAssetOpportunities',
|
|
191
|
+
inputs: [
|
|
192
|
+
{
|
|
193
|
+
name: '_asset',
|
|
194
|
+
type: 'address',
|
|
195
|
+
},
|
|
196
|
+
],
|
|
197
|
+
outputs: [
|
|
198
|
+
{
|
|
199
|
+
name: '',
|
|
200
|
+
type: 'address[]',
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
stateMutability: 'view',
|
|
206
|
+
type: 'function',
|
|
207
|
+
name: 'getUnderlyingAmount',
|
|
208
|
+
inputs: [
|
|
209
|
+
{
|
|
210
|
+
name: '_vaultToken',
|
|
211
|
+
type: 'address',
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: '_vaultTokenAmount',
|
|
215
|
+
type: 'uint256',
|
|
216
|
+
},
|
|
217
|
+
],
|
|
218
|
+
outputs: [
|
|
219
|
+
{
|
|
220
|
+
name: '',
|
|
221
|
+
type: 'uint256',
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
stateMutability: 'view',
|
|
227
|
+
type: 'function',
|
|
228
|
+
name: 'getUnderlyingAsset',
|
|
229
|
+
inputs: [
|
|
230
|
+
{
|
|
231
|
+
name: '_vaultToken',
|
|
232
|
+
type: 'address',
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
outputs: [
|
|
236
|
+
{
|
|
237
|
+
name: '',
|
|
238
|
+
type: 'address',
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
stateMutability: 'view',
|
|
244
|
+
type: 'function',
|
|
245
|
+
name: 'getAssets',
|
|
246
|
+
inputs: [],
|
|
247
|
+
outputs: [
|
|
248
|
+
{
|
|
249
|
+
name: '',
|
|
250
|
+
type: 'address[]',
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
stateMutability: 'view',
|
|
256
|
+
type: 'function',
|
|
257
|
+
name: 'isVaultToken',
|
|
258
|
+
inputs: [
|
|
259
|
+
{
|
|
260
|
+
name: '_vaultToken',
|
|
261
|
+
type: 'address',
|
|
262
|
+
},
|
|
263
|
+
],
|
|
264
|
+
outputs: [
|
|
265
|
+
{
|
|
266
|
+
name: '',
|
|
267
|
+
type: 'bool',
|
|
268
|
+
},
|
|
269
|
+
],
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
stateMutability: 'view',
|
|
273
|
+
type: 'function',
|
|
274
|
+
name: 'getVaultTokenAmount',
|
|
275
|
+
inputs: [
|
|
276
|
+
{
|
|
277
|
+
name: '_asset',
|
|
278
|
+
type: 'address',
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
name: '_assetAmount',
|
|
282
|
+
type: 'uint256',
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: '_vaultToken',
|
|
286
|
+
type: 'address',
|
|
287
|
+
},
|
|
288
|
+
],
|
|
289
|
+
outputs: [
|
|
290
|
+
{
|
|
291
|
+
name: '',
|
|
292
|
+
type: 'uint256',
|
|
293
|
+
},
|
|
294
|
+
],
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
stateMutability: 'view',
|
|
298
|
+
type: 'function',
|
|
299
|
+
name: 'getUsdValueOfVaultToken',
|
|
300
|
+
inputs: [
|
|
301
|
+
{
|
|
302
|
+
name: '_vaultToken',
|
|
303
|
+
type: 'address',
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
name: '_vaultTokenAmount',
|
|
307
|
+
type: 'uint256',
|
|
308
|
+
},
|
|
309
|
+
],
|
|
310
|
+
outputs: [
|
|
311
|
+
{
|
|
312
|
+
name: '',
|
|
313
|
+
type: 'uint256',
|
|
314
|
+
},
|
|
315
|
+
],
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
stateMutability: 'view',
|
|
319
|
+
type: 'function',
|
|
320
|
+
name: 'getUsdValueOfVaultToken',
|
|
321
|
+
inputs: [
|
|
322
|
+
{
|
|
323
|
+
name: '_vaultToken',
|
|
324
|
+
type: 'address',
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
name: '_vaultTokenAmount',
|
|
328
|
+
type: 'uint256',
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
name: '_oracleRegistry',
|
|
332
|
+
type: 'address',
|
|
333
|
+
},
|
|
334
|
+
],
|
|
335
|
+
outputs: [
|
|
336
|
+
{
|
|
337
|
+
name: '',
|
|
338
|
+
type: 'uint256',
|
|
339
|
+
},
|
|
340
|
+
],
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
stateMutability: 'view',
|
|
344
|
+
type: 'function',
|
|
345
|
+
name: 'getUnderlyingData',
|
|
346
|
+
inputs: [
|
|
347
|
+
{
|
|
348
|
+
name: '_vaultToken',
|
|
349
|
+
type: 'address',
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
name: '_vaultTokenAmount',
|
|
353
|
+
type: 'uint256',
|
|
354
|
+
},
|
|
355
|
+
],
|
|
356
|
+
outputs: [
|
|
357
|
+
{
|
|
358
|
+
name: '',
|
|
359
|
+
type: 'address',
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
name: '',
|
|
363
|
+
type: 'uint256',
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
name: '',
|
|
367
|
+
type: 'uint256',
|
|
368
|
+
},
|
|
369
|
+
],
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
stateMutability: 'view',
|
|
373
|
+
type: 'function',
|
|
374
|
+
name: 'getUnderlyingData',
|
|
375
|
+
inputs: [
|
|
376
|
+
{
|
|
377
|
+
name: '_vaultToken',
|
|
378
|
+
type: 'address',
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
name: '_vaultTokenAmount',
|
|
382
|
+
type: 'uint256',
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
name: '_oracleRegistry',
|
|
386
|
+
type: 'address',
|
|
387
|
+
},
|
|
388
|
+
],
|
|
389
|
+
outputs: [
|
|
390
|
+
{
|
|
391
|
+
name: '',
|
|
392
|
+
type: 'address',
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
name: '',
|
|
396
|
+
type: 'uint256',
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
name: '',
|
|
400
|
+
type: 'uint256',
|
|
401
|
+
},
|
|
402
|
+
],
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
stateMutability: 'view',
|
|
406
|
+
type: 'function',
|
|
407
|
+
name: 'totalAssets',
|
|
408
|
+
inputs: [
|
|
409
|
+
{
|
|
410
|
+
name: '_vaultToken',
|
|
411
|
+
type: 'address',
|
|
412
|
+
},
|
|
413
|
+
],
|
|
414
|
+
outputs: [
|
|
415
|
+
{
|
|
416
|
+
name: '',
|
|
417
|
+
type: 'uint256',
|
|
418
|
+
},
|
|
419
|
+
],
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
stateMutability: 'view',
|
|
423
|
+
type: 'function',
|
|
424
|
+
name: 'totalBorrows',
|
|
425
|
+
inputs: [
|
|
426
|
+
{
|
|
427
|
+
name: '_vaultToken',
|
|
428
|
+
type: 'address',
|
|
429
|
+
},
|
|
430
|
+
],
|
|
431
|
+
outputs: [
|
|
432
|
+
{
|
|
433
|
+
name: '',
|
|
434
|
+
type: 'uint256',
|
|
435
|
+
},
|
|
436
|
+
],
|
|
437
|
+
},
|
|
438
|
+
];
|
|
439
|
+
export const deployAddress = undefined;
|
|
440
|
+
function getRequest(method, args, contractAddressOrOptions) {
|
|
441
|
+
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
442
|
+
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|
|
443
|
+
const call = {
|
|
444
|
+
contractName: 'v0_3_LegoYield',
|
|
445
|
+
method,
|
|
446
|
+
args,
|
|
447
|
+
address,
|
|
448
|
+
deployAddress,
|
|
449
|
+
defaultValue,
|
|
450
|
+
getAbi: () => abi,
|
|
451
|
+
with: (options) => {
|
|
452
|
+
call.address = options.contractAddress;
|
|
453
|
+
call.defaultValue = options.defaultValue;
|
|
454
|
+
return call;
|
|
455
|
+
},
|
|
456
|
+
defaultTo: (defaultValue) => {
|
|
457
|
+
call.defaultValue = defaultValue;
|
|
458
|
+
return call;
|
|
459
|
+
},
|
|
460
|
+
at: (address) => {
|
|
461
|
+
call.address = address;
|
|
462
|
+
return call;
|
|
463
|
+
},
|
|
464
|
+
};
|
|
465
|
+
return call;
|
|
466
|
+
}
|
|
467
|
+
export const call = {
|
|
468
|
+
getAssetOpportunities: (...args) => getRequest('getAssetOpportunities', args),
|
|
469
|
+
getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
|
|
470
|
+
getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
|
|
471
|
+
getAssets: (...args) => getRequest('getAssets', args),
|
|
472
|
+
isVaultToken: (...args) => getRequest('isVaultToken', args),
|
|
473
|
+
getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
|
|
474
|
+
getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
|
|
475
|
+
getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
|
|
476
|
+
totalAssets: (...args) => getRequest('totalAssets', args),
|
|
477
|
+
totalBorrows: (...args) => getRequest('totalBorrows', args),
|
|
478
|
+
};
|
|
479
|
+
function getMutation(functionName) {
|
|
480
|
+
return {
|
|
481
|
+
contractName: 'v0_3_LegoYield',
|
|
482
|
+
functionName,
|
|
483
|
+
deployAddress,
|
|
484
|
+
argsType: undefined,
|
|
485
|
+
getAbi: () => abi,
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
export const mutation = {
|
|
489
|
+
depositTokens: getMutation('depositTokens'),
|
|
490
|
+
withdrawTokens: getMutation('withdrawTokens'),
|
|
491
|
+
};
|
|
492
|
+
export function toSdk(deployAddress, publicClient, walletClient) {
|
|
493
|
+
return {
|
|
494
|
+
deployAddress,
|
|
495
|
+
abi,
|
|
496
|
+
// Queries
|
|
497
|
+
getAssetOpportunities: (...args) => singleQuery(publicClient, call.getAssetOpportunities(...args).at(deployAddress)),
|
|
498
|
+
getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args).at(deployAddress)),
|
|
499
|
+
getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args).at(deployAddress)),
|
|
500
|
+
getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args).at(deployAddress)),
|
|
501
|
+
isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args).at(deployAddress)),
|
|
502
|
+
getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args).at(deployAddress)),
|
|
503
|
+
getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args).at(deployAddress)),
|
|
504
|
+
getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args).at(deployAddress)),
|
|
505
|
+
totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args).at(deployAddress)),
|
|
506
|
+
totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args).at(deployAddress)),
|
|
507
|
+
// Mutations
|
|
508
|
+
depositTokens: (...args) => mutate(walletClient, mutation.depositTokens, { address: deployAddress })(...args),
|
|
509
|
+
withdrawTokens: (...args) => mutate(walletClient, mutation.withdrawTokens, { address: deployAddress })(...args),
|
|
510
|
+
};
|
|
511
|
+
}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { PublicClient, WalletClient } from 'viem';
|
|
2
|
+
type ExtractArgs<T> = T extends (...args: infer P) => any ? P : never;
|
|
3
|
+
type Address = `0x${string}`;
|
|
4
|
+
export declare const abi: readonly [{
|
|
5
|
+
readonly stateMutability: "view";
|
|
6
|
+
readonly type: "function";
|
|
7
|
+
readonly name: "getPrice";
|
|
8
|
+
readonly inputs: readonly [{
|
|
9
|
+
readonly name: "_asset";
|
|
10
|
+
readonly type: "address";
|
|
11
|
+
}];
|
|
12
|
+
readonly outputs: readonly [{
|
|
13
|
+
readonly name: "";
|
|
14
|
+
readonly type: "uint256";
|
|
15
|
+
}];
|
|
16
|
+
}, {
|
|
17
|
+
readonly stateMutability: "view";
|
|
18
|
+
readonly type: "function";
|
|
19
|
+
readonly name: "getPrice";
|
|
20
|
+
readonly inputs: readonly [{
|
|
21
|
+
readonly name: "_asset";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "_staleTime";
|
|
25
|
+
readonly type: "uint256";
|
|
26
|
+
}];
|
|
27
|
+
readonly outputs: readonly [{
|
|
28
|
+
readonly name: "";
|
|
29
|
+
readonly type: "uint256";
|
|
30
|
+
}];
|
|
31
|
+
}, {
|
|
32
|
+
readonly stateMutability: "view";
|
|
33
|
+
readonly type: "function";
|
|
34
|
+
readonly name: "getPrice";
|
|
35
|
+
readonly inputs: readonly [{
|
|
36
|
+
readonly name: "_asset";
|
|
37
|
+
readonly type: "address";
|
|
38
|
+
}, {
|
|
39
|
+
readonly name: "_staleTime";
|
|
40
|
+
readonly type: "uint256";
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "_oracleRegistry";
|
|
43
|
+
readonly type: "address";
|
|
44
|
+
}];
|
|
45
|
+
readonly outputs: readonly [{
|
|
46
|
+
readonly name: "";
|
|
47
|
+
readonly type: "uint256";
|
|
48
|
+
}];
|
|
49
|
+
}, {
|
|
50
|
+
readonly stateMutability: "view";
|
|
51
|
+
readonly type: "function";
|
|
52
|
+
readonly name: "getPriceAndHasFeed";
|
|
53
|
+
readonly inputs: readonly [{
|
|
54
|
+
readonly name: "_asset";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
}];
|
|
57
|
+
readonly outputs: readonly [{
|
|
58
|
+
readonly name: "";
|
|
59
|
+
readonly type: "uint256";
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "";
|
|
62
|
+
readonly type: "bool";
|
|
63
|
+
}];
|
|
64
|
+
}, {
|
|
65
|
+
readonly stateMutability: "view";
|
|
66
|
+
readonly type: "function";
|
|
67
|
+
readonly name: "getPriceAndHasFeed";
|
|
68
|
+
readonly inputs: readonly [{
|
|
69
|
+
readonly name: "_asset";
|
|
70
|
+
readonly type: "address";
|
|
71
|
+
}, {
|
|
72
|
+
readonly name: "_staleTime";
|
|
73
|
+
readonly type: "uint256";
|
|
74
|
+
}];
|
|
75
|
+
readonly outputs: readonly [{
|
|
76
|
+
readonly name: "";
|
|
77
|
+
readonly type: "uint256";
|
|
78
|
+
}, {
|
|
79
|
+
readonly name: "";
|
|
80
|
+
readonly type: "bool";
|
|
81
|
+
}];
|
|
82
|
+
}, {
|
|
83
|
+
readonly stateMutability: "view";
|
|
84
|
+
readonly type: "function";
|
|
85
|
+
readonly name: "getPriceAndHasFeed";
|
|
86
|
+
readonly inputs: readonly [{
|
|
87
|
+
readonly name: "_asset";
|
|
88
|
+
readonly type: "address";
|
|
89
|
+
}, {
|
|
90
|
+
readonly name: "_staleTime";
|
|
91
|
+
readonly type: "uint256";
|
|
92
|
+
}, {
|
|
93
|
+
readonly name: "_oracleRegistry";
|
|
94
|
+
readonly type: "address";
|
|
95
|
+
}];
|
|
96
|
+
readonly outputs: readonly [{
|
|
97
|
+
readonly name: "";
|
|
98
|
+
readonly type: "uint256";
|
|
99
|
+
}, {
|
|
100
|
+
readonly name: "";
|
|
101
|
+
readonly type: "bool";
|
|
102
|
+
}];
|
|
103
|
+
}, {
|
|
104
|
+
readonly stateMutability: "view";
|
|
105
|
+
readonly type: "function";
|
|
106
|
+
readonly name: "hasPriceFeed";
|
|
107
|
+
readonly inputs: readonly [{
|
|
108
|
+
readonly name: "_asset";
|
|
109
|
+
readonly type: "address";
|
|
110
|
+
}];
|
|
111
|
+
readonly outputs: readonly [{
|
|
112
|
+
readonly name: "";
|
|
113
|
+
readonly type: "bool";
|
|
114
|
+
}];
|
|
115
|
+
}, {
|
|
116
|
+
readonly stateMutability: "view";
|
|
117
|
+
readonly type: "function";
|
|
118
|
+
readonly name: "oraclePartnerId";
|
|
119
|
+
readonly inputs: readonly [];
|
|
120
|
+
readonly outputs: readonly [{
|
|
121
|
+
readonly name: "";
|
|
122
|
+
readonly type: "uint256";
|
|
123
|
+
}];
|
|
124
|
+
}, {
|
|
125
|
+
readonly stateMutability: "nonpayable";
|
|
126
|
+
readonly type: "function";
|
|
127
|
+
readonly name: "setOraclePartnerId";
|
|
128
|
+
readonly inputs: readonly [{
|
|
129
|
+
readonly name: "_oracleId";
|
|
130
|
+
readonly type: "uint256";
|
|
131
|
+
}];
|
|
132
|
+
readonly outputs: readonly [{
|
|
133
|
+
readonly name: "";
|
|
134
|
+
readonly type: "bool";
|
|
135
|
+
}];
|
|
136
|
+
}, {
|
|
137
|
+
readonly stateMutability: "view";
|
|
138
|
+
readonly type: "function";
|
|
139
|
+
readonly name: "getConfiguredAssets";
|
|
140
|
+
readonly inputs: readonly [];
|
|
141
|
+
readonly outputs: readonly [{
|
|
142
|
+
readonly name: "";
|
|
143
|
+
readonly type: "address[]";
|
|
144
|
+
}];
|
|
145
|
+
}];
|
|
146
|
+
export declare const deployAddress: Address | undefined;
|
|
147
|
+
export type Contract = {
|
|
148
|
+
calls: {
|
|
149
|
+
getPrice: (asset: `0x${string}`, staleTime?: bigint, oracleRegistry?: `0x${string}`) => Promise<bigint>;
|
|
150
|
+
getPriceAndHasFeed: (asset: `0x${string}`, staleTime?: bigint, oracleRegistry?: `0x${string}`) => Promise<[bigint, boolean]>;
|
|
151
|
+
hasPriceFeed: (asset: `0x${string}`) => Promise<boolean>;
|
|
152
|
+
oraclePartnerId: () => Promise<bigint>;
|
|
153
|
+
getConfiguredAssets: () => Promise<`0x${string}`[]>;
|
|
154
|
+
};
|
|
155
|
+
mutations: {
|
|
156
|
+
setOraclePartnerId: (oracleId: bigint) => Promise<boolean>;
|
|
157
|
+
};
|
|
158
|
+
events: {};
|
|
159
|
+
};
|
|
160
|
+
export type Calls = keyof Contract['calls'];
|
|
161
|
+
export type Request<M extends Calls> = {
|
|
162
|
+
contractName: 'v0_3_OracleParser';
|
|
163
|
+
method: M;
|
|
164
|
+
args: ExtractArgs<Contract['calls'][M]>;
|
|
165
|
+
address: Address | undefined;
|
|
166
|
+
deployAddress: Address | undefined;
|
|
167
|
+
defaultValue: Awaited<ReturnType<Contract['calls'][M]>> | undefined;
|
|
168
|
+
getAbi: () => typeof abi;
|
|
169
|
+
with: (options: {
|
|
170
|
+
contractAddress?: Address;
|
|
171
|
+
defaultValue?: Awaited<ReturnType<Contract['calls'][M]>>;
|
|
172
|
+
}) => Request<M>;
|
|
173
|
+
defaultTo: (defaultValue: Awaited<ReturnType<Contract['calls'][M]>>) => Request<M>;
|
|
174
|
+
at: (address: Address) => Request<M>;
|
|
175
|
+
};
|
|
176
|
+
export type CallReturn<M extends Calls> = NonNullable<Request<M>['defaultValue']>;
|
|
177
|
+
declare function getRequest<M extends Calls>(method: M, args: ExtractArgs<Contract['calls'][M]>, contractAddressOrOptions?: Address | {
|
|
178
|
+
contractAddress?: Address;
|
|
179
|
+
defaultValue?: Awaited<ReturnType<Contract['calls'][M]>>;
|
|
180
|
+
}): Request<M>;
|
|
181
|
+
type CallType = {
|
|
182
|
+
[K in Calls]: (...args: ExtractArgs<Contract['calls'][K]>) => ReturnType<typeof getRequest<K>>;
|
|
183
|
+
};
|
|
184
|
+
export declare const call: CallType;
|
|
185
|
+
export type Mutations = keyof Contract['mutations'];
|
|
186
|
+
export declare const mutation: {
|
|
187
|
+
[K in Mutations]: {
|
|
188
|
+
contractName: 'v0_3_OracleParser';
|
|
189
|
+
deployAddress: Address | undefined;
|
|
190
|
+
getAbi: () => typeof abi;
|
|
191
|
+
functionName: K;
|
|
192
|
+
argsType: ExtractArgs<Contract['mutations'][K]> | undefined;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
export type SDK = {
|
|
196
|
+
deployAddress: Address | undefined;
|
|
197
|
+
abi: typeof abi;
|
|
198
|
+
getPrice: (...args: ExtractArgs<Contract['calls']['getPrice']>) => Promise<CallReturn<'getPrice'>>;
|
|
199
|
+
getPriceAndHasFeed: (...args: ExtractArgs<Contract['calls']['getPriceAndHasFeed']>) => Promise<CallReturn<'getPriceAndHasFeed'>>;
|
|
200
|
+
hasPriceFeed: (...args: ExtractArgs<Contract['calls']['hasPriceFeed']>) => Promise<CallReturn<'hasPriceFeed'>>;
|
|
201
|
+
oraclePartnerId: (...args: ExtractArgs<Contract['calls']['oraclePartnerId']>) => Promise<CallReturn<'oraclePartnerId'>>;
|
|
202
|
+
getConfiguredAssets: (...args: ExtractArgs<Contract['calls']['getConfiguredAssets']>) => Promise<CallReturn<'getConfiguredAssets'>>;
|
|
203
|
+
setOraclePartnerId: (...args: ExtractArgs<Contract['mutations']['setOraclePartnerId']>) => Promise<Address>;
|
|
204
|
+
};
|
|
205
|
+
export declare function toSdk(deployAddress: Address, publicClient?: PublicClient, walletClient?: WalletClient): SDK;
|
|
206
|
+
export {};
|
|
207
|
+
//# sourceMappingURL=v0_3_OracleParser.d.ts.map
|