@1delta/abis 0.0.4 → 0.0.6

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 ADDED
@@ -0,0 +1,29 @@
1
+ # @1delta/abis
2
+
3
+ ABI definitions for DeFi lending protocols used across 1delta packages.
4
+
5
+ ## Included Protocols
6
+
7
+ - Aave V2/V3
8
+ - Compound V2 (Venus)
9
+ - Compound V3 (Comet)
10
+ - Morpho Blue + Bundler3
11
+ - Silo V2
12
+ - Init Capital
13
+ - ERC20 / EIP-2612 / Permit2
14
+
15
+ ## ESM Import Rule
16
+
17
+ This package uses `"type": "module"`. All relative imports **must** include explicit file extensions:
18
+
19
+ ```ts
20
+ // correct
21
+ export { Foo } from './bar/index.js'
22
+ export { Baz } from './qux.js'
23
+
24
+ // wrong - will fail at runtime with ERR_UNSUPPORTED_DIR_IMPORT
25
+ export { Foo } from './bar'
26
+ export { Baz } from './qux'
27
+ ```
28
+
29
+ Node.js ESM does not resolve directory imports or extensionless imports automatically. Always use `.js` extensions in import specifiers (even for `.ts` source files — TypeScript emits them as-is).
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
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';
2
+ export { venusCompoundV2ComptrollerAbi, COmpoundV2CEtherAbi, } from './compound-v2/index.js';
3
+ export { CompoundV3CometAbi } from './compound-v3/index.js';
4
+ export { MorphoBlueAbi, MorphoLensAbi, bundler3Abi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, coreAdapterAbi, } 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';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -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;AACjE,OAAO,EACL,6BAA6B,EAC7B,mBAAmB,GACpB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,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,GACf,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACjE,OAAO,EACL,6BAA6B,EAC7B,mBAAmB,GACpB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,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,GACf,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
package/dist/index.js CHANGED
@@ -1,7 +1,8 @@
1
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';
2
+ export { venusCompoundV2ComptrollerAbi, COmpoundV2CEtherAbi, } from './compound-v2/index.js';
3
+ export { CompoundV3CometAbi } from './compound-v3/index.js';
4
+ export { MorphoBlueAbi, MorphoLensAbi, bundler3Abi, generalAdapter1Abi, aaveV2MigrationAdapterAbi, aaveV3MigrationAdapterAbi, aaveV3OptimizerMigrationAdapterAbi, compoundV2MigrationAdapterAbi, compoundV3MigrationAdapterAbi, erc20WrapperAdapterAbi, ethereumGeneralAdapter1Abi, paraswapAdapterAbi, coreAdapterAbi, } 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';
@@ -0,0 +1,2 @@
1
+ export { PosManagerAbi } from './posManager.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/init/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1 @@
1
+ export { PosManagerAbi } from './posManager.js';
@@ -0,0 +1,34 @@
1
+ export declare const PosManagerAbi: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "uint256";
4
+ readonly name: "tokenId";
5
+ readonly type: "uint256";
6
+ }];
7
+ readonly name: "getApproved";
8
+ readonly outputs: readonly [{
9
+ readonly internalType: "address";
10
+ readonly name: "";
11
+ readonly type: "address";
12
+ }];
13
+ readonly stateMutability: "view";
14
+ readonly type: "function";
15
+ }, {
16
+ readonly inputs: readonly [{
17
+ readonly internalType: "address";
18
+ readonly name: "owner";
19
+ readonly type: "address";
20
+ }, {
21
+ readonly internalType: "address";
22
+ readonly name: "operator";
23
+ readonly type: "address";
24
+ }];
25
+ readonly name: "isApprovedForAll";
26
+ readonly outputs: readonly [{
27
+ readonly internalType: "bool";
28
+ readonly name: "";
29
+ readonly type: "bool";
30
+ }];
31
+ readonly stateMutability: "view";
32
+ readonly type: "function";
33
+ }];
34
+ //# sourceMappingURL=posManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"posManager.d.ts","sourceRoot":"","sources":["../../src/init/posManager.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4ChB,CAAA"}
@@ -0,0 +1,45 @@
1
+ export const PosManagerAbi = [
2
+ {
3
+ inputs: [
4
+ {
5
+ internalType: 'uint256',
6
+ name: 'tokenId',
7
+ type: 'uint256',
8
+ },
9
+ ],
10
+ name: 'getApproved',
11
+ outputs: [
12
+ {
13
+ internalType: 'address',
14
+ name: '',
15
+ type: 'address',
16
+ },
17
+ ],
18
+ stateMutability: 'view',
19
+ type: 'function',
20
+ },
21
+ {
22
+ inputs: [
23
+ {
24
+ internalType: 'address',
25
+ name: 'owner',
26
+ type: 'address',
27
+ },
28
+ {
29
+ internalType: 'address',
30
+ name: 'operator',
31
+ type: 'address',
32
+ },
33
+ ],
34
+ name: 'isApprovedForAll',
35
+ outputs: [
36
+ {
37
+ internalType: 'bool',
38
+ name: '',
39
+ type: 'bool',
40
+ },
41
+ ],
42
+ stateMutability: 'view',
43
+ type: 'function',
44
+ },
45
+ ];
@@ -1,4 +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
4
  //# 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,QAAQ,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACtC,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,YAAY,CAAA"}
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"}
@@ -1,3 +1,3 @@
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1delta/abis",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",