@1delta/abis 0.0.5 → 0.0.7
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/README.md +29 -0
- package/dist/aave/index.d.ts +1 -1
- package/dist/aave/index.d.ts.map +1 -1
- package/dist/aave/index.js +1 -1
- package/dist/aave/weth-gateway.d.ts +38 -0
- package/dist/aave/weth-gateway.d.ts.map +1 -1
- package/dist/aave/weth-gateway.js +25 -0
- package/dist/compound-v3/baseBulker.d.ts +188 -0
- package/dist/compound-v3/baseBulker.d.ts.map +1 -0
- package/dist/compound-v3/baseBulker.js +57 -0
- package/dist/compound-v3/index.d.ts +3 -0
- package/dist/compound-v3/index.d.ts.map +1 -1
- package/dist/compound-v3/index.js +3 -0
- package/dist/compound-v3/mainnetBulker.d.ts +236 -0
- package/dist/compound-v3/mainnetBulker.d.ts.map +1 -0
- package/dist/compound-v3/mainnetBulker.js +63 -0
- package/dist/compound-v3/mainnetWstethBulker.d.ts +246 -0
- package/dist/compound-v3/mainnetWstethBulker.d.ts.map +1 -0
- package/dist/compound-v3/mainnetWstethBulker.js +64 -0
- package/dist/euler-v2/eVault.d.ts +206 -0
- package/dist/euler-v2/eVault.d.ts.map +1 -0
- package/dist/euler-v2/eVault.js +147 -0
- package/dist/euler-v2/evc.d.ts +81 -0
- package/dist/euler-v2/evc.d.ts.map +1 -0
- package/dist/euler-v2/evc.js +62 -0
- package/dist/euler-v2/index.d.ts +5 -0
- package/dist/euler-v2/index.d.ts.map +1 -0
- package/dist/euler-v2/index.js +4 -0
- package/dist/euler-v2/payments.d.ts +140 -0
- package/dist/euler-v2/payments.d.ts.map +1 -0
- package/dist/euler-v2/payments.js +88 -0
- package/dist/euler-v2/swapper.d.ts +143 -0
- package/dist/euler-v2/swapper.d.ts.map +1 -0
- package/dist/euler-v2/swapper.js +105 -0
- package/dist/index.d.ts +9 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -8
- package/dist/init/index.d.ts +1 -1
- package/dist/init/index.d.ts.map +1 -1
- package/dist/init/index.js +1 -1
- package/dist/morpho/index.d.ts +4 -3
- package/dist/morpho/index.d.ts.map +1 -1
- package/dist/morpho/index.js +4 -3
- package/dist/morpho/lista-providers.d.ts +1082 -0
- package/dist/morpho/lista-providers.d.ts.map +1 -0
- package/dist/morpho/lista-providers.js +601 -0
- package/package.json +1 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
export const swapperAbi = [
|
|
2
|
+
{
|
|
3
|
+
type: "function",
|
|
4
|
+
name: "swapSimple",
|
|
5
|
+
inputs: [
|
|
6
|
+
{ type: "uint256", name: "value" },
|
|
7
|
+
{ type: "bytes", name: "data" },
|
|
8
|
+
],
|
|
9
|
+
outputs: [],
|
|
10
|
+
stateMutability: "payable",
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
type: "function",
|
|
14
|
+
name: "approve",
|
|
15
|
+
inputs: [
|
|
16
|
+
{ type: "address", name: "token" },
|
|
17
|
+
{ type: "address", name: "spender" },
|
|
18
|
+
],
|
|
19
|
+
outputs: [],
|
|
20
|
+
stateMutability: "nonpayable",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
type: "function",
|
|
24
|
+
name: "deposit",
|
|
25
|
+
inputs: [
|
|
26
|
+
{ type: "address", name: "token" },
|
|
27
|
+
{ type: "address", name: "vault" },
|
|
28
|
+
{ type: "uint256", name: "amountMin" },
|
|
29
|
+
{ type: "address", name: "account" },
|
|
30
|
+
],
|
|
31
|
+
outputs: [],
|
|
32
|
+
stateMutability: "nonpayable",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: "function",
|
|
36
|
+
name: "repay",
|
|
37
|
+
inputs: [
|
|
38
|
+
{ type: "address", name: "token" },
|
|
39
|
+
{ type: "address", name: "vault" },
|
|
40
|
+
{ type: "uint256", name: "repayAmount" },
|
|
41
|
+
{ type: "uint256", name: "amountMin" },
|
|
42
|
+
{ type: "address", name: "account" },
|
|
43
|
+
],
|
|
44
|
+
outputs: [],
|
|
45
|
+
stateMutability: "nonpayable",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: "function",
|
|
49
|
+
name: "repayAndDeposit",
|
|
50
|
+
inputs: [
|
|
51
|
+
{ type: "address", name: "token" },
|
|
52
|
+
{ type: "address", name: "vault" },
|
|
53
|
+
{ type: "uint256", name: "repayAmount" },
|
|
54
|
+
{ type: "uint256", name: "amountMin" },
|
|
55
|
+
{ type: "address", name: "account" },
|
|
56
|
+
],
|
|
57
|
+
outputs: [],
|
|
58
|
+
stateMutability: "nonpayable",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
type: "function",
|
|
62
|
+
name: "sweep",
|
|
63
|
+
inputs: [
|
|
64
|
+
{ type: "address", name: "token" },
|
|
65
|
+
{ type: "uint256", name: "amountMin" },
|
|
66
|
+
{ type: "address", name: "to" },
|
|
67
|
+
],
|
|
68
|
+
outputs: [],
|
|
69
|
+
stateMutability: "nonpayable",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
type: "function",
|
|
73
|
+
name: "sweepNative",
|
|
74
|
+
inputs: [
|
|
75
|
+
{ type: "uint256", name: "amountMin" },
|
|
76
|
+
{ type: "address", name: "to" },
|
|
77
|
+
],
|
|
78
|
+
outputs: [],
|
|
79
|
+
stateMutability: "nonpayable",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
type: "function",
|
|
83
|
+
name: "wrap",
|
|
84
|
+
inputs: [{ type: "address", name: "wrappedNative" }],
|
|
85
|
+
outputs: [],
|
|
86
|
+
stateMutability: "payable",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
type: "function",
|
|
90
|
+
name: "unwrap",
|
|
91
|
+
inputs: [
|
|
92
|
+
{ type: "address", name: "wrappedNative" },
|
|
93
|
+
{ type: "uint256", name: "amount" },
|
|
94
|
+
],
|
|
95
|
+
outputs: [],
|
|
96
|
+
stateMutability: "nonpayable",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
type: "function",
|
|
100
|
+
name: "multicall",
|
|
101
|
+
inputs: [{ type: "bytes[]", name: "calls" }],
|
|
102
|
+
outputs: [],
|
|
103
|
+
stateMutability: "payable",
|
|
104
|
+
},
|
|
105
|
+
];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export { AaveV2V3Abi, AaveWethGatewayAbi } from './aave/index.js';
|
|
2
|
-
export { venusCompoundV2ComptrollerAbi, COmpoundV2CEtherAbi, } from './compound-v2';
|
|
3
|
-
export { CompoundV3CometAbi } from './compound-v3';
|
|
4
|
-
export { MorphoBlueAbi, MorphoLensAbi, bundler3Abi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, coreAdapterAbi, } from './morpho';
|
|
5
|
-
export { SiloV2Abi } from './silo-v2';
|
|
6
|
-
export { Erc20Abi, Eip2612Abi } from './erc20';
|
|
7
|
-
export { Permit2Abi, VenusComptrollerAbi, LenderPermitAbi } from './permissions';
|
|
8
|
-
export { PosManagerAbi } from './init';
|
|
1
|
+
export { AaveV2V3Abi, AaveWethGatewayAbi, AaveWethGatewayV32Abi } from './aave/index.js';
|
|
2
|
+
export { venusCompoundV2ComptrollerAbi, COmpoundV2CEtherAbi, } from './compound-v2/index.js';
|
|
3
|
+
export { CompoundV3CometAbi, CompoundV3BaseBulkerAbi, CompoundV3MainnetBulkerAbi, CompoundV3MainnetWstethBulkerAbi, } from './compound-v3/index.js';
|
|
4
|
+
export { MorphoBlueAbi, MorphoLensAbi, bundler3Abi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, coreAdapterAbi, LISTA_BNB_PROVIDER, LISTA_ETH_PROVIDER, LISTA_NATIVE_LENDING_PROVIDER, } from './morpho/index.js';
|
|
5
|
+
export { SiloV2Abi } from './silo-v2/index.js';
|
|
6
|
+
export { Erc20Abi, Eip2612Abi } from './erc20/index.js';
|
|
7
|
+
export { Permit2Abi, VenusComptrollerAbi, LenderPermitAbi, } from './permissions/index.js';
|
|
8
|
+
export { PosManagerAbi } from './init/index.js';
|
|
9
|
+
export { evcAbi, eVaultAbi, swapperAbi, paymentsAbi } from './euler-v2/index.js';
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AACxF,OAAO,EACL,6BAA6B,EAC7B,mBAAmB,GACpB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,gCAAgC,GACjC,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,aAAa,EACb,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,kCAAkC,EAClC,6BAA6B,EAC7B,6BAA6B,EAC7B,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,eAAe,GAChB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { AaveV2V3Abi, AaveWethGatewayAbi } from './aave/index.js';
|
|
2
|
-
export { venusCompoundV2ComptrollerAbi, COmpoundV2CEtherAbi, } from './compound-v2';
|
|
3
|
-
export { CompoundV3CometAbi } from './compound-v3';
|
|
4
|
-
export { MorphoBlueAbi, MorphoLensAbi, bundler3Abi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, coreAdapterAbi, } from './morpho';
|
|
5
|
-
export { SiloV2Abi } from './silo-v2';
|
|
6
|
-
export { Erc20Abi, Eip2612Abi } from './erc20';
|
|
7
|
-
export { Permit2Abi, VenusComptrollerAbi, LenderPermitAbi } from './permissions';
|
|
8
|
-
export { PosManagerAbi } from './init';
|
|
1
|
+
export { AaveV2V3Abi, AaveWethGatewayAbi, AaveWethGatewayV32Abi } from './aave/index.js';
|
|
2
|
+
export { venusCompoundV2ComptrollerAbi, COmpoundV2CEtherAbi, } from './compound-v2/index.js';
|
|
3
|
+
export { CompoundV3CometAbi, CompoundV3BaseBulkerAbi, CompoundV3MainnetBulkerAbi, CompoundV3MainnetWstethBulkerAbi, } from './compound-v3/index.js';
|
|
4
|
+
export { MorphoBlueAbi, MorphoLensAbi, bundler3Abi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, coreAdapterAbi, LISTA_BNB_PROVIDER, LISTA_ETH_PROVIDER, LISTA_NATIVE_LENDING_PROVIDER, } from './morpho/index.js';
|
|
5
|
+
export { SiloV2Abi } from './silo-v2/index.js';
|
|
6
|
+
export { Erc20Abi, Eip2612Abi } from './erc20/index.js';
|
|
7
|
+
export { Permit2Abi, VenusComptrollerAbi, LenderPermitAbi, } from './permissions/index.js';
|
|
8
|
+
export { PosManagerAbi } from './init/index.js';
|
|
9
|
+
export { evcAbi, eVaultAbi, swapperAbi, paymentsAbi } from './euler-v2/index.js';
|
package/dist/init/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { PosManagerAbi } from './posManager';
|
|
1
|
+
export { PosManagerAbi } from './posManager.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/init/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/init/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/init/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
|
package/dist/init/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { PosManagerAbi } from './posManager';
|
|
1
|
+
export { PosManagerAbi } from './posManager.js';
|
package/dist/morpho/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { MorphoBlueAbi } from './blue';
|
|
2
|
-
export { MorphoLensAbi } from './lens';
|
|
3
|
-
export { universalRewardsDistributorAbi, bundler3Abi, coreAdapterAbi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, } from './bundler3';
|
|
1
|
+
export { MorphoBlueAbi } from './blue.js';
|
|
2
|
+
export { MorphoLensAbi } from './lens.js';
|
|
3
|
+
export { universalRewardsDistributorAbi, bundler3Abi, coreAdapterAbi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, } from './bundler3.js';
|
|
4
|
+
export { LISTA_BNB_PROVIDER, LISTA_ETH_PROVIDER, LISTA_NATIVE_LENDING_PROVIDER, } from './lista-providers.js';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/morpho/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/morpho/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EACL,8BAA8B,EAC9B,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,kCAAkC,EAClC,6BAA6B,EAC7B,6BAA6B,EAC7B,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,sBAAsB,CAAA"}
|
package/dist/morpho/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { MorphoBlueAbi } from './blue';
|
|
2
|
-
export { MorphoLensAbi } from './lens';
|
|
3
|
-
export { universalRewardsDistributorAbi, bundler3Abi, coreAdapterAbi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, } from './bundler3';
|
|
1
|
+
export { MorphoBlueAbi } from './blue.js';
|
|
2
|
+
export { MorphoLensAbi } from './lens.js';
|
|
3
|
+
export { universalRewardsDistributorAbi, bundler3Abi, coreAdapterAbi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, } from './bundler3.js';
|
|
4
|
+
export { LISTA_BNB_PROVIDER, LISTA_ETH_PROVIDER, LISTA_NATIVE_LENDING_PROVIDER, } from './lista-providers.js';
|