@gearbox-protocol/sdk 18.3.0 → 18.4.0
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/cjs/abi/310/iKillSwitchProxy.js +130 -0
- package/dist/cjs/onchain/accounts/intents/maxBorrowAndWithdraw.js +3 -1
- package/dist/cjs/onchain/index.js +18 -0
- package/dist/cjs/onchain/market/adapters/abi/adapters/iTreehouseFastlaneAdapter.js +113 -0
- package/dist/cjs/onchain/market/adapters/abi/adapters/iTreehouseRedemptionGatewayAdapter.js +258 -0
- package/dist/cjs/onchain/market/adapters/abi/adapters/iTreehouseRouterAdapter.js +161 -0
- package/dist/cjs/onchain/market/adapters/abi/adapters/index.js +6 -0
- package/dist/cjs/onchain/market/adapters/abi/index.js +13 -0
- package/dist/cjs/onchain/market/adapters/abi/treehouse/iTreehouseFastlane.js +39 -0
- package/dist/cjs/onchain/market/adapters/abi/treehouse/iTreehouseRedemptionGateway.js +230 -0
- package/dist/cjs/onchain/market/adapters/abi/treehouse/iTreehouseRouter.js +29 -0
- package/dist/cjs/onchain/market/adapters/abi/treehouse/index.js +7 -0
- package/dist/cjs/onchain/market/adapters/contracts/TreehouseFastlaneAdapterContract.js +72 -0
- package/dist/cjs/onchain/market/adapters/contracts/TreehouseRedemptionGatewayAdapterContract.js +117 -0
- package/dist/cjs/onchain/market/adapters/contracts/TreehouseRouterAdapterContract.js +61 -0
- package/dist/cjs/onchain/market/adapters/contracts/index.js +6 -0
- package/dist/cjs/onchain/market/adapters/createAdapter.js +6 -0
- package/dist/cjs/onchain/market/adapters/index.js +18 -0
- package/dist/cjs/onchain/market/index.js +18 -0
- package/dist/cjs/permissionless/api/index.js +31 -0
- package/dist/cjs/permissionless/api/oracles/PermissionlessOracles.js +637 -65
- package/dist/cjs/permissionless/api/oracles/enrich.js +99 -0
- package/dist/cjs/permissionless/api/oracles/index.js +33 -0
- package/dist/cjs/permissionless/api/oracles/onchain-feed.js +25 -0
- package/dist/cjs/permissionless/api/oracles/schemas.js +84 -59
- package/dist/cjs/permissionless/api/oracles/score/formula.js +56 -0
- package/dist/cjs/permissionless/api/oracles/score/index.js +11 -0
- package/dist/cjs/permissionless/api/oracles/score/run.js +252 -0
- package/dist/cjs/permissionless/api/oracles/score/types.js +1 -0
- package/dist/cjs/permissionless/api/oracles/stress/classify.js +258 -0
- package/dist/cjs/permissionless/api/oracles/stress/index.js +24 -0
- package/dist/cjs/permissionless/api/oracles/stress/override.js +125 -0
- package/dist/cjs/permissionless/api/oracles/stress/run.js +485 -0
- package/dist/cjs/permissionless/api/oracles/stress/score.js +98 -0
- package/dist/cjs/permissionless/api/oracles/stress/types.js +1 -0
- package/dist/cjs/permissionless/api/schemas.js +0 -3
- package/dist/cjs/permissionless/api/transactions/InstanceOwnerTransactions.js +14 -3
- package/dist/cjs/permissionless/api/transactions/lp-price-feeds.js +10 -4
- package/dist/cjs/permissionless/bindings/bytecode-repository.js +8 -0
- package/dist/cjs/permissionless/bindings/governance/governor.js +1 -1
- package/dist/cjs/permissionless/bindings/index.js +8 -3
- package/dist/cjs/permissionless/bindings/kill-switch-proxy.js +188 -0
- package/dist/cjs/permissionless/bindings/market-configurator-factory.js +39 -1
- package/dist/cjs/permissionless/bindings/market-configurator.js +142 -0
- package/dist/cjs/permissionless/index.js +42 -3
- package/dist/cjs/permissionless/utils/index.js +3 -0
- package/dist/cjs/permissionless/utils/literals.js +2 -0
- package/dist/cjs/permissionless/utils/price-update/get-prices.js +64 -0
- package/dist/cjs/permissionless/utils/price-update/index.js +2 -0
- package/dist/cjs/testnets/TestnetsAPI.js +179 -0
- package/dist/cjs/testnets/errors/TestnetNotFoundError.js +15 -0
- package/dist/cjs/testnets/errors/TestnetRequestFailedError.js +24 -0
- package/dist/cjs/testnets/errors/TestnetStatusError.js +19 -0
- package/dist/cjs/testnets/errors/TestnetValidationError.js +24 -0
- package/dist/cjs/testnets/errors/TestnetWaitTimeoutError.js +30 -0
- package/dist/cjs/testnets/errors/TestnetsError.js +34 -0
- package/dist/cjs/testnets/errors/index.js +13 -0
- package/dist/cjs/testnets/index.js +32 -0
- package/dist/cjs/testnets/package.json +1 -0
- package/dist/cjs/testnets/schemas.js +242 -0
- package/dist/cjs/testnets/types.js +1 -0
- package/dist/esm/abi/310/iKillSwitchProxy.js +129 -0
- package/dist/esm/onchain/accounts/intents/maxBorrowAndWithdraw.js +3 -1
- package/dist/esm/onchain/index.js +10 -1
- package/dist/esm/onchain/market/adapters/abi/adapters/iTreehouseFastlaneAdapter.js +112 -0
- package/dist/esm/onchain/market/adapters/abi/adapters/iTreehouseRedemptionGatewayAdapter.js +257 -0
- package/dist/esm/onchain/market/adapters/abi/adapters/iTreehouseRouterAdapter.js +160 -0
- package/dist/esm/onchain/market/adapters/abi/adapters/index.js +4 -1
- package/dist/esm/onchain/market/adapters/abi/index.js +8 -1
- package/dist/esm/onchain/market/adapters/abi/treehouse/iTreehouseFastlane.js +38 -0
- package/dist/esm/onchain/market/adapters/abi/treehouse/iTreehouseRedemptionGateway.js +229 -0
- package/dist/esm/onchain/market/adapters/abi/treehouse/iTreehouseRouter.js +28 -0
- package/dist/esm/onchain/market/adapters/abi/treehouse/index.js +4 -0
- package/dist/esm/onchain/market/adapters/contracts/TreehouseFastlaneAdapterContract.js +71 -0
- package/dist/esm/onchain/market/adapters/contracts/TreehouseRedemptionGatewayAdapterContract.js +116 -0
- package/dist/esm/onchain/market/adapters/contracts/TreehouseRouterAdapterContract.js +60 -0
- package/dist/esm/onchain/market/adapters/contracts/index.js +4 -1
- package/dist/esm/onchain/market/adapters/createAdapter.js +6 -0
- package/dist/esm/onchain/market/adapters/index.js +10 -1
- package/dist/esm/onchain/market/index.js +10 -1
- package/dist/esm/permissionless/api/index.js +7 -1
- package/dist/esm/permissionless/api/oracles/PermissionlessOracles.js +639 -67
- package/dist/esm/permissionless/api/oracles/enrich.js +94 -0
- package/dist/esm/permissionless/api/oracles/index.js +10 -1
- package/dist/esm/permissionless/api/oracles/onchain-feed.js +24 -0
- package/dist/esm/permissionless/api/oracles/schemas.js +80 -58
- package/dist/esm/permissionless/api/oracles/score/formula.js +51 -0
- package/dist/esm/permissionless/api/oracles/score/index.js +4 -0
- package/dist/esm/permissionless/api/oracles/score/run.js +250 -0
- package/dist/esm/permissionless/api/oracles/score/types.js +1 -0
- package/dist/esm/permissionless/api/oracles/stress/classify.js +256 -0
- package/dist/esm/permissionless/api/oracles/stress/index.js +6 -0
- package/dist/esm/permissionless/api/oracles/stress/override.js +119 -0
- package/dist/esm/permissionless/api/oracles/stress/run.js +478 -0
- package/dist/esm/permissionless/api/oracles/stress/score.js +95 -0
- package/dist/esm/permissionless/api/oracles/stress/types.js +1 -0
- package/dist/esm/permissionless/api/schemas.js +2 -4
- package/dist/esm/permissionless/api/transactions/InstanceOwnerTransactions.js +14 -3
- package/dist/esm/permissionless/api/transactions/lp-price-feeds.js +10 -4
- package/dist/esm/permissionless/bindings/bytecode-repository.js +8 -0
- package/dist/esm/permissionless/bindings/governance/governor.js +1 -1
- package/dist/esm/permissionless/bindings/index.js +5 -4
- package/dist/esm/permissionless/bindings/kill-switch-proxy.js +184 -0
- package/dist/esm/permissionless/bindings/market-configurator-factory.js +37 -0
- package/dist/esm/permissionless/bindings/market-configurator.js +143 -1
- package/dist/esm/permissionless/index.js +13 -6
- package/dist/esm/permissionless/utils/index.js +3 -3
- package/dist/esm/permissionless/utils/literals.js +2 -1
- package/dist/esm/permissionless/utils/price-update/get-prices.js +63 -1
- package/dist/esm/permissionless/utils/price-update/index.js +2 -2
- package/dist/esm/testnets/TestnetsAPI.js +178 -0
- package/dist/esm/testnets/errors/TestnetNotFoundError.js +14 -0
- package/dist/esm/testnets/errors/TestnetRequestFailedError.js +23 -0
- package/dist/esm/testnets/errors/TestnetStatusError.js +18 -0
- package/dist/esm/testnets/errors/TestnetValidationError.js +23 -0
- package/dist/esm/testnets/errors/TestnetWaitTimeoutError.js +29 -0
- package/dist/esm/testnets/errors/TestnetsError.js +33 -0
- package/dist/esm/testnets/errors/index.js +7 -0
- package/dist/esm/testnets/index.js +11 -0
- package/dist/esm/testnets/package.json +1 -0
- package/dist/esm/testnets/schemas.js +228 -0
- package/dist/esm/testnets/types.js +1 -0
- package/dist/types/abi/310/iKillSwitchProxy.d.ts +114 -0
- package/dist/types/onchain/index.d.ts +10 -1
- package/dist/types/onchain/market/adapters/abi/adapters/iTreehouseFastlaneAdapter.d.ts +101 -0
- package/dist/types/onchain/market/adapters/abi/adapters/iTreehouseRedemptionGatewayAdapter.d.ts +237 -0
- package/dist/types/onchain/market/adapters/abi/adapters/iTreehouseRouterAdapter.d.ts +146 -0
- package/dist/types/onchain/market/adapters/abi/adapters/index.d.ts +4 -1
- package/dist/types/onchain/market/adapters/abi/index.d.ts +8 -1
- package/dist/types/onchain/market/adapters/abi/treehouse/iTreehouseFastlane.d.ts +33 -0
- package/dist/types/onchain/market/adapters/abi/treehouse/iTreehouseRedemptionGateway.d.ts +207 -0
- package/dist/types/onchain/market/adapters/abi/treehouse/iTreehouseRouter.d.ts +27 -0
- package/dist/types/onchain/market/adapters/abi/treehouse/index.d.ts +4 -0
- package/dist/types/onchain/market/adapters/contracts/TreehouseFastlaneAdapterContract.d.ts +156 -0
- package/dist/types/onchain/market/adapters/contracts/TreehouseRedemptionGatewayAdapterContract.d.ts +481 -0
- package/dist/types/onchain/market/adapters/contracts/TreehouseRouterAdapterContract.d.ts +193 -0
- package/dist/types/onchain/market/adapters/contracts/index.d.ts +4 -1
- package/dist/types/onchain/market/adapters/index.d.ts +10 -1
- package/dist/types/onchain/market/index.d.ts +10 -1
- package/dist/types/permissionless/api/index.d.ts +10 -2
- package/dist/types/permissionless/api/oracles/PermissionlessOracles.d.ts +237 -47
- package/dist/types/permissionless/api/oracles/enrich.d.ts +59 -0
- package/dist/types/permissionless/api/oracles/index.d.ts +12 -2
- package/dist/types/permissionless/api/oracles/onchain-feed.d.ts +15 -0
- package/dist/types/permissionless/api/oracles/schemas.d.ts +147 -41
- package/dist/types/permissionless/api/oracles/score/formula.d.ts +36 -0
- package/dist/types/permissionless/api/oracles/score/index.d.ts +4 -0
- package/dist/types/permissionless/api/oracles/score/run.d.ts +42 -0
- package/dist/types/permissionless/api/oracles/score/types.d.ts +118 -0
- package/dist/types/permissionless/api/oracles/stress/classify.d.ts +57 -0
- package/dist/types/permissionless/api/oracles/stress/index.d.ts +6 -0
- package/dist/types/permissionless/api/oracles/stress/override.d.ts +59 -0
- package/dist/types/permissionless/api/oracles/stress/run.d.ts +100 -0
- package/dist/types/permissionless/api/oracles/stress/score.d.ts +57 -0
- package/dist/types/permissionless/api/oracles/stress/types.d.ts +272 -0
- package/dist/types/permissionless/api/oracles/types.d.ts +320 -125
- package/dist/types/permissionless/api/schemas.d.ts +0 -2
- package/dist/types/permissionless/api/transactions/lp-price-feeds.d.ts +9 -1
- package/dist/types/permissionless/bindings/bytecode-repository.d.ts +10 -1
- package/dist/types/permissionless/bindings/index.d.ts +4 -3
- package/dist/types/permissionless/bindings/kill-switch-proxy.d.ts +205 -0
- package/dist/types/permissionless/bindings/market-configurator-factory.d.ts +30 -0
- package/dist/types/permissionless/bindings/market-configurator.d.ts +30 -1
- package/dist/types/permissionless/bindings/types.d.ts +27 -0
- package/dist/types/permissionless/index.d.ts +15 -6
- package/dist/types/permissionless/utils/index.d.ts +3 -3
- package/dist/types/permissionless/utils/literals.d.ts +1 -0
- package/dist/types/permissionless/utils/price-update/get-prices.d.ts +33 -0
- package/dist/types/permissionless/utils/price-update/index.d.ts +2 -2
- package/dist/types/testnets/TestnetsAPI.d.ts +108 -0
- package/dist/types/testnets/errors/TestnetNotFoundError.d.ts +12 -0
- package/dist/types/testnets/errors/TestnetRequestFailedError.d.ts +11 -0
- package/dist/types/testnets/errors/TestnetStatusError.d.ts +15 -0
- package/dist/types/testnets/errors/TestnetValidationError.d.ts +16 -0
- package/dist/types/testnets/errors/TestnetWaitTimeoutError.d.ts +21 -0
- package/dist/types/testnets/errors/TestnetsError.d.ts +47 -0
- package/dist/types/testnets/errors/index.d.ts +7 -0
- package/dist/types/testnets/index.d.ts +11 -0
- package/dist/types/testnets/schemas.d.ts +554 -0
- package/dist/types/testnets/types.d.ts +717 -0
- package/package.json +6 -1
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_onchain_chain_chains = require("../onchain/chain/chains.js");
|
|
3
|
+
const require_onchain_utils_zod = require("../onchain/utils/zod.js");
|
|
4
|
+
let zod_v4 = require("zod/v4");
|
|
5
|
+
//#region src/testnets/schemas.ts
|
|
6
|
+
/**
|
|
7
|
+
* Go marshals a nil slice as `null`; this reads it as an empty array.
|
|
8
|
+
**/
|
|
9
|
+
function nullableArray(item) {
|
|
10
|
+
return zod_v4.z.array(item).nullable().transform((value) => value ?? []);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Go marshals a nil map as `null`; this reads it as an empty record.
|
|
14
|
+
**/
|
|
15
|
+
function nullableRecord(value) {
|
|
16
|
+
return zod_v4.z.record(zod_v4.z.string(), value).nullable().transform((record) => record ?? {});
|
|
17
|
+
}
|
|
18
|
+
const timestamp = zod_v4.z.iso.datetime({ offset: true });
|
|
19
|
+
/**
|
|
20
|
+
* {@link TestnetStageStatus}
|
|
21
|
+
**/
|
|
22
|
+
const testnetStageStatusSchema = zod_v4.z.enum([
|
|
23
|
+
"queued",
|
|
24
|
+
"started",
|
|
25
|
+
"error",
|
|
26
|
+
"failed",
|
|
27
|
+
"success",
|
|
28
|
+
"terminated"
|
|
29
|
+
]);
|
|
30
|
+
/**
|
|
31
|
+
* {@link TestnetBackendState}
|
|
32
|
+
**/
|
|
33
|
+
const testnetBackendStateSchema = zod_v4.z.enum([
|
|
34
|
+
"provisioning",
|
|
35
|
+
"starting",
|
|
36
|
+
"active",
|
|
37
|
+
"error"
|
|
38
|
+
]);
|
|
39
|
+
/**
|
|
40
|
+
* {@link Testnet}
|
|
41
|
+
**/
|
|
42
|
+
const testnetSchema = zod_v4.z.object({
|
|
43
|
+
alias: zod_v4.z.string(),
|
|
44
|
+
executionId: zod_v4.z.string(),
|
|
45
|
+
isActive: zod_v4.z.boolean(),
|
|
46
|
+
description: zod_v4.z.string(),
|
|
47
|
+
persistent: zod_v4.z.boolean(),
|
|
48
|
+
paused: zod_v4.z.boolean(),
|
|
49
|
+
network: require_onchain_chain_chains.NetworkType,
|
|
50
|
+
createdAt: timestamp
|
|
51
|
+
});
|
|
52
|
+
/**
|
|
53
|
+
* {@link TestnetBackendOptions}
|
|
54
|
+
**/
|
|
55
|
+
const testnetBackendOptionsSchema = zod_v4.z.object({
|
|
56
|
+
version: zod_v4.z.string().optional(),
|
|
57
|
+
env: zod_v4.z.record(zod_v4.z.string(), zod_v4.z.string()).optional(),
|
|
58
|
+
parentBranchId: zod_v4.z.string().optional()
|
|
59
|
+
});
|
|
60
|
+
/**
|
|
61
|
+
* {@link TestnetBackendStatus}
|
|
62
|
+
**/
|
|
63
|
+
const testnetBackendStatusSchema = zod_v4.z.object({
|
|
64
|
+
state: testnetBackendStateSchema,
|
|
65
|
+
error: zod_v4.z.string().optional(),
|
|
66
|
+
version: zod_v4.z.string().optional()
|
|
67
|
+
});
|
|
68
|
+
/**
|
|
69
|
+
* {@link TestnetBlock}
|
|
70
|
+
**/
|
|
71
|
+
const testnetBlockSchema = zod_v4.z.object({
|
|
72
|
+
number: zod_v4.z.number(),
|
|
73
|
+
time: timestamp
|
|
74
|
+
});
|
|
75
|
+
/**
|
|
76
|
+
* {@link TestnetScriptBlock}
|
|
77
|
+
**/
|
|
78
|
+
const testnetScriptBlockSchema = testnetBlockSchema.extend({
|
|
79
|
+
timeDrift: zod_v4.z.number(),
|
|
80
|
+
originDrift: zod_v4.z.string(),
|
|
81
|
+
automine: zod_v4.z.boolean(),
|
|
82
|
+
mineInterval: zod_v4.z.number()
|
|
83
|
+
});
|
|
84
|
+
/**
|
|
85
|
+
* {@link TestnetScriptOptions}
|
|
86
|
+
**/
|
|
87
|
+
const testnetScriptOptionsSchema = zod_v4.z.object({
|
|
88
|
+
id: zod_v4.z.string(),
|
|
89
|
+
description: zod_v4.z.string(),
|
|
90
|
+
npx: zod_v4.z.string().optional(),
|
|
91
|
+
docker: zod_v4.z.string().optional(),
|
|
92
|
+
args: nullableArray(zod_v4.z.string()),
|
|
93
|
+
env: nullableRecord(zod_v4.z.string()),
|
|
94
|
+
flags: nullableArray(zod_v4.z.string()),
|
|
95
|
+
timeout: zod_v4.z.string(),
|
|
96
|
+
packageManager: zod_v4.z.string().optional(),
|
|
97
|
+
input: zod_v4.z.unknown().optional()
|
|
98
|
+
});
|
|
99
|
+
/**
|
|
100
|
+
* {@link TestnetScript}
|
|
101
|
+
**/
|
|
102
|
+
const testnetScriptSchema = zod_v4.z.object({
|
|
103
|
+
script: testnetScriptOptionsSchema,
|
|
104
|
+
duration: zod_v4.z.string(),
|
|
105
|
+
blockBefore: testnetScriptBlockSchema.optional(),
|
|
106
|
+
blockAfter: testnetScriptBlockSchema.optional(),
|
|
107
|
+
status: testnetStageStatusSchema,
|
|
108
|
+
error: zod_v4.z.string().optional(),
|
|
109
|
+
exitCode: zod_v4.z.number(),
|
|
110
|
+
source: zod_v4.z.string().optional(),
|
|
111
|
+
revision: zod_v4.z.string().optional()
|
|
112
|
+
});
|
|
113
|
+
/**
|
|
114
|
+
* {@link TestnetTaskDefinition}
|
|
115
|
+
**/
|
|
116
|
+
const testnetTaskDefinitionSchema = zod_v4.z.object({
|
|
117
|
+
id: zod_v4.z.string().optional(),
|
|
118
|
+
family: zod_v4.z.string().optional(),
|
|
119
|
+
name: zod_v4.z.string().optional(),
|
|
120
|
+
description: zod_v4.z.string().optional(),
|
|
121
|
+
image: zod_v4.z.string(),
|
|
122
|
+
version: zod_v4.z.string().optional(),
|
|
123
|
+
entrypoint: zod_v4.z.array(zod_v4.z.string()).optional(),
|
|
124
|
+
command: zod_v4.z.array(zod_v4.z.string()).optional(),
|
|
125
|
+
env: zod_v4.z.record(zod_v4.z.string(), zod_v4.z.string()).optional(),
|
|
126
|
+
secrets: zod_v4.z.record(zod_v4.z.string(), zod_v4.z.string()).optional(),
|
|
127
|
+
input: zod_v4.z.unknown().optional(),
|
|
128
|
+
timeout: zod_v4.z.number().optional(),
|
|
129
|
+
concurrent: zod_v4.z.boolean(),
|
|
130
|
+
multicontainer: zod_v4.z.boolean(),
|
|
131
|
+
schemaVersion: zod_v4.z.number().optional()
|
|
132
|
+
});
|
|
133
|
+
/**
|
|
134
|
+
* {@link TestnetTaskProgress}
|
|
135
|
+
**/
|
|
136
|
+
const testnetTaskProgressSchema = zod_v4.z.object({
|
|
137
|
+
completed: zod_v4.z.number(),
|
|
138
|
+
total: zod_v4.z.number(),
|
|
139
|
+
details: zod_v4.z.unknown().optional()
|
|
140
|
+
});
|
|
141
|
+
/**
|
|
142
|
+
* {@link TestnetTask}
|
|
143
|
+
**/
|
|
144
|
+
const testnetTaskSchema = zod_v4.z.object({
|
|
145
|
+
id: zod_v4.z.string(),
|
|
146
|
+
definitionId: zod_v4.z.string(),
|
|
147
|
+
family: zod_v4.z.string(),
|
|
148
|
+
executionId: zod_v4.z.string(),
|
|
149
|
+
name: zod_v4.z.string().optional(),
|
|
150
|
+
description: zod_v4.z.string().optional(),
|
|
151
|
+
image: zod_v4.z.string(),
|
|
152
|
+
source: zod_v4.z.string().optional(),
|
|
153
|
+
revision: zod_v4.z.string().optional(),
|
|
154
|
+
entrypoint: zod_v4.z.array(zod_v4.z.string()).optional(),
|
|
155
|
+
command: zod_v4.z.array(zod_v4.z.string()).optional(),
|
|
156
|
+
env: zod_v4.z.record(zod_v4.z.string(), zod_v4.z.string()).optional(),
|
|
157
|
+
secrets: zod_v4.z.record(zod_v4.z.string(), zod_v4.z.string()).optional(),
|
|
158
|
+
input: zod_v4.z.unknown().optional(),
|
|
159
|
+
multicontainer: zod_v4.z.boolean(),
|
|
160
|
+
concurrent: zod_v4.z.boolean(),
|
|
161
|
+
outputDir: zod_v4.z.string().optional(),
|
|
162
|
+
status: testnetStageStatusSchema,
|
|
163
|
+
error: zod_v4.z.string().optional(),
|
|
164
|
+
createdAt: timestamp,
|
|
165
|
+
updatedAt: timestamp,
|
|
166
|
+
progress: testnetTaskProgressSchema
|
|
167
|
+
});
|
|
168
|
+
/**
|
|
169
|
+
* {@link TestnetOptions}
|
|
170
|
+
**/
|
|
171
|
+
const testnetOptionsSchema = zod_v4.z.object({
|
|
172
|
+
description: zod_v4.z.string().optional(),
|
|
173
|
+
chainId: zod_v4.z.number().optional(),
|
|
174
|
+
network: require_onchain_chain_chains.NetworkType,
|
|
175
|
+
cid: zod_v4.z.string().optional(),
|
|
176
|
+
anvilFlags: zod_v4.z.array(zod_v4.z.string()).optional(),
|
|
177
|
+
anvilImage: zod_v4.z.string().optional(),
|
|
178
|
+
rpcProvider: zod_v4.z.string().optional(),
|
|
179
|
+
addressProvider: require_onchain_utils_zod.ZodAddress().optional(),
|
|
180
|
+
marketConfigurators: zod_v4.z.array(require_onchain_utils_zod.ZodAddress()).optional(),
|
|
181
|
+
rwaFactories: zod_v4.z.array(require_onchain_utils_zod.ZodAddress()).optional(),
|
|
182
|
+
blockNumber: zod_v4.z.string(),
|
|
183
|
+
owner: zod_v4.z.string(),
|
|
184
|
+
timeout: zod_v4.z.string(),
|
|
185
|
+
synctronLogLevel: zod_v4.z.string().optional(),
|
|
186
|
+
scripts: nullableArray(testnetScriptOptionsSchema),
|
|
187
|
+
disableSync: zod_v4.z.boolean(),
|
|
188
|
+
disableIntervalMining: zod_v4.z.boolean(),
|
|
189
|
+
disableRPCProtection: zod_v4.z.boolean(),
|
|
190
|
+
debug: zod_v4.z.boolean().optional(),
|
|
191
|
+
webhooks: nullableArray(zod_v4.z.string()),
|
|
192
|
+
backend: testnetBackendOptionsSchema.optional(),
|
|
193
|
+
tasks: zod_v4.z.array(testnetTaskDefinitionSchema).optional()
|
|
194
|
+
});
|
|
195
|
+
/**
|
|
196
|
+
* {@link TestnetStatus}
|
|
197
|
+
**/
|
|
198
|
+
const testnetStatusSchema = zod_v4.z.object({
|
|
199
|
+
alias: zod_v4.z.string().optional(),
|
|
200
|
+
network: require_onchain_chain_chains.NetworkType,
|
|
201
|
+
nextRestart: timestamp.optional(),
|
|
202
|
+
isActive: zod_v4.z.boolean(),
|
|
203
|
+
ready: zod_v4.z.boolean(),
|
|
204
|
+
paused: zod_v4.z.boolean(),
|
|
205
|
+
rpcUrl: zod_v4.z.string().optional(),
|
|
206
|
+
url: zod_v4.z.string(),
|
|
207
|
+
logsUrl: zod_v4.z.string(),
|
|
208
|
+
persistent: zod_v4.z.boolean(),
|
|
209
|
+
latestBlock: testnetScriptBlockSchema.optional(),
|
|
210
|
+
tasks: zod_v4.z.array(testnetTaskSchema).optional(),
|
|
211
|
+
backend: testnetBackendStatusSchema.optional(),
|
|
212
|
+
executionId: zod_v4.z.string(),
|
|
213
|
+
options: testnetOptionsSchema,
|
|
214
|
+
forkBlock: testnetBlockSchema,
|
|
215
|
+
syncBlock: zod_v4.z.number(),
|
|
216
|
+
syncError: zod_v4.z.string().optional(),
|
|
217
|
+
originChainId: zod_v4.z.number(),
|
|
218
|
+
anvilChainId: zod_v4.z.number(),
|
|
219
|
+
createdAt: timestamp,
|
|
220
|
+
addressProvider: require_onchain_utils_zod.ZodAddress(),
|
|
221
|
+
marketConfigurators: zod_v4.z.array(require_onchain_utils_zod.ZodAddress()).optional(),
|
|
222
|
+
rwaFactories: zod_v4.z.array(require_onchain_utils_zod.ZodAddress()).optional(),
|
|
223
|
+
onchainExecutionId: require_onchain_utils_zod.ZodAddress(),
|
|
224
|
+
scripts: zod_v4.z.array(testnetScriptSchema).optional(),
|
|
225
|
+
cid: zod_v4.z.string().optional(),
|
|
226
|
+
files: zod_v4.z.array(zod_v4.z.string()).optional()
|
|
227
|
+
});
|
|
228
|
+
//#endregion
|
|
229
|
+
exports.testnetBackendOptionsSchema = testnetBackendOptionsSchema;
|
|
230
|
+
exports.testnetBackendStateSchema = testnetBackendStateSchema;
|
|
231
|
+
exports.testnetBackendStatusSchema = testnetBackendStatusSchema;
|
|
232
|
+
exports.testnetBlockSchema = testnetBlockSchema;
|
|
233
|
+
exports.testnetOptionsSchema = testnetOptionsSchema;
|
|
234
|
+
exports.testnetSchema = testnetSchema;
|
|
235
|
+
exports.testnetScriptBlockSchema = testnetScriptBlockSchema;
|
|
236
|
+
exports.testnetScriptOptionsSchema = testnetScriptOptionsSchema;
|
|
237
|
+
exports.testnetScriptSchema = testnetScriptSchema;
|
|
238
|
+
exports.testnetStageStatusSchema = testnetStageStatusSchema;
|
|
239
|
+
exports.testnetStatusSchema = testnetStatusSchema;
|
|
240
|
+
exports.testnetTaskDefinitionSchema = testnetTaskDefinitionSchema;
|
|
241
|
+
exports.testnetTaskProgressSchema = testnetTaskProgressSchema;
|
|
242
|
+
exports.testnetTaskSchema = testnetTaskSchema;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
//#region src/abi/310/iKillSwitchProxy.ts
|
|
2
|
+
const iKillSwitchProxyAbi = [
|
|
3
|
+
{
|
|
4
|
+
type: "constructor",
|
|
5
|
+
inputs: [{
|
|
6
|
+
name: "_owner",
|
|
7
|
+
internalType: "address",
|
|
8
|
+
type: "address"
|
|
9
|
+
}, {
|
|
10
|
+
name: "_caller",
|
|
11
|
+
internalType: "address",
|
|
12
|
+
type: "address"
|
|
13
|
+
}],
|
|
14
|
+
stateMutability: "nonpayable"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
type: "function",
|
|
18
|
+
inputs: [],
|
|
19
|
+
name: "caller",
|
|
20
|
+
outputs: [{
|
|
21
|
+
name: "",
|
|
22
|
+
internalType: "address",
|
|
23
|
+
type: "address"
|
|
24
|
+
}],
|
|
25
|
+
stateMutability: "view"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
type: "function",
|
|
29
|
+
inputs: [],
|
|
30
|
+
name: "contractType",
|
|
31
|
+
outputs: [{
|
|
32
|
+
name: "",
|
|
33
|
+
internalType: "bytes32",
|
|
34
|
+
type: "bytes32"
|
|
35
|
+
}],
|
|
36
|
+
stateMutability: "view"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
type: "function",
|
|
40
|
+
inputs: [],
|
|
41
|
+
name: "isKilled",
|
|
42
|
+
outputs: [{
|
|
43
|
+
name: "",
|
|
44
|
+
internalType: "bool",
|
|
45
|
+
type: "bool"
|
|
46
|
+
}],
|
|
47
|
+
stateMutability: "view"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
type: "function",
|
|
51
|
+
inputs: [],
|
|
52
|
+
name: "kill",
|
|
53
|
+
outputs: [],
|
|
54
|
+
stateMutability: "nonpayable"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
type: "function",
|
|
58
|
+
inputs: [],
|
|
59
|
+
name: "owner",
|
|
60
|
+
outputs: [{
|
|
61
|
+
name: "",
|
|
62
|
+
internalType: "address",
|
|
63
|
+
type: "address"
|
|
64
|
+
}],
|
|
65
|
+
stateMutability: "view"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: "function",
|
|
69
|
+
inputs: [{
|
|
70
|
+
name: "target",
|
|
71
|
+
internalType: "address",
|
|
72
|
+
type: "address"
|
|
73
|
+
}, {
|
|
74
|
+
name: "data",
|
|
75
|
+
internalType: "bytes",
|
|
76
|
+
type: "bytes"
|
|
77
|
+
}],
|
|
78
|
+
name: "proxyCall",
|
|
79
|
+
outputs: [{
|
|
80
|
+
name: "result",
|
|
81
|
+
internalType: "bytes",
|
|
82
|
+
type: "bytes"
|
|
83
|
+
}],
|
|
84
|
+
stateMutability: "nonpayable"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
type: "function",
|
|
88
|
+
inputs: [],
|
|
89
|
+
name: "version",
|
|
90
|
+
outputs: [{
|
|
91
|
+
name: "",
|
|
92
|
+
internalType: "uint256",
|
|
93
|
+
type: "uint256"
|
|
94
|
+
}],
|
|
95
|
+
stateMutability: "view"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
type: "event",
|
|
99
|
+
anonymous: false,
|
|
100
|
+
inputs: [],
|
|
101
|
+
name: "Killed"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
type: "error",
|
|
105
|
+
inputs: [{
|
|
106
|
+
name: "caller",
|
|
107
|
+
internalType: "address",
|
|
108
|
+
type: "address"
|
|
109
|
+
}],
|
|
110
|
+
name: "CallerIsNotOwnerException"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
type: "error",
|
|
114
|
+
inputs: [],
|
|
115
|
+
name: "KilledException"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
type: "error",
|
|
119
|
+
inputs: [],
|
|
120
|
+
name: "OnlyCallerException"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
type: "error",
|
|
124
|
+
inputs: [],
|
|
125
|
+
name: "OwnerSameAsCallerException"
|
|
126
|
+
}
|
|
127
|
+
];
|
|
128
|
+
//#endregion
|
|
129
|
+
export { iKillSwitchProxyAbi };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BigIntMath } from "../../utils/bigint-math.js";
|
|
2
|
+
import { PERCENTAGE_FACTOR } from "../../constants/math.js";
|
|
2
3
|
import { toTargetDecimals } from "./utils/common.js";
|
|
3
4
|
import { collateralValuation } from "./collateral-valuation.js";
|
|
4
5
|
//#region src/onchain/accounts/intents/maxBorrowAndWithdraw.ts
|
|
@@ -18,7 +19,8 @@ function maxBorrowAndWithdraw(props) {
|
|
|
18
19
|
return market.priceOracle.safeConvertFromUSD(creditAccount.underlying, backed / target).value;
|
|
19
20
|
};
|
|
20
21
|
const totalDebt = BigIntMath.min(supportedDebt(targetHF, false), supportedDebt(targetSafeHF, true), suite.creditFacade.maxDebt);
|
|
21
|
-
const
|
|
22
|
+
const borrowable = suite.maxBorrowAmount().amount.value * (PERCENTAGE_FACTOR - 2n) / PERCENTAGE_FACTOR;
|
|
23
|
+
const additional = BigIntMath.max(0n, BigIntMath.min(totalDebt - creditAccount.totalDebt, borrowable));
|
|
22
24
|
const asset = sdk.tokensMeta.rwaUnderlyings.get(creditAccount.underlying)?.asset;
|
|
23
25
|
const payout = asset ? toTargetDecimals(additional, creditAccount.underlying, asset, sdk) : additional;
|
|
24
26
|
const increase = asset ? toTargetDecimals(payout, asset, creditAccount.underlying, sdk) : payout;
|
|
@@ -75,6 +75,9 @@ import { iSecuritizeOnRampAdapterV310Abi } from "./market/adapters/abi/adapters/
|
|
|
75
75
|
import { iSecuritizeRedemptionGatewayAdapterV311Abi } from "./market/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.js";
|
|
76
76
|
import { iStakingRewardsAdapterAbi } from "./market/adapters/abi/adapters/iStakingRewardsAdapter.js";
|
|
77
77
|
import { iTraderJoeRouterAdapterAbi } from "./market/adapters/abi/adapters/iTraderJoeRouterAdapter.js";
|
|
78
|
+
import { iTreehouseFastlaneAdapterAbi } from "./market/adapters/abi/adapters/iTreehouseFastlaneAdapter.js";
|
|
79
|
+
import { iTreehouseRedemptionGatewayAdapterAbi } from "./market/adapters/abi/adapters/iTreehouseRedemptionGatewayAdapter.js";
|
|
80
|
+
import { iTreehouseRouterAdapterAbi } from "./market/adapters/abi/adapters/iTreehouseRouterAdapter.js";
|
|
78
81
|
import { iUniswapV2AdapterAbi } from "./market/adapters/abi/adapters/iUniswapV2Adapter.js";
|
|
79
82
|
import { iUniswapV3AdapterAbi } from "./market/adapters/abi/adapters/iUniswapV3Adapter.js";
|
|
80
83
|
import { iUniswapV4AdapterAbi, iUniswapV4GatewayAbi } from "./market/adapters/abi/adapters/iUniswapV4Adapter.js";
|
|
@@ -88,6 +91,9 @@ import { iBaseOnRampAbi } from "./market/adapters/abi/securitize/iBaseOnRamp.js"
|
|
|
88
91
|
import { iSecuritizeOnRampAbi } from "./market/adapters/abi/securitize/iSecuritizeOnRamp.js";
|
|
89
92
|
import { iSecuritizeRedemptionGatewayV311Abi } from "./market/adapters/abi/securitize/iSecuritizeRedemptionGatewayV311.js";
|
|
90
93
|
import { iBalancerV3RouterAbi, iBalancerV3WrapperAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3RouterAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iDaiUsdsAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iInfinifiGatewayAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iMellowClaimerAbi, iMellowWrapperAbi, iMidasIssuanceVaultV310Abi, iPendleRouterAbi, iStakingRewardsAbi, iTraderJoeRouterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iVelodromeV2RouterAbi, iwstETHAbi, lidoV1_WETHGatewayAbi } from "./market/adapters/abi/targetContractAbi.js";
|
|
94
|
+
import { iTreehouseFastlaneAbi } from "./market/adapters/abi/treehouse/iTreehouseFastlane.js";
|
|
95
|
+
import { iTreehouseRedemptionGatewayAbi } from "./market/adapters/abi/treehouse/iTreehouseRedemptionGateway.js";
|
|
96
|
+
import { iTreehouseRouterAbi } from "./market/adapters/abi/treehouse/iTreehouseRouter.js";
|
|
91
97
|
import { getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, hasAdapterDeployParamsAbi, parseAdapterAction, parseAdapterDeployParams } from "./market/adapters/abi/utils.js";
|
|
92
98
|
import { allTransfersAsTokenAmounts, classifyCurveOperation, curveAddLiquidityFromTransfers, curveRemoveLiquidityFromTransfers, fnSigToName, parsePosNegAmount, rewardsFromTransfers, swapFromTransfers, toNetTransfers } from "./market/adapters/transferHelpers.js";
|
|
93
99
|
import { AbstractAdapterContract } from "./market/adapters/contracts/AbstractAdapter.js";
|
|
@@ -123,6 +129,9 @@ import { SecuritizeOnRampAdapterContract } from "./market/adapters/contracts/Sec
|
|
|
123
129
|
import { SecuritizeRedemptionGatewayAdapterContract } from "./market/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.js";
|
|
124
130
|
import { StakingRewardsAdapterContract } from "./market/adapters/contracts/StakingRewardsAdapterContract.js";
|
|
125
131
|
import { TraderJoePoolVersion, TraderJoeRouterAdapterContract } from "./market/adapters/contracts/TraderJoeRouterAdapterContract.js";
|
|
132
|
+
import { TreehouseFastlaneAdapterContract } from "./market/adapters/contracts/TreehouseFastlaneAdapterContract.js";
|
|
133
|
+
import { TreehouseRedemptionGatewayAdapterContract } from "./market/adapters/contracts/TreehouseRedemptionGatewayAdapterContract.js";
|
|
134
|
+
import { TreehouseRouterAdapterContract } from "./market/adapters/contracts/TreehouseRouterAdapterContract.js";
|
|
126
135
|
import { UniswapV2AdapterContract } from "./market/adapters/contracts/UniswapV2AdapterContract.js";
|
|
127
136
|
import { UniswapV3AdapterContract } from "./market/adapters/contracts/UniswapV3AdapterContract.js";
|
|
128
137
|
import { UniswapV4AdapterContract } from "./market/adapters/contracts/UniswapV4AdapterContract.js";
|
|
@@ -311,4 +320,4 @@ import { replayMulticall } from "./preview/preview/replayMulticall.js";
|
|
|
311
320
|
import { previewOperation } from "./preview/preview/previewOperation.js";
|
|
312
321
|
import "./preview/index.js";
|
|
313
322
|
import "./types/index.js";
|
|
314
|
-
export { ADDRESS_0X0, ADDRESS_PROVIDER_V310, AP_ACCOUNT_FACTORY, AP_ACL, AP_BOT_LIST, AP_BYTECODE_REPOSITORY, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_CREDIT_SUITE_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GAUGE_COMPRESSOR, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_PARTIAL_LIQUIDATION_BOT, AP_PERIPHERY_COMPRESSOR, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_FEED_STORE, AP_PRICE_ORACLE, AP_REDEMPTION_LOGGER, AP_REWARDS_COMPRESSOR, AP_ROUTER, AP_TOKEN_COMPRESSOR, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, AbstractAdapterContract, AbstractLPPriceFeedContract, AbstractPriceFeedContract, AbstractWithdrawalCompressorContract, AccountBotsService, AccountMigratorAdapterContract, AdapterType, AddressMap, AddressProviderV310Contract, AddressSet, AssetsMap, BLOCKS_PER_WEEK_BY_NETWORK, BalancerStablePriceFeedContract, BalancerV3PoolStatus, BalancerV3RouterAdapterContract, BalancerV3WrapperAdapterContract, BalancerWeightedPriceFeedContract, BaseContract, BasePlugin, BigIntMath, BotPermissions, BoundedPriceFeedContract, CamelotV3AdapterContract, ChainContractsRegister, ChainNotConfiguredError, CompositePriceFeedContract, ConstantPriceFeedContract, Construct, ContractParseError, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, CreditAccountCompressor, CreditAccountCompressorV310Contract, CreditAccountOperationsService, CreditAccountState, CreditAccountsServiceV310, CreditConfiguratorV310Contract, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerV310Contract, CreditSuite, CreditSuiteStrategy, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve4AssetsAdapterContract, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1StableNGAdapterContract, DEFAULT_QUOTA_BUFFER_BPS, DEGEN_NFT_MIDAS, DEGEN_NFT_SECURITIZE, DELAYED_INTENT_TYPES, DELAYED_INTENT_VERSION, DIRECT_TRANSFERS_QUOTA, DUST_THRESHOLD, DaiUsdsAdapterContract, ERC4626AdapterContract, ERC4626ReferralAdapterContract, EXECUTE_BYTES_SELECTOR, Erc4626PriceFeedContract, ExternalPriceFeedContract, FluidDexAdapterContract, GaugeContract, IERC20ZapperContract, IETHZapperContract, InfinifiGatewayAdapterContract, InfinifiUnwindingGatewayAdapterContract, KelpLRTDepositPoolAdapterContract, KelpLRTWithdrawalManagerAdapterContract, LEVERAGE_DECIMALS, LIQUIDATION_APPROVAL_BUFFER, LIQUIDATION_COMPRESSOR_V313_ADDRESS, LidoV1AdapterContract, LinearInterestRateModelContract, LiquidationsService, MAX_INT, MAX_LEVERAGE_BUFFER_BPS, MAX_QUOTA_MULTIPLIER, MAX_UINT16, MAX_UINT256, MIN_HEALTH_FACTOR_FACADE, MIN_HEALTH_FACTOR_FORM, MIN_HF_LIMITED, MIN_INT96, MIN_SAFE_HEALTH_FACTOR_FORM, MULTICALL_ADDRESS, MarketRegister, MarketSuite, MellowClaimerAdapterContract, MellowDVVAdapterContract, MellowERC4626VaultAdapterContract, MellowLRTPriceFeedContract, MellowWrapperAdapterContract, MidasDegenNFT, MidasGatewayAdapterContract, MidasIssuanceVaultAdapterContract, MidasLiquidatorContract, MidasRedemptionVaultAdapterContract, MissingSerializedParamsError, MultichainConstruct, MultichainLiquidationsService, MultichainOpportunitiesService, MultichainPositionsService, MultichainSDK, NATIVE_ADDRESS, NON_STRATEGY_PHANTOM_TOKEN_TYPES, NOT_DEPLOYED, NO_VERSION, NetworkType, OnchainSDK, OpportunitiesService, PARTIAL_LIQUIDATION_BUFFER_BPS, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PERCENTAGE_FACTOR_1KK, PERIPHERY_CONTRACTS, PHANTOM_TOKEN_CONTRACT_TYPES, PHANTOM_TOKEN_MIDAS_REDEMPTION, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, PRICE_DECIMALS, PRICE_DECIMALS_POW, PartialPriceFeedInitError, PendlePairStatus, PendleRouterAdapterContract, PendleTWAPPTPriceFeed, PendleTokenType, PeripheryCompressorV310Contract, PluginStateVersionError, PoolService, PoolSuite, PoolV310Contract, PositionsService, PriceFeedRef, PriceFeedRegistry, PriceOracleV310Contract, PriceUpdatesCache, PythPriceFeed, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, RWARegistry, RWA_COMPRESSOR_ADDRESS, RWA_LIQUIDATOR_MIDAS, RWA_LIQUIDATOR_SECURITIZE, RWA_ON_DEMAND_LP_MONOPOLIZED, RWA_UNDERLYING_DEFAULT, RWA_UNDERLYING_ON_DEMAND, RedemptionLoggerV310Contract, RedstonePriceFeedContract, RouterV310Contract, SDKConstruct, SECONDS_PER_YEAR, SLIPPAGE_DECIMALS, STATE_VERSION, SUPPORTED_NETWORKS, SdkAlreadyAttachedError, SdkChainMismatchError, SdkMissingChainStateError, SdkNotAttachedError, SdkRWADataNotLoadedError, SdkStateVersionMismatchError, SdkSyncFailedError, SecuritizeDegenNFT, SecuritizeLiquidatorContract, SecuritizeOnRampAdapterContract, SecuritizeRWAFactory, SecuritizeRedemptionGatewayAdapterContract, SimulateWithPriceUpdatesError, SimulationError, StakingRewardsAdapterContract, TokensMeta, TraderJoePoolVersion, TraderJoeRouterAdapterContract, TypedObjectUtils, UniswapV2AdapterContract, UniswapV3AdapterContract, UniswapV4AdapterContract, UpdatablePriceFeedRegistry, UpshiftVaultAdapterContract, VERSION_RANGE_310, VelodromeV2RouterAdapterContract, VotingContractStatus, WAD, WAD_DECIMALS_POW, WithdrawalCompressorV310Contract, WithdrawalCompressorV311Contract, WithdrawalCompressorV313Contract, WstETHPriceFeedContract, WstETHV1AdapterContract, YearnPriceFeedContract, ZapperContract, ZeroPriceFeedContract, ZodAddress, ZodBigInt, ZodHex, accountSnapshotFromCreditAccountData, adapterActionAbi, adapterActionSelectors, adapterActionSignatures, adapterConstructorAbi, allTransfersAsTokenAmounts, amountOf, assetsMap, attachOptionsSchema, botPermissionsToString, bpsToRay, buildDelayedStrategyPositionOperationPreview, bytes32ToString, calcBorrowApy, calcBorrowRate, calcDefaultQuota, calcEffectiveBorrowApy, calcHealthFactor, calcLiquidationPrice, calcLiquidationPriceForTarget, calcMaxLeverage, calcNetStrategyApy, calcPositionLeverage, calcQuotaRate, calcQuotaUpdate, calcRecommendedQuota, calcTimeToLiquidationMs, calcUtilization, calcUtilizationRaw, chains, checkAccountQuotas, checkBorrowLimit, checkCollateralFunding, checkCollateralised, checkCreditAccountFrozen, checkCreditManagerPaused, checkCreditOperation, checkDebtLimits, checkEmergencyLiquidator, checkForbiddenToken, checkHealthFactors, checkIncreaseDebt, checkIncreaseQuota, checkLeverage, checkLiquidation, checkLiquidationEligibility, checkLiquidationFunding, checkLiquidatorEligible, checkMarket, checkMarketExpired, checkMaxQuota, checkMidasAccountGreenlist, checkObtained, checkOperation, checkPartiallyLiquidatable, checkPoolFunding, checkPoolLiquidity, checkPoolOperation, checkPoolPaused, checkPoolSunset, checkQuotaActive, checkQuotaChange, checkQuotaCount, checkQuotaLimit, checkQuotaUpdates, checkRWAOpenRequirements, checkRWAOpening, checkReservePriceLimited, checkSimulation, checkWallet, checkWalletAllowance, checkWalletBalance, childLogger, classifyCloseOrRepay, classifyCurveOperation, classifyInnerOperations, collateralPriceInUnderlying, collectTraces, createAdapter, createAddressProvider, createPriceOracle, createRawTx, createRedemptionLogger, createRouter, createWithdrawalCompressor, createZapper, abi as creditFacadeV310Abi, curveAddLiquidityFromTransfers, curveRemoveLiquidityFromTransfers, decodeDelayedIntent, detectDelayedClaim, detectDelayedOperation, detectNetwork, dominantCollateral, encodeDelayedIntent, erc4626ReferralAdapterAbi, estimateClaimableAt, estimateRawTxGas, etherscanApiUrl, etherscanUrl, executeDelegatedMulticalls, executeMulticallBatches, expectedBalanceDeltas, fetchCreditAccountSlice, filterDust, filterDustUSD, findCallTo, findCallWithInput, findCuratorMarketConfigurator, findExecuteBytes, fmtBinaryMask, fnSigToName, formatBN, formatBNvalue, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, formatTimestamp, functionArgsToMap, functionArgsToRecord, generateCastTraceCall, getAccountTargetCollateral, getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, getAssetType, getCastTraceArgs, getChain, getCuratorName, getDirectTransferToken, getFunctionSignature, getLegacyStrategyTarget, getNetworkType, getRawPriceUpdates, getSimulateWithPriceUpdatesError, getWithdrawalCompressorAddress, halfRAY, hasAdapterDeployParamsAbi, healthFactorBps, hexEq, hydrateAddressProvider, iBalancerV3RouterAbi, iBalancerV3RouterAdapterAbi, iBalancerV3WrapperAbi, iBalancerV3WrapperAdapterAbi, iBaseOnRampAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3AdapterAbi, iCamelotV3RouterAbi, iConvexV1BaseRewardPoolAdapterAbi, iConvexV1BoosterAdapterAbi, iCreditAccountAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iCurveV1StableNgAdapterAbi, iCurveV1_2AssetsAdapterAbi, iCurveV1_3AssetsAdapterAbi, iCurveV1_4AssetsAdapterAbi, iDaiUsdsAbi, iDaiUsdsAdapterAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iFluidDexAdapterAbi, iInfinifiGatewayAbi, iInfinifiGatewayAdapterAbi, iInfinifiUnwindingGatewayAbi, iInfinifiUnwindingGatewayAdapterAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iKelpLrtDepositPoolAdapterAbi, iKelpLrtDepositPoolGatewayAbi, iKelpLrtWithdrawalManagerAdapterAbi, iKelpLrtWithdrawalManagerGatewayAbi, iLidoV1AdapterAbi, iMellow4626VaultAdapterAbi, iMellowClaimerAbi, iMellowClaimerAdapterAbi, iMellowWrapperAbi, iMellowWrapperAdapterAbi, iMidasGatewayAdapterV311Abi, iMidasGatewayV311Abi, iMidasIssuanceVaultAdapterV310Abi, iMidasIssuanceVaultV310Abi, iMidasRedemptionVaultAdapterV310Abi, iMidasRedemptionVaultGatewayV310Abi, iPendleRouterAbi, iPendleRouterAdapterAbi, iSecuritizeOnRampAbi, iSecuritizeOnRampAdapterV310Abi, iSecuritizeRedemptionGatewayAdapterV311Abi, iSecuritizeRedemptionGatewayV311Abi, iStakingRewardsAbi, iStakingRewardsAdapterAbi, iTraderJoeRouterAbi, iTraderJoeRouterAdapterAbi, iUniswapV2AdapterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iUniswapV3AdapterAbi, iUniswapV4AdapterAbi, iUniswapV4GatewayAbi, iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi, iVelodromeV2RouterAbi, iVelodromeV2RouterAdapterAbi, isCloseOrRepay, isDust, isLPPriceFeed, isPhantomToken, isPoolOperation, isPublicNetwork, isRWAFactory, isRWAOperation, isRWAToken, isStrategyCollateral, isSunsetPool, isSunsetStrategy, isSupportedNetwork, isUpdatablePriceFeed, isV310, isVersionRange, isZeroBalance, iwstETHAbi, iwstEthv1AdapterAbi, json_parse, json_stringify, lidoV1_WETHGatewayAbi, makeReplayState, maxAmountForQuota, mellowDvvAdapterAbi, midasGreenlistsAccount, minSeizedAmount, numberWithCommas, onchainSDKOptionsSchema, optimalHFForPartialLiquidation, optimalPartialLiquidation, optimalPartialLiquidationAmounts, parseAdapterAction, parseAdapterDeployParams, parseFacadeOperationCalldata, parseOperationCalldata, parsePoolOperationCalldata, parsePosNegAmount, parseRWAFactoryOperationCalldata, partialLiquidationParams, percentFmt, pickStrategyTargetCollateral, previewAdjustStrategyPosition, previewExitOrRepayStrategyPosition, previewOperation, raise, rayToBps, rayToNumber, replayInnerOperations, replayMulticall, resolveDelayedClaimIntent, resolveProtocolCall, retry, rewardsFromTransfers, roundUpQuota, sendRawTx, shortAddress, shortHash, simulateCall, simulateMulticall, simulateWithPriceUpdates, soleNonUnderlyingCollateral, strategyName, swapFromTransfers, toAddress, toBN, toBigInt, toChainIds, toClaimableWithdrawal, toCreditAccountSlice, toNetTransfers, toPendingWithdrawal, toRequestableWithdrawal, toSignificant, toToken, toTokenAmount, toWithdrawalStatus, updatableDependencies, usdToNumber, watchBlocksAsync };
|
|
323
|
+
export { ADDRESS_0X0, ADDRESS_PROVIDER_V310, AP_ACCOUNT_FACTORY, AP_ACL, AP_BOT_LIST, AP_BYTECODE_REPOSITORY, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_CREDIT_SUITE_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GAUGE_COMPRESSOR, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_PARTIAL_LIQUIDATION_BOT, AP_PERIPHERY_COMPRESSOR, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_FEED_STORE, AP_PRICE_ORACLE, AP_REDEMPTION_LOGGER, AP_REWARDS_COMPRESSOR, AP_ROUTER, AP_TOKEN_COMPRESSOR, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, AbstractAdapterContract, AbstractLPPriceFeedContract, AbstractPriceFeedContract, AbstractWithdrawalCompressorContract, AccountBotsService, AccountMigratorAdapterContract, AdapterType, AddressMap, AddressProviderV310Contract, AddressSet, AssetsMap, BLOCKS_PER_WEEK_BY_NETWORK, BalancerStablePriceFeedContract, BalancerV3PoolStatus, BalancerV3RouterAdapterContract, BalancerV3WrapperAdapterContract, BalancerWeightedPriceFeedContract, BaseContract, BasePlugin, BigIntMath, BotPermissions, BoundedPriceFeedContract, CamelotV3AdapterContract, ChainContractsRegister, ChainNotConfiguredError, CompositePriceFeedContract, ConstantPriceFeedContract, Construct, ContractParseError, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, CreditAccountCompressor, CreditAccountCompressorV310Contract, CreditAccountOperationsService, CreditAccountState, CreditAccountsServiceV310, CreditConfiguratorV310Contract, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerV310Contract, CreditSuite, CreditSuiteStrategy, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve4AssetsAdapterContract, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1StableNGAdapterContract, DEFAULT_QUOTA_BUFFER_BPS, DEGEN_NFT_MIDAS, DEGEN_NFT_SECURITIZE, DELAYED_INTENT_TYPES, DELAYED_INTENT_VERSION, DIRECT_TRANSFERS_QUOTA, DUST_THRESHOLD, DaiUsdsAdapterContract, ERC4626AdapterContract, ERC4626ReferralAdapterContract, EXECUTE_BYTES_SELECTOR, Erc4626PriceFeedContract, ExternalPriceFeedContract, FluidDexAdapterContract, GaugeContract, IERC20ZapperContract, IETHZapperContract, InfinifiGatewayAdapterContract, InfinifiUnwindingGatewayAdapterContract, KelpLRTDepositPoolAdapterContract, KelpLRTWithdrawalManagerAdapterContract, LEVERAGE_DECIMALS, LIQUIDATION_APPROVAL_BUFFER, LIQUIDATION_COMPRESSOR_V313_ADDRESS, LidoV1AdapterContract, LinearInterestRateModelContract, LiquidationsService, MAX_INT, MAX_LEVERAGE_BUFFER_BPS, MAX_QUOTA_MULTIPLIER, MAX_UINT16, MAX_UINT256, MIN_HEALTH_FACTOR_FACADE, MIN_HEALTH_FACTOR_FORM, MIN_HF_LIMITED, MIN_INT96, MIN_SAFE_HEALTH_FACTOR_FORM, MULTICALL_ADDRESS, MarketRegister, MarketSuite, MellowClaimerAdapterContract, MellowDVVAdapterContract, MellowERC4626VaultAdapterContract, MellowLRTPriceFeedContract, MellowWrapperAdapterContract, MidasDegenNFT, MidasGatewayAdapterContract, MidasIssuanceVaultAdapterContract, MidasLiquidatorContract, MidasRedemptionVaultAdapterContract, MissingSerializedParamsError, MultichainConstruct, MultichainLiquidationsService, MultichainOpportunitiesService, MultichainPositionsService, MultichainSDK, NATIVE_ADDRESS, NON_STRATEGY_PHANTOM_TOKEN_TYPES, NOT_DEPLOYED, NO_VERSION, NetworkType, OnchainSDK, OpportunitiesService, PARTIAL_LIQUIDATION_BUFFER_BPS, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PERCENTAGE_FACTOR_1KK, PERIPHERY_CONTRACTS, PHANTOM_TOKEN_CONTRACT_TYPES, PHANTOM_TOKEN_MIDAS_REDEMPTION, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, PRICE_DECIMALS, PRICE_DECIMALS_POW, PartialPriceFeedInitError, PendlePairStatus, PendleRouterAdapterContract, PendleTWAPPTPriceFeed, PendleTokenType, PeripheryCompressorV310Contract, PluginStateVersionError, PoolService, PoolSuite, PoolV310Contract, PositionsService, PriceFeedRef, PriceFeedRegistry, PriceOracleV310Contract, PriceUpdatesCache, PythPriceFeed, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, RWARegistry, RWA_COMPRESSOR_ADDRESS, RWA_LIQUIDATOR_MIDAS, RWA_LIQUIDATOR_SECURITIZE, RWA_ON_DEMAND_LP_MONOPOLIZED, RWA_UNDERLYING_DEFAULT, RWA_UNDERLYING_ON_DEMAND, RedemptionLoggerV310Contract, RedstonePriceFeedContract, RouterV310Contract, SDKConstruct, SECONDS_PER_YEAR, SLIPPAGE_DECIMALS, STATE_VERSION, SUPPORTED_NETWORKS, SdkAlreadyAttachedError, SdkChainMismatchError, SdkMissingChainStateError, SdkNotAttachedError, SdkRWADataNotLoadedError, SdkStateVersionMismatchError, SdkSyncFailedError, SecuritizeDegenNFT, SecuritizeLiquidatorContract, SecuritizeOnRampAdapterContract, SecuritizeRWAFactory, SecuritizeRedemptionGatewayAdapterContract, SimulateWithPriceUpdatesError, SimulationError, StakingRewardsAdapterContract, TokensMeta, TraderJoePoolVersion, TraderJoeRouterAdapterContract, TreehouseFastlaneAdapterContract, TreehouseRedemptionGatewayAdapterContract, TreehouseRouterAdapterContract, TypedObjectUtils, UniswapV2AdapterContract, UniswapV3AdapterContract, UniswapV4AdapterContract, UpdatablePriceFeedRegistry, UpshiftVaultAdapterContract, VERSION_RANGE_310, VelodromeV2RouterAdapterContract, VotingContractStatus, WAD, WAD_DECIMALS_POW, WithdrawalCompressorV310Contract, WithdrawalCompressorV311Contract, WithdrawalCompressorV313Contract, WstETHPriceFeedContract, WstETHV1AdapterContract, YearnPriceFeedContract, ZapperContract, ZeroPriceFeedContract, ZodAddress, ZodBigInt, ZodHex, accountSnapshotFromCreditAccountData, adapterActionAbi, adapterActionSelectors, adapterActionSignatures, adapterConstructorAbi, allTransfersAsTokenAmounts, amountOf, assetsMap, attachOptionsSchema, botPermissionsToString, bpsToRay, buildDelayedStrategyPositionOperationPreview, bytes32ToString, calcBorrowApy, calcBorrowRate, calcDefaultQuota, calcEffectiveBorrowApy, calcHealthFactor, calcLiquidationPrice, calcLiquidationPriceForTarget, calcMaxLeverage, calcNetStrategyApy, calcPositionLeverage, calcQuotaRate, calcQuotaUpdate, calcRecommendedQuota, calcTimeToLiquidationMs, calcUtilization, calcUtilizationRaw, chains, checkAccountQuotas, checkBorrowLimit, checkCollateralFunding, checkCollateralised, checkCreditAccountFrozen, checkCreditManagerPaused, checkCreditOperation, checkDebtLimits, checkEmergencyLiquidator, checkForbiddenToken, checkHealthFactors, checkIncreaseDebt, checkIncreaseQuota, checkLeverage, checkLiquidation, checkLiquidationEligibility, checkLiquidationFunding, checkLiquidatorEligible, checkMarket, checkMarketExpired, checkMaxQuota, checkMidasAccountGreenlist, checkObtained, checkOperation, checkPartiallyLiquidatable, checkPoolFunding, checkPoolLiquidity, checkPoolOperation, checkPoolPaused, checkPoolSunset, checkQuotaActive, checkQuotaChange, checkQuotaCount, checkQuotaLimit, checkQuotaUpdates, checkRWAOpenRequirements, checkRWAOpening, checkReservePriceLimited, checkSimulation, checkWallet, checkWalletAllowance, checkWalletBalance, childLogger, classifyCloseOrRepay, classifyCurveOperation, classifyInnerOperations, collateralPriceInUnderlying, collectTraces, createAdapter, createAddressProvider, createPriceOracle, createRawTx, createRedemptionLogger, createRouter, createWithdrawalCompressor, createZapper, abi as creditFacadeV310Abi, curveAddLiquidityFromTransfers, curveRemoveLiquidityFromTransfers, decodeDelayedIntent, detectDelayedClaim, detectDelayedOperation, detectNetwork, dominantCollateral, encodeDelayedIntent, erc4626ReferralAdapterAbi, estimateClaimableAt, estimateRawTxGas, etherscanApiUrl, etherscanUrl, executeDelegatedMulticalls, executeMulticallBatches, expectedBalanceDeltas, fetchCreditAccountSlice, filterDust, filterDustUSD, findCallTo, findCallWithInput, findCuratorMarketConfigurator, findExecuteBytes, fmtBinaryMask, fnSigToName, formatBN, formatBNvalue, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, formatTimestamp, functionArgsToMap, functionArgsToRecord, generateCastTraceCall, getAccountTargetCollateral, getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, getAssetType, getCastTraceArgs, getChain, getCuratorName, getDirectTransferToken, getFunctionSignature, getLegacyStrategyTarget, getNetworkType, getRawPriceUpdates, getSimulateWithPriceUpdatesError, getWithdrawalCompressorAddress, halfRAY, hasAdapterDeployParamsAbi, healthFactorBps, hexEq, hydrateAddressProvider, iBalancerV3RouterAbi, iBalancerV3RouterAdapterAbi, iBalancerV3WrapperAbi, iBalancerV3WrapperAdapterAbi, iBaseOnRampAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3AdapterAbi, iCamelotV3RouterAbi, iConvexV1BaseRewardPoolAdapterAbi, iConvexV1BoosterAdapterAbi, iCreditAccountAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iCurveV1StableNgAdapterAbi, iCurveV1_2AssetsAdapterAbi, iCurveV1_3AssetsAdapterAbi, iCurveV1_4AssetsAdapterAbi, iDaiUsdsAbi, iDaiUsdsAdapterAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iFluidDexAdapterAbi, iInfinifiGatewayAbi, iInfinifiGatewayAdapterAbi, iInfinifiUnwindingGatewayAbi, iInfinifiUnwindingGatewayAdapterAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iKelpLrtDepositPoolAdapterAbi, iKelpLrtDepositPoolGatewayAbi, iKelpLrtWithdrawalManagerAdapterAbi, iKelpLrtWithdrawalManagerGatewayAbi, iLidoV1AdapterAbi, iMellow4626VaultAdapterAbi, iMellowClaimerAbi, iMellowClaimerAdapterAbi, iMellowWrapperAbi, iMellowWrapperAdapterAbi, iMidasGatewayAdapterV311Abi, iMidasGatewayV311Abi, iMidasIssuanceVaultAdapterV310Abi, iMidasIssuanceVaultV310Abi, iMidasRedemptionVaultAdapterV310Abi, iMidasRedemptionVaultGatewayV310Abi, iPendleRouterAbi, iPendleRouterAdapterAbi, iSecuritizeOnRampAbi, iSecuritizeOnRampAdapterV310Abi, iSecuritizeRedemptionGatewayAdapterV311Abi, iSecuritizeRedemptionGatewayV311Abi, iStakingRewardsAbi, iStakingRewardsAdapterAbi, iTraderJoeRouterAbi, iTraderJoeRouterAdapterAbi, iTreehouseFastlaneAbi, iTreehouseFastlaneAdapterAbi, iTreehouseRedemptionGatewayAbi, iTreehouseRedemptionGatewayAdapterAbi, iTreehouseRouterAbi, iTreehouseRouterAdapterAbi, iUniswapV2AdapterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iUniswapV3AdapterAbi, iUniswapV4AdapterAbi, iUniswapV4GatewayAbi, iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi, iVelodromeV2RouterAbi, iVelodromeV2RouterAdapterAbi, isCloseOrRepay, isDust, isLPPriceFeed, isPhantomToken, isPoolOperation, isPublicNetwork, isRWAFactory, isRWAOperation, isRWAToken, isStrategyCollateral, isSunsetPool, isSunsetStrategy, isSupportedNetwork, isUpdatablePriceFeed, isV310, isVersionRange, isZeroBalance, iwstETHAbi, iwstEthv1AdapterAbi, json_parse, json_stringify, lidoV1_WETHGatewayAbi, makeReplayState, maxAmountForQuota, mellowDvvAdapterAbi, midasGreenlistsAccount, minSeizedAmount, numberWithCommas, onchainSDKOptionsSchema, optimalHFForPartialLiquidation, optimalPartialLiquidation, optimalPartialLiquidationAmounts, parseAdapterAction, parseAdapterDeployParams, parseFacadeOperationCalldata, parseOperationCalldata, parsePoolOperationCalldata, parsePosNegAmount, parseRWAFactoryOperationCalldata, partialLiquidationParams, percentFmt, pickStrategyTargetCollateral, previewAdjustStrategyPosition, previewExitOrRepayStrategyPosition, previewOperation, raise, rayToBps, rayToNumber, replayInnerOperations, replayMulticall, resolveDelayedClaimIntent, resolveProtocolCall, retry, rewardsFromTransfers, roundUpQuota, sendRawTx, shortAddress, shortHash, simulateCall, simulateMulticall, simulateWithPriceUpdates, soleNonUnderlyingCollateral, strategyName, swapFromTransfers, toAddress, toBN, toBigInt, toChainIds, toClaimableWithdrawal, toCreditAccountSlice, toNetTransfers, toPendingWithdrawal, toRequestableWithdrawal, toSignificant, toToken, toTokenAmount, toWithdrawalStatus, updatableDependencies, usdToNumber, watchBlocksAsync };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
//#region src/onchain/market/adapters/abi/adapters/iTreehouseFastlaneAdapter.ts
|
|
2
|
+
const iTreehouseFastlaneAdapterAbi = [
|
|
3
|
+
{
|
|
4
|
+
type: "function",
|
|
5
|
+
name: "contractType",
|
|
6
|
+
inputs: [],
|
|
7
|
+
outputs: [{
|
|
8
|
+
name: "",
|
|
9
|
+
type: "bytes32",
|
|
10
|
+
internalType: "bytes32"
|
|
11
|
+
}],
|
|
12
|
+
stateMutability: "view"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: "function",
|
|
16
|
+
name: "creditManager",
|
|
17
|
+
inputs: [],
|
|
18
|
+
outputs: [{
|
|
19
|
+
name: "",
|
|
20
|
+
type: "address",
|
|
21
|
+
internalType: "address"
|
|
22
|
+
}],
|
|
23
|
+
stateMutability: "view"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
type: "function",
|
|
27
|
+
name: "redeemAndFinalize",
|
|
28
|
+
inputs: [{
|
|
29
|
+
name: "shares",
|
|
30
|
+
type: "uint256",
|
|
31
|
+
internalType: "uint256"
|
|
32
|
+
}],
|
|
33
|
+
outputs: [{
|
|
34
|
+
name: "",
|
|
35
|
+
type: "bool",
|
|
36
|
+
internalType: "bool"
|
|
37
|
+
}],
|
|
38
|
+
stateMutability: "nonpayable"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
type: "function",
|
|
42
|
+
name: "redeemAndFinalizeDiff",
|
|
43
|
+
inputs: [{
|
|
44
|
+
name: "leftoverShares",
|
|
45
|
+
type: "uint256",
|
|
46
|
+
internalType: "uint256"
|
|
47
|
+
}],
|
|
48
|
+
outputs: [{
|
|
49
|
+
name: "",
|
|
50
|
+
type: "bool",
|
|
51
|
+
internalType: "bool"
|
|
52
|
+
}],
|
|
53
|
+
stateMutability: "nonpayable"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
type: "function",
|
|
57
|
+
name: "serialize",
|
|
58
|
+
inputs: [],
|
|
59
|
+
outputs: [{
|
|
60
|
+
name: "serializedData",
|
|
61
|
+
type: "bytes",
|
|
62
|
+
internalType: "bytes"
|
|
63
|
+
}],
|
|
64
|
+
stateMutability: "view"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
type: "function",
|
|
68
|
+
name: "tAsset",
|
|
69
|
+
inputs: [],
|
|
70
|
+
outputs: [{
|
|
71
|
+
name: "",
|
|
72
|
+
type: "address",
|
|
73
|
+
internalType: "address"
|
|
74
|
+
}],
|
|
75
|
+
stateMutability: "view"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
type: "function",
|
|
79
|
+
name: "targetContract",
|
|
80
|
+
inputs: [],
|
|
81
|
+
outputs: [{
|
|
82
|
+
name: "",
|
|
83
|
+
type: "address",
|
|
84
|
+
internalType: "address"
|
|
85
|
+
}],
|
|
86
|
+
stateMutability: "view"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
type: "function",
|
|
90
|
+
name: "vaultUnderlying",
|
|
91
|
+
inputs: [],
|
|
92
|
+
outputs: [{
|
|
93
|
+
name: "",
|
|
94
|
+
type: "address",
|
|
95
|
+
internalType: "address"
|
|
96
|
+
}],
|
|
97
|
+
stateMutability: "view"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: "function",
|
|
101
|
+
name: "version",
|
|
102
|
+
inputs: [],
|
|
103
|
+
outputs: [{
|
|
104
|
+
name: "",
|
|
105
|
+
type: "uint256",
|
|
106
|
+
internalType: "uint256"
|
|
107
|
+
}],
|
|
108
|
+
stateMutability: "view"
|
|
109
|
+
}
|
|
110
|
+
];
|
|
111
|
+
//#endregion
|
|
112
|
+
export { iTreehouseFastlaneAdapterAbi };
|