damm-sdk 1.1.27 → 1.1.28
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 +4131 -2334
- package/dist/index.cjs.map +33 -24
- package/dist/index.js +1376 -96
- package/dist/index.js.map +16 -13
- package/dist/integrations/gnosis/gnosis.d.ts +1 -1
- package/dist/integrations/gnosis/gnosis.d.ts.map +1 -1
- package/dist/integrations/index.d.ts +1 -0
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/morphoBlue/index.d.ts +3 -0
- package/dist/integrations/morphoBlue/index.d.ts.map +1 -0
- package/dist/integrations/morphoBlue/morpho.blue.abi.d.ts +62 -0
- package/dist/integrations/morphoBlue/morpho.blue.abi.d.ts.map +1 -0
- package/dist/integrations/morphoBlue/morpho.blue.d.ts +92 -0
- package/dist/integrations/morphoBlue/morpho.blue.d.ts.map +1 -0
- package/dist/integrations/zodiac/delay/index.d.ts +3 -0
- package/dist/integrations/zodiac/delay/index.d.ts.map +1 -0
- package/dist/integrations/zodiac/delay/zodiac.delay.abi.d.ts +722 -0
- package/dist/integrations/zodiac/delay/zodiac.delay.abi.d.ts.map +1 -0
- package/dist/integrations/zodiac/delay/zodiac.delay.d.ts +19 -0
- package/dist/integrations/zodiac/delay/zodiac.delay.d.ts.map +1 -0
- package/dist/integrations/zodiac/index.d.ts +1 -0
- package/dist/integrations/zodiac/index.d.ts.map +1 -1
- package/dist/integrations/zodiac/roles/zodiac.roles.d.ts +13 -2
- package/dist/integrations/zodiac/roles/zodiac.roles.d.ts.map +1 -1
- package/dist/lib/constants.d.ts +1 -0
- package/dist/lib/constants.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/integrations/aaveV3/aave.v3.ts +1 -1
- package/src/integrations/index.ts +1 -0
- package/src/integrations/morphoBlue/index.ts +2 -0
- package/src/integrations/morphoBlue/morpho.blue.abi.ts +612 -0
- package/src/integrations/morphoBlue/morpho.blue.ts +253 -0
- package/src/integrations/zodiac/delay/index.ts +2 -0
- package/src/integrations/zodiac/delay/zodiac.delay.abi.ts +394 -0
- package/src/integrations/zodiac/delay/zodiac.delay.ts +60 -0
- package/src/integrations/zodiac/index.ts +1 -0
- package/src/integrations/zodiac/roles/zodiac.roles.ts +42 -4
- package/src/lib/constants.ts +2 -0
- package/src/lib/contractsRegistry.json +86 -25
package/dist/index.js
CHANGED
|
@@ -66,26 +66,47 @@ function size(value) {
|
|
|
66
66
|
var init_size = () => {};
|
|
67
67
|
|
|
68
68
|
// node_modules/viem/_esm/errors/version.js
|
|
69
|
-
var version = "2.
|
|
70
|
-
|
|
71
|
-
// node_modules/viem/_esm/errors/utils.js
|
|
72
|
-
var getVersion = () => `viem@${version}`;
|
|
73
|
-
var init_utils = () => {};
|
|
69
|
+
var version = "2.33.2";
|
|
74
70
|
|
|
75
71
|
// node_modules/viem/_esm/errors/base.js
|
|
76
72
|
function walk(err, fn) {
|
|
77
73
|
if (fn?.(err))
|
|
78
74
|
return err;
|
|
79
|
-
if (err && typeof err === "object" && "cause" in err)
|
|
75
|
+
if (err && typeof err === "object" && "cause" in err && err.cause !== undefined)
|
|
80
76
|
return walk(err.cause, fn);
|
|
81
77
|
return fn ? null : err;
|
|
82
78
|
}
|
|
83
|
-
var BaseError;
|
|
79
|
+
var errorConfig, BaseError;
|
|
84
80
|
var init_base = __esm(() => {
|
|
85
|
-
|
|
81
|
+
errorConfig = {
|
|
82
|
+
getDocsUrl: ({ docsBaseUrl, docsPath = "", docsSlug }) => docsPath ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath}${docsSlug ? `#${docsSlug}` : ""}` : undefined,
|
|
83
|
+
version: `viem@${version}`
|
|
84
|
+
};
|
|
86
85
|
BaseError = class BaseError extends Error {
|
|
87
86
|
constructor(shortMessage, args = {}) {
|
|
88
|
-
|
|
87
|
+
const details = (() => {
|
|
88
|
+
if (args.cause instanceof BaseError)
|
|
89
|
+
return args.cause.details;
|
|
90
|
+
if (args.cause?.message)
|
|
91
|
+
return args.cause.message;
|
|
92
|
+
return args.details;
|
|
93
|
+
})();
|
|
94
|
+
const docsPath = (() => {
|
|
95
|
+
if (args.cause instanceof BaseError)
|
|
96
|
+
return args.cause.docsPath || args.docsPath;
|
|
97
|
+
return args.docsPath;
|
|
98
|
+
})();
|
|
99
|
+
const docsUrl = errorConfig.getDocsUrl?.({ ...args, docsPath });
|
|
100
|
+
const message = [
|
|
101
|
+
shortMessage || "An error occurred.",
|
|
102
|
+
"",
|
|
103
|
+
...args.metaMessages ? [...args.metaMessages, ""] : [],
|
|
104
|
+
...docsUrl ? [`Docs: ${docsUrl}`] : [],
|
|
105
|
+
...details ? [`Details: ${details}`] : [],
|
|
106
|
+
...errorConfig.version ? [`Version: ${errorConfig.version}`] : []
|
|
107
|
+
].join(`
|
|
108
|
+
`);
|
|
109
|
+
super(message, args.cause ? { cause: args.cause } : undefined);
|
|
89
110
|
Object.defineProperty(this, "details", {
|
|
90
111
|
enumerable: true,
|
|
91
112
|
configurable: true,
|
|
@@ -110,37 +131,24 @@ var init_base = __esm(() => {
|
|
|
110
131
|
writable: true,
|
|
111
132
|
value: undefined
|
|
112
133
|
});
|
|
113
|
-
Object.defineProperty(this, "
|
|
134
|
+
Object.defineProperty(this, "version", {
|
|
114
135
|
enumerable: true,
|
|
115
136
|
configurable: true,
|
|
116
137
|
writable: true,
|
|
117
|
-
value:
|
|
138
|
+
value: undefined
|
|
118
139
|
});
|
|
119
|
-
Object.defineProperty(this, "
|
|
140
|
+
Object.defineProperty(this, "name", {
|
|
120
141
|
enumerable: true,
|
|
121
142
|
configurable: true,
|
|
122
143
|
writable: true,
|
|
123
|
-
value:
|
|
144
|
+
value: "BaseError"
|
|
124
145
|
});
|
|
125
|
-
const details = args.cause instanceof BaseError ? args.cause.details : args.cause?.message ? args.cause.message : args.details;
|
|
126
|
-
const docsPath = args.cause instanceof BaseError ? args.cause.docsPath || args.docsPath : args.docsPath;
|
|
127
|
-
this.message = [
|
|
128
|
-
shortMessage || "An error occurred.",
|
|
129
|
-
"",
|
|
130
|
-
...args.metaMessages ? [...args.metaMessages, ""] : [],
|
|
131
|
-
...docsPath ? [
|
|
132
|
-
`Docs: https://viem.sh${docsPath}${args.docsSlug ? `#${args.docsSlug}` : ""}`
|
|
133
|
-
] : [],
|
|
134
|
-
...details ? [`Details: ${details}`] : [],
|
|
135
|
-
`Version: ${this.version}`
|
|
136
|
-
].join(`
|
|
137
|
-
`);
|
|
138
|
-
if (args.cause)
|
|
139
|
-
this.cause = args.cause;
|
|
140
146
|
this.details = details;
|
|
141
147
|
this.docsPath = docsPath;
|
|
142
148
|
this.metaMessages = args.metaMessages;
|
|
149
|
+
this.name = args.name ?? this.name;
|
|
143
150
|
this.shortMessage = shortMessage;
|
|
151
|
+
this.version = version;
|
|
144
152
|
}
|
|
145
153
|
walk(fn) {
|
|
146
154
|
return walk(this, fn);
|
|
@@ -154,13 +162,7 @@ var init_data = __esm(() => {
|
|
|
154
162
|
init_base();
|
|
155
163
|
SizeExceedsPaddingSizeError = class SizeExceedsPaddingSizeError extends BaseError {
|
|
156
164
|
constructor({ size: size2, targetSize, type }) {
|
|
157
|
-
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (${size2}) exceeds padding size (${targetSize})
|
|
158
|
-
Object.defineProperty(this, "name", {
|
|
159
|
-
enumerable: true,
|
|
160
|
-
configurable: true,
|
|
161
|
-
writable: true,
|
|
162
|
-
value: "SizeExceedsPaddingSizeError"
|
|
163
|
-
});
|
|
165
|
+
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (${size2}) exceeds padding size (${targetSize}).`, { name: "SizeExceedsPaddingSizeError" });
|
|
164
166
|
}
|
|
165
167
|
};
|
|
166
168
|
});
|
|
@@ -209,24 +211,12 @@ var init_encoding = __esm(() => {
|
|
|
209
211
|
init_base();
|
|
210
212
|
IntegerOutOfRangeError = class IntegerOutOfRangeError extends BaseError {
|
|
211
213
|
constructor({ max, min, signed, size: size2, value }) {
|
|
212
|
-
super(`Number "${value}" is not in safe ${size2 ? `${size2 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}
|
|
213
|
-
Object.defineProperty(this, "name", {
|
|
214
|
-
enumerable: true,
|
|
215
|
-
configurable: true,
|
|
216
|
-
writable: true,
|
|
217
|
-
value: "IntegerOutOfRangeError"
|
|
218
|
-
});
|
|
214
|
+
super(`Number "${value}" is not in safe ${size2 ? `${size2 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`, { name: "IntegerOutOfRangeError" });
|
|
219
215
|
}
|
|
220
216
|
};
|
|
221
217
|
SizeOverflowError = class SizeOverflowError extends BaseError {
|
|
222
218
|
constructor({ givenSize, maxSize }) {
|
|
223
|
-
super(`Size cannot exceed ${maxSize} bytes. Given size: ${givenSize} bytes
|
|
224
|
-
Object.defineProperty(this, "name", {
|
|
225
|
-
enumerable: true,
|
|
226
|
-
configurable: true,
|
|
227
|
-
writable: true,
|
|
228
|
-
value: "SizeOverflowError"
|
|
229
|
-
});
|
|
219
|
+
super(`Size cannot exceed ${maxSize} bytes. Given size: ${givenSize} bytes.`, { name: "SizeOverflowError" });
|
|
230
220
|
}
|
|
231
221
|
};
|
|
232
222
|
});
|
|
@@ -52077,6 +52067,7 @@ var GMX_EXCHANGE_ROUTER_ARB = "0x69C527fC77291722b52649E45c838e41be8Bf5d5";
|
|
|
52077
52067
|
var PERMIT2_ADDRESS_CANONICAL = "0x000000000022D473030F116dDEE9F6B43aC78BA3";
|
|
52078
52068
|
var CALL_OP_CODE = 0;
|
|
52079
52069
|
var DELEGATE_CALL_OP_CODE = 1;
|
|
52070
|
+
var SENTINEL_ADDRESS = "0x0000000000000000000000000000000000000001";
|
|
52080
52071
|
|
|
52081
52072
|
// src/integrations/gnosis/safe.abi.ts
|
|
52082
52073
|
var safe_abi_default = [
|
|
@@ -52648,14 +52639,15 @@ var contractsRegistry_default = {
|
|
|
52648
52639
|
poolManager: "0x360E68faCcca8cA495c1B759Fd9EEe466db9FB32",
|
|
52649
52640
|
stateView: "0x76Fd297e2D437cd7f76d50F01AfE6160f86e9990",
|
|
52650
52641
|
zodiacVerifiers: {
|
|
52651
|
-
positionMintVerifier: "
|
|
52652
|
-
takeAllVerifier: "
|
|
52653
|
-
settleAllVerifier: "
|
|
52654
|
-
swapExactInSingleVerifier: "
|
|
52655
|
-
|
|
52656
|
-
|
|
52657
|
-
|
|
52658
|
-
|
|
52642
|
+
positionMintVerifier: "0xA0B62aCD2fD69720744d03d5E11b021D715BEc04",
|
|
52643
|
+
takeAllVerifier: "0x16e75e91aa5C9c0976d48bd36035A71f2E54A18c",
|
|
52644
|
+
settleAllVerifier: "0x66ABaaC16293a9d2a291f3C7A88d8B1b65953752",
|
|
52645
|
+
swapExactInSingleVerifier: "0xB21d73547b40438bA661Dd4B6EA99cF938F67Af8",
|
|
52646
|
+
swapExactOutSingleVerifier: "0xc3f0bC7CfFec898EC5aD9d40e4f7eA80d9641B7B",
|
|
52647
|
+
sweepVerifier: "0xc6af34fE57e4293D58eA2ad3D68b3f8BaA43A5D4",
|
|
52648
|
+
takePairVerifier: "0x78a8bBa010bb4E0EC0A3A50049C77cFd3abEA495",
|
|
52649
|
+
decreaseLiquidityVerifier: "0x34fA7F29A69989cdA0822f3F65F2aA47e3C80f3A",
|
|
52650
|
+
settlePairVerifier: "0x83a502479931508f977321615BA7e6F2AA933Cf1"
|
|
52659
52651
|
}
|
|
52660
52652
|
},
|
|
52661
52653
|
gnosisSafe: {
|
|
@@ -52668,7 +52660,8 @@ var contractsRegistry_default = {
|
|
|
52668
52660
|
},
|
|
52669
52661
|
zodiac: {
|
|
52670
52662
|
rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337",
|
|
52671
|
-
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236"
|
|
52663
|
+
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236",
|
|
52664
|
+
delayModule: "0x01F8cabB808D7dE0dF4202D4B60C8310d2f1339b"
|
|
52672
52665
|
},
|
|
52673
52666
|
multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
52674
52667
|
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
@@ -52692,7 +52685,11 @@ var contractsRegistry_default = {
|
|
|
52692
52685
|
"1inch": {
|
|
52693
52686
|
aggregatorV6: "0x111111125421cA6dc452d289314280a0f8842A65"
|
|
52694
52687
|
},
|
|
52695
|
-
wrappedNativeToken: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1"
|
|
52688
|
+
wrappedNativeToken: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
52689
|
+
morpho: {
|
|
52690
|
+
morphoBlue: "0x6c247b1F6182318877311737BaC0844bAa518F5e"
|
|
52691
|
+
},
|
|
52692
|
+
poster: "0x000000000000cd17345801aa8147b8D3950260FF"
|
|
52696
52693
|
},
|
|
52697
52694
|
base: {
|
|
52698
52695
|
tokens: {
|
|
@@ -52723,12 +52720,17 @@ var contractsRegistry_default = {
|
|
|
52723
52720
|
},
|
|
52724
52721
|
zodiac: {
|
|
52725
52722
|
rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337",
|
|
52726
|
-
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236"
|
|
52723
|
+
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236",
|
|
52724
|
+
delayModule: "0x01F8cabB808D7dE0dF4202D4B60C8310d2f1339b"
|
|
52727
52725
|
},
|
|
52728
52726
|
"1inch": {
|
|
52729
52727
|
aggregatorV6: "0x111111125421cA6dc452d289314280a0f8842A65"
|
|
52730
52728
|
},
|
|
52731
|
-
wrappedNativeToken: "0x4200000000000000000000000000000000000006"
|
|
52729
|
+
wrappedNativeToken: "0x4200000000000000000000000000000000000006",
|
|
52730
|
+
morpho: {
|
|
52731
|
+
morphoBlue: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb"
|
|
52732
|
+
},
|
|
52733
|
+
poster: "0x000000000000cd17345801aa8147b8D3950260FF"
|
|
52732
52734
|
},
|
|
52733
52735
|
polygon: {
|
|
52734
52736
|
uniswapV3: {
|
|
@@ -52753,12 +52755,17 @@ var contractsRegistry_default = {
|
|
|
52753
52755
|
},
|
|
52754
52756
|
zodiac: {
|
|
52755
52757
|
rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337",
|
|
52756
|
-
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236"
|
|
52758
|
+
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236",
|
|
52759
|
+
delayModule: "0x01F8cabB808D7dE0dF4202D4B60C8310d2f1339b"
|
|
52757
52760
|
},
|
|
52758
52761
|
"1inch": {
|
|
52759
52762
|
aggregatorV6: "0x111111125421cA6dc452d289314280a0f8842A65"
|
|
52760
52763
|
},
|
|
52761
|
-
wrappedNativeToken: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"
|
|
52764
|
+
wrappedNativeToken: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
|
|
52765
|
+
morpho: {
|
|
52766
|
+
morphoBlue: "0x1bF0c2541F820E775182832f06c0B7Fc27A25f67"
|
|
52767
|
+
},
|
|
52768
|
+
poster: "0x000000000000cd17345801aa8147b8D3950260FF"
|
|
52762
52769
|
},
|
|
52763
52770
|
bsc: {
|
|
52764
52771
|
uniswapV3: {
|
|
@@ -52781,7 +52788,8 @@ var contractsRegistry_default = {
|
|
|
52781
52788
|
},
|
|
52782
52789
|
zodiac: {
|
|
52783
52790
|
rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337",
|
|
52784
|
-
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236"
|
|
52791
|
+
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236",
|
|
52792
|
+
delayModule: "0x01F8cabB808D7dE0dF4202D4B60C8310d2f1339b"
|
|
52785
52793
|
},
|
|
52786
52794
|
"1inch": {
|
|
52787
52795
|
aggregatorV6: "0x111111125421cA6dc452d289314280a0f8842A65"
|
|
@@ -52809,7 +52817,11 @@ var contractsRegistry_default = {
|
|
|
52809
52817
|
multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
52810
52818
|
"1inch": {
|
|
52811
52819
|
aggregatorV6: "0x111111125421cA6dc452d289314280a0f8842A65"
|
|
52812
|
-
}
|
|
52820
|
+
},
|
|
52821
|
+
morpho: {
|
|
52822
|
+
morphoBlue: "0xce95AfbB8EA029495c66020883F87aaE8864AF92"
|
|
52823
|
+
},
|
|
52824
|
+
poster: "0x000000000000cd17345801aa8147b8D3950260FF"
|
|
52813
52825
|
},
|
|
52814
52826
|
mainnet: {
|
|
52815
52827
|
uniswapV3: {
|
|
@@ -52853,7 +52865,8 @@ var contractsRegistry_default = {
|
|
|
52853
52865
|
"1inch": {
|
|
52854
52866
|
aggregatorV6: "0x111111125421cA6dc452d289314280a0f8842A65"
|
|
52855
52867
|
},
|
|
52856
|
-
wrappedNativeToken: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
|
|
52868
|
+
wrappedNativeToken: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
52869
|
+
poster: "0x000000000000cd17345801aa8147b8D3950260FF"
|
|
52857
52870
|
},
|
|
52858
52871
|
unichain: {
|
|
52859
52872
|
uniswapV4: {
|
|
@@ -52862,14 +52875,25 @@ var contractsRegistry_default = {
|
|
|
52862
52875
|
poolManager: "0x1F98400000000000000000000000000000000004",
|
|
52863
52876
|
stateView: "0x86e8631A016F9068C3f085fAF484Ee3F5fDee8f2"
|
|
52864
52877
|
},
|
|
52878
|
+
uniswapV3: {
|
|
52879
|
+
router: "0x73855d06DE49d0fe4A9c42636Ba96c62da12FF9C",
|
|
52880
|
+
positionManager: "0x943e6e07a7E8E791dAFC44083e54041D743C46E9"
|
|
52881
|
+
},
|
|
52865
52882
|
lagoonV0_5: {
|
|
52866
52883
|
factory: "0xaba1A2e157Dae248f8630cA550bd826725Ff745c",
|
|
52867
52884
|
registry: "0x652716FaD571f04D26a3c8fFd9E593F17123Ab20",
|
|
52868
52885
|
vaultImpl: "0xE50554ec802375C9c3F9c087a8a7bb8C26d3DEDf"
|
|
52869
52886
|
},
|
|
52887
|
+
tokens: {
|
|
52888
|
+
usdc: "0x078D782b760474a361dDA0AF3839290b0EF57AD6",
|
|
52889
|
+
usdt: "0x9151434b16b9763660705744891fA906F660EcC5",
|
|
52890
|
+
dai: "0x20CAb320A855b39F724131C69424240519573f81",
|
|
52891
|
+
weth: "0x4200000000000000000000000000000000000006"
|
|
52892
|
+
},
|
|
52870
52893
|
zodiac: {
|
|
52871
52894
|
rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337",
|
|
52872
|
-
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236"
|
|
52895
|
+
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236",
|
|
52896
|
+
delayModule: "0x01F8cabB808D7dE0dF4202D4B60C8310d2f1339b"
|
|
52873
52897
|
},
|
|
52874
52898
|
gnosisSafe: {
|
|
52875
52899
|
v1_4_1: {
|
|
@@ -52878,7 +52902,15 @@ var contractsRegistry_default = {
|
|
|
52878
52902
|
safeL2Singleton: "0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",
|
|
52879
52903
|
proxyFactory: "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67"
|
|
52880
52904
|
}
|
|
52881
|
-
}
|
|
52905
|
+
},
|
|
52906
|
+
enso: {
|
|
52907
|
+
routerV2: "0xF75584eF6673aD213a685a1B58Cc0330B8eA22Cf"
|
|
52908
|
+
},
|
|
52909
|
+
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
52910
|
+
morpho: {
|
|
52911
|
+
morphoBlue: "0x8f5ae9CddB9f68de460C77730b018Ae7E04a140A"
|
|
52912
|
+
},
|
|
52913
|
+
wrappedNativeToken: "0x4200000000000000000000000000000000000006"
|
|
52882
52914
|
},
|
|
52883
52915
|
mantle: {
|
|
52884
52916
|
agniV1: {
|
|
@@ -52898,7 +52930,8 @@ var contractsRegistry_default = {
|
|
|
52898
52930
|
},
|
|
52899
52931
|
zodiac: {
|
|
52900
52932
|
rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337",
|
|
52901
|
-
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236"
|
|
52933
|
+
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236",
|
|
52934
|
+
delayModule: "0x01F8cabB808D7dE0dF4202D4B60C8310d2f1339b"
|
|
52902
52935
|
},
|
|
52903
52936
|
tokens: {
|
|
52904
52937
|
ausd: "0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a",
|
|
@@ -52912,9 +52945,16 @@ var contractsRegistry_default = {
|
|
|
52912
52945
|
registry: "0x47A144e67834408716cB40Fa87fc886D63362ddC",
|
|
52913
52946
|
vaultImpl: "0xA7260Cee56B679eC05a736A7b603b8DA8525Dd69"
|
|
52914
52947
|
},
|
|
52915
|
-
wrappedNativeToken: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"
|
|
52948
|
+
wrappedNativeToken: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
|
|
52949
|
+
poster: "0x000000000000cd17345801aa8147b8D3950260FF"
|
|
52916
52950
|
},
|
|
52917
52951
|
worldchain: {
|
|
52952
|
+
tokens: {
|
|
52953
|
+
wld: "0x2cFc85d8E48F8EAB294be644d9E25C3030863003",
|
|
52954
|
+
usdc: "0x79A02482A880bCE3F13e09Da970dC34db4CD24d1",
|
|
52955
|
+
weth: "0x4200000000000000000000000000000000000006",
|
|
52956
|
+
wbtc: "0x03C7054BCB39f7b2e5B2c7AcB37583e32D70Cfa3"
|
|
52957
|
+
},
|
|
52918
52958
|
lagoonV0_5: {
|
|
52919
52959
|
factory: "0x600fA26581771F56221FC9847A834B3E5fd34AF7",
|
|
52920
52960
|
registry: "0x68e793658def657551fd4D3cA6Bc04b4E7723655",
|
|
@@ -52923,9 +52963,14 @@ var contractsRegistry_default = {
|
|
|
52923
52963
|
enso: {
|
|
52924
52964
|
routerV2: "0xF75584eF6673aD213a685a1B58Cc0330B8eA22Cf"
|
|
52925
52965
|
},
|
|
52966
|
+
uniswapV3: {
|
|
52967
|
+
positionManager: "0xec12a9F9a09f50550686363766Cc153D03c27b5e",
|
|
52968
|
+
router: "0x091AD9e2e6e5eD44c1c66dB50e49A601F9f36cF6"
|
|
52969
|
+
},
|
|
52926
52970
|
zodiac: {
|
|
52927
52971
|
rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337",
|
|
52928
|
-
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236"
|
|
52972
|
+
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236",
|
|
52973
|
+
delayModule: "0x01F8cabB808D7dE0dF4202D4B60C8310d2f1339b"
|
|
52929
52974
|
},
|
|
52930
52975
|
morpho: {
|
|
52931
52976
|
morphoBlue: "0xE741BC7c34758b4caE05062794E8Ae24978AF432"
|
|
@@ -52937,7 +52982,9 @@ var contractsRegistry_default = {
|
|
|
52937
52982
|
safeL2Singleton: "0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",
|
|
52938
52983
|
proxyFactory: "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67"
|
|
52939
52984
|
}
|
|
52940
|
-
}
|
|
52985
|
+
},
|
|
52986
|
+
wrappedNativeToken: "0x4200000000000000000000000000000000000006",
|
|
52987
|
+
poster: "0x000000000000cd17345801aa8147b8D3950260FF"
|
|
52941
52988
|
},
|
|
52942
52989
|
sepolia: {
|
|
52943
52990
|
lagoonV0_5: {
|
|
@@ -52956,7 +53003,8 @@ var contractsRegistry_default = {
|
|
|
52956
53003
|
},
|
|
52957
53004
|
zodiac: {
|
|
52958
53005
|
rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337",
|
|
52959
|
-
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236"
|
|
53006
|
+
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236",
|
|
53007
|
+
delayModule: "0x01F8cabB808D7dE0dF4202D4B60C8310d2f1339b"
|
|
52960
53008
|
},
|
|
52961
53009
|
gnosisSafe: {
|
|
52962
53010
|
v1_4_1: {
|
|
@@ -52965,7 +53013,11 @@ var contractsRegistry_default = {
|
|
|
52965
53013
|
safeL2Singleton: "0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",
|
|
52966
53014
|
proxyFactory: "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67"
|
|
52967
53015
|
}
|
|
52968
|
-
}
|
|
53016
|
+
},
|
|
53017
|
+
morpho: {
|
|
53018
|
+
morphoBlue: "0xd011EE229E7459ba1ddd22631eF7bF528d424A14"
|
|
53019
|
+
},
|
|
53020
|
+
poster: "0x000000000000cd17345801aa8147b8D3950260FF"
|
|
52969
53021
|
}
|
|
52970
53022
|
};
|
|
52971
53023
|
|
|
@@ -55081,8 +55133,8 @@ var BorrowFromAaveV3L1Calldata = ({
|
|
|
55081
55133
|
asset,
|
|
55082
55134
|
amount,
|
|
55083
55135
|
interestRateMode,
|
|
55084
|
-
|
|
55085
|
-
|
|
55136
|
+
referralCode,
|
|
55137
|
+
onBehalfOf
|
|
55086
55138
|
]);
|
|
55087
55139
|
};
|
|
55088
55140
|
var borrowFromAaveV3Trx = ({
|
|
@@ -65156,7 +65208,7 @@ var SwapRouter2 = /* @__PURE__ */ function() {
|
|
|
65156
65208
|
SwapRouter2.INTERFACE = /* @__PURE__ */ new import_abi4.Interface(SwapRouter_default.abi);
|
|
65157
65209
|
|
|
65158
65210
|
// node_modules/@uniswap/v4-sdk/dist/v4-sdk.esm.js
|
|
65159
|
-
var
|
|
65211
|
+
var import_utils = __toESM(require_utils6(), 1);
|
|
65160
65212
|
var import_jsbi5 = __toESM(require_jsbi_umd(), 1);
|
|
65161
65213
|
var import_abi5 = __toESM(require_lib13(), 1);
|
|
65162
65214
|
function _arrayLikeToArray3(r, a) {
|
|
@@ -65629,7 +65681,7 @@ var Hook = /* @__PURE__ */ function() {
|
|
|
65629
65681
|
return !!(parseInt(address, 16) & 1 << hookFlagIndex[hookOption]);
|
|
65630
65682
|
};
|
|
65631
65683
|
Hook2._checkAddress = function _checkAddress(address) {
|
|
65632
|
-
!
|
|
65684
|
+
!import_utils.isAddress(address) && invariant(false, "invalid address");
|
|
65633
65685
|
};
|
|
65634
65686
|
return Hook2;
|
|
65635
65687
|
}();
|
|
@@ -65668,7 +65720,7 @@ var Pool3 = /* @__PURE__ */ function() {
|
|
|
65668
65720
|
if (ticks === undefined) {
|
|
65669
65721
|
ticks = NO_TICK_DATA_PROVIDER_DEFAULT3;
|
|
65670
65722
|
}
|
|
65671
|
-
!
|
|
65723
|
+
!import_utils.isAddress(hooks) && invariant(false, "Invalid hook address");
|
|
65672
65724
|
!(Number.isInteger(fee) && (fee === DYNAMIC_FEE_FLAG || fee < 1e6)) && invariant(false, "FEE");
|
|
65673
65725
|
if (fee === DYNAMIC_FEE_FLAG) {
|
|
65674
65726
|
!(Number(hooks) > 0) && invariant(false, "Dynamic fee pool requires a hook");
|
|
@@ -65690,7 +65742,7 @@ var Pool3 = /* @__PURE__ */ function() {
|
|
|
65690
65742
|
this.poolId = Pool4.getPoolId(this.currency0, this.currency1, this.fee, this.tickSpacing, this.hooks);
|
|
65691
65743
|
}
|
|
65692
65744
|
Pool4.getPoolKey = function getPoolKey(currencyA, currencyB, fee, tickSpacing, hooks) {
|
|
65693
|
-
!
|
|
65745
|
+
!import_utils.isAddress(hooks) && invariant(false, "Invalid hook address");
|
|
65694
65746
|
var _ref2 = sortsBefore(currencyA, currencyB) ? [currencyA, currencyB] : [currencyB, currencyA], currency0 = _ref2[0], currency1 = _ref2[1];
|
|
65695
65747
|
var currency0Addr = currency0.isNative ? ADDRESS_ZERO3 : currency0.wrapped.address;
|
|
65696
65748
|
var currency1Addr = currency1.isNative ? ADDRESS_ZERO3 : currency1.wrapped.address;
|
|
@@ -65706,7 +65758,7 @@ var Pool3 = /* @__PURE__ */ function() {
|
|
|
65706
65758
|
var _ref3 = sortsBefore(currencyA, currencyB) ? [currencyA, currencyB] : [currencyB, currencyA], currency0 = _ref3[0], currency1 = _ref3[1];
|
|
65707
65759
|
var currency0Addr = currency0.isNative ? ADDRESS_ZERO3 : currency0.wrapped.address;
|
|
65708
65760
|
var currency1Addr = currency1.isNative ? ADDRESS_ZERO3 : currency1.wrapped.address;
|
|
65709
|
-
return import_solidity4.keccak256(["bytes"], [
|
|
65761
|
+
return import_solidity4.keccak256(["bytes"], [import_utils.defaultAbiCoder.encode(["address", "address", "uint24", "int24", "address"], [currency0Addr, currency1Addr, fee, tickSpacing, hooks])]);
|
|
65710
65762
|
};
|
|
65711
65763
|
var _proto = Pool4.prototype;
|
|
65712
65764
|
_proto.involvesCurrency = function involvesCurrency(currency) {
|
|
@@ -66296,7 +66348,7 @@ var V4Planner = /* @__PURE__ */ function() {
|
|
|
66296
66348
|
return this;
|
|
66297
66349
|
};
|
|
66298
66350
|
_proto.finalize = function finalize() {
|
|
66299
|
-
return
|
|
66351
|
+
return import_utils.defaultAbiCoder.encode(["bytes", "bytes[]"], [this.actions, this.params]);
|
|
66300
66352
|
};
|
|
66301
66353
|
return V4Planner2;
|
|
66302
66354
|
}();
|
|
@@ -66304,7 +66356,7 @@ function currencyAddress(currency) {
|
|
|
66304
66356
|
return currency.isNative ? ADDRESS_ZERO3 : currency.wrapped.address;
|
|
66305
66357
|
}
|
|
66306
66358
|
function createAction(action, parameters) {
|
|
66307
|
-
var encodedInput =
|
|
66359
|
+
var encodedInput = import_utils.defaultAbiCoder.encode(V4_BASE_ACTIONS_ABI_DEFINITION[action].map(function(v) {
|
|
66308
66360
|
return v.type;
|
|
66309
66361
|
}), parameters);
|
|
66310
66362
|
return {
|
|
@@ -71295,7 +71347,7 @@ var zodiac_roles_abi_default = [
|
|
|
71295
71347
|
|
|
71296
71348
|
// src/integrations/zodiac/roles/zodiac.roles.ts
|
|
71297
71349
|
var zodiacRolesInterface = new exports_ethers.utils.Interface(zodiac_roles_abi_default);
|
|
71298
|
-
var
|
|
71350
|
+
var TransactionWithRoleCalldata = ({
|
|
71299
71351
|
to,
|
|
71300
71352
|
value,
|
|
71301
71353
|
data,
|
|
@@ -71316,7 +71368,7 @@ var execWithRoleTrx = ({
|
|
|
71316
71368
|
args,
|
|
71317
71369
|
rolesModAddress
|
|
71318
71370
|
}) => {
|
|
71319
|
-
const data =
|
|
71371
|
+
const data = TransactionWithRoleCalldata(args);
|
|
71320
71372
|
return {
|
|
71321
71373
|
operation: 0,
|
|
71322
71374
|
to: rolesModAddress,
|
|
@@ -71324,7 +71376,7 @@ var execWithRoleTrx = ({
|
|
|
71324
71376
|
data
|
|
71325
71377
|
};
|
|
71326
71378
|
};
|
|
71327
|
-
var
|
|
71379
|
+
var TransactionWithRoleReturnDataCalldata = ({
|
|
71328
71380
|
to,
|
|
71329
71381
|
value,
|
|
71330
71382
|
data,
|
|
@@ -71345,7 +71397,7 @@ var execWithRoleReturnDataTrx = ({
|
|
|
71345
71397
|
args,
|
|
71346
71398
|
rolesModAddress
|
|
71347
71399
|
}) => {
|
|
71348
|
-
const data =
|
|
71400
|
+
const data = TransactionWithRoleReturnDataCalldata(args);
|
|
71349
71401
|
return {
|
|
71350
71402
|
operation: 0,
|
|
71351
71403
|
to: rolesModAddress,
|
|
@@ -71353,6 +71405,463 @@ var execWithRoleReturnDataTrx = ({
|
|
|
71353
71405
|
data
|
|
71354
71406
|
};
|
|
71355
71407
|
};
|
|
71408
|
+
var TransactionFromModuleCalldata = ({
|
|
71409
|
+
to,
|
|
71410
|
+
value,
|
|
71411
|
+
data,
|
|
71412
|
+
operation
|
|
71413
|
+
}) => {
|
|
71414
|
+
return zodiacRolesInterface.encodeFunctionData("execTransactionFromModule", [
|
|
71415
|
+
to,
|
|
71416
|
+
value,
|
|
71417
|
+
data,
|
|
71418
|
+
operation
|
|
71419
|
+
]);
|
|
71420
|
+
};
|
|
71421
|
+
var execTransactionFromModuleTrx = ({
|
|
71422
|
+
args,
|
|
71423
|
+
rolesModAddress
|
|
71424
|
+
}) => {
|
|
71425
|
+
const data = TransactionFromModuleCalldata(args);
|
|
71426
|
+
return {
|
|
71427
|
+
operation: 0,
|
|
71428
|
+
to: rolesModAddress,
|
|
71429
|
+
value: 0n,
|
|
71430
|
+
data
|
|
71431
|
+
};
|
|
71432
|
+
};
|
|
71433
|
+
// src/integrations/zodiac/delay/zodiac.delay.abi.ts
|
|
71434
|
+
var zodiac_delay_abi_default = [
|
|
71435
|
+
{
|
|
71436
|
+
inputs: [
|
|
71437
|
+
{ internalType: "address", name: "_owner", type: "address" },
|
|
71438
|
+
{ internalType: "address", name: "_avatar", type: "address" },
|
|
71439
|
+
{ internalType: "address", name: "_target", type: "address" },
|
|
71440
|
+
{ internalType: "uint256", name: "_cooldown", type: "uint256" },
|
|
71441
|
+
{ internalType: "uint256", name: "_expiration", type: "uint256" }
|
|
71442
|
+
],
|
|
71443
|
+
stateMutability: "nonpayable",
|
|
71444
|
+
type: "constructor"
|
|
71445
|
+
},
|
|
71446
|
+
{
|
|
71447
|
+
inputs: [{ internalType: "address", name: "module", type: "address" }],
|
|
71448
|
+
name: "AlreadyDisabledModule",
|
|
71449
|
+
type: "error"
|
|
71450
|
+
},
|
|
71451
|
+
{
|
|
71452
|
+
inputs: [{ internalType: "address", name: "module", type: "address" }],
|
|
71453
|
+
name: "AlreadyEnabledModule",
|
|
71454
|
+
type: "error"
|
|
71455
|
+
},
|
|
71456
|
+
{ inputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], name: "HashAlreadyConsumed", type: "error" },
|
|
71457
|
+
{ inputs: [], name: "InvalidInitialization", type: "error" },
|
|
71458
|
+
{ inputs: [{ internalType: "address", name: "module", type: "address" }], name: "InvalidModule", type: "error" },
|
|
71459
|
+
{ inputs: [], name: "InvalidPageSize", type: "error" },
|
|
71460
|
+
{ inputs: [{ internalType: "address", name: "sender", type: "address" }], name: "NotAuthorized", type: "error" },
|
|
71461
|
+
{ inputs: [], name: "NotInitializing", type: "error" },
|
|
71462
|
+
{
|
|
71463
|
+
inputs: [{ internalType: "address", name: "owner", type: "address" }],
|
|
71464
|
+
name: "OwnableInvalidOwner",
|
|
71465
|
+
type: "error"
|
|
71466
|
+
},
|
|
71467
|
+
{
|
|
71468
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
71469
|
+
name: "OwnableUnauthorizedAccount",
|
|
71470
|
+
type: "error"
|
|
71471
|
+
},
|
|
71472
|
+
{ inputs: [], name: "SetupModulesAlreadyCalled", type: "error" },
|
|
71473
|
+
{
|
|
71474
|
+
anonymous: false,
|
|
71475
|
+
inputs: [
|
|
71476
|
+
{ indexed: true, internalType: "address", name: "previousAvatar", type: "address" },
|
|
71477
|
+
{ indexed: true, internalType: "address", name: "newAvatar", type: "address" }
|
|
71478
|
+
],
|
|
71479
|
+
name: "AvatarSet",
|
|
71480
|
+
type: "event"
|
|
71481
|
+
},
|
|
71482
|
+
{
|
|
71483
|
+
anonymous: false,
|
|
71484
|
+
inputs: [
|
|
71485
|
+
{ indexed: true, internalType: "address", name: "initiator", type: "address" },
|
|
71486
|
+
{ indexed: true, internalType: "address", name: "owner", type: "address" },
|
|
71487
|
+
{ indexed: true, internalType: "address", name: "avatar", type: "address" },
|
|
71488
|
+
{ indexed: false, internalType: "address", name: "target", type: "address" }
|
|
71489
|
+
],
|
|
71490
|
+
name: "DelaySetup",
|
|
71491
|
+
type: "event"
|
|
71492
|
+
},
|
|
71493
|
+
{
|
|
71494
|
+
anonymous: false,
|
|
71495
|
+
inputs: [{ indexed: false, internalType: "address", name: "module", type: "address" }],
|
|
71496
|
+
name: "DisabledModule",
|
|
71497
|
+
type: "event"
|
|
71498
|
+
},
|
|
71499
|
+
{
|
|
71500
|
+
anonymous: false,
|
|
71501
|
+
inputs: [{ indexed: false, internalType: "address", name: "module", type: "address" }],
|
|
71502
|
+
name: "EnabledModule",
|
|
71503
|
+
type: "event"
|
|
71504
|
+
},
|
|
71505
|
+
{
|
|
71506
|
+
anonymous: false,
|
|
71507
|
+
inputs: [{ indexed: true, internalType: "address", name: "module", type: "address" }],
|
|
71508
|
+
name: "ExecutionFromModuleFailure",
|
|
71509
|
+
type: "event"
|
|
71510
|
+
},
|
|
71511
|
+
{
|
|
71512
|
+
anonymous: false,
|
|
71513
|
+
inputs: [{ indexed: true, internalType: "address", name: "module", type: "address" }],
|
|
71514
|
+
name: "ExecutionFromModuleSuccess",
|
|
71515
|
+
type: "event"
|
|
71516
|
+
},
|
|
71517
|
+
{
|
|
71518
|
+
anonymous: false,
|
|
71519
|
+
inputs: [{ indexed: false, internalType: "bytes32", name: "", type: "bytes32" }],
|
|
71520
|
+
name: "HashExecuted",
|
|
71521
|
+
type: "event"
|
|
71522
|
+
},
|
|
71523
|
+
{
|
|
71524
|
+
anonymous: false,
|
|
71525
|
+
inputs: [{ indexed: false, internalType: "bytes32", name: "", type: "bytes32" }],
|
|
71526
|
+
name: "HashInvalidated",
|
|
71527
|
+
type: "event"
|
|
71528
|
+
},
|
|
71529
|
+
{
|
|
71530
|
+
anonymous: false,
|
|
71531
|
+
inputs: [{ indexed: false, internalType: "uint64", name: "version", type: "uint64" }],
|
|
71532
|
+
name: "Initialized",
|
|
71533
|
+
type: "event"
|
|
71534
|
+
},
|
|
71535
|
+
{
|
|
71536
|
+
anonymous: false,
|
|
71537
|
+
inputs: [
|
|
71538
|
+
{ indexed: true, internalType: "address", name: "previousOwner", type: "address" },
|
|
71539
|
+
{ indexed: true, internalType: "address", name: "newOwner", type: "address" }
|
|
71540
|
+
],
|
|
71541
|
+
name: "OwnershipTransferred",
|
|
71542
|
+
type: "event"
|
|
71543
|
+
},
|
|
71544
|
+
{
|
|
71545
|
+
anonymous: false,
|
|
71546
|
+
inputs: [
|
|
71547
|
+
{ indexed: true, internalType: "address", name: "previousTarget", type: "address" },
|
|
71548
|
+
{ indexed: true, internalType: "address", name: "newTarget", type: "address" }
|
|
71549
|
+
],
|
|
71550
|
+
name: "TargetSet",
|
|
71551
|
+
type: "event"
|
|
71552
|
+
},
|
|
71553
|
+
{
|
|
71554
|
+
anonymous: false,
|
|
71555
|
+
inputs: [
|
|
71556
|
+
{ indexed: true, internalType: "uint256", name: "queueNonce", type: "uint256" },
|
|
71557
|
+
{ indexed: true, internalType: "bytes32", name: "txHash", type: "bytes32" },
|
|
71558
|
+
{ indexed: false, internalType: "address", name: "to", type: "address" },
|
|
71559
|
+
{ indexed: false, internalType: "uint256", name: "value", type: "uint256" },
|
|
71560
|
+
{ indexed: false, internalType: "bytes", name: "data", type: "bytes" },
|
|
71561
|
+
{ indexed: false, internalType: "enum Enum.Operation", name: "operation", type: "uint8" }
|
|
71562
|
+
],
|
|
71563
|
+
name: "TransactionAdded",
|
|
71564
|
+
type: "event"
|
|
71565
|
+
},
|
|
71566
|
+
{
|
|
71567
|
+
anonymous: false,
|
|
71568
|
+
inputs: [{ indexed: false, internalType: "uint256", name: "cooldown", type: "uint256" }],
|
|
71569
|
+
name: "TxCooldownSet",
|
|
71570
|
+
type: "event"
|
|
71571
|
+
},
|
|
71572
|
+
{
|
|
71573
|
+
anonymous: false,
|
|
71574
|
+
inputs: [{ indexed: false, internalType: "uint256", name: "expiration", type: "uint256" }],
|
|
71575
|
+
name: "TxExpirationSet",
|
|
71576
|
+
type: "event"
|
|
71577
|
+
},
|
|
71578
|
+
{
|
|
71579
|
+
anonymous: false,
|
|
71580
|
+
inputs: [{ indexed: false, internalType: "uint256", name: "nonce", type: "uint256" }],
|
|
71581
|
+
name: "TxNonceSet",
|
|
71582
|
+
type: "event"
|
|
71583
|
+
},
|
|
71584
|
+
{
|
|
71585
|
+
inputs: [],
|
|
71586
|
+
name: "avatar",
|
|
71587
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
71588
|
+
stateMutability: "view",
|
|
71589
|
+
type: "function"
|
|
71590
|
+
},
|
|
71591
|
+
{
|
|
71592
|
+
inputs: [
|
|
71593
|
+
{ internalType: "address", name: "", type: "address" },
|
|
71594
|
+
{ internalType: "bytes32", name: "", type: "bytes32" }
|
|
71595
|
+
],
|
|
71596
|
+
name: "consumed",
|
|
71597
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
71598
|
+
stateMutability: "view",
|
|
71599
|
+
type: "function"
|
|
71600
|
+
},
|
|
71601
|
+
{
|
|
71602
|
+
inputs: [
|
|
71603
|
+
{ internalType: "address", name: "prevModule", type: "address" },
|
|
71604
|
+
{ internalType: "address", name: "module", type: "address" }
|
|
71605
|
+
],
|
|
71606
|
+
name: "disableModule",
|
|
71607
|
+
outputs: [],
|
|
71608
|
+
stateMutability: "nonpayable",
|
|
71609
|
+
type: "function"
|
|
71610
|
+
},
|
|
71611
|
+
{
|
|
71612
|
+
inputs: [{ internalType: "address", name: "module", type: "address" }],
|
|
71613
|
+
name: "enableModule",
|
|
71614
|
+
outputs: [],
|
|
71615
|
+
stateMutability: "nonpayable",
|
|
71616
|
+
type: "function"
|
|
71617
|
+
},
|
|
71618
|
+
{
|
|
71619
|
+
inputs: [
|
|
71620
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
71621
|
+
{ internalType: "uint256", name: "value", type: "uint256" },
|
|
71622
|
+
{ internalType: "bytes", name: "data", type: "bytes" },
|
|
71623
|
+
{ internalType: "enum Enum.Operation", name: "operation", type: "uint8" }
|
|
71624
|
+
],
|
|
71625
|
+
name: "execTransactionFromModule",
|
|
71626
|
+
outputs: [{ internalType: "bool", name: "success", type: "bool" }],
|
|
71627
|
+
stateMutability: "nonpayable",
|
|
71628
|
+
type: "function"
|
|
71629
|
+
},
|
|
71630
|
+
{
|
|
71631
|
+
inputs: [
|
|
71632
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
71633
|
+
{ internalType: "uint256", name: "value", type: "uint256" },
|
|
71634
|
+
{ internalType: "bytes", name: "data", type: "bytes" },
|
|
71635
|
+
{ internalType: "enum Enum.Operation", name: "operation", type: "uint8" }
|
|
71636
|
+
],
|
|
71637
|
+
name: "execTransactionFromModuleReturnData",
|
|
71638
|
+
outputs: [
|
|
71639
|
+
{ internalType: "bool", name: "success", type: "bool" },
|
|
71640
|
+
{ internalType: "bytes", name: "returnData", type: "bytes" }
|
|
71641
|
+
],
|
|
71642
|
+
stateMutability: "nonpayable",
|
|
71643
|
+
type: "function"
|
|
71644
|
+
},
|
|
71645
|
+
{
|
|
71646
|
+
inputs: [
|
|
71647
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
71648
|
+
{ internalType: "uint256", name: "value", type: "uint256" },
|
|
71649
|
+
{ internalType: "bytes", name: "data", type: "bytes" },
|
|
71650
|
+
{ internalType: "enum Enum.Operation", name: "operation", type: "uint8" }
|
|
71651
|
+
],
|
|
71652
|
+
name: "executeNextTx",
|
|
71653
|
+
outputs: [],
|
|
71654
|
+
stateMutability: "nonpayable",
|
|
71655
|
+
type: "function"
|
|
71656
|
+
},
|
|
71657
|
+
{
|
|
71658
|
+
inputs: [
|
|
71659
|
+
{ internalType: "address", name: "start", type: "address" },
|
|
71660
|
+
{ internalType: "uint256", name: "pageSize", type: "uint256" }
|
|
71661
|
+
],
|
|
71662
|
+
name: "getModulesPaginated",
|
|
71663
|
+
outputs: [
|
|
71664
|
+
{ internalType: "address[]", name: "array", type: "address[]" },
|
|
71665
|
+
{ internalType: "address", name: "next", type: "address" }
|
|
71666
|
+
],
|
|
71667
|
+
stateMutability: "view",
|
|
71668
|
+
type: "function"
|
|
71669
|
+
},
|
|
71670
|
+
{
|
|
71671
|
+
inputs: [
|
|
71672
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
71673
|
+
{ internalType: "uint256", name: "value", type: "uint256" },
|
|
71674
|
+
{ internalType: "bytes", name: "data", type: "bytes" },
|
|
71675
|
+
{ internalType: "enum Enum.Operation", name: "operation", type: "uint8" }
|
|
71676
|
+
],
|
|
71677
|
+
name: "getTransactionHash",
|
|
71678
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
71679
|
+
stateMutability: "pure",
|
|
71680
|
+
type: "function"
|
|
71681
|
+
},
|
|
71682
|
+
{
|
|
71683
|
+
inputs: [{ internalType: "uint256", name: "_nonce", type: "uint256" }],
|
|
71684
|
+
name: "getTxCreatedAt",
|
|
71685
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
71686
|
+
stateMutability: "view",
|
|
71687
|
+
type: "function"
|
|
71688
|
+
},
|
|
71689
|
+
{
|
|
71690
|
+
inputs: [{ internalType: "uint256", name: "_nonce", type: "uint256" }],
|
|
71691
|
+
name: "getTxHash",
|
|
71692
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
71693
|
+
stateMutability: "view",
|
|
71694
|
+
type: "function"
|
|
71695
|
+
},
|
|
71696
|
+
{
|
|
71697
|
+
inputs: [{ internalType: "bytes32", name: "hash", type: "bytes32" }],
|
|
71698
|
+
name: "invalidate",
|
|
71699
|
+
outputs: [],
|
|
71700
|
+
stateMutability: "nonpayable",
|
|
71701
|
+
type: "function"
|
|
71702
|
+
},
|
|
71703
|
+
{
|
|
71704
|
+
inputs: [{ internalType: "address", name: "_module", type: "address" }],
|
|
71705
|
+
name: "isModuleEnabled",
|
|
71706
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
71707
|
+
stateMutability: "view",
|
|
71708
|
+
type: "function"
|
|
71709
|
+
},
|
|
71710
|
+
{
|
|
71711
|
+
inputs: [
|
|
71712
|
+
{ internalType: "bytes", name: "data", type: "bytes" },
|
|
71713
|
+
{ internalType: "bytes32", name: "salt", type: "bytes32" }
|
|
71714
|
+
],
|
|
71715
|
+
name: "moduleTxHash",
|
|
71716
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
71717
|
+
stateMutability: "view",
|
|
71718
|
+
type: "function"
|
|
71719
|
+
},
|
|
71720
|
+
{
|
|
71721
|
+
inputs: [],
|
|
71722
|
+
name: "owner",
|
|
71723
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
71724
|
+
stateMutability: "view",
|
|
71725
|
+
type: "function"
|
|
71726
|
+
},
|
|
71727
|
+
{
|
|
71728
|
+
inputs: [],
|
|
71729
|
+
name: "queueNonce",
|
|
71730
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
71731
|
+
stateMutability: "view",
|
|
71732
|
+
type: "function"
|
|
71733
|
+
},
|
|
71734
|
+
{ inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
71735
|
+
{
|
|
71736
|
+
inputs: [{ internalType: "address", name: "_avatar", type: "address" }],
|
|
71737
|
+
name: "setAvatar",
|
|
71738
|
+
outputs: [],
|
|
71739
|
+
stateMutability: "nonpayable",
|
|
71740
|
+
type: "function"
|
|
71741
|
+
},
|
|
71742
|
+
{
|
|
71743
|
+
inputs: [{ internalType: "address", name: "_target", type: "address" }],
|
|
71744
|
+
name: "setTarget",
|
|
71745
|
+
outputs: [],
|
|
71746
|
+
stateMutability: "nonpayable",
|
|
71747
|
+
type: "function"
|
|
71748
|
+
},
|
|
71749
|
+
{
|
|
71750
|
+
inputs: [{ internalType: "uint256", name: "_txCooldown", type: "uint256" }],
|
|
71751
|
+
name: "setTxCooldown",
|
|
71752
|
+
outputs: [],
|
|
71753
|
+
stateMutability: "nonpayable",
|
|
71754
|
+
type: "function"
|
|
71755
|
+
},
|
|
71756
|
+
{
|
|
71757
|
+
inputs: [{ internalType: "uint256", name: "_txExpiration", type: "uint256" }],
|
|
71758
|
+
name: "setTxExpiration",
|
|
71759
|
+
outputs: [],
|
|
71760
|
+
stateMutability: "nonpayable",
|
|
71761
|
+
type: "function"
|
|
71762
|
+
},
|
|
71763
|
+
{
|
|
71764
|
+
inputs: [{ internalType: "uint256", name: "_txNonce", type: "uint256" }],
|
|
71765
|
+
name: "setTxNonce",
|
|
71766
|
+
outputs: [],
|
|
71767
|
+
stateMutability: "nonpayable",
|
|
71768
|
+
type: "function"
|
|
71769
|
+
},
|
|
71770
|
+
{
|
|
71771
|
+
inputs: [{ internalType: "bytes", name: "initParams", type: "bytes" }],
|
|
71772
|
+
name: "setUp",
|
|
71773
|
+
outputs: [],
|
|
71774
|
+
stateMutability: "nonpayable",
|
|
71775
|
+
type: "function"
|
|
71776
|
+
},
|
|
71777
|
+
{ inputs: [], name: "skipExpired", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
71778
|
+
{
|
|
71779
|
+
inputs: [],
|
|
71780
|
+
name: "target",
|
|
71781
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
71782
|
+
stateMutability: "view",
|
|
71783
|
+
type: "function"
|
|
71784
|
+
},
|
|
71785
|
+
{
|
|
71786
|
+
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
71787
|
+
name: "transferOwnership",
|
|
71788
|
+
outputs: [],
|
|
71789
|
+
stateMutability: "nonpayable",
|
|
71790
|
+
type: "function"
|
|
71791
|
+
},
|
|
71792
|
+
{
|
|
71793
|
+
inputs: [],
|
|
71794
|
+
name: "txCooldown",
|
|
71795
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
71796
|
+
stateMutability: "view",
|
|
71797
|
+
type: "function"
|
|
71798
|
+
},
|
|
71799
|
+
{
|
|
71800
|
+
inputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
71801
|
+
name: "txCreatedAt",
|
|
71802
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
71803
|
+
stateMutability: "view",
|
|
71804
|
+
type: "function"
|
|
71805
|
+
},
|
|
71806
|
+
{
|
|
71807
|
+
inputs: [],
|
|
71808
|
+
name: "txExpiration",
|
|
71809
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
71810
|
+
stateMutability: "view",
|
|
71811
|
+
type: "function"
|
|
71812
|
+
},
|
|
71813
|
+
{
|
|
71814
|
+
inputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
71815
|
+
name: "txHash",
|
|
71816
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
71817
|
+
stateMutability: "view",
|
|
71818
|
+
type: "function"
|
|
71819
|
+
},
|
|
71820
|
+
{
|
|
71821
|
+
inputs: [],
|
|
71822
|
+
name: "txNonce",
|
|
71823
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
71824
|
+
stateMutability: "view",
|
|
71825
|
+
type: "function"
|
|
71826
|
+
}
|
|
71827
|
+
];
|
|
71828
|
+
// src/integrations/zodiac/delay/zodiac.delay.ts
|
|
71829
|
+
var zodiacDelayInterface = new exports_ethers.utils.Interface(zodiac_delay_abi_default);
|
|
71830
|
+
var DelayedTransactionCalldata = ({ to, value, data, operation }) => {
|
|
71831
|
+
return zodiacDelayInterface.encodeFunctionData("execTransactionFromModule", [
|
|
71832
|
+
to,
|
|
71833
|
+
value,
|
|
71834
|
+
data,
|
|
71835
|
+
operation
|
|
71836
|
+
]);
|
|
71837
|
+
};
|
|
71838
|
+
var execTransactionWithDelay = ({
|
|
71839
|
+
args,
|
|
71840
|
+
delayModuleAddress
|
|
71841
|
+
}) => {
|
|
71842
|
+
const data = DelayedTransactionCalldata(args);
|
|
71843
|
+
return {
|
|
71844
|
+
operation: 0,
|
|
71845
|
+
to: delayModuleAddress,
|
|
71846
|
+
value: 0n,
|
|
71847
|
+
data
|
|
71848
|
+
};
|
|
71849
|
+
};
|
|
71850
|
+
var NextTxCalldata = ({ to, value, data, operation }) => {
|
|
71851
|
+
return zodiacDelayInterface.encodeFunctionData("executeNextTx", [to, value, data, operation]);
|
|
71852
|
+
};
|
|
71853
|
+
var executeNextTx = ({
|
|
71854
|
+
args,
|
|
71855
|
+
delayModuleAddress
|
|
71856
|
+
}) => {
|
|
71857
|
+
const data = NextTxCalldata(args);
|
|
71858
|
+
return {
|
|
71859
|
+
operation: 0,
|
|
71860
|
+
to: delayModuleAddress,
|
|
71861
|
+
value: 0n,
|
|
71862
|
+
data
|
|
71863
|
+
};
|
|
71864
|
+
};
|
|
71356
71865
|
// src/integrations/permit2/permit2.abi.ts
|
|
71357
71866
|
var permit2_abi_default = [
|
|
71358
71867
|
{
|
|
@@ -74477,7 +74986,7 @@ var silo_abi_default = [
|
|
|
74477
74986
|
}
|
|
74478
74987
|
];
|
|
74479
74988
|
// src/integrations/lagoonV1/lagoon.v1.ts
|
|
74480
|
-
var
|
|
74989
|
+
var import_utils2 = __toESM(require_utils6(), 1);
|
|
74481
74990
|
var factoryInterface = new exports_ethers.utils.Interface(factory_abi_default);
|
|
74482
74991
|
var vaultInterface = new exports_ethers.utils.Interface(vault_abi_default);
|
|
74483
74992
|
var CreateVaultProxyCalldata = ({
|
|
@@ -74574,7 +75083,7 @@ var calculateDeterministicVaultAddress = ({
|
|
|
74574
75083
|
chainId
|
|
74575
75084
|
}) => {
|
|
74576
75085
|
const beaconProxyBytecode = chainId === 5000 ? MANTLE_BEACON_PROXY_BYTECODE : DEFAULT_BEACON_PROXY_BYTECODE;
|
|
74577
|
-
const initEncoded =
|
|
75086
|
+
const initEncoded = import_utils2.defaultAbiCoder.encode(["tuple(address,string,string,address,address,address,address,address,uint16,uint16,bool,uint256)"], [
|
|
74578
75087
|
[
|
|
74579
75088
|
initStruct.underlying,
|
|
74580
75089
|
initStruct.name,
|
|
@@ -74594,14 +75103,14 @@ var calculateDeterministicVaultAddress = ({
|
|
|
74594
75103
|
"function initialize(bytes data, address feeRegistry, address wrappedNativeToken)"
|
|
74595
75104
|
]);
|
|
74596
75105
|
const initCall = iface.encodeFunctionData("initialize", [initEncoded, registry, wrappedNativeToken]);
|
|
74597
|
-
const constructorEncoded =
|
|
75106
|
+
const constructorEncoded = import_utils2.defaultAbiCoder.encode(DEFAULT_BEACON_PROXY_CONSTRUCTOR_TYPES, [
|
|
74598
75107
|
factoryAddress,
|
|
74599
75108
|
initCall
|
|
74600
75109
|
]);
|
|
74601
75110
|
const initCode = beaconProxyBytecode + constructorEncoded.slice(2);
|
|
74602
|
-
const create2Inputs =
|
|
74603
|
-
const computedAddress = `0x${
|
|
74604
|
-
return
|
|
75111
|
+
const create2Inputs = import_utils2.solidityPack(["bytes1", "address", "bytes32", "bytes32"], ["0xff", factoryAddress, initStruct.salt, import_utils2.keccak256(initCode)]);
|
|
75112
|
+
const computedAddress = `0x${import_utils2.keccak256(create2Inputs).slice(-40)}`;
|
|
75113
|
+
return import_utils2.getAddress(computedAddress);
|
|
74605
75114
|
};
|
|
74606
75115
|
// src/integrations/lendleV1/lendle.pool.abi.ts
|
|
74607
75116
|
var lendle_pool_abi_default = [
|
|
@@ -76245,6 +76754,757 @@ var repayToLendleTrx = ({ args, poolAddress }) => {
|
|
|
76245
76754
|
data
|
|
76246
76755
|
};
|
|
76247
76756
|
};
|
|
76757
|
+
// src/integrations/morphoBlue/morpho.blue.abi.ts
|
|
76758
|
+
var morpho_blue_abi_default = [
|
|
76759
|
+
{
|
|
76760
|
+
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
76761
|
+
stateMutability: "nonpayable",
|
|
76762
|
+
type: "constructor"
|
|
76763
|
+
},
|
|
76764
|
+
{
|
|
76765
|
+
anonymous: false,
|
|
76766
|
+
inputs: [
|
|
76767
|
+
{ indexed: true, internalType: "Id", name: "id", type: "bytes32" },
|
|
76768
|
+
{ indexed: false, internalType: "uint256", name: "prevBorrowRate", type: "uint256" },
|
|
76769
|
+
{ indexed: false, internalType: "uint256", name: "interest", type: "uint256" },
|
|
76770
|
+
{ indexed: false, internalType: "uint256", name: "feeShares", type: "uint256" }
|
|
76771
|
+
],
|
|
76772
|
+
name: "AccrueInterest",
|
|
76773
|
+
type: "event"
|
|
76774
|
+
},
|
|
76775
|
+
{
|
|
76776
|
+
anonymous: false,
|
|
76777
|
+
inputs: [
|
|
76778
|
+
{ indexed: true, internalType: "Id", name: "id", type: "bytes32" },
|
|
76779
|
+
{ indexed: false, internalType: "address", name: "caller", type: "address" },
|
|
76780
|
+
{ indexed: true, internalType: "address", name: "onBehalf", type: "address" },
|
|
76781
|
+
{ indexed: true, internalType: "address", name: "receiver", type: "address" },
|
|
76782
|
+
{ indexed: false, internalType: "uint256", name: "assets", type: "uint256" },
|
|
76783
|
+
{ indexed: false, internalType: "uint256", name: "shares", type: "uint256" }
|
|
76784
|
+
],
|
|
76785
|
+
name: "Borrow",
|
|
76786
|
+
type: "event"
|
|
76787
|
+
},
|
|
76788
|
+
{
|
|
76789
|
+
anonymous: false,
|
|
76790
|
+
inputs: [
|
|
76791
|
+
{ indexed: true, internalType: "Id", name: "id", type: "bytes32" },
|
|
76792
|
+
{
|
|
76793
|
+
components: [
|
|
76794
|
+
{ internalType: "address", name: "loanToken", type: "address" },
|
|
76795
|
+
{ internalType: "address", name: "collateralToken", type: "address" },
|
|
76796
|
+
{ internalType: "address", name: "oracle", type: "address" },
|
|
76797
|
+
{ internalType: "address", name: "irm", type: "address" },
|
|
76798
|
+
{ internalType: "uint256", name: "lltv", type: "uint256" }
|
|
76799
|
+
],
|
|
76800
|
+
indexed: false,
|
|
76801
|
+
internalType: "struct MarketParams",
|
|
76802
|
+
name: "marketParams",
|
|
76803
|
+
type: "tuple"
|
|
76804
|
+
}
|
|
76805
|
+
],
|
|
76806
|
+
name: "CreateMarket",
|
|
76807
|
+
type: "event"
|
|
76808
|
+
},
|
|
76809
|
+
{
|
|
76810
|
+
anonymous: false,
|
|
76811
|
+
inputs: [{ indexed: true, internalType: "address", name: "irm", type: "address" }],
|
|
76812
|
+
name: "EnableIrm",
|
|
76813
|
+
type: "event"
|
|
76814
|
+
},
|
|
76815
|
+
{
|
|
76816
|
+
anonymous: false,
|
|
76817
|
+
inputs: [{ indexed: false, internalType: "uint256", name: "lltv", type: "uint256" }],
|
|
76818
|
+
name: "EnableLltv",
|
|
76819
|
+
type: "event"
|
|
76820
|
+
},
|
|
76821
|
+
{
|
|
76822
|
+
anonymous: false,
|
|
76823
|
+
inputs: [
|
|
76824
|
+
{ indexed: true, internalType: "address", name: "caller", type: "address" },
|
|
76825
|
+
{ indexed: true, internalType: "address", name: "token", type: "address" },
|
|
76826
|
+
{ indexed: false, internalType: "uint256", name: "assets", type: "uint256" }
|
|
76827
|
+
],
|
|
76828
|
+
name: "FlashLoan",
|
|
76829
|
+
type: "event"
|
|
76830
|
+
},
|
|
76831
|
+
{
|
|
76832
|
+
anonymous: false,
|
|
76833
|
+
inputs: [
|
|
76834
|
+
{ indexed: true, internalType: "address", name: "caller", type: "address" },
|
|
76835
|
+
{ indexed: true, internalType: "address", name: "authorizer", type: "address" },
|
|
76836
|
+
{ indexed: false, internalType: "uint256", name: "usedNonce", type: "uint256" }
|
|
76837
|
+
],
|
|
76838
|
+
name: "IncrementNonce",
|
|
76839
|
+
type: "event"
|
|
76840
|
+
},
|
|
76841
|
+
{
|
|
76842
|
+
anonymous: false,
|
|
76843
|
+
inputs: [
|
|
76844
|
+
{ indexed: true, internalType: "Id", name: "id", type: "bytes32" },
|
|
76845
|
+
{ indexed: true, internalType: "address", name: "caller", type: "address" },
|
|
76846
|
+
{ indexed: true, internalType: "address", name: "borrower", type: "address" },
|
|
76847
|
+
{ indexed: false, internalType: "uint256", name: "repaidAssets", type: "uint256" },
|
|
76848
|
+
{ indexed: false, internalType: "uint256", name: "repaidShares", type: "uint256" },
|
|
76849
|
+
{ indexed: false, internalType: "uint256", name: "seizedAssets", type: "uint256" },
|
|
76850
|
+
{ indexed: false, internalType: "uint256", name: "badDebtAssets", type: "uint256" },
|
|
76851
|
+
{ indexed: false, internalType: "uint256", name: "badDebtShares", type: "uint256" }
|
|
76852
|
+
],
|
|
76853
|
+
name: "Liquidate",
|
|
76854
|
+
type: "event"
|
|
76855
|
+
},
|
|
76856
|
+
{
|
|
76857
|
+
anonymous: false,
|
|
76858
|
+
inputs: [
|
|
76859
|
+
{ indexed: true, internalType: "Id", name: "id", type: "bytes32" },
|
|
76860
|
+
{ indexed: true, internalType: "address", name: "caller", type: "address" },
|
|
76861
|
+
{ indexed: true, internalType: "address", name: "onBehalf", type: "address" },
|
|
76862
|
+
{ indexed: false, internalType: "uint256", name: "assets", type: "uint256" },
|
|
76863
|
+
{ indexed: false, internalType: "uint256", name: "shares", type: "uint256" }
|
|
76864
|
+
],
|
|
76865
|
+
name: "Repay",
|
|
76866
|
+
type: "event"
|
|
76867
|
+
},
|
|
76868
|
+
{
|
|
76869
|
+
anonymous: false,
|
|
76870
|
+
inputs: [
|
|
76871
|
+
{ indexed: true, internalType: "address", name: "caller", type: "address" },
|
|
76872
|
+
{ indexed: true, internalType: "address", name: "authorizer", type: "address" },
|
|
76873
|
+
{ indexed: true, internalType: "address", name: "authorized", type: "address" },
|
|
76874
|
+
{ indexed: false, internalType: "bool", name: "newIsAuthorized", type: "bool" }
|
|
76875
|
+
],
|
|
76876
|
+
name: "SetAuthorization",
|
|
76877
|
+
type: "event"
|
|
76878
|
+
},
|
|
76879
|
+
{
|
|
76880
|
+
anonymous: false,
|
|
76881
|
+
inputs: [
|
|
76882
|
+
{ indexed: true, internalType: "Id", name: "id", type: "bytes32" },
|
|
76883
|
+
{ indexed: false, internalType: "uint256", name: "newFee", type: "uint256" }
|
|
76884
|
+
],
|
|
76885
|
+
name: "SetFee",
|
|
76886
|
+
type: "event"
|
|
76887
|
+
},
|
|
76888
|
+
{
|
|
76889
|
+
anonymous: false,
|
|
76890
|
+
inputs: [{ indexed: true, internalType: "address", name: "newFeeRecipient", type: "address" }],
|
|
76891
|
+
name: "SetFeeRecipient",
|
|
76892
|
+
type: "event"
|
|
76893
|
+
},
|
|
76894
|
+
{
|
|
76895
|
+
anonymous: false,
|
|
76896
|
+
inputs: [{ indexed: true, internalType: "address", name: "newOwner", type: "address" }],
|
|
76897
|
+
name: "SetOwner",
|
|
76898
|
+
type: "event"
|
|
76899
|
+
},
|
|
76900
|
+
{
|
|
76901
|
+
anonymous: false,
|
|
76902
|
+
inputs: [
|
|
76903
|
+
{ indexed: true, internalType: "Id", name: "id", type: "bytes32" },
|
|
76904
|
+
{ indexed: true, internalType: "address", name: "caller", type: "address" },
|
|
76905
|
+
{ indexed: true, internalType: "address", name: "onBehalf", type: "address" },
|
|
76906
|
+
{ indexed: false, internalType: "uint256", name: "assets", type: "uint256" },
|
|
76907
|
+
{ indexed: false, internalType: "uint256", name: "shares", type: "uint256" }
|
|
76908
|
+
],
|
|
76909
|
+
name: "Supply",
|
|
76910
|
+
type: "event"
|
|
76911
|
+
},
|
|
76912
|
+
{
|
|
76913
|
+
anonymous: false,
|
|
76914
|
+
inputs: [
|
|
76915
|
+
{ indexed: true, internalType: "Id", name: "id", type: "bytes32" },
|
|
76916
|
+
{ indexed: true, internalType: "address", name: "caller", type: "address" },
|
|
76917
|
+
{ indexed: true, internalType: "address", name: "onBehalf", type: "address" },
|
|
76918
|
+
{ indexed: false, internalType: "uint256", name: "assets", type: "uint256" }
|
|
76919
|
+
],
|
|
76920
|
+
name: "SupplyCollateral",
|
|
76921
|
+
type: "event"
|
|
76922
|
+
},
|
|
76923
|
+
{
|
|
76924
|
+
anonymous: false,
|
|
76925
|
+
inputs: [
|
|
76926
|
+
{ indexed: true, internalType: "Id", name: "id", type: "bytes32" },
|
|
76927
|
+
{ indexed: false, internalType: "address", name: "caller", type: "address" },
|
|
76928
|
+
{ indexed: true, internalType: "address", name: "onBehalf", type: "address" },
|
|
76929
|
+
{ indexed: true, internalType: "address", name: "receiver", type: "address" },
|
|
76930
|
+
{ indexed: false, internalType: "uint256", name: "assets", type: "uint256" },
|
|
76931
|
+
{ indexed: false, internalType: "uint256", name: "shares", type: "uint256" }
|
|
76932
|
+
],
|
|
76933
|
+
name: "Withdraw",
|
|
76934
|
+
type: "event"
|
|
76935
|
+
},
|
|
76936
|
+
{
|
|
76937
|
+
anonymous: false,
|
|
76938
|
+
inputs: [
|
|
76939
|
+
{ indexed: true, internalType: "Id", name: "id", type: "bytes32" },
|
|
76940
|
+
{ indexed: false, internalType: "address", name: "caller", type: "address" },
|
|
76941
|
+
{ indexed: true, internalType: "address", name: "onBehalf", type: "address" },
|
|
76942
|
+
{ indexed: true, internalType: "address", name: "receiver", type: "address" },
|
|
76943
|
+
{ indexed: false, internalType: "uint256", name: "assets", type: "uint256" }
|
|
76944
|
+
],
|
|
76945
|
+
name: "WithdrawCollateral",
|
|
76946
|
+
type: "event"
|
|
76947
|
+
},
|
|
76948
|
+
{
|
|
76949
|
+
inputs: [],
|
|
76950
|
+
name: "DOMAIN_SEPARATOR",
|
|
76951
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
76952
|
+
stateMutability: "view",
|
|
76953
|
+
type: "function"
|
|
76954
|
+
},
|
|
76955
|
+
{
|
|
76956
|
+
inputs: [
|
|
76957
|
+
{
|
|
76958
|
+
components: [
|
|
76959
|
+
{ internalType: "address", name: "loanToken", type: "address" },
|
|
76960
|
+
{ internalType: "address", name: "collateralToken", type: "address" },
|
|
76961
|
+
{ internalType: "address", name: "oracle", type: "address" },
|
|
76962
|
+
{ internalType: "address", name: "irm", type: "address" },
|
|
76963
|
+
{ internalType: "uint256", name: "lltv", type: "uint256" }
|
|
76964
|
+
],
|
|
76965
|
+
internalType: "struct MarketParams",
|
|
76966
|
+
name: "marketParams",
|
|
76967
|
+
type: "tuple"
|
|
76968
|
+
}
|
|
76969
|
+
],
|
|
76970
|
+
name: "accrueInterest",
|
|
76971
|
+
outputs: [],
|
|
76972
|
+
stateMutability: "nonpayable",
|
|
76973
|
+
type: "function"
|
|
76974
|
+
},
|
|
76975
|
+
{
|
|
76976
|
+
inputs: [
|
|
76977
|
+
{
|
|
76978
|
+
components: [
|
|
76979
|
+
{ internalType: "address", name: "loanToken", type: "address" },
|
|
76980
|
+
{ internalType: "address", name: "collateralToken", type: "address" },
|
|
76981
|
+
{ internalType: "address", name: "oracle", type: "address" },
|
|
76982
|
+
{ internalType: "address", name: "irm", type: "address" },
|
|
76983
|
+
{ internalType: "uint256", name: "lltv", type: "uint256" }
|
|
76984
|
+
],
|
|
76985
|
+
internalType: "struct MarketParams",
|
|
76986
|
+
name: "marketParams",
|
|
76987
|
+
type: "tuple"
|
|
76988
|
+
},
|
|
76989
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
76990
|
+
{ internalType: "uint256", name: "shares", type: "uint256" },
|
|
76991
|
+
{ internalType: "address", name: "onBehalf", type: "address" },
|
|
76992
|
+
{ internalType: "address", name: "receiver", type: "address" }
|
|
76993
|
+
],
|
|
76994
|
+
name: "borrow",
|
|
76995
|
+
outputs: [
|
|
76996
|
+
{ internalType: "uint256", name: "", type: "uint256" },
|
|
76997
|
+
{ internalType: "uint256", name: "", type: "uint256" }
|
|
76998
|
+
],
|
|
76999
|
+
stateMutability: "nonpayable",
|
|
77000
|
+
type: "function"
|
|
77001
|
+
},
|
|
77002
|
+
{
|
|
77003
|
+
inputs: [
|
|
77004
|
+
{
|
|
77005
|
+
components: [
|
|
77006
|
+
{ internalType: "address", name: "loanToken", type: "address" },
|
|
77007
|
+
{ internalType: "address", name: "collateralToken", type: "address" },
|
|
77008
|
+
{ internalType: "address", name: "oracle", type: "address" },
|
|
77009
|
+
{ internalType: "address", name: "irm", type: "address" },
|
|
77010
|
+
{ internalType: "uint256", name: "lltv", type: "uint256" }
|
|
77011
|
+
],
|
|
77012
|
+
internalType: "struct MarketParams",
|
|
77013
|
+
name: "marketParams",
|
|
77014
|
+
type: "tuple"
|
|
77015
|
+
}
|
|
77016
|
+
],
|
|
77017
|
+
name: "createMarket",
|
|
77018
|
+
outputs: [],
|
|
77019
|
+
stateMutability: "nonpayable",
|
|
77020
|
+
type: "function"
|
|
77021
|
+
},
|
|
77022
|
+
{
|
|
77023
|
+
inputs: [{ internalType: "address", name: "irm", type: "address" }],
|
|
77024
|
+
name: "enableIrm",
|
|
77025
|
+
outputs: [],
|
|
77026
|
+
stateMutability: "nonpayable",
|
|
77027
|
+
type: "function"
|
|
77028
|
+
},
|
|
77029
|
+
{
|
|
77030
|
+
inputs: [{ internalType: "uint256", name: "lltv", type: "uint256" }],
|
|
77031
|
+
name: "enableLltv",
|
|
77032
|
+
outputs: [],
|
|
77033
|
+
stateMutability: "nonpayable",
|
|
77034
|
+
type: "function"
|
|
77035
|
+
},
|
|
77036
|
+
{
|
|
77037
|
+
inputs: [{ internalType: "bytes32[]", name: "slots", type: "bytes32[]" }],
|
|
77038
|
+
name: "extSloads",
|
|
77039
|
+
outputs: [{ internalType: "bytes32[]", name: "res", type: "bytes32[]" }],
|
|
77040
|
+
stateMutability: "view",
|
|
77041
|
+
type: "function"
|
|
77042
|
+
},
|
|
77043
|
+
{
|
|
77044
|
+
inputs: [],
|
|
77045
|
+
name: "feeRecipient",
|
|
77046
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
77047
|
+
stateMutability: "view",
|
|
77048
|
+
type: "function"
|
|
77049
|
+
},
|
|
77050
|
+
{
|
|
77051
|
+
inputs: [
|
|
77052
|
+
{ internalType: "address", name: "token", type: "address" },
|
|
77053
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
77054
|
+
{ internalType: "bytes", name: "data", type: "bytes" }
|
|
77055
|
+
],
|
|
77056
|
+
name: "flashLoan",
|
|
77057
|
+
outputs: [],
|
|
77058
|
+
stateMutability: "nonpayable",
|
|
77059
|
+
type: "function"
|
|
77060
|
+
},
|
|
77061
|
+
{
|
|
77062
|
+
inputs: [{ internalType: "Id", name: "", type: "bytes32" }],
|
|
77063
|
+
name: "idToMarketParams",
|
|
77064
|
+
outputs: [
|
|
77065
|
+
{ internalType: "address", name: "loanToken", type: "address" },
|
|
77066
|
+
{ internalType: "address", name: "collateralToken", type: "address" },
|
|
77067
|
+
{ internalType: "address", name: "oracle", type: "address" },
|
|
77068
|
+
{ internalType: "address", name: "irm", type: "address" },
|
|
77069
|
+
{ internalType: "uint256", name: "lltv", type: "uint256" }
|
|
77070
|
+
],
|
|
77071
|
+
stateMutability: "view",
|
|
77072
|
+
type: "function"
|
|
77073
|
+
},
|
|
77074
|
+
{
|
|
77075
|
+
inputs: [
|
|
77076
|
+
{ internalType: "address", name: "", type: "address" },
|
|
77077
|
+
{ internalType: "address", name: "", type: "address" }
|
|
77078
|
+
],
|
|
77079
|
+
name: "isAuthorized",
|
|
77080
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
77081
|
+
stateMutability: "view",
|
|
77082
|
+
type: "function"
|
|
77083
|
+
},
|
|
77084
|
+
{
|
|
77085
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
77086
|
+
name: "isIrmEnabled",
|
|
77087
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
77088
|
+
stateMutability: "view",
|
|
77089
|
+
type: "function"
|
|
77090
|
+
},
|
|
77091
|
+
{
|
|
77092
|
+
inputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
77093
|
+
name: "isLltvEnabled",
|
|
77094
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
77095
|
+
stateMutability: "view",
|
|
77096
|
+
type: "function"
|
|
77097
|
+
},
|
|
77098
|
+
{
|
|
77099
|
+
inputs: [
|
|
77100
|
+
{
|
|
77101
|
+
components: [
|
|
77102
|
+
{ internalType: "address", name: "loanToken", type: "address" },
|
|
77103
|
+
{ internalType: "address", name: "collateralToken", type: "address" },
|
|
77104
|
+
{ internalType: "address", name: "oracle", type: "address" },
|
|
77105
|
+
{ internalType: "address", name: "irm", type: "address" },
|
|
77106
|
+
{ internalType: "uint256", name: "lltv", type: "uint256" }
|
|
77107
|
+
],
|
|
77108
|
+
internalType: "struct MarketParams",
|
|
77109
|
+
name: "marketParams",
|
|
77110
|
+
type: "tuple"
|
|
77111
|
+
},
|
|
77112
|
+
{ internalType: "address", name: "borrower", type: "address" },
|
|
77113
|
+
{ internalType: "uint256", name: "seizedAssets", type: "uint256" },
|
|
77114
|
+
{ internalType: "uint256", name: "repaidShares", type: "uint256" },
|
|
77115
|
+
{ internalType: "bytes", name: "data", type: "bytes" }
|
|
77116
|
+
],
|
|
77117
|
+
name: "liquidate",
|
|
77118
|
+
outputs: [
|
|
77119
|
+
{ internalType: "uint256", name: "", type: "uint256" },
|
|
77120
|
+
{ internalType: "uint256", name: "", type: "uint256" }
|
|
77121
|
+
],
|
|
77122
|
+
stateMutability: "nonpayable",
|
|
77123
|
+
type: "function"
|
|
77124
|
+
},
|
|
77125
|
+
{
|
|
77126
|
+
inputs: [{ internalType: "Id", name: "", type: "bytes32" }],
|
|
77127
|
+
name: "market",
|
|
77128
|
+
outputs: [
|
|
77129
|
+
{ internalType: "uint128", name: "totalSupplyAssets", type: "uint128" },
|
|
77130
|
+
{ internalType: "uint128", name: "totalSupplyShares", type: "uint128" },
|
|
77131
|
+
{ internalType: "uint128", name: "totalBorrowAssets", type: "uint128" },
|
|
77132
|
+
{ internalType: "uint128", name: "totalBorrowShares", type: "uint128" },
|
|
77133
|
+
{ internalType: "uint128", name: "lastUpdate", type: "uint128" },
|
|
77134
|
+
{ internalType: "uint128", name: "fee", type: "uint128" }
|
|
77135
|
+
],
|
|
77136
|
+
stateMutability: "view",
|
|
77137
|
+
type: "function"
|
|
77138
|
+
},
|
|
77139
|
+
{
|
|
77140
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
77141
|
+
name: "nonce",
|
|
77142
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
77143
|
+
stateMutability: "view",
|
|
77144
|
+
type: "function"
|
|
77145
|
+
},
|
|
77146
|
+
{
|
|
77147
|
+
inputs: [],
|
|
77148
|
+
name: "owner",
|
|
77149
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
77150
|
+
stateMutability: "view",
|
|
77151
|
+
type: "function"
|
|
77152
|
+
},
|
|
77153
|
+
{
|
|
77154
|
+
inputs: [
|
|
77155
|
+
{ internalType: "Id", name: "", type: "bytes32" },
|
|
77156
|
+
{ internalType: "address", name: "", type: "address" }
|
|
77157
|
+
],
|
|
77158
|
+
name: "position",
|
|
77159
|
+
outputs: [
|
|
77160
|
+
{ internalType: "uint256", name: "supplyShares", type: "uint256" },
|
|
77161
|
+
{ internalType: "uint128", name: "borrowShares", type: "uint128" },
|
|
77162
|
+
{ internalType: "uint128", name: "collateral", type: "uint128" }
|
|
77163
|
+
],
|
|
77164
|
+
stateMutability: "view",
|
|
77165
|
+
type: "function"
|
|
77166
|
+
},
|
|
77167
|
+
{
|
|
77168
|
+
inputs: [
|
|
77169
|
+
{
|
|
77170
|
+
components: [
|
|
77171
|
+
{ internalType: "address", name: "loanToken", type: "address" },
|
|
77172
|
+
{ internalType: "address", name: "collateralToken", type: "address" },
|
|
77173
|
+
{ internalType: "address", name: "oracle", type: "address" },
|
|
77174
|
+
{ internalType: "address", name: "irm", type: "address" },
|
|
77175
|
+
{ internalType: "uint256", name: "lltv", type: "uint256" }
|
|
77176
|
+
],
|
|
77177
|
+
internalType: "struct MarketParams",
|
|
77178
|
+
name: "marketParams",
|
|
77179
|
+
type: "tuple"
|
|
77180
|
+
},
|
|
77181
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
77182
|
+
{ internalType: "uint256", name: "shares", type: "uint256" },
|
|
77183
|
+
{ internalType: "address", name: "onBehalf", type: "address" },
|
|
77184
|
+
{ internalType: "bytes", name: "data", type: "bytes" }
|
|
77185
|
+
],
|
|
77186
|
+
name: "repay",
|
|
77187
|
+
outputs: [
|
|
77188
|
+
{ internalType: "uint256", name: "", type: "uint256" },
|
|
77189
|
+
{ internalType: "uint256", name: "", type: "uint256" }
|
|
77190
|
+
],
|
|
77191
|
+
stateMutability: "nonpayable",
|
|
77192
|
+
type: "function"
|
|
77193
|
+
},
|
|
77194
|
+
{
|
|
77195
|
+
inputs: [
|
|
77196
|
+
{ internalType: "address", name: "authorized", type: "address" },
|
|
77197
|
+
{ internalType: "bool", name: "newIsAuthorized", type: "bool" }
|
|
77198
|
+
],
|
|
77199
|
+
name: "setAuthorization",
|
|
77200
|
+
outputs: [],
|
|
77201
|
+
stateMutability: "nonpayable",
|
|
77202
|
+
type: "function"
|
|
77203
|
+
},
|
|
77204
|
+
{
|
|
77205
|
+
inputs: [
|
|
77206
|
+
{
|
|
77207
|
+
components: [
|
|
77208
|
+
{ internalType: "address", name: "authorizer", type: "address" },
|
|
77209
|
+
{ internalType: "address", name: "authorized", type: "address" },
|
|
77210
|
+
{ internalType: "bool", name: "isAuthorized", type: "bool" },
|
|
77211
|
+
{ internalType: "uint256", name: "nonce", type: "uint256" },
|
|
77212
|
+
{ internalType: "uint256", name: "deadline", type: "uint256" }
|
|
77213
|
+
],
|
|
77214
|
+
internalType: "struct Authorization",
|
|
77215
|
+
name: "authorization",
|
|
77216
|
+
type: "tuple"
|
|
77217
|
+
},
|
|
77218
|
+
{
|
|
77219
|
+
components: [
|
|
77220
|
+
{ internalType: "uint8", name: "v", type: "uint8" },
|
|
77221
|
+
{ internalType: "bytes32", name: "r", type: "bytes32" },
|
|
77222
|
+
{ internalType: "bytes32", name: "s", type: "bytes32" }
|
|
77223
|
+
],
|
|
77224
|
+
internalType: "struct Signature",
|
|
77225
|
+
name: "signature",
|
|
77226
|
+
type: "tuple"
|
|
77227
|
+
}
|
|
77228
|
+
],
|
|
77229
|
+
name: "setAuthorizationWithSig",
|
|
77230
|
+
outputs: [],
|
|
77231
|
+
stateMutability: "nonpayable",
|
|
77232
|
+
type: "function"
|
|
77233
|
+
},
|
|
77234
|
+
{
|
|
77235
|
+
inputs: [
|
|
77236
|
+
{
|
|
77237
|
+
components: [
|
|
77238
|
+
{ internalType: "address", name: "loanToken", type: "address" },
|
|
77239
|
+
{ internalType: "address", name: "collateralToken", type: "address" },
|
|
77240
|
+
{ internalType: "address", name: "oracle", type: "address" },
|
|
77241
|
+
{ internalType: "address", name: "irm", type: "address" },
|
|
77242
|
+
{ internalType: "uint256", name: "lltv", type: "uint256" }
|
|
77243
|
+
],
|
|
77244
|
+
internalType: "struct MarketParams",
|
|
77245
|
+
name: "marketParams",
|
|
77246
|
+
type: "tuple"
|
|
77247
|
+
},
|
|
77248
|
+
{ internalType: "uint256", name: "newFee", type: "uint256" }
|
|
77249
|
+
],
|
|
77250
|
+
name: "setFee",
|
|
77251
|
+
outputs: [],
|
|
77252
|
+
stateMutability: "nonpayable",
|
|
77253
|
+
type: "function"
|
|
77254
|
+
},
|
|
77255
|
+
{
|
|
77256
|
+
inputs: [{ internalType: "address", name: "newFeeRecipient", type: "address" }],
|
|
77257
|
+
name: "setFeeRecipient",
|
|
77258
|
+
outputs: [],
|
|
77259
|
+
stateMutability: "nonpayable",
|
|
77260
|
+
type: "function"
|
|
77261
|
+
},
|
|
77262
|
+
{
|
|
77263
|
+
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
77264
|
+
name: "setOwner",
|
|
77265
|
+
outputs: [],
|
|
77266
|
+
stateMutability: "nonpayable",
|
|
77267
|
+
type: "function"
|
|
77268
|
+
},
|
|
77269
|
+
{
|
|
77270
|
+
inputs: [
|
|
77271
|
+
{
|
|
77272
|
+
components: [
|
|
77273
|
+
{ internalType: "address", name: "loanToken", type: "address" },
|
|
77274
|
+
{ internalType: "address", name: "collateralToken", type: "address" },
|
|
77275
|
+
{ internalType: "address", name: "oracle", type: "address" },
|
|
77276
|
+
{ internalType: "address", name: "irm", type: "address" },
|
|
77277
|
+
{ internalType: "uint256", name: "lltv", type: "uint256" }
|
|
77278
|
+
],
|
|
77279
|
+
internalType: "struct MarketParams",
|
|
77280
|
+
name: "marketParams",
|
|
77281
|
+
type: "tuple"
|
|
77282
|
+
},
|
|
77283
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
77284
|
+
{ internalType: "uint256", name: "shares", type: "uint256" },
|
|
77285
|
+
{ internalType: "address", name: "onBehalf", type: "address" },
|
|
77286
|
+
{ internalType: "bytes", name: "data", type: "bytes" }
|
|
77287
|
+
],
|
|
77288
|
+
name: "supply",
|
|
77289
|
+
outputs: [
|
|
77290
|
+
{ internalType: "uint256", name: "", type: "uint256" },
|
|
77291
|
+
{ internalType: "uint256", name: "", type: "uint256" }
|
|
77292
|
+
],
|
|
77293
|
+
stateMutability: "nonpayable",
|
|
77294
|
+
type: "function"
|
|
77295
|
+
},
|
|
77296
|
+
{
|
|
77297
|
+
inputs: [
|
|
77298
|
+
{
|
|
77299
|
+
components: [
|
|
77300
|
+
{ internalType: "address", name: "loanToken", type: "address" },
|
|
77301
|
+
{ internalType: "address", name: "collateralToken", type: "address" },
|
|
77302
|
+
{ internalType: "address", name: "oracle", type: "address" },
|
|
77303
|
+
{ internalType: "address", name: "irm", type: "address" },
|
|
77304
|
+
{ internalType: "uint256", name: "lltv", type: "uint256" }
|
|
77305
|
+
],
|
|
77306
|
+
internalType: "struct MarketParams",
|
|
77307
|
+
name: "marketParams",
|
|
77308
|
+
type: "tuple"
|
|
77309
|
+
},
|
|
77310
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
77311
|
+
{ internalType: "address", name: "onBehalf", type: "address" },
|
|
77312
|
+
{ internalType: "bytes", name: "data", type: "bytes" }
|
|
77313
|
+
],
|
|
77314
|
+
name: "supplyCollateral",
|
|
77315
|
+
outputs: [],
|
|
77316
|
+
stateMutability: "nonpayable",
|
|
77317
|
+
type: "function"
|
|
77318
|
+
},
|
|
77319
|
+
{
|
|
77320
|
+
inputs: [
|
|
77321
|
+
{
|
|
77322
|
+
components: [
|
|
77323
|
+
{ internalType: "address", name: "loanToken", type: "address" },
|
|
77324
|
+
{ internalType: "address", name: "collateralToken", type: "address" },
|
|
77325
|
+
{ internalType: "address", name: "oracle", type: "address" },
|
|
77326
|
+
{ internalType: "address", name: "irm", type: "address" },
|
|
77327
|
+
{ internalType: "uint256", name: "lltv", type: "uint256" }
|
|
77328
|
+
],
|
|
77329
|
+
internalType: "struct MarketParams",
|
|
77330
|
+
name: "marketParams",
|
|
77331
|
+
type: "tuple"
|
|
77332
|
+
},
|
|
77333
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
77334
|
+
{ internalType: "uint256", name: "shares", type: "uint256" },
|
|
77335
|
+
{ internalType: "address", name: "onBehalf", type: "address" },
|
|
77336
|
+
{ internalType: "address", name: "receiver", type: "address" }
|
|
77337
|
+
],
|
|
77338
|
+
name: "withdraw",
|
|
77339
|
+
outputs: [
|
|
77340
|
+
{ internalType: "uint256", name: "", type: "uint256" },
|
|
77341
|
+
{ internalType: "uint256", name: "", type: "uint256" }
|
|
77342
|
+
],
|
|
77343
|
+
stateMutability: "nonpayable",
|
|
77344
|
+
type: "function"
|
|
77345
|
+
},
|
|
77346
|
+
{
|
|
77347
|
+
inputs: [
|
|
77348
|
+
{
|
|
77349
|
+
components: [
|
|
77350
|
+
{ internalType: "address", name: "loanToken", type: "address" },
|
|
77351
|
+
{ internalType: "address", name: "collateralToken", type: "address" },
|
|
77352
|
+
{ internalType: "address", name: "oracle", type: "address" },
|
|
77353
|
+
{ internalType: "address", name: "irm", type: "address" },
|
|
77354
|
+
{ internalType: "uint256", name: "lltv", type: "uint256" }
|
|
77355
|
+
],
|
|
77356
|
+
internalType: "struct MarketParams",
|
|
77357
|
+
name: "marketParams",
|
|
77358
|
+
type: "tuple"
|
|
77359
|
+
},
|
|
77360
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
77361
|
+
{ internalType: "address", name: "onBehalf", type: "address" },
|
|
77362
|
+
{ internalType: "address", name: "receiver", type: "address" }
|
|
77363
|
+
],
|
|
77364
|
+
name: "withdrawCollateral",
|
|
77365
|
+
outputs: [],
|
|
77366
|
+
stateMutability: "nonpayable",
|
|
77367
|
+
type: "function"
|
|
77368
|
+
}
|
|
77369
|
+
];
|
|
77370
|
+
|
|
77371
|
+
// src/integrations/morphoBlue/morpho.blue.ts
|
|
77372
|
+
var morphoInterface = new exports_ethers.utils.Interface(morpho_blue_abi_default);
|
|
77373
|
+
var SupplyCollateralMorphoBlueCalldata = ({
|
|
77374
|
+
marketParams,
|
|
77375
|
+
assets,
|
|
77376
|
+
onBehalf,
|
|
77377
|
+
data = "0x"
|
|
77378
|
+
}) => {
|
|
77379
|
+
return morphoInterface.encodeFunctionData("supplyCollateral", [marketParams, assets, onBehalf, data]);
|
|
77380
|
+
};
|
|
77381
|
+
var supplyCollateralMorphoBlueTrx = ({
|
|
77382
|
+
args,
|
|
77383
|
+
morphoAddress
|
|
77384
|
+
}) => {
|
|
77385
|
+
return {
|
|
77386
|
+
operation: 0,
|
|
77387
|
+
to: morphoAddress,
|
|
77388
|
+
value: 0n,
|
|
77389
|
+
data: SupplyCollateralMorphoBlueCalldata(args)
|
|
77390
|
+
};
|
|
77391
|
+
};
|
|
77392
|
+
var WithdrawCollateralMorphoBlueCalldata = ({
|
|
77393
|
+
marketParams,
|
|
77394
|
+
assets,
|
|
77395
|
+
onBehalf,
|
|
77396
|
+
receiver
|
|
77397
|
+
}) => {
|
|
77398
|
+
return morphoInterface.encodeFunctionData("withdrawCollateral", [
|
|
77399
|
+
marketParams,
|
|
77400
|
+
assets,
|
|
77401
|
+
onBehalf,
|
|
77402
|
+
receiver
|
|
77403
|
+
]);
|
|
77404
|
+
};
|
|
77405
|
+
var withdrawCollateralMorphoBlueTrx = ({
|
|
77406
|
+
args,
|
|
77407
|
+
morphoAddress
|
|
77408
|
+
}) => {
|
|
77409
|
+
return {
|
|
77410
|
+
operation: 0,
|
|
77411
|
+
to: morphoAddress,
|
|
77412
|
+
value: 0n,
|
|
77413
|
+
data: WithdrawCollateralMorphoBlueCalldata(args)
|
|
77414
|
+
};
|
|
77415
|
+
};
|
|
77416
|
+
var BorrowMorphoBlueCalldata = ({
|
|
77417
|
+
marketParams,
|
|
77418
|
+
assets,
|
|
77419
|
+
shares,
|
|
77420
|
+
onBehalf,
|
|
77421
|
+
receiver
|
|
77422
|
+
}) => {
|
|
77423
|
+
return morphoInterface.encodeFunctionData("borrow", [
|
|
77424
|
+
marketParams,
|
|
77425
|
+
assets,
|
|
77426
|
+
shares,
|
|
77427
|
+
onBehalf,
|
|
77428
|
+
receiver
|
|
77429
|
+
]);
|
|
77430
|
+
};
|
|
77431
|
+
var borrowMorphoBlueTrx = ({
|
|
77432
|
+
args,
|
|
77433
|
+
morphoAddress
|
|
77434
|
+
}) => {
|
|
77435
|
+
return {
|
|
77436
|
+
operation: 0,
|
|
77437
|
+
to: morphoAddress,
|
|
77438
|
+
value: 0n,
|
|
77439
|
+
data: BorrowMorphoBlueCalldata(args)
|
|
77440
|
+
};
|
|
77441
|
+
};
|
|
77442
|
+
var RepayMorphoBlueCalldata = ({
|
|
77443
|
+
marketParams,
|
|
77444
|
+
assets,
|
|
77445
|
+
shares,
|
|
77446
|
+
onBehalf,
|
|
77447
|
+
data = "0x"
|
|
77448
|
+
}) => {
|
|
77449
|
+
return morphoInterface.encodeFunctionData("repay", [marketParams, assets, shares, onBehalf, data]);
|
|
77450
|
+
};
|
|
77451
|
+
var repayMorphoBlueTrx = ({
|
|
77452
|
+
args,
|
|
77453
|
+
morphoAddress
|
|
77454
|
+
}) => {
|
|
77455
|
+
return {
|
|
77456
|
+
operation: 0,
|
|
77457
|
+
to: morphoAddress,
|
|
77458
|
+
value: 0n,
|
|
77459
|
+
data: RepayMorphoBlueCalldata(args)
|
|
77460
|
+
};
|
|
77461
|
+
};
|
|
77462
|
+
var SupplyMorphoBlueCalldata = ({
|
|
77463
|
+
marketParams,
|
|
77464
|
+
assets,
|
|
77465
|
+
shares,
|
|
77466
|
+
onBehalf,
|
|
77467
|
+
data = "0x"
|
|
77468
|
+
}) => {
|
|
77469
|
+
return morphoInterface.encodeFunctionData("supply", [marketParams, assets, shares, onBehalf, data]);
|
|
77470
|
+
};
|
|
77471
|
+
var supplyMorphoBlueTrx = ({
|
|
77472
|
+
args,
|
|
77473
|
+
morphoAddress
|
|
77474
|
+
}) => {
|
|
77475
|
+
return {
|
|
77476
|
+
operation: 0,
|
|
77477
|
+
to: morphoAddress,
|
|
77478
|
+
value: 0n,
|
|
77479
|
+
data: SupplyMorphoBlueCalldata(args)
|
|
77480
|
+
};
|
|
77481
|
+
};
|
|
77482
|
+
var WithdrawMorphoBlueCalldata = ({
|
|
77483
|
+
marketParams,
|
|
77484
|
+
assets,
|
|
77485
|
+
shares,
|
|
77486
|
+
onBehalf,
|
|
77487
|
+
receiver
|
|
77488
|
+
}) => {
|
|
77489
|
+
return morphoInterface.encodeFunctionData("withdraw", [
|
|
77490
|
+
marketParams,
|
|
77491
|
+
assets,
|
|
77492
|
+
shares,
|
|
77493
|
+
onBehalf,
|
|
77494
|
+
receiver
|
|
77495
|
+
]);
|
|
77496
|
+
};
|
|
77497
|
+
var withdrawMorphoBlueTrx = ({
|
|
77498
|
+
args,
|
|
77499
|
+
morphoAddress
|
|
77500
|
+
}) => {
|
|
77501
|
+
return {
|
|
77502
|
+
operation: 0,
|
|
77503
|
+
to: morphoAddress,
|
|
77504
|
+
value: 0n,
|
|
77505
|
+
data: WithdrawMorphoBlueCalldata(args)
|
|
77506
|
+
};
|
|
77507
|
+
};
|
|
76248
77508
|
// src/lib/erc20.ts
|
|
76249
77509
|
var erc20Interface = new exports_ethers.utils.Interface(erc20_abi_default);
|
|
76250
77510
|
var TransferCalldata = ({ recipient, amount }) => {
|
|
@@ -76378,8 +77638,10 @@ var simulateOrThrow = async (env2) => {
|
|
|
76378
77638
|
};
|
|
76379
77639
|
};
|
|
76380
77640
|
export {
|
|
77641
|
+
withdrawMorphoBlueTrx,
|
|
76381
77642
|
withdrawFromLendleTrx,
|
|
76382
77643
|
withdrawFromAaveV3Trx,
|
|
77644
|
+
withdrawCollateralMorphoBlueTrx,
|
|
76383
77645
|
updateTotalAssetsLifespanTrx,
|
|
76384
77646
|
updateOrderTrx,
|
|
76385
77647
|
transferNativeEth,
|
|
@@ -76389,6 +77651,8 @@ export {
|
|
|
76389
77651
|
swapTrx,
|
|
76390
77652
|
swapOwner,
|
|
76391
77653
|
supplyToAaveV3Trx,
|
|
77654
|
+
supplyMorphoBlueTrx,
|
|
77655
|
+
supplyCollateralMorphoBlueTrx,
|
|
76392
77656
|
simulateOrThrow,
|
|
76393
77657
|
simulateGnosisTrx,
|
|
76394
77658
|
simulateAndExecuteGnosisTrx,
|
|
@@ -76397,6 +77661,7 @@ export {
|
|
|
76397
77661
|
revokeFromVaultWhitelistTrx,
|
|
76398
77662
|
repayToLendleTrx,
|
|
76399
77663
|
repayToAaveV3Trx,
|
|
77664
|
+
repayMorphoBlueTrx,
|
|
76400
77665
|
mintPositionTrx,
|
|
76401
77666
|
vault_abi_default as lagoonV1VaultAbi,
|
|
76402
77667
|
silo_abi_default as lagoonV1SiloAbi,
|
|
@@ -76407,11 +77672,12 @@ export {
|
|
|
76407
77672
|
getAddressOrThrow,
|
|
76408
77673
|
finalizeActionsV4,
|
|
76409
77674
|
executeTrx,
|
|
77675
|
+
executeNextTx,
|
|
76410
77676
|
executeGnosisTrx,
|
|
76411
77677
|
execWithRoleTrx,
|
|
76412
77678
|
execWithRoleReturnDataTrx,
|
|
76413
|
-
|
|
76414
|
-
|
|
77679
|
+
execTransactionWithDelay,
|
|
77680
|
+
execTransactionFromModuleTrx,
|
|
76415
77681
|
depositToLendleTrx,
|
|
76416
77682
|
decreaseLiquidityTrx,
|
|
76417
77683
|
createVaultProxyTrx,
|
|
@@ -76421,6 +77687,7 @@ export {
|
|
|
76421
77687
|
cancelOrderTrx,
|
|
76422
77688
|
calculateDeterministicVaultAddress,
|
|
76423
77689
|
burnPositionTrx,
|
|
77690
|
+
borrowMorphoBlueTrx,
|
|
76424
77691
|
borrowFromLendleTrx,
|
|
76425
77692
|
borrowFromAaveV3Trx,
|
|
76426
77693
|
approveTokenThroughPermit2Calldata,
|
|
@@ -76436,9 +77703,11 @@ export {
|
|
|
76436
77703
|
addCloseCurrencyV4,
|
|
76437
77704
|
zodiac_roles_abi_default as ZodiacRoles,
|
|
76438
77705
|
ZERO_ADDRESS,
|
|
77706
|
+
WithdrawMorphoBlueCalldata,
|
|
76439
77707
|
WithdrawFromLendleCalldata,
|
|
76440
77708
|
WithdrawFromAaveV3L2Calldata,
|
|
76441
77709
|
WithdrawFromAaveV3L1Calldata,
|
|
77710
|
+
WithdrawCollateralMorphoBlueCalldata,
|
|
76442
77711
|
UpdateTotalAssetsLifespanCalldata,
|
|
76443
77712
|
UpdateOrderCalldata,
|
|
76444
77713
|
UniswapV4Token,
|
|
@@ -76454,20 +77723,29 @@ export {
|
|
|
76454
77723
|
USDC_ARB,
|
|
76455
77724
|
TransferFromCalldata,
|
|
76456
77725
|
TransferCalldata,
|
|
77726
|
+
TransactionWithRoleReturnDataCalldata,
|
|
77727
|
+
TransactionWithRoleCalldata,
|
|
77728
|
+
TransactionFromModuleCalldata,
|
|
76457
77729
|
SwapExactOutputSingleCalldata,
|
|
76458
77730
|
SwapExactInputSingleCalldataV4,
|
|
76459
77731
|
SwapExactInputSingleCalldata,
|
|
76460
77732
|
SupplyToAaveV3L2Calldata,
|
|
76461
77733
|
SupplyToAaveV3L1Calldata,
|
|
77734
|
+
SupplyMorphoBlueCalldata,
|
|
77735
|
+
SupplyCollateralMorphoBlueCalldata,
|
|
76462
77736
|
safe_L2_abi_default as SafeL2Abi,
|
|
76463
77737
|
safe_abi_default as SafeAbi,
|
|
77738
|
+
SENTINEL_ADDRESS,
|
|
76464
77739
|
RevokeFromVaultWhitelistCalldata,
|
|
76465
77740
|
RepayToLendleCalldata,
|
|
76466
77741
|
RepayToAaveV3L1Calldata,
|
|
77742
|
+
RepayMorphoBlueCalldata,
|
|
76467
77743
|
PERMIT2_ADDRESS_CANONICAL,
|
|
76468
77744
|
OrderType,
|
|
77745
|
+
NextTxCalldata,
|
|
76469
77746
|
MultisendBuilder,
|
|
76470
77747
|
multisend_abi_default as MultiSendAbi,
|
|
77748
|
+
morpho_blue_abi_default as MorphoBlue,
|
|
76471
77749
|
MintPositionCalldata,
|
|
76472
77750
|
IncreaseLiquidityCalldata,
|
|
76473
77751
|
GMX_EXCHANGE_ROUTER_ARB,
|
|
@@ -76475,6 +77753,7 @@ export {
|
|
|
76475
77753
|
erc721_abi_default as ERC721,
|
|
76476
77754
|
erc20_abi_default as ERC20,
|
|
76477
77755
|
DepositToLendleCalldata,
|
|
77756
|
+
DelayedTransactionCalldata,
|
|
76478
77757
|
DecreasePositionSwapType,
|
|
76479
77758
|
DecreaseLiquidityCalldata,
|
|
76480
77759
|
DELEGATE_CALL_OP_CODE,
|
|
@@ -76487,6 +77766,7 @@ export {
|
|
|
76487
77766
|
CancelOrderCalldata,
|
|
76488
77767
|
CALL_OP_CODE,
|
|
76489
77768
|
BurnPositionCalldata,
|
|
77769
|
+
BorrowMorphoBlueCalldata,
|
|
76490
77770
|
BorrowFromLendleCalldata,
|
|
76491
77771
|
BorrowFromAaveV3L1Calldata,
|
|
76492
77772
|
ApproveCalldata,
|
|
@@ -76496,4 +77776,4 @@ export {
|
|
|
76496
77776
|
aave_pool_abi_default as AaveL1Pool
|
|
76497
77777
|
};
|
|
76498
77778
|
|
|
76499
|
-
//# debugId=
|
|
77779
|
+
//# debugId=1365A2BF52C0D19C64756E2164756E21
|