@1delta/abis 0.0.13 → 0.0.14

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.
@@ -0,0 +1,35 @@
1
+ export declare const GearboxPriceOracleV3Abi: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly name: "token";
4
+ readonly type: "address";
5
+ }];
6
+ readonly name: "getPrice";
7
+ readonly outputs: readonly [{
8
+ readonly name: "";
9
+ readonly type: "uint256";
10
+ }];
11
+ readonly stateMutability: "view";
12
+ readonly type: "function";
13
+ }, {
14
+ readonly inputs: readonly [{
15
+ readonly name: "token";
16
+ readonly type: "address";
17
+ }];
18
+ readonly name: "priceFeedParams";
19
+ readonly outputs: readonly [{
20
+ readonly name: "priceFeed";
21
+ readonly type: "address";
22
+ }, {
23
+ readonly name: "stalenessPeriod";
24
+ readonly type: "uint32";
25
+ }, {
26
+ readonly name: "skipCheck";
27
+ readonly type: "bool";
28
+ }, {
29
+ readonly name: "decimals";
30
+ readonly type: "uint8";
31
+ }];
32
+ readonly stateMutability: "view";
33
+ readonly type: "function";
34
+ }];
35
+ //# sourceMappingURL=priceOracleV3.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"priceOracleV3.d.ts","sourceRoot":"","sources":["../../src/gearbox/priceOracleV3.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoB1B,CAAA"}
@@ -0,0 +1,28 @@
1
+ // Gearbox PriceOracleV3 ABI — pricing for collateral / debt math.
2
+ //
3
+ // Functions kept:
4
+ // - getPrice(address) -> uint256 (USD with 8 decimals)
5
+ // - priceFeedParams(address) -> (address priceFeed, uint32 stalenessPeriod, bool skipCheck, uint8 decimals)
6
+ //
7
+ // Source: Etherscan verified PriceOracleV3 on Ethereum mainnet.
8
+ export const GearboxPriceOracleV3Abi = [
9
+ {
10
+ inputs: [{ name: 'token', type: 'address' }],
11
+ name: 'getPrice',
12
+ outputs: [{ name: '', type: 'uint256' }],
13
+ stateMutability: 'view',
14
+ type: 'function',
15
+ },
16
+ {
17
+ inputs: [{ name: 'token', type: 'address' }],
18
+ name: 'priceFeedParams',
19
+ outputs: [
20
+ { name: 'priceFeed', type: 'address' },
21
+ { name: 'stalenessPeriod', type: 'uint32' },
22
+ { name: 'skipCheck', type: 'bool' },
23
+ { name: 'decimals', type: 'uint8' },
24
+ ],
25
+ stateMutability: 'view',
26
+ type: 'function',
27
+ },
28
+ ];
package/dist/index.d.ts CHANGED
@@ -8,5 +8,6 @@ export { Erc20Abi, Eip2612Abi } from './erc20/index.js';
8
8
  export { Permit2Abi, VenusComptrollerAbi, LenderPermitAbi, } from './permissions/index.js';
9
9
  export { PosManagerAbi } from './init/index.js';
10
10
  export { evcAbi, eVaultAbi, orchestratorAbi, paymentsAbi, } from './euler-v2/index.js';
11
+ export { GearboxPoolV3Abi, GearboxCreditManagerV3Abi, GearboxCreditFacadeV3Abi, GearboxPoolQuotaKeeperV3Abi, GearboxDataCompressorV3Abi, GearboxPriceOracleV3Abi, } from './gearbox/index.js';
11
12
  export { AaveV4HubAbi, AaveV4SpokeAbi, AaveV4SpokeActionsAbi, AaveV4OracleAbi, AaveV4InterestRateStrategyAbi, AaveV4GiverPMAbi, AaveV4TakerPMAbi, AaveV4ConfigPMAbi, AaveV4NativeTokenGatewayAbi, } from './aave-v4/index.js';
12
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,iBAAiB,CAAA;AACxB,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,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AACtE,OAAO,EACL,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,kBAAkB,CAAA;AACzB,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,EACL,MAAM,EACN,SAAS,EACT,eAAe,EACf,WAAW,GACZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,6BAA6B,EAC7B,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,GAC5B,MAAM,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,iBAAiB,CAAA;AACxB,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,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AACtE,OAAO,EACL,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,kBAAkB,CAAA;AACzB,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,EACL,MAAM,EACN,SAAS,EACT,eAAe,EACf,WAAW,GACZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,EAC3B,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,6BAA6B,EAC7B,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,GAC5B,MAAM,oBAAoB,CAAA"}
package/dist/index.js CHANGED
@@ -8,4 +8,5 @@ export { Erc20Abi, Eip2612Abi } from './erc20/index.js';
8
8
  export { Permit2Abi, VenusComptrollerAbi, LenderPermitAbi, } from './permissions/index.js';
9
9
  export { PosManagerAbi } from './init/index.js';
10
10
  export { evcAbi, eVaultAbi, orchestratorAbi, paymentsAbi, } from './euler-v2/index.js';
11
+ export { GearboxPoolV3Abi, GearboxCreditManagerV3Abi, GearboxCreditFacadeV3Abi, GearboxPoolQuotaKeeperV3Abi, GearboxDataCompressorV3Abi, GearboxPriceOracleV3Abi, } from './gearbox/index.js';
11
12
  export { AaveV4HubAbi, AaveV4SpokeAbi, AaveV4SpokeActionsAbi, AaveV4OracleAbi, AaveV4InterestRateStrategyAbi, AaveV4GiverPMAbi, AaveV4TakerPMAbi, AaveV4ConfigPMAbi, AaveV4NativeTokenGatewayAbi, } from './aave-v4/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1delta/abis",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -16,13 +16,13 @@
16
16
  "files": [
17
17
  "dist"
18
18
  ],
19
- "scripts": {
20
- "build": "tsc"
21
- },
22
19
  "devDependencies": {
23
20
  "typescript": "^5.9.3"
24
21
  },
25
22
  "engines": {
26
23
  "node": ">=20"
24
+ },
25
+ "scripts": {
26
+ "build": "tsc"
27
27
  }
28
- }
28
+ }