damm-sdk 1.1.31-alpha.7 → 1.1.31-alpha.9
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/index.cjs +23983 -30617
- package/dist/index.cjs.map +72 -121
- package/dist/index.js +2895 -2470
- package/dist/index.js.map +22 -16
- package/dist/integrations/lagoonV1/factory.abi.d.ts +29 -212
- package/dist/integrations/lagoonV1/factory.abi.d.ts.map +1 -1
- package/dist/integrations/lagoonV1/lagoon.v1.d.ts +4 -1
- package/dist/integrations/lagoonV1/lagoon.v1.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/integrations/lagoonV1/factory.abi.ts +16 -121
- package/src/integrations/lagoonV1/lagoon.v1.ts +23 -12
- package/src/lib/contractsRegistry.json +5 -0
|
@@ -1,76 +1,69 @@
|
|
|
1
1
|
declare const _default: readonly [{
|
|
2
2
|
readonly inputs: readonly [{
|
|
3
3
|
readonly internalType: "address";
|
|
4
|
-
readonly name: "
|
|
4
|
+
readonly name: "_logic";
|
|
5
5
|
readonly type: "address";
|
|
6
6
|
}, {
|
|
7
7
|
readonly internalType: "address";
|
|
8
|
-
readonly name: "
|
|
8
|
+
readonly name: "initialOwner";
|
|
9
9
|
readonly type: "address";
|
|
10
10
|
}, {
|
|
11
|
-
readonly internalType: "
|
|
12
|
-
readonly name: "
|
|
13
|
-
readonly type: "
|
|
14
|
-
}, {
|
|
15
|
-
readonly internalType: "address";
|
|
16
|
-
readonly name: "_wrappedNativeToken";
|
|
17
|
-
readonly type: "address";
|
|
11
|
+
readonly internalType: "bytes";
|
|
12
|
+
readonly name: "_data";
|
|
13
|
+
readonly type: "bytes";
|
|
18
14
|
}];
|
|
19
|
-
readonly stateMutability: "
|
|
15
|
+
readonly stateMutability: "payable";
|
|
20
16
|
readonly type: "constructor";
|
|
21
17
|
}, {
|
|
22
18
|
readonly inputs: readonly [{
|
|
23
19
|
readonly internalType: "address";
|
|
24
|
-
readonly name: "
|
|
20
|
+
readonly name: "target";
|
|
25
21
|
readonly type: "address";
|
|
26
22
|
}];
|
|
27
|
-
readonly name: "
|
|
23
|
+
readonly name: "AddressEmptyCode";
|
|
28
24
|
readonly type: "error";
|
|
29
25
|
}, {
|
|
30
26
|
readonly inputs: readonly [{
|
|
31
27
|
readonly internalType: "address";
|
|
32
|
-
readonly name: "
|
|
28
|
+
readonly name: "admin";
|
|
33
29
|
readonly type: "address";
|
|
34
30
|
}];
|
|
35
|
-
readonly name: "
|
|
31
|
+
readonly name: "ERC1967InvalidAdmin";
|
|
36
32
|
readonly type: "error";
|
|
37
33
|
}, {
|
|
38
34
|
readonly inputs: readonly [{
|
|
39
35
|
readonly internalType: "address";
|
|
40
|
-
readonly name: "
|
|
36
|
+
readonly name: "implementation";
|
|
41
37
|
readonly type: "address";
|
|
42
38
|
}];
|
|
43
|
-
readonly name: "
|
|
39
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
40
|
+
readonly type: "error";
|
|
41
|
+
}, {
|
|
42
|
+
readonly inputs: readonly [];
|
|
43
|
+
readonly name: "ERC1967NonPayable";
|
|
44
|
+
readonly type: "error";
|
|
45
|
+
}, {
|
|
46
|
+
readonly inputs: readonly [];
|
|
47
|
+
readonly name: "FailedInnerCall";
|
|
48
|
+
readonly type: "error";
|
|
49
|
+
}, {
|
|
50
|
+
readonly inputs: readonly [];
|
|
51
|
+
readonly name: "ProxyDeniedAdminAccess";
|
|
44
52
|
readonly type: "error";
|
|
45
53
|
}, {
|
|
46
54
|
readonly anonymous: false;
|
|
47
55
|
readonly inputs: readonly [{
|
|
48
56
|
readonly indexed: false;
|
|
49
57
|
readonly internalType: "address";
|
|
50
|
-
readonly name: "
|
|
58
|
+
readonly name: "previousAdmin";
|
|
51
59
|
readonly type: "address";
|
|
52
60
|
}, {
|
|
53
61
|
readonly indexed: false;
|
|
54
62
|
readonly internalType: "address";
|
|
55
|
-
readonly name: "
|
|
63
|
+
readonly name: "newAdmin";
|
|
56
64
|
readonly type: "address";
|
|
57
65
|
}];
|
|
58
|
-
readonly name: "
|
|
59
|
-
readonly type: "event";
|
|
60
|
-
}, {
|
|
61
|
-
readonly anonymous: false;
|
|
62
|
-
readonly inputs: readonly [{
|
|
63
|
-
readonly indexed: true;
|
|
64
|
-
readonly internalType: "address";
|
|
65
|
-
readonly name: "previousOwner";
|
|
66
|
-
readonly type: "address";
|
|
67
|
-
}, {
|
|
68
|
-
readonly indexed: true;
|
|
69
|
-
readonly internalType: "address";
|
|
70
|
-
readonly name: "newOwner";
|
|
71
|
-
readonly type: "address";
|
|
72
|
-
}];
|
|
73
|
-
readonly name: "OwnershipTransferred";
|
|
66
|
+
readonly name: "AdminChanged";
|
|
74
67
|
readonly type: "event";
|
|
75
68
|
}, {
|
|
76
69
|
readonly anonymous: false;
|
|
@@ -83,184 +76,8 @@ declare const _default: readonly [{
|
|
|
83
76
|
readonly name: "Upgraded";
|
|
84
77
|
readonly type: "event";
|
|
85
78
|
}, {
|
|
86
|
-
readonly
|
|
87
|
-
readonly
|
|
88
|
-
readonly outputs: readonly [{
|
|
89
|
-
readonly internalType: "address";
|
|
90
|
-
readonly name: "";
|
|
91
|
-
readonly type: "address";
|
|
92
|
-
}];
|
|
93
|
-
readonly stateMutability: "view";
|
|
94
|
-
readonly type: "function";
|
|
95
|
-
}, {
|
|
96
|
-
readonly inputs: readonly [];
|
|
97
|
-
readonly name: "WRAPPED_NATIVE";
|
|
98
|
-
readonly outputs: readonly [{
|
|
99
|
-
readonly internalType: "address";
|
|
100
|
-
readonly name: "";
|
|
101
|
-
readonly type: "address";
|
|
102
|
-
}];
|
|
103
|
-
readonly stateMutability: "view";
|
|
104
|
-
readonly type: "function";
|
|
105
|
-
}, {
|
|
106
|
-
readonly inputs: readonly [{
|
|
107
|
-
readonly internalType: "bytes";
|
|
108
|
-
readonly name: "init";
|
|
109
|
-
readonly type: "bytes";
|
|
110
|
-
}, {
|
|
111
|
-
readonly internalType: "bytes32";
|
|
112
|
-
readonly name: "salt";
|
|
113
|
-
readonly type: "bytes32";
|
|
114
|
-
}];
|
|
115
|
-
readonly name: "createBeaconProxy";
|
|
116
|
-
readonly outputs: readonly [{
|
|
117
|
-
readonly internalType: "address";
|
|
118
|
-
readonly name: "";
|
|
119
|
-
readonly type: "address";
|
|
120
|
-
}];
|
|
121
|
-
readonly stateMutability: "nonpayable";
|
|
122
|
-
readonly type: "function";
|
|
123
|
-
}, {
|
|
124
|
-
readonly inputs: readonly [{
|
|
125
|
-
readonly components: readonly [{
|
|
126
|
-
readonly internalType: "address";
|
|
127
|
-
readonly name: "underlying";
|
|
128
|
-
readonly type: "address";
|
|
129
|
-
}, {
|
|
130
|
-
readonly internalType: "string";
|
|
131
|
-
readonly name: "name";
|
|
132
|
-
readonly type: "string";
|
|
133
|
-
}, {
|
|
134
|
-
readonly internalType: "string";
|
|
135
|
-
readonly name: "symbol";
|
|
136
|
-
readonly type: "string";
|
|
137
|
-
}, {
|
|
138
|
-
readonly internalType: "address";
|
|
139
|
-
readonly name: "safe";
|
|
140
|
-
readonly type: "address";
|
|
141
|
-
}, {
|
|
142
|
-
readonly internalType: "address";
|
|
143
|
-
readonly name: "whitelistManager";
|
|
144
|
-
readonly type: "address";
|
|
145
|
-
}, {
|
|
146
|
-
readonly internalType: "address";
|
|
147
|
-
readonly name: "valuationManager";
|
|
148
|
-
readonly type: "address";
|
|
149
|
-
}, {
|
|
150
|
-
readonly internalType: "address";
|
|
151
|
-
readonly name: "admin";
|
|
152
|
-
readonly type: "address";
|
|
153
|
-
}, {
|
|
154
|
-
readonly internalType: "address";
|
|
155
|
-
readonly name: "feeReceiver";
|
|
156
|
-
readonly type: "address";
|
|
157
|
-
}, {
|
|
158
|
-
readonly internalType: "uint16";
|
|
159
|
-
readonly name: "managementRate";
|
|
160
|
-
readonly type: "uint16";
|
|
161
|
-
}, {
|
|
162
|
-
readonly internalType: "uint16";
|
|
163
|
-
readonly name: "performanceRate";
|
|
164
|
-
readonly type: "uint16";
|
|
165
|
-
}, {
|
|
166
|
-
readonly internalType: "bool";
|
|
167
|
-
readonly name: "enableWhitelist";
|
|
168
|
-
readonly type: "bool";
|
|
169
|
-
}, {
|
|
170
|
-
readonly internalType: "uint256";
|
|
171
|
-
readonly name: "rateUpdateCooldown";
|
|
172
|
-
readonly type: "uint256";
|
|
173
|
-
}];
|
|
174
|
-
readonly internalType: "struct InitStruct";
|
|
175
|
-
readonly name: "init";
|
|
176
|
-
readonly type: "tuple";
|
|
177
|
-
}, {
|
|
178
|
-
readonly internalType: "bytes32";
|
|
179
|
-
readonly name: "salt";
|
|
180
|
-
readonly type: "bytes32";
|
|
181
|
-
}];
|
|
182
|
-
readonly name: "createVaultProxy";
|
|
183
|
-
readonly outputs: readonly [{
|
|
184
|
-
readonly internalType: "address";
|
|
185
|
-
readonly name: "";
|
|
186
|
-
readonly type: "address";
|
|
187
|
-
}];
|
|
188
|
-
readonly stateMutability: "nonpayable";
|
|
189
|
-
readonly type: "function";
|
|
190
|
-
}, {
|
|
191
|
-
readonly inputs: readonly [];
|
|
192
|
-
readonly name: "implementation";
|
|
193
|
-
readonly outputs: readonly [{
|
|
194
|
-
readonly internalType: "address";
|
|
195
|
-
readonly name: "";
|
|
196
|
-
readonly type: "address";
|
|
197
|
-
}];
|
|
198
|
-
readonly stateMutability: "view";
|
|
199
|
-
readonly type: "function";
|
|
200
|
-
}, {
|
|
201
|
-
readonly inputs: readonly [{
|
|
202
|
-
readonly internalType: "uint256";
|
|
203
|
-
readonly name: "";
|
|
204
|
-
readonly type: "uint256";
|
|
205
|
-
}];
|
|
206
|
-
readonly name: "instances";
|
|
207
|
-
readonly outputs: readonly [{
|
|
208
|
-
readonly internalType: "address";
|
|
209
|
-
readonly name: "";
|
|
210
|
-
readonly type: "address";
|
|
211
|
-
}];
|
|
212
|
-
readonly stateMutability: "view";
|
|
213
|
-
readonly type: "function";
|
|
214
|
-
}, {
|
|
215
|
-
readonly inputs: readonly [{
|
|
216
|
-
readonly internalType: "address";
|
|
217
|
-
readonly name: "";
|
|
218
|
-
readonly type: "address";
|
|
219
|
-
}];
|
|
220
|
-
readonly name: "isInstance";
|
|
221
|
-
readonly outputs: readonly [{
|
|
222
|
-
readonly internalType: "bool";
|
|
223
|
-
readonly name: "";
|
|
224
|
-
readonly type: "bool";
|
|
225
|
-
}];
|
|
226
|
-
readonly stateMutability: "view";
|
|
227
|
-
readonly type: "function";
|
|
228
|
-
}, {
|
|
229
|
-
readonly inputs: readonly [];
|
|
230
|
-
readonly name: "owner";
|
|
231
|
-
readonly outputs: readonly [{
|
|
232
|
-
readonly internalType: "address";
|
|
233
|
-
readonly name: "";
|
|
234
|
-
readonly type: "address";
|
|
235
|
-
}];
|
|
236
|
-
readonly stateMutability: "view";
|
|
237
|
-
readonly type: "function";
|
|
238
|
-
}, {
|
|
239
|
-
readonly inputs: readonly [];
|
|
240
|
-
readonly name: "renounceOwnership";
|
|
241
|
-
readonly outputs: readonly [];
|
|
242
|
-
readonly stateMutability: "nonpayable";
|
|
243
|
-
readonly type: "function";
|
|
244
|
-
}, {
|
|
245
|
-
readonly inputs: readonly [{
|
|
246
|
-
readonly internalType: "address";
|
|
247
|
-
readonly name: "newOwner";
|
|
248
|
-
readonly type: "address";
|
|
249
|
-
}];
|
|
250
|
-
readonly name: "transferOwnership";
|
|
251
|
-
readonly outputs: readonly [];
|
|
252
|
-
readonly stateMutability: "nonpayable";
|
|
253
|
-
readonly type: "function";
|
|
254
|
-
}, {
|
|
255
|
-
readonly inputs: readonly [{
|
|
256
|
-
readonly internalType: "address";
|
|
257
|
-
readonly name: "newImplementation";
|
|
258
|
-
readonly type: "address";
|
|
259
|
-
}];
|
|
260
|
-
readonly name: "upgradeTo";
|
|
261
|
-
readonly outputs: readonly [];
|
|
262
|
-
readonly stateMutability: "nonpayable";
|
|
263
|
-
readonly type: "function";
|
|
79
|
+
readonly stateMutability: "payable";
|
|
80
|
+
readonly type: "fallback";
|
|
264
81
|
}];
|
|
265
82
|
export default _default;
|
|
266
83
|
//# sourceMappingURL=factory.abi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.abi.d.ts","sourceRoot":"","sources":["../../../src/integrations/lagoonV1/factory.abi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"factory.abi.d.ts","sourceRoot":"","sources":["../../../src/integrations/lagoonV1/factory.abi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAwCW"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { type Call, type HexString, type Unwrapable } from "../..";
|
|
2
2
|
import type { Address } from "viem";
|
|
3
3
|
export type LagoonFactoryCreateVaultProxyArgs = Readonly<{
|
|
4
|
+
logic: Address;
|
|
5
|
+
initialOwner: Address;
|
|
6
|
+
initialDelay: bigint;
|
|
4
7
|
underlying: Address;
|
|
5
8
|
name: string;
|
|
6
9
|
symbol: string;
|
|
@@ -15,7 +18,7 @@ export type LagoonFactoryCreateVaultProxyArgs = Readonly<{
|
|
|
15
18
|
rateUpdateCooldown: bigint;
|
|
16
19
|
salt: HexString;
|
|
17
20
|
}>;
|
|
18
|
-
export declare const CreateVaultProxyCalldata: ({ underlying, name, symbol, safe, whitelistManager, valuationManager, admin, feeReceiver, managementRate, performanceRate, enableWhitelist, rateUpdateCooldown, salt, }: LagoonFactoryCreateVaultProxyArgs) => HexString;
|
|
21
|
+
export declare const CreateVaultProxyCalldata: ({ logic, initialOwner, initialDelay, underlying, name, symbol, safe, whitelistManager, valuationManager, admin, feeReceiver, managementRate, performanceRate, enableWhitelist, rateUpdateCooldown, salt, }: LagoonFactoryCreateVaultProxyArgs) => HexString;
|
|
19
22
|
export declare const createVaultProxyTrx: ({ createVaultProxyParams, factory, }: {
|
|
20
23
|
createVaultProxyParams: LagoonFactoryCreateVaultProxyArgs;
|
|
21
24
|
factory: Address;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lagoon.v1.d.ts","sourceRoot":"","sources":["../../../src/integrations/lagoonV1/lagoon.v1.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,KAAK,IAAI,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAE7F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAOpC,MAAM,MAAM,iCAAiC,GAAG,QAAQ,CAAC;IACrD,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,SAAS,CAAC;CACnB,CAAC,CAAC;AAEH,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"lagoon.v1.d.ts","sourceRoot":"","sources":["../../../src/integrations/lagoonV1/lagoon.v1.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,KAAK,IAAI,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAE7F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAOpC,MAAM,MAAM,iCAAiC,GAAG,QAAQ,CAAC;IACrD,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,SAAS,CAAC;CACnB,CAAC,CAAC;AAEH,eAAO,MAAM,wBAAwB,+MAiBlC,iCAAiC,KAAG,SA+BtC,CAAC;AAEF,eAAO,MAAM,mBAAmB;4BAIJ,iCAAiC;aAChD,OAAO;MAChB,WAAW,IAAI,CAOlB,CAAC;AAEF,eAAO,MAAM,iCAAiC;SAAoB,MAAM;MAAK,SAE5E,CAAC;AAEF,eAAO,MAAM,4BAA4B;WAA6B,OAAO;SAAO,MAAM;MAAK,WAAW,IAAI,CAO7G,CAAC;AAEF,eAAO,MAAM,2BAA2B;cAA8B,OAAO,EAAE;MAAK,SAEnF,CAAC;AAEF,eAAO,MAAM,sBAAsB;WAIxB,OAAO;cACJ,OAAO,EAAE;MACnB,WAAW,IAAI,CAOlB,CAAC;AAEF,eAAO,MAAM,gCAAgC;cAA8B,OAAO,EAAE;MAAK,SAExF,CAAC;AAEF,eAAO,MAAM,2BAA2B;WAI7B,OAAO;cACJ,OAAO,EAAE;MACnB,WAAW,IAAI,CAOlB,CAAC;AAUF,eAAO,MAAM,kCAAkC;oBAO3B,OAAO;cACb,OAAO;wBACG,OAAO;gBACf,iCAAiC;aACpC,MAAM;MACf,OA2CH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,45 +1,34 @@
|
|
|
1
1
|
export default [
|
|
2
2
|
{
|
|
3
3
|
inputs: [
|
|
4
|
-
{ internalType: "address", name: "
|
|
5
|
-
{ internalType: "address", name: "
|
|
6
|
-
{ internalType: "
|
|
7
|
-
{ internalType: "address", name: "_wrappedNativeToken", type: "address" },
|
|
4
|
+
{ internalType: "address", name: "_logic", type: "address" },
|
|
5
|
+
{ internalType: "address", name: "initialOwner", type: "address" },
|
|
6
|
+
{ internalType: "bytes", name: "_data", type: "bytes" },
|
|
8
7
|
],
|
|
9
|
-
stateMutability: "
|
|
8
|
+
stateMutability: "payable",
|
|
10
9
|
type: "constructor",
|
|
11
10
|
},
|
|
11
|
+
{ inputs: [{ internalType: "address", name: "target", type: "address" }], name: "AddressEmptyCode", type: "error" },
|
|
12
12
|
{
|
|
13
|
-
inputs: [{ internalType: "address", name: "
|
|
14
|
-
name: "
|
|
13
|
+
inputs: [{ internalType: "address", name: "admin", type: "address" }],
|
|
14
|
+
name: "ERC1967InvalidAdmin",
|
|
15
15
|
type: "error",
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
|
-
inputs: [{ internalType: "address", name: "
|
|
19
|
-
name: "
|
|
20
|
-
type: "error",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
24
|
-
name: "OwnableUnauthorizedAccount",
|
|
18
|
+
inputs: [{ internalType: "address", name: "implementation", type: "address" }],
|
|
19
|
+
name: "ERC1967InvalidImplementation",
|
|
25
20
|
type: "error",
|
|
26
21
|
},
|
|
22
|
+
{ inputs: [], name: "ERC1967NonPayable", type: "error" },
|
|
23
|
+
{ inputs: [], name: "FailedInnerCall", type: "error" },
|
|
24
|
+
{ inputs: [], name: "ProxyDeniedAdminAccess", type: "error" },
|
|
27
25
|
{
|
|
28
26
|
anonymous: false,
|
|
29
27
|
inputs: [
|
|
30
|
-
{ indexed: false, internalType: "address", name: "
|
|
31
|
-
{ indexed: false, internalType: "address", name: "
|
|
32
|
-
],
|
|
33
|
-
name: "BeaconProxyDeployed",
|
|
34
|
-
type: "event",
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
anonymous: false,
|
|
38
|
-
inputs: [
|
|
39
|
-
{ indexed: true, internalType: "address", name: "previousOwner", type: "address" },
|
|
40
|
-
{ indexed: true, internalType: "address", name: "newOwner", type: "address" },
|
|
28
|
+
{ indexed: false, internalType: "address", name: "previousAdmin", type: "address" },
|
|
29
|
+
{ indexed: false, internalType: "address", name: "newAdmin", type: "address" },
|
|
41
30
|
],
|
|
42
|
-
name: "
|
|
31
|
+
name: "AdminChanged",
|
|
43
32
|
type: "event",
|
|
44
33
|
},
|
|
45
34
|
{
|
|
@@ -48,99 +37,5 @@ export default [
|
|
|
48
37
|
name: "Upgraded",
|
|
49
38
|
type: "event",
|
|
50
39
|
},
|
|
51
|
-
{
|
|
52
|
-
inputs: [],
|
|
53
|
-
name: "REGISTRY",
|
|
54
|
-
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
55
|
-
stateMutability: "view",
|
|
56
|
-
type: "function",
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
inputs: [],
|
|
60
|
-
name: "WRAPPED_NATIVE",
|
|
61
|
-
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
62
|
-
stateMutability: "view",
|
|
63
|
-
type: "function",
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
inputs: [
|
|
67
|
-
{ internalType: "bytes", name: "init", type: "bytes" },
|
|
68
|
-
{ internalType: "bytes32", name: "salt", type: "bytes32" },
|
|
69
|
-
],
|
|
70
|
-
name: "createBeaconProxy",
|
|
71
|
-
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
72
|
-
stateMutability: "nonpayable",
|
|
73
|
-
type: "function",
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
inputs: [
|
|
77
|
-
{
|
|
78
|
-
components: [
|
|
79
|
-
{ internalType: "address", name: "underlying", type: "address" },
|
|
80
|
-
{ internalType: "string", name: "name", type: "string" },
|
|
81
|
-
{ internalType: "string", name: "symbol", type: "string" },
|
|
82
|
-
{ internalType: "address", name: "safe", type: "address" },
|
|
83
|
-
{ internalType: "address", name: "whitelistManager", type: "address" },
|
|
84
|
-
{ internalType: "address", name: "valuationManager", type: "address" },
|
|
85
|
-
{ internalType: "address", name: "admin", type: "address" },
|
|
86
|
-
{ internalType: "address", name: "feeReceiver", type: "address" },
|
|
87
|
-
{ internalType: "uint16", name: "managementRate", type: "uint16" },
|
|
88
|
-
{ internalType: "uint16", name: "performanceRate", type: "uint16" },
|
|
89
|
-
{ internalType: "bool", name: "enableWhitelist", type: "bool" },
|
|
90
|
-
{ internalType: "uint256", name: "rateUpdateCooldown", type: "uint256" },
|
|
91
|
-
],
|
|
92
|
-
internalType: "struct InitStruct",
|
|
93
|
-
name: "init",
|
|
94
|
-
type: "tuple",
|
|
95
|
-
},
|
|
96
|
-
{ internalType: "bytes32", name: "salt", type: "bytes32" },
|
|
97
|
-
],
|
|
98
|
-
name: "createVaultProxy",
|
|
99
|
-
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
100
|
-
stateMutability: "nonpayable",
|
|
101
|
-
type: "function",
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
inputs: [],
|
|
105
|
-
name: "implementation",
|
|
106
|
-
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
107
|
-
stateMutability: "view",
|
|
108
|
-
type: "function",
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
inputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
112
|
-
name: "instances",
|
|
113
|
-
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
114
|
-
stateMutability: "view",
|
|
115
|
-
type: "function",
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
119
|
-
name: "isInstance",
|
|
120
|
-
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
121
|
-
stateMutability: "view",
|
|
122
|
-
type: "function",
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
inputs: [],
|
|
126
|
-
name: "owner",
|
|
127
|
-
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
128
|
-
stateMutability: "view",
|
|
129
|
-
type: "function",
|
|
130
|
-
},
|
|
131
|
-
{ inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
132
|
-
{
|
|
133
|
-
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
134
|
-
name: "transferOwnership",
|
|
135
|
-
outputs: [],
|
|
136
|
-
stateMutability: "nonpayable",
|
|
137
|
-
type: "function",
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
inputs: [{ internalType: "address", name: "newImplementation", type: "address" }],
|
|
141
|
-
name: "upgradeTo",
|
|
142
|
-
outputs: [],
|
|
143
|
-
stateMutability: "nonpayable",
|
|
144
|
-
type: "function",
|
|
145
|
-
},
|
|
40
|
+
{ stateMutability: "payable", type: "fallback" },
|
|
146
41
|
] as const;
|
|
@@ -9,6 +9,9 @@ const factoryInterface = new ethers.utils.Interface(lagoonV1FactoryAbi);
|
|
|
9
9
|
const vaultInterface = new ethers.utils.Interface(lagoonV1VaultAbi);
|
|
10
10
|
|
|
11
11
|
export type LagoonFactoryCreateVaultProxyArgs = Readonly<{
|
|
12
|
+
logic: Address;
|
|
13
|
+
initialOwner: Address;
|
|
14
|
+
initialDelay: bigint;
|
|
12
15
|
underlying: Address;
|
|
13
16
|
name: string;
|
|
14
17
|
symbol: string;
|
|
@@ -25,6 +28,9 @@ export type LagoonFactoryCreateVaultProxyArgs = Readonly<{
|
|
|
25
28
|
}>;
|
|
26
29
|
|
|
27
30
|
export const CreateVaultProxyCalldata = ({
|
|
31
|
+
logic,
|
|
32
|
+
initialOwner,
|
|
33
|
+
initialDelay,
|
|
28
34
|
underlying,
|
|
29
35
|
name,
|
|
30
36
|
symbol,
|
|
@@ -49,18 +55,23 @@ export const CreateVaultProxyCalldata = ({
|
|
|
49
55
|
|
|
50
56
|
return factoryInterface.encodeFunctionData("createVaultProxy", [
|
|
51
57
|
[
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
logic,
|
|
59
|
+
initialOwner,
|
|
60
|
+
initialDelay,
|
|
61
|
+
[
|
|
62
|
+
underlying,
|
|
63
|
+
name,
|
|
64
|
+
symbol,
|
|
65
|
+
safe,
|
|
66
|
+
enableWhitelist ? whitelistManager : ZERO_ADDRESS,
|
|
67
|
+
valuationManager,
|
|
68
|
+
admin,
|
|
69
|
+
feeReceiver,
|
|
70
|
+
managementRate,
|
|
71
|
+
performanceRate,
|
|
72
|
+
enableWhitelist,
|
|
73
|
+
rateUpdateCooldown,
|
|
74
|
+
],
|
|
64
75
|
],
|
|
65
76
|
salt,
|
|
66
77
|
]) as HexString;
|
|
@@ -304,6 +304,11 @@
|
|
|
304
304
|
"merkl": {
|
|
305
305
|
"distributor": "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
|
|
306
306
|
},
|
|
307
|
+
"lagoonV0_5": {
|
|
308
|
+
"factory": "0xA8E0684887b9475f8942DF6a89bEBa5B25219632",
|
|
309
|
+
"vaultImpl": "0xBB2dcC67A94946400a605F2a97933471bE8BC538",
|
|
310
|
+
"registry": "0x94f6eE1514bB5E1061C74FecB92E19181B59a7EC"
|
|
311
|
+
},
|
|
307
312
|
"uniswapV3": {
|
|
308
313
|
"router": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
|
|
309
314
|
"positionManager": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88"
|