@underscore-finance/sdk 1.2.17 → 1.2.19
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/AGENTS.md +161 -0
- package/README.md +17 -116
- package/abis.json +179426 -0
- package/addresses.json +75 -0
- package/dist/contracts/AaveV3.d.ts.map +1 -1
- package/dist/contracts/AaveV3.js +1898 -1919
- package/dist/contracts/AeroClassic.d.ts.map +1 -1
- package/dist/contracts/AeroClassic.js +1518 -1533
- package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
- package/dist/contracts/AeroSlipstream.js +1620 -1641
- package/dist/contracts/AgentSenderGeneric.d.ts +1 -1
- package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -1
- package/dist/contracts/AgentSenderGeneric.js +3093 -3108
- package/dist/contracts/AgentSenderSpecial.d.ts +1 -1
- package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -1
- package/dist/contracts/AgentSenderSpecial.js +1495 -1510
- package/dist/contracts/AgentSenderSpecialSigHelper.d.ts +1 -1
- package/dist/contracts/AgentSenderSpecialSigHelper.d.ts.map +1 -1
- package/dist/contracts/AgentSenderSpecialSigHelper.js +1733 -1733
- package/dist/contracts/AgentWrapper.d.ts +1 -1
- package/dist/contracts/AgentWrapper.d.ts.map +1 -1
- package/dist/contracts/AgentWrapper.js +1926 -1929
- package/dist/contracts/AgentWrapperV1.d.ts +1 -1
- package/dist/contracts/AgentWrapperV1.d.ts.map +1 -1
- package/dist/contracts/AgentWrapperV1.js +2727 -2742
- package/dist/contracts/AgentWrapperV2.d.ts +1 -1
- package/dist/contracts/AgentWrapperV2.d.ts.map +1 -1
- package/dist/contracts/AgentWrapperV2.js +1832 -1835
- package/dist/contracts/Appraiser.d.ts.map +1 -1
- package/dist/contracts/Appraiser.js +404 -410
- package/dist/contracts/Avantis.d.ts.map +1 -1
- package/dist/contracts/Avantis.js +1905 -1929
- package/dist/contracts/Billing.d.ts.map +1 -1
- package/dist/contracts/Billing.js +235 -247
- package/dist/contracts/ChequeBook.d.ts.map +1 -1
- package/dist/contracts/ChequeBook.js +868 -877
- package/dist/contracts/CompoundV3.d.ts.map +1 -1
- package/dist/contracts/CompoundV3.js +1919 -1943
- package/dist/contracts/ConvertVaultToken.d.ts.map +1 -1
- package/dist/contracts/ConvertVaultToken.js +31 -31
- package/dist/contracts/Curve.d.ts.map +1 -1
- package/dist/contracts/Curve.js +787 -802
- package/dist/contracts/DefaultsBase.d.ts.map +1 -1
- package/dist/contracts/DefaultsBase.js +178 -178
- package/dist/contracts/ERC20.d.ts.map +1 -1
- package/dist/contracts/ERC20.js +186 -192
- package/dist/contracts/EarnVault.d.ts.map +1 -1
- package/dist/contracts/EarnVault.js +1262 -1292
- package/dist/contracts/EarnVaultAgent.d.ts.map +1 -1
- package/dist/contracts/EarnVaultAgent.js +745 -760
- package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +1 -1
- package/dist/contracts/EarnVaultAgentSigHelper.js +665 -665
- package/dist/contracts/Euler.d.ts.map +1 -1
- package/dist/contracts/Euler.js +1948 -1975
- package/dist/contracts/ExtraFi.d.ts.map +1 -1
- package/dist/contracts/ExtraFi.js +1929 -1953
- package/dist/contracts/Fluid.d.ts.map +1 -1
- package/dist/contracts/Fluid.js +1927 -1951
- package/dist/contracts/FortyAcres.d.ts.map +1 -1
- package/dist/contracts/FortyAcres.js +1916 -1940
- package/dist/contracts/Hatchery.d.ts.map +1 -1
- package/dist/contracts/Hatchery.js +255 -264
- package/dist/contracts/Helpers.d.ts.map +1 -1
- package/dist/contracts/Helpers.js +1069 -1123
- package/dist/contracts/HighCommand.d.ts.map +1 -1
- package/dist/contracts/HighCommand.js +1395 -1407
- package/dist/contracts/Kernel.d.ts.map +1 -1
- package/dist/contracts/Kernel.js +224 -236
- package/dist/contracts/Ledger.d.ts +9 -12
- package/dist/contracts/Ledger.d.ts.map +1 -1
- package/dist/contracts/Ledger.js +480 -486
- package/dist/contracts/LegoBook.d.ts.map +1 -1
- package/dist/contracts/LegoBook.js +1069 -1123
- package/dist/contracts/LegoTools.d.ts +16 -22
- package/dist/contracts/LegoTools.d.ts.map +1 -1
- package/dist/contracts/LegoTools.js +1420 -1426
- package/dist/contracts/LevgVault.d.ts.map +1 -1
- package/dist/contracts/LevgVault.js +1544 -1580
- package/dist/contracts/LevgVaultAgent.d.ts.map +1 -1
- package/dist/contracts/LevgVaultAgent.js +1514 -1529
- package/dist/contracts/LevgVaultAgentSigHelper.d.ts.map +1 -1
- package/dist/contracts/LevgVaultAgentSigHelper.js +1769 -1769
- package/dist/contracts/LevgVaultHelper.d.ts.map +1 -1
- package/dist/contracts/LevgVaultHelper.js +732 -732
- package/dist/contracts/LevgVaultTools.d.ts.map +1 -1
- package/dist/contracts/LevgVaultTools.js +2118 -2118
- package/dist/contracts/LootDistributor.d.ts.map +1 -1
- package/dist/contracts/LootDistributor.js +753 -789
- package/dist/contracts/Migrator.d.ts.map +1 -1
- package/dist/contracts/Migrator.js +168 -174
- package/dist/contracts/MissionControl.d.ts.map +1 -1
- package/dist/contracts/MissionControl.js +956 -962
- package/dist/contracts/Moonwell.d.ts.map +1 -1
- package/dist/contracts/Moonwell.js +1918 -1942
- package/dist/contracts/Morpho.d.ts.map +1 -1
- package/dist/contracts/Morpho.js +1948 -1975
- package/dist/contracts/Paymaster.d.ts.map +1 -1
- package/dist/contracts/Paymaster.js +1203 -1224
- package/dist/contracts/RipeLego.d.ts.map +1 -1
- package/dist/contracts/RipeLego.js +2134 -2176
- package/dist/contracts/Sentinel.d.ts +32 -41
- package/dist/contracts/Sentinel.d.ts.map +1 -1
- package/dist/contracts/Sentinel.js +1398 -1398
- package/dist/contracts/SignatureHelper.d.ts.map +1 -1
- package/dist/contracts/SignatureHelper.js +3202 -3202
- package/dist/contracts/SignatureHelperV1.d.ts +1 -1
- package/dist/contracts/SignatureHelperV1.d.ts.map +1 -1
- package/dist/contracts/SignatureHelperV1.js +3223 -3223
- package/dist/contracts/SkyPsm.d.ts.map +1 -1
- package/dist/contracts/SkyPsm.js +1953 -1980
- package/dist/contracts/Switchboard.d.ts.map +1 -1
- package/dist/contracts/Switchboard.js +1085 -1139
- package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
- package/dist/contracts/SwitchboardAlpha.js +2333 -2474
- package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
- package/dist/contracts/SwitchboardBravo.js +1138 -1216
- package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
- package/dist/contracts/SwitchboardCharlie.js +2295 -2475
- package/dist/contracts/UnderscoreLego.d.ts.map +1 -1
- package/dist/contracts/UnderscoreLego.js +1894 -1918
- package/dist/contracts/UndyAero.d.ts.map +1 -1
- package/dist/contracts/UndyAero.js +1342 -1372
- package/dist/contracts/UndyBtc.d.ts.map +1 -1
- package/dist/contracts/UndyBtc.js +1342 -1372
- package/dist/contracts/UndyCbeth.d.ts.map +1 -1
- package/dist/contracts/UndyCbeth.js +1342 -1372
- package/dist/contracts/UndyEth.d.ts.map +1 -1
- package/dist/contracts/UndyEth.js +1342 -1372
- package/dist/contracts/UndyEurc.d.ts.map +1 -1
- package/dist/contracts/UndyEurc.js +1342 -1372
- package/dist/contracts/UndyGho.d.ts.map +1 -1
- package/dist/contracts/UndyGho.js +1342 -1372
- package/dist/contracts/UndyHq.d.ts.map +1 -1
- package/dist/contracts/UndyHq.js +1234 -1300
- package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
- package/dist/contracts/UndyRewardsLego.js +1120 -1120
- package/dist/contracts/UndyUsd.d.ts.map +1 -1
- package/dist/contracts/UndyUsd.js +1342 -1372
- package/dist/contracts/UndyUsds.d.ts.map +1 -1
- package/dist/contracts/UndyUsds.js +1342 -1372
- package/dist/contracts/UndyVirtual.d.ts.map +1 -1
- package/dist/contracts/UndyVirtual.js +1363 -1396
- package/dist/contracts/UniswapV2.d.ts.map +1 -1
- package/dist/contracts/UniswapV2.js +1518 -1533
- package/dist/contracts/UniswapV3.d.ts.map +1 -1
- package/dist/contracts/UniswapV3.js +1620 -1641
- package/dist/contracts/UserWallet.d.ts.map +1 -1
- package/dist/contracts/UserWallet.js +1999 -2005
- package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
- package/dist/contracts/UserWalletConfig.js +2572 -2593
- package/dist/contracts/UserWalletConfigV1.d.ts.map +1 -1
- package/dist/contracts/UserWalletConfigV1.js +2327 -2348
- package/dist/contracts/UserWalletSignatureHelper.d.ts +1 -1
- package/dist/contracts/UserWalletSignatureHelper.d.ts.map +1 -1
- package/dist/contracts/UserWalletSignatureHelper.js +3458 -3458
- package/dist/contracts/UserWalletV1.d.ts.map +1 -1
- package/dist/contracts/UserWalletV1.js +1914 -1920
- package/dist/contracts/VaultRegistry.d.ts +11 -14
- package/dist/contracts/VaultRegistry.d.ts.map +1 -1
- package/dist/contracts/VaultRegistry.js +2343 -2439
- package/dist/contracts/WalletBackpack.d.ts.map +1 -1
- package/dist/contracts/WalletBackpack.js +926 -965
- package/dist/contracts/Wasabi.d.ts.map +1 -1
- package/dist/contracts/Wasabi.js +1916 -1940
- package/dist/contracts/sdk.d.ts +8 -8
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +8 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -5
- package/package.json +44 -24
- package/LICENSE +0 -41
- package/dist/contracts/Agent.d.ts +0 -3773
- package/dist/contracts/Agent.d.ts.map +0 -1
- package/dist/contracts/Agent.js +0 -4942
- package/dist/getContracts.d.ts +0 -77
- package/dist/getContracts.d.ts.map +0 -1
- package/dist/getContracts.js +0 -64
package/dist/contracts/Ledger.js
CHANGED
|
@@ -3,722 +3,722 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/* @ts-nocheck */
|
|
5
5
|
import { singleQuery, mutate } from '@dappql/async';
|
|
6
|
-
import { encodeEventTopics, parseEventLogs
|
|
6
|
+
import { encodeEventTopics, parseEventLogs } from 'viem';
|
|
7
7
|
export const abi = [
|
|
8
8
|
{
|
|
9
|
-
name:
|
|
10
|
-
inputs: [
|
|
9
|
+
"name": "DepartmentPauseModified",
|
|
10
|
+
"inputs": [
|
|
11
11
|
{
|
|
12
|
-
name:
|
|
13
|
-
type:
|
|
14
|
-
indexed: false
|
|
15
|
-
}
|
|
12
|
+
"name": "isPaused",
|
|
13
|
+
"type": "bool",
|
|
14
|
+
"indexed": false
|
|
15
|
+
}
|
|
16
16
|
],
|
|
17
|
-
anonymous: false,
|
|
18
|
-
type:
|
|
17
|
+
"anonymous": false,
|
|
18
|
+
"type": "event"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
|
-
name:
|
|
22
|
-
inputs: [
|
|
21
|
+
"name": "DepartmentFundsRecovered",
|
|
22
|
+
"inputs": [
|
|
23
23
|
{
|
|
24
|
-
name:
|
|
25
|
-
type:
|
|
26
|
-
indexed: true
|
|
24
|
+
"name": "asset",
|
|
25
|
+
"type": "address",
|
|
26
|
+
"indexed": true
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
name:
|
|
30
|
-
type:
|
|
31
|
-
indexed: true
|
|
29
|
+
"name": "recipient",
|
|
30
|
+
"type": "address",
|
|
31
|
+
"indexed": true
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
name:
|
|
35
|
-
type:
|
|
36
|
-
indexed: false
|
|
37
|
-
}
|
|
34
|
+
"name": "balance",
|
|
35
|
+
"type": "uint256",
|
|
36
|
+
"indexed": false
|
|
37
|
+
}
|
|
38
38
|
],
|
|
39
|
-
anonymous: false,
|
|
40
|
-
type:
|
|
39
|
+
"anonymous": false,
|
|
40
|
+
"type": "event"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
stateMutability:
|
|
44
|
-
type:
|
|
45
|
-
name:
|
|
46
|
-
inputs: [],
|
|
47
|
-
outputs: [
|
|
43
|
+
"stateMutability": "view",
|
|
44
|
+
"type": "function",
|
|
45
|
+
"name": "getAddys",
|
|
46
|
+
"inputs": [],
|
|
47
|
+
"outputs": [
|
|
48
48
|
{
|
|
49
|
-
name:
|
|
50
|
-
type:
|
|
51
|
-
components: [
|
|
49
|
+
"name": "",
|
|
50
|
+
"type": "tuple",
|
|
51
|
+
"components": [
|
|
52
52
|
{
|
|
53
|
-
name:
|
|
54
|
-
type:
|
|
53
|
+
"name": "hq",
|
|
54
|
+
"type": "address"
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
|
-
name:
|
|
58
|
-
type:
|
|
57
|
+
"name": "undyToken",
|
|
58
|
+
"type": "address"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
|
-
name:
|
|
62
|
-
type:
|
|
61
|
+
"name": "ledger",
|
|
62
|
+
"type": "address"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
|
-
name:
|
|
66
|
-
type:
|
|
65
|
+
"name": "missionControl",
|
|
66
|
+
"type": "address"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
|
-
name:
|
|
70
|
-
type:
|
|
69
|
+
"name": "legoBook",
|
|
70
|
+
"type": "address"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
|
-
name:
|
|
74
|
-
type:
|
|
73
|
+
"name": "switchboard",
|
|
74
|
+
"type": "address"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
|
-
name:
|
|
78
|
-
type:
|
|
77
|
+
"name": "hatchery",
|
|
78
|
+
"type": "address"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
|
-
name:
|
|
82
|
-
type:
|
|
81
|
+
"name": "lootDistributor",
|
|
82
|
+
"type": "address"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
|
-
name:
|
|
86
|
-
type:
|
|
85
|
+
"name": "appraiser",
|
|
86
|
+
"type": "address"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
name:
|
|
90
|
-
type:
|
|
89
|
+
"name": "walletBackpack",
|
|
90
|
+
"type": "address"
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
name:
|
|
94
|
-
type:
|
|
95
|
-
}
|
|
96
|
-
]
|
|
97
|
-
}
|
|
98
|
-
]
|
|
93
|
+
"name": "billing",
|
|
94
|
+
"type": "address"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
|
-
stateMutability:
|
|
102
|
-
type:
|
|
103
|
-
name:
|
|
104
|
-
inputs: [],
|
|
105
|
-
outputs: [
|
|
101
|
+
"stateMutability": "view",
|
|
102
|
+
"type": "function",
|
|
103
|
+
"name": "getUndyHq",
|
|
104
|
+
"inputs": [],
|
|
105
|
+
"outputs": [
|
|
106
106
|
{
|
|
107
|
-
name:
|
|
108
|
-
type:
|
|
109
|
-
}
|
|
110
|
-
]
|
|
107
|
+
"name": "",
|
|
108
|
+
"type": "address"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
|
-
stateMutability:
|
|
114
|
-
type:
|
|
115
|
-
name:
|
|
116
|
-
inputs: [],
|
|
117
|
-
outputs: [
|
|
113
|
+
"stateMutability": "view",
|
|
114
|
+
"type": "function",
|
|
115
|
+
"name": "canMintUndy",
|
|
116
|
+
"inputs": [],
|
|
117
|
+
"outputs": [
|
|
118
118
|
{
|
|
119
|
-
name:
|
|
120
|
-
type:
|
|
121
|
-
}
|
|
122
|
-
]
|
|
119
|
+
"name": "",
|
|
120
|
+
"type": "bool"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
|
-
stateMutability:
|
|
126
|
-
type:
|
|
127
|
-
name:
|
|
128
|
-
inputs: [
|
|
125
|
+
"stateMutability": "nonpayable",
|
|
126
|
+
"type": "function",
|
|
127
|
+
"name": "pause",
|
|
128
|
+
"inputs": [
|
|
129
129
|
{
|
|
130
|
-
name:
|
|
131
|
-
type:
|
|
132
|
-
}
|
|
130
|
+
"name": "_shouldPause",
|
|
131
|
+
"type": "bool"
|
|
132
|
+
}
|
|
133
133
|
],
|
|
134
|
-
outputs: []
|
|
134
|
+
"outputs": []
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
|
-
stateMutability:
|
|
138
|
-
type:
|
|
139
|
-
name:
|
|
140
|
-
inputs: [
|
|
137
|
+
"stateMutability": "nonpayable",
|
|
138
|
+
"type": "function",
|
|
139
|
+
"name": "recoverFunds",
|
|
140
|
+
"inputs": [
|
|
141
141
|
{
|
|
142
|
-
name:
|
|
143
|
-
type:
|
|
142
|
+
"name": "_recipient",
|
|
143
|
+
"type": "address"
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
|
-
name:
|
|
147
|
-
type:
|
|
148
|
-
}
|
|
146
|
+
"name": "_asset",
|
|
147
|
+
"type": "address"
|
|
148
|
+
}
|
|
149
149
|
],
|
|
150
|
-
outputs: []
|
|
150
|
+
"outputs": []
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
|
-
stateMutability:
|
|
154
|
-
type:
|
|
155
|
-
name:
|
|
156
|
-
inputs: [
|
|
153
|
+
"stateMutability": "nonpayable",
|
|
154
|
+
"type": "function",
|
|
155
|
+
"name": "recoverFundsMany",
|
|
156
|
+
"inputs": [
|
|
157
157
|
{
|
|
158
|
-
name:
|
|
159
|
-
type:
|
|
158
|
+
"name": "_recipient",
|
|
159
|
+
"type": "address"
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
|
-
name:
|
|
163
|
-
type:
|
|
164
|
-
}
|
|
162
|
+
"name": "_assets",
|
|
163
|
+
"type": "address[]"
|
|
164
|
+
}
|
|
165
165
|
],
|
|
166
|
-
outputs: []
|
|
166
|
+
"outputs": []
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
|
-
stateMutability:
|
|
170
|
-
type:
|
|
171
|
-
name:
|
|
172
|
-
inputs: [],
|
|
173
|
-
outputs: [
|
|
169
|
+
"stateMutability": "view",
|
|
170
|
+
"type": "function",
|
|
171
|
+
"name": "isPaused",
|
|
172
|
+
"inputs": [],
|
|
173
|
+
"outputs": [
|
|
174
174
|
{
|
|
175
|
-
name:
|
|
176
|
-
type:
|
|
177
|
-
}
|
|
178
|
-
]
|
|
175
|
+
"name": "",
|
|
176
|
+
"type": "bool"
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
|
-
stateMutability:
|
|
182
|
-
type:
|
|
183
|
-
name:
|
|
184
|
-
inputs: [
|
|
181
|
+
"stateMutability": "nonpayable",
|
|
182
|
+
"type": "function",
|
|
183
|
+
"name": "createUserWallet",
|
|
184
|
+
"inputs": [
|
|
185
185
|
{
|
|
186
|
-
name:
|
|
187
|
-
type:
|
|
186
|
+
"name": "_user",
|
|
187
|
+
"type": "address"
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
|
-
name:
|
|
191
|
-
type:
|
|
192
|
-
}
|
|
190
|
+
"name": "_ambassador",
|
|
191
|
+
"type": "address"
|
|
192
|
+
}
|
|
193
193
|
],
|
|
194
|
-
outputs: []
|
|
194
|
+
"outputs": []
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
|
-
stateMutability:
|
|
198
|
-
type:
|
|
199
|
-
name:
|
|
200
|
-
inputs: [],
|
|
201
|
-
outputs: [
|
|
197
|
+
"stateMutability": "view",
|
|
198
|
+
"type": "function",
|
|
199
|
+
"name": "getNumUserWallets",
|
|
200
|
+
"inputs": [],
|
|
201
|
+
"outputs": [
|
|
202
202
|
{
|
|
203
|
-
name:
|
|
204
|
-
type:
|
|
205
|
-
}
|
|
206
|
-
]
|
|
203
|
+
"name": "",
|
|
204
|
+
"type": "uint256"
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
|
-
stateMutability:
|
|
210
|
-
type:
|
|
211
|
-
name:
|
|
212
|
-
inputs: [
|
|
209
|
+
"stateMutability": "view",
|
|
210
|
+
"type": "function",
|
|
211
|
+
"name": "isUserWallet",
|
|
212
|
+
"inputs": [
|
|
213
213
|
{
|
|
214
|
-
name:
|
|
215
|
-
type:
|
|
216
|
-
}
|
|
214
|
+
"name": "_user",
|
|
215
|
+
"type": "address"
|
|
216
|
+
}
|
|
217
217
|
],
|
|
218
|
-
outputs: [
|
|
218
|
+
"outputs": [
|
|
219
219
|
{
|
|
220
|
-
name:
|
|
221
|
-
type:
|
|
222
|
-
}
|
|
223
|
-
]
|
|
220
|
+
"name": "",
|
|
221
|
+
"type": "bool"
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
|
-
stateMutability:
|
|
227
|
-
type:
|
|
228
|
-
name:
|
|
229
|
-
inputs: [
|
|
226
|
+
"stateMutability": "nonpayable",
|
|
227
|
+
"type": "function",
|
|
228
|
+
"name": "setUserPoints",
|
|
229
|
+
"inputs": [
|
|
230
230
|
{
|
|
231
|
-
name:
|
|
232
|
-
type:
|
|
231
|
+
"name": "_user",
|
|
232
|
+
"type": "address"
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
|
-
name:
|
|
236
|
-
type:
|
|
237
|
-
components: [
|
|
235
|
+
"name": "_data",
|
|
236
|
+
"type": "tuple",
|
|
237
|
+
"components": [
|
|
238
238
|
{
|
|
239
|
-
name:
|
|
240
|
-
type:
|
|
239
|
+
"name": "usdValue",
|
|
240
|
+
"type": "uint256"
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
|
-
name:
|
|
244
|
-
type:
|
|
243
|
+
"name": "depositPoints",
|
|
244
|
+
"type": "uint256"
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
|
-
name:
|
|
248
|
-
type:
|
|
249
|
-
}
|
|
250
|
-
]
|
|
251
|
-
}
|
|
247
|
+
"name": "lastUpdate",
|
|
248
|
+
"type": "uint256"
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
252
|
],
|
|
253
|
-
outputs: []
|
|
253
|
+
"outputs": []
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
|
-
stateMutability:
|
|
257
|
-
type:
|
|
258
|
-
name:
|
|
259
|
-
inputs: [
|
|
256
|
+
"stateMutability": "nonpayable",
|
|
257
|
+
"type": "function",
|
|
258
|
+
"name": "setGlobalPoints",
|
|
259
|
+
"inputs": [
|
|
260
260
|
{
|
|
261
|
-
name:
|
|
262
|
-
type:
|
|
263
|
-
components: [
|
|
261
|
+
"name": "_data",
|
|
262
|
+
"type": "tuple",
|
|
263
|
+
"components": [
|
|
264
264
|
{
|
|
265
|
-
name:
|
|
266
|
-
type:
|
|
265
|
+
"name": "usdValue",
|
|
266
|
+
"type": "uint256"
|
|
267
267
|
},
|
|
268
268
|
{
|
|
269
|
-
name:
|
|
270
|
-
type:
|
|
269
|
+
"name": "depositPoints",
|
|
270
|
+
"type": "uint256"
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
|
-
name:
|
|
274
|
-
type:
|
|
275
|
-
}
|
|
276
|
-
]
|
|
277
|
-
}
|
|
273
|
+
"name": "lastUpdate",
|
|
274
|
+
"type": "uint256"
|
|
275
|
+
}
|
|
276
|
+
]
|
|
277
|
+
}
|
|
278
278
|
],
|
|
279
|
-
outputs: []
|
|
279
|
+
"outputs": []
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
|
-
stateMutability:
|
|
283
|
-
type:
|
|
284
|
-
name:
|
|
285
|
-
inputs: [
|
|
282
|
+
"stateMutability": "nonpayable",
|
|
283
|
+
"type": "function",
|
|
284
|
+
"name": "setUserAndGlobalPoints",
|
|
285
|
+
"inputs": [
|
|
286
286
|
{
|
|
287
|
-
name:
|
|
288
|
-
type:
|
|
287
|
+
"name": "_user",
|
|
288
|
+
"type": "address"
|
|
289
289
|
},
|
|
290
290
|
{
|
|
291
|
-
name:
|
|
292
|
-
type:
|
|
293
|
-
components: [
|
|
291
|
+
"name": "_userData",
|
|
292
|
+
"type": "tuple",
|
|
293
|
+
"components": [
|
|
294
294
|
{
|
|
295
|
-
name:
|
|
296
|
-
type:
|
|
295
|
+
"name": "usdValue",
|
|
296
|
+
"type": "uint256"
|
|
297
297
|
},
|
|
298
298
|
{
|
|
299
|
-
name:
|
|
300
|
-
type:
|
|
299
|
+
"name": "depositPoints",
|
|
300
|
+
"type": "uint256"
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
|
-
name:
|
|
304
|
-
type:
|
|
305
|
-
}
|
|
306
|
-
]
|
|
303
|
+
"name": "lastUpdate",
|
|
304
|
+
"type": "uint256"
|
|
305
|
+
}
|
|
306
|
+
]
|
|
307
307
|
},
|
|
308
308
|
{
|
|
309
|
-
name:
|
|
310
|
-
type:
|
|
311
|
-
components: [
|
|
309
|
+
"name": "_globalData",
|
|
310
|
+
"type": "tuple",
|
|
311
|
+
"components": [
|
|
312
312
|
{
|
|
313
|
-
name:
|
|
314
|
-
type:
|
|
313
|
+
"name": "usdValue",
|
|
314
|
+
"type": "uint256"
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
|
-
name:
|
|
318
|
-
type:
|
|
317
|
+
"name": "depositPoints",
|
|
318
|
+
"type": "uint256"
|
|
319
319
|
},
|
|
320
320
|
{
|
|
321
|
-
name:
|
|
322
|
-
type:
|
|
323
|
-
}
|
|
324
|
-
]
|
|
325
|
-
}
|
|
321
|
+
"name": "lastUpdate",
|
|
322
|
+
"type": "uint256"
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
326
|
],
|
|
327
|
-
outputs: []
|
|
327
|
+
"outputs": []
|
|
328
328
|
},
|
|
329
329
|
{
|
|
330
|
-
stateMutability:
|
|
331
|
-
type:
|
|
332
|
-
name:
|
|
333
|
-
inputs: [
|
|
330
|
+
"stateMutability": "view",
|
|
331
|
+
"type": "function",
|
|
332
|
+
"name": "getLastTotalUsdValue",
|
|
333
|
+
"inputs": [
|
|
334
334
|
{
|
|
335
|
-
name:
|
|
336
|
-
type:
|
|
337
|
-
}
|
|
335
|
+
"name": "_user",
|
|
336
|
+
"type": "address"
|
|
337
|
+
}
|
|
338
338
|
],
|
|
339
|
-
outputs: [
|
|
339
|
+
"outputs": [
|
|
340
340
|
{
|
|
341
|
-
name:
|
|
342
|
-
type:
|
|
343
|
-
}
|
|
344
|
-
]
|
|
341
|
+
"name": "",
|
|
342
|
+
"type": "uint256"
|
|
343
|
+
}
|
|
344
|
+
]
|
|
345
345
|
},
|
|
346
346
|
{
|
|
347
|
-
stateMutability:
|
|
348
|
-
type:
|
|
349
|
-
name:
|
|
350
|
-
inputs: [
|
|
347
|
+
"stateMutability": "view",
|
|
348
|
+
"type": "function",
|
|
349
|
+
"name": "getUserAndGlobalPoints",
|
|
350
|
+
"inputs": [
|
|
351
351
|
{
|
|
352
|
-
name:
|
|
353
|
-
type:
|
|
354
|
-
}
|
|
352
|
+
"name": "_user",
|
|
353
|
+
"type": "address"
|
|
354
|
+
}
|
|
355
355
|
],
|
|
356
|
-
outputs: [
|
|
356
|
+
"outputs": [
|
|
357
357
|
{
|
|
358
|
-
name:
|
|
359
|
-
type:
|
|
360
|
-
components: [
|
|
358
|
+
"name": "",
|
|
359
|
+
"type": "tuple",
|
|
360
|
+
"components": [
|
|
361
361
|
{
|
|
362
|
-
name:
|
|
363
|
-
type:
|
|
362
|
+
"name": "usdValue",
|
|
363
|
+
"type": "uint256"
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
|
-
name:
|
|
367
|
-
type:
|
|
366
|
+
"name": "depositPoints",
|
|
367
|
+
"type": "uint256"
|
|
368
368
|
},
|
|
369
369
|
{
|
|
370
|
-
name:
|
|
371
|
-
type:
|
|
372
|
-
}
|
|
373
|
-
]
|
|
370
|
+
"name": "lastUpdate",
|
|
371
|
+
"type": "uint256"
|
|
372
|
+
}
|
|
373
|
+
]
|
|
374
374
|
},
|
|
375
375
|
{
|
|
376
|
-
name:
|
|
377
|
-
type:
|
|
378
|
-
components: [
|
|
376
|
+
"name": "",
|
|
377
|
+
"type": "tuple",
|
|
378
|
+
"components": [
|
|
379
379
|
{
|
|
380
|
-
name:
|
|
381
|
-
type:
|
|
380
|
+
"name": "usdValue",
|
|
381
|
+
"type": "uint256"
|
|
382
382
|
},
|
|
383
383
|
{
|
|
384
|
-
name:
|
|
385
|
-
type:
|
|
384
|
+
"name": "depositPoints",
|
|
385
|
+
"type": "uint256"
|
|
386
386
|
},
|
|
387
387
|
{
|
|
388
|
-
name:
|
|
389
|
-
type:
|
|
390
|
-
}
|
|
391
|
-
]
|
|
392
|
-
}
|
|
393
|
-
]
|
|
388
|
+
"name": "lastUpdate",
|
|
389
|
+
"type": "uint256"
|
|
390
|
+
}
|
|
391
|
+
]
|
|
392
|
+
}
|
|
393
|
+
]
|
|
394
394
|
},
|
|
395
395
|
{
|
|
396
|
-
stateMutability:
|
|
397
|
-
type:
|
|
398
|
-
name:
|
|
399
|
-
inputs: [
|
|
396
|
+
"stateMutability": "view",
|
|
397
|
+
"type": "function",
|
|
398
|
+
"name": "isRegisteredVaultToken",
|
|
399
|
+
"inputs": [
|
|
400
400
|
{
|
|
401
|
-
name:
|
|
402
|
-
type:
|
|
403
|
-
}
|
|
401
|
+
"name": "_vaultToken",
|
|
402
|
+
"type": "address"
|
|
403
|
+
}
|
|
404
404
|
],
|
|
405
|
-
outputs: [
|
|
405
|
+
"outputs": [
|
|
406
406
|
{
|
|
407
|
-
name:
|
|
408
|
-
type:
|
|
409
|
-
}
|
|
410
|
-
]
|
|
407
|
+
"name": "",
|
|
408
|
+
"type": "bool"
|
|
409
|
+
}
|
|
410
|
+
]
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
|
-
stateMutability:
|
|
414
|
-
type:
|
|
415
|
-
name:
|
|
416
|
-
inputs: [
|
|
413
|
+
"stateMutability": "nonpayable",
|
|
414
|
+
"type": "function",
|
|
415
|
+
"name": "setVaultToken",
|
|
416
|
+
"inputs": [
|
|
417
417
|
{
|
|
418
|
-
name:
|
|
419
|
-
type:
|
|
418
|
+
"name": "_vaultToken",
|
|
419
|
+
"type": "address"
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
|
-
name:
|
|
423
|
-
type:
|
|
422
|
+
"name": "_legoId",
|
|
423
|
+
"type": "uint256"
|
|
424
424
|
},
|
|
425
425
|
{
|
|
426
|
-
name:
|
|
427
|
-
type:
|
|
426
|
+
"name": "_underlyingAsset",
|
|
427
|
+
"type": "address"
|
|
428
428
|
},
|
|
429
429
|
{
|
|
430
|
-
name:
|
|
431
|
-
type:
|
|
430
|
+
"name": "_decimals",
|
|
431
|
+
"type": "uint256"
|
|
432
432
|
},
|
|
433
433
|
{
|
|
434
|
-
name:
|
|
435
|
-
type:
|
|
436
|
-
}
|
|
434
|
+
"name": "_isRebasing",
|
|
435
|
+
"type": "bool"
|
|
436
|
+
}
|
|
437
437
|
],
|
|
438
|
-
outputs: []
|
|
438
|
+
"outputs": []
|
|
439
439
|
},
|
|
440
440
|
{
|
|
441
|
-
stateMutability:
|
|
442
|
-
type:
|
|
443
|
-
name:
|
|
444
|
-
inputs: [
|
|
441
|
+
"stateMutability": "nonpayable",
|
|
442
|
+
"type": "function",
|
|
443
|
+
"name": "registerBackpackItem",
|
|
444
|
+
"inputs": [
|
|
445
445
|
{
|
|
446
|
-
name:
|
|
447
|
-
type:
|
|
448
|
-
}
|
|
446
|
+
"name": "_addr",
|
|
447
|
+
"type": "address"
|
|
448
|
+
}
|
|
449
449
|
],
|
|
450
|
-
outputs: []
|
|
450
|
+
"outputs": []
|
|
451
451
|
},
|
|
452
452
|
{
|
|
453
|
-
stateMutability:
|
|
454
|
-
type:
|
|
455
|
-
name:
|
|
456
|
-
inputs: [
|
|
453
|
+
"stateMutability": "nonpayable",
|
|
454
|
+
"type": "function",
|
|
455
|
+
"name": "createAgent",
|
|
456
|
+
"inputs": [
|
|
457
457
|
{
|
|
458
|
-
name:
|
|
459
|
-
type:
|
|
460
|
-
}
|
|
458
|
+
"name": "_agent",
|
|
459
|
+
"type": "address"
|
|
460
|
+
}
|
|
461
461
|
],
|
|
462
|
-
outputs: []
|
|
462
|
+
"outputs": []
|
|
463
463
|
},
|
|
464
464
|
{
|
|
465
|
-
stateMutability:
|
|
466
|
-
type:
|
|
467
|
-
name:
|
|
468
|
-
inputs: [],
|
|
469
|
-
outputs: [
|
|
465
|
+
"stateMutability": "view",
|
|
466
|
+
"type": "function",
|
|
467
|
+
"name": "getNumAgents",
|
|
468
|
+
"inputs": [],
|
|
469
|
+
"outputs": [
|
|
470
470
|
{
|
|
471
|
-
name:
|
|
472
|
-
type:
|
|
473
|
-
}
|
|
474
|
-
]
|
|
471
|
+
"name": "",
|
|
472
|
+
"type": "uint256"
|
|
473
|
+
}
|
|
474
|
+
]
|
|
475
475
|
},
|
|
476
476
|
{
|
|
477
|
-
stateMutability:
|
|
478
|
-
type:
|
|
479
|
-
name:
|
|
480
|
-
inputs: [
|
|
477
|
+
"stateMutability": "view",
|
|
478
|
+
"type": "function",
|
|
479
|
+
"name": "isAgent",
|
|
480
|
+
"inputs": [
|
|
481
481
|
{
|
|
482
|
-
name:
|
|
483
|
-
type:
|
|
484
|
-
}
|
|
482
|
+
"name": "_agent",
|
|
483
|
+
"type": "address"
|
|
484
|
+
}
|
|
485
485
|
],
|
|
486
|
-
outputs: [
|
|
486
|
+
"outputs": [
|
|
487
487
|
{
|
|
488
|
-
name:
|
|
489
|
-
type:
|
|
490
|
-
}
|
|
491
|
-
]
|
|
488
|
+
"name": "",
|
|
489
|
+
"type": "bool"
|
|
490
|
+
}
|
|
491
|
+
]
|
|
492
492
|
},
|
|
493
493
|
{
|
|
494
|
-
stateMutability:
|
|
495
|
-
type:
|
|
496
|
-
name:
|
|
497
|
-
inputs: [
|
|
494
|
+
"stateMutability": "view",
|
|
495
|
+
"type": "function",
|
|
496
|
+
"name": "userPoints",
|
|
497
|
+
"inputs": [
|
|
498
498
|
{
|
|
499
|
-
name:
|
|
500
|
-
type:
|
|
501
|
-
}
|
|
499
|
+
"name": "arg0",
|
|
500
|
+
"type": "address"
|
|
501
|
+
}
|
|
502
502
|
],
|
|
503
|
-
outputs: [
|
|
503
|
+
"outputs": [
|
|
504
504
|
{
|
|
505
|
-
name:
|
|
506
|
-
type:
|
|
507
|
-
components: [
|
|
505
|
+
"name": "",
|
|
506
|
+
"type": "tuple",
|
|
507
|
+
"components": [
|
|
508
508
|
{
|
|
509
|
-
name:
|
|
510
|
-
type:
|
|
509
|
+
"name": "usdValue",
|
|
510
|
+
"type": "uint256"
|
|
511
511
|
},
|
|
512
512
|
{
|
|
513
|
-
name:
|
|
514
|
-
type:
|
|
513
|
+
"name": "depositPoints",
|
|
514
|
+
"type": "uint256"
|
|
515
515
|
},
|
|
516
516
|
{
|
|
517
|
-
name:
|
|
518
|
-
type:
|
|
519
|
-
}
|
|
520
|
-
]
|
|
521
|
-
}
|
|
522
|
-
]
|
|
517
|
+
"name": "lastUpdate",
|
|
518
|
+
"type": "uint256"
|
|
519
|
+
}
|
|
520
|
+
]
|
|
521
|
+
}
|
|
522
|
+
]
|
|
523
523
|
},
|
|
524
524
|
{
|
|
525
|
-
stateMutability:
|
|
526
|
-
type:
|
|
527
|
-
name:
|
|
528
|
-
inputs: [],
|
|
529
|
-
outputs: [
|
|
525
|
+
"stateMutability": "view",
|
|
526
|
+
"type": "function",
|
|
527
|
+
"name": "globalPoints",
|
|
528
|
+
"inputs": [],
|
|
529
|
+
"outputs": [
|
|
530
530
|
{
|
|
531
|
-
name:
|
|
532
|
-
type:
|
|
533
|
-
components: [
|
|
531
|
+
"name": "",
|
|
532
|
+
"type": "tuple",
|
|
533
|
+
"components": [
|
|
534
534
|
{
|
|
535
|
-
name:
|
|
536
|
-
type:
|
|
535
|
+
"name": "usdValue",
|
|
536
|
+
"type": "uint256"
|
|
537
537
|
},
|
|
538
538
|
{
|
|
539
|
-
name:
|
|
540
|
-
type:
|
|
539
|
+
"name": "depositPoints",
|
|
540
|
+
"type": "uint256"
|
|
541
541
|
},
|
|
542
542
|
{
|
|
543
|
-
name:
|
|
544
|
-
type:
|
|
545
|
-
}
|
|
546
|
-
]
|
|
547
|
-
}
|
|
548
|
-
]
|
|
543
|
+
"name": "lastUpdate",
|
|
544
|
+
"type": "uint256"
|
|
545
|
+
}
|
|
546
|
+
]
|
|
547
|
+
}
|
|
548
|
+
]
|
|
549
549
|
},
|
|
550
550
|
{
|
|
551
|
-
stateMutability:
|
|
552
|
-
type:
|
|
553
|
-
name:
|
|
554
|
-
inputs: [
|
|
551
|
+
"stateMutability": "view",
|
|
552
|
+
"type": "function",
|
|
553
|
+
"name": "userWallets",
|
|
554
|
+
"inputs": [
|
|
555
555
|
{
|
|
556
|
-
name:
|
|
557
|
-
type:
|
|
558
|
-
}
|
|
556
|
+
"name": "arg0",
|
|
557
|
+
"type": "uint256"
|
|
558
|
+
}
|
|
559
559
|
],
|
|
560
|
-
outputs: [
|
|
560
|
+
"outputs": [
|
|
561
561
|
{
|
|
562
|
-
name:
|
|
563
|
-
type:
|
|
564
|
-
}
|
|
565
|
-
]
|
|
562
|
+
"name": "",
|
|
563
|
+
"type": "address"
|
|
564
|
+
}
|
|
565
|
+
]
|
|
566
566
|
},
|
|
567
567
|
{
|
|
568
|
-
stateMutability:
|
|
569
|
-
type:
|
|
570
|
-
name:
|
|
571
|
-
inputs: [
|
|
568
|
+
"stateMutability": "view",
|
|
569
|
+
"type": "function",
|
|
570
|
+
"name": "indexOfUserWallet",
|
|
571
|
+
"inputs": [
|
|
572
572
|
{
|
|
573
|
-
name:
|
|
574
|
-
type:
|
|
575
|
-
}
|
|
573
|
+
"name": "arg0",
|
|
574
|
+
"type": "address"
|
|
575
|
+
}
|
|
576
576
|
],
|
|
577
|
-
outputs: [
|
|
577
|
+
"outputs": [
|
|
578
578
|
{
|
|
579
|
-
name:
|
|
580
|
-
type:
|
|
581
|
-
}
|
|
582
|
-
]
|
|
579
|
+
"name": "",
|
|
580
|
+
"type": "uint256"
|
|
581
|
+
}
|
|
582
|
+
]
|
|
583
583
|
},
|
|
584
584
|
{
|
|
585
|
-
stateMutability:
|
|
586
|
-
type:
|
|
587
|
-
name:
|
|
588
|
-
inputs: [],
|
|
589
|
-
outputs: [
|
|
585
|
+
"stateMutability": "view",
|
|
586
|
+
"type": "function",
|
|
587
|
+
"name": "numUserWallets",
|
|
588
|
+
"inputs": [],
|
|
589
|
+
"outputs": [
|
|
590
590
|
{
|
|
591
|
-
name:
|
|
592
|
-
type:
|
|
593
|
-
}
|
|
594
|
-
]
|
|
591
|
+
"name": "",
|
|
592
|
+
"type": "uint256"
|
|
593
|
+
}
|
|
594
|
+
]
|
|
595
595
|
},
|
|
596
596
|
{
|
|
597
|
-
stateMutability:
|
|
598
|
-
type:
|
|
599
|
-
name:
|
|
600
|
-
inputs: [
|
|
597
|
+
"stateMutability": "view",
|
|
598
|
+
"type": "function",
|
|
599
|
+
"name": "ambassadors",
|
|
600
|
+
"inputs": [
|
|
601
601
|
{
|
|
602
|
-
name:
|
|
603
|
-
type:
|
|
604
|
-
}
|
|
602
|
+
"name": "arg0",
|
|
603
|
+
"type": "address"
|
|
604
|
+
}
|
|
605
605
|
],
|
|
606
|
-
outputs: [
|
|
606
|
+
"outputs": [
|
|
607
607
|
{
|
|
608
|
-
name:
|
|
609
|
-
type:
|
|
610
|
-
}
|
|
611
|
-
]
|
|
608
|
+
"name": "",
|
|
609
|
+
"type": "address"
|
|
610
|
+
}
|
|
611
|
+
]
|
|
612
612
|
},
|
|
613
613
|
{
|
|
614
|
-
stateMutability:
|
|
615
|
-
type:
|
|
616
|
-
name:
|
|
617
|
-
inputs: [
|
|
614
|
+
"stateMutability": "view",
|
|
615
|
+
"type": "function",
|
|
616
|
+
"name": "agents",
|
|
617
|
+
"inputs": [
|
|
618
618
|
{
|
|
619
|
-
name:
|
|
620
|
-
type:
|
|
621
|
-
}
|
|
619
|
+
"name": "arg0",
|
|
620
|
+
"type": "uint256"
|
|
621
|
+
}
|
|
622
622
|
],
|
|
623
|
-
outputs: [
|
|
623
|
+
"outputs": [
|
|
624
624
|
{
|
|
625
|
-
name:
|
|
626
|
-
type:
|
|
627
|
-
}
|
|
628
|
-
]
|
|
625
|
+
"name": "",
|
|
626
|
+
"type": "address"
|
|
627
|
+
}
|
|
628
|
+
]
|
|
629
629
|
},
|
|
630
630
|
{
|
|
631
|
-
stateMutability:
|
|
632
|
-
type:
|
|
633
|
-
name:
|
|
634
|
-
inputs: [
|
|
631
|
+
"stateMutability": "view",
|
|
632
|
+
"type": "function",
|
|
633
|
+
"name": "indexOfAgent",
|
|
634
|
+
"inputs": [
|
|
635
635
|
{
|
|
636
|
-
name:
|
|
637
|
-
type:
|
|
638
|
-
}
|
|
636
|
+
"name": "arg0",
|
|
637
|
+
"type": "address"
|
|
638
|
+
}
|
|
639
639
|
],
|
|
640
|
-
outputs: [
|
|
640
|
+
"outputs": [
|
|
641
641
|
{
|
|
642
|
-
name:
|
|
643
|
-
type:
|
|
644
|
-
}
|
|
645
|
-
]
|
|
642
|
+
"name": "",
|
|
643
|
+
"type": "uint256"
|
|
644
|
+
}
|
|
645
|
+
]
|
|
646
646
|
},
|
|
647
647
|
{
|
|
648
|
-
stateMutability:
|
|
649
|
-
type:
|
|
650
|
-
name:
|
|
651
|
-
inputs: [],
|
|
652
|
-
outputs: [
|
|
648
|
+
"stateMutability": "view",
|
|
649
|
+
"type": "function",
|
|
650
|
+
"name": "numAgents",
|
|
651
|
+
"inputs": [],
|
|
652
|
+
"outputs": [
|
|
653
653
|
{
|
|
654
|
-
name:
|
|
655
|
-
type:
|
|
656
|
-
}
|
|
657
|
-
]
|
|
654
|
+
"name": "",
|
|
655
|
+
"type": "uint256"
|
|
656
|
+
}
|
|
657
|
+
]
|
|
658
658
|
},
|
|
659
659
|
{
|
|
660
|
-
stateMutability:
|
|
661
|
-
type:
|
|
662
|
-
name:
|
|
663
|
-
inputs: [
|
|
660
|
+
"stateMutability": "view",
|
|
661
|
+
"type": "function",
|
|
662
|
+
"name": "vaultTokens",
|
|
663
|
+
"inputs": [
|
|
664
664
|
{
|
|
665
|
-
name:
|
|
666
|
-
type:
|
|
667
|
-
}
|
|
665
|
+
"name": "arg0",
|
|
666
|
+
"type": "address"
|
|
667
|
+
}
|
|
668
668
|
],
|
|
669
|
-
outputs: [
|
|
669
|
+
"outputs": [
|
|
670
670
|
{
|
|
671
|
-
name:
|
|
672
|
-
type:
|
|
673
|
-
components: [
|
|
671
|
+
"name": "",
|
|
672
|
+
"type": "tuple",
|
|
673
|
+
"components": [
|
|
674
674
|
{
|
|
675
|
-
name:
|
|
676
|
-
type:
|
|
675
|
+
"name": "legoId",
|
|
676
|
+
"type": "uint256"
|
|
677
677
|
},
|
|
678
678
|
{
|
|
679
|
-
name:
|
|
680
|
-
type:
|
|
679
|
+
"name": "underlyingAsset",
|
|
680
|
+
"type": "address"
|
|
681
681
|
},
|
|
682
682
|
{
|
|
683
|
-
name:
|
|
684
|
-
type:
|
|
683
|
+
"name": "decimals",
|
|
684
|
+
"type": "uint256"
|
|
685
685
|
},
|
|
686
686
|
{
|
|
687
|
-
name:
|
|
688
|
-
type:
|
|
689
|
-
}
|
|
690
|
-
]
|
|
691
|
-
}
|
|
692
|
-
]
|
|
687
|
+
"name": "isRebasing",
|
|
688
|
+
"type": "bool"
|
|
689
|
+
}
|
|
690
|
+
]
|
|
691
|
+
}
|
|
692
|
+
]
|
|
693
693
|
},
|
|
694
694
|
{
|
|
695
|
-
stateMutability:
|
|
696
|
-
type:
|
|
697
|
-
name:
|
|
698
|
-
inputs: [
|
|
695
|
+
"stateMutability": "view",
|
|
696
|
+
"type": "function",
|
|
697
|
+
"name": "isRegisteredBackpackItem",
|
|
698
|
+
"inputs": [
|
|
699
699
|
{
|
|
700
|
-
name:
|
|
701
|
-
type:
|
|
702
|
-
}
|
|
700
|
+
"name": "arg0",
|
|
701
|
+
"type": "address"
|
|
702
|
+
}
|
|
703
703
|
],
|
|
704
|
-
outputs: [
|
|
704
|
+
"outputs": [
|
|
705
705
|
{
|
|
706
|
-
name:
|
|
707
|
-
type:
|
|
708
|
-
}
|
|
709
|
-
]
|
|
706
|
+
"name": "",
|
|
707
|
+
"type": "bool"
|
|
708
|
+
}
|
|
709
|
+
]
|
|
710
710
|
},
|
|
711
711
|
{
|
|
712
|
-
stateMutability:
|
|
713
|
-
type:
|
|
714
|
-
inputs: [
|
|
712
|
+
"stateMutability": "nonpayable",
|
|
713
|
+
"type": "constructor",
|
|
714
|
+
"inputs": [
|
|
715
715
|
{
|
|
716
|
-
name:
|
|
717
|
-
type:
|
|
718
|
-
}
|
|
716
|
+
"name": "_undyHq",
|
|
717
|
+
"type": "address"
|
|
718
|
+
}
|
|
719
719
|
],
|
|
720
|
-
outputs: []
|
|
721
|
-
}
|
|
720
|
+
"outputs": []
|
|
721
|
+
}
|
|
722
722
|
];
|
|
723
723
|
export const deployAddress = '0x9e97A2e527890E690c7FA978696A88EFA868c5D0';
|
|
724
724
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
@@ -813,14 +813,8 @@ export function toSdk(publicClient, walletClient, addressResolver) {
|
|
|
813
813
|
deployAddress,
|
|
814
814
|
abi,
|
|
815
815
|
events: {
|
|
816
|
-
DepartmentPauseModified: {
|
|
817
|
-
|
|
818
|
-
parse: (events) => parseEvents('DepartmentPauseModified', events),
|
|
819
|
-
},
|
|
820
|
-
DepartmentFundsRecovered: {
|
|
821
|
-
topic: getEventTopic('DepartmentFundsRecovered'),
|
|
822
|
-
parse: (events) => parseEvents('DepartmentFundsRecovered', events),
|
|
823
|
-
},
|
|
816
|
+
DepartmentPauseModified: { topic: getEventTopic('DepartmentPauseModified'), parse: (events) => parseEvents('DepartmentPauseModified', events) },
|
|
817
|
+
DepartmentFundsRecovered: { topic: getEventTopic('DepartmentFundsRecovered'), parse: (events) => parseEvents('DepartmentFundsRecovered', events) },
|
|
824
818
|
},
|
|
825
819
|
// Queries
|
|
826
820
|
getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args), {}, addressResolver),
|