@bouncetech/contracts 1.3.0 → 1.4.1

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.d.ts CHANGED
@@ -3,10 +3,11 @@ export declare const FACTORY_ADDRESS = "0xeD8bCDe433EB7c4B69DB1235483bf0Edb726Fc
3
3
  export declare const GLOBAL_STORAGE_ADDRESS = "0xa07d06383c1863c8A54d427aC890643d76cc03ff";
4
4
  export declare const GLOBAL_STORAGE_HELPER_ADDRESS = "0x99836aCBD207d5BCa57E3Fe0448bD1AB0A4BDf5C";
5
5
  export declare const HYPERLIQUID_HANDLER_ADDRESS = "0x0f1365392EA9Df901dEb94d100679E7440E499bc";
6
- export declare const LEVERAGED_TOKEN_HELPER_ADDRESS = "0x1854A7d55E6c7B101aFca1D8d4Bff7d7BD5c966a";
6
+ export declare const LEVERAGED_TOKEN_HELPER_ADDRESS = "0x4a548ad41888B023850130Bf931453Bb7d07aD23";
7
7
  export declare const LEVERAGED_TOKEN_IMPLEMENTATION_ADDRESS = "0x126e039f97Dd34fa64E685Ba4b37ca97b1a03DcB";
8
8
  export declare const REFERRALS_ADDRESS = "0xfD3A6323878Fc991447CcDd4c644ab419afC6f76";
9
9
  export declare const USDC_ADDRESS = "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
10
+ export declare const HYPE_BALANCE_HELPER = "0x7B8CFf7E3b8Be150e735f2AF56DBB69ec44d91b3";
10
11
  export declare const FACTORY_ABI: readonly [{
11
12
  readonly type: "constructor";
12
13
  readonly inputs: readonly [{
@@ -2320,7 +2321,7 @@ export declare const LEVERAGED_TOKEN_HELPER_ABI: readonly [{
2320
2321
  readonly stateMutability: "nonpayable";
2321
2322
  }, {
2322
2323
  readonly type: "function";
2323
- readonly name: "getLeveragedTokenAssetValue";
2324
+ readonly name: "getLeveragedTokenBufferAssetValue";
2324
2325
  readonly inputs: readonly [{
2325
2326
  readonly name: "leveragedTokenAddress_";
2326
2327
  readonly type: "address";
@@ -2383,6 +2384,53 @@ export declare const LEVERAGED_TOKEN_HELPER_ABI: readonly [{
2383
2384
  }];
2384
2385
  }];
2385
2386
  readonly stateMutability: "view";
2387
+ }, {
2388
+ readonly type: "function";
2389
+ readonly name: "getLeveragedTokenPositionData";
2390
+ readonly inputs: readonly [];
2391
+ readonly outputs: readonly [{
2392
+ readonly name: "";
2393
+ readonly type: "tuple[]";
2394
+ readonly internalType: "struct ILeveragedTokenHelper.LeveragedTokenPositionData[]";
2395
+ readonly components: readonly [{
2396
+ readonly name: "leveragedToken";
2397
+ readonly type: "address";
2398
+ readonly internalType: "address";
2399
+ }, {
2400
+ readonly name: "baseAssetContractBalance";
2401
+ readonly type: "uint256";
2402
+ readonly internalType: "uint256";
2403
+ }, {
2404
+ readonly name: "leveragedTokenCredit";
2405
+ readonly type: "uint256";
2406
+ readonly internalType: "uint256";
2407
+ }, {
2408
+ readonly name: "usdcSpotBalance";
2409
+ readonly type: "uint256";
2410
+ readonly internalType: "uint256";
2411
+ }, {
2412
+ readonly name: "usdcPerpBalance";
2413
+ readonly type: "uint256";
2414
+ readonly internalType: "uint256";
2415
+ }, {
2416
+ readonly name: "usdcMargin";
2417
+ readonly type: "uint256";
2418
+ readonly internalType: "uint256";
2419
+ }, {
2420
+ readonly name: "notionalValue";
2421
+ readonly type: "uint256";
2422
+ readonly internalType: "uint256";
2423
+ }, {
2424
+ readonly name: "effectiveLeverage";
2425
+ readonly type: "uint256";
2426
+ readonly internalType: "uint256";
2427
+ }, {
2428
+ readonly name: "targetLeverage";
2429
+ readonly type: "uint256";
2430
+ readonly internalType: "uint256";
2431
+ }];
2432
+ }];
2433
+ readonly stateMutability: "view";
2386
2434
  }, {
2387
2435
  readonly type: "function";
2388
2436
  readonly name: "getLeveragedTokens";
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.USDC_ABI = exports.REFERRALS_ABI = exports.LEVERAGED_TOKEN_HELPER_ABI = exports.LEVERAGED_TOKEN_ABI = exports.HYPERLIQUID_HANDLER_ABI = exports.GLOBAL_STORAGE_HELPER_ABI = exports.GLOBAL_STORAGE_ABI = exports.FACTORY_ABI = exports.USDC_ADDRESS = exports.REFERRALS_ADDRESS = exports.LEVERAGED_TOKEN_IMPLEMENTATION_ADDRESS = exports.LEVERAGED_TOKEN_HELPER_ADDRESS = exports.HYPERLIQUID_HANDLER_ADDRESS = exports.GLOBAL_STORAGE_HELPER_ADDRESS = exports.GLOBAL_STORAGE_ADDRESS = exports.FACTORY_ADDRESS = void 0;
3
+ exports.USDC_ABI = exports.REFERRALS_ABI = exports.LEVERAGED_TOKEN_HELPER_ABI = exports.LEVERAGED_TOKEN_ABI = exports.HYPERLIQUID_HANDLER_ABI = exports.GLOBAL_STORAGE_HELPER_ABI = exports.GLOBAL_STORAGE_ABI = exports.FACTORY_ABI = exports.HYPE_BALANCE_HELPER = exports.USDC_ADDRESS = exports.REFERRALS_ADDRESS = exports.LEVERAGED_TOKEN_IMPLEMENTATION_ADDRESS = exports.LEVERAGED_TOKEN_HELPER_ADDRESS = exports.HYPERLIQUID_HANDLER_ADDRESS = exports.GLOBAL_STORAGE_HELPER_ADDRESS = exports.GLOBAL_STORAGE_ADDRESS = exports.FACTORY_ADDRESS = void 0;
4
4
  const leveraged_token_abi_1 = require("./abis/leveraged-token-abi");
5
5
  const factory_abi_1 = require("./abis/factory-abi");
6
6
  const global_storage_abi_1 = require("./abis/global-storage-abi");
@@ -14,10 +14,11 @@ exports.FACTORY_ADDRESS = "0xeD8bCDe433EB7c4B69DB1235483bf0Edb726Fc1B";
14
14
  exports.GLOBAL_STORAGE_ADDRESS = "0xa07d06383c1863c8A54d427aC890643d76cc03ff";
15
15
  exports.GLOBAL_STORAGE_HELPER_ADDRESS = "0x99836aCBD207d5BCa57E3Fe0448bD1AB0A4BDf5C";
16
16
  exports.HYPERLIQUID_HANDLER_ADDRESS = "0x0f1365392EA9Df901dEb94d100679E7440E499bc";
17
- exports.LEVERAGED_TOKEN_HELPER_ADDRESS = "0x1854A7d55E6c7B101aFca1D8d4Bff7d7BD5c966a";
17
+ exports.LEVERAGED_TOKEN_HELPER_ADDRESS = "0x4a548ad41888B023850130Bf931453Bb7d07aD23";
18
18
  exports.LEVERAGED_TOKEN_IMPLEMENTATION_ADDRESS = "0x126e039f97Dd34fa64E685Ba4b37ca97b1a03DcB";
19
19
  exports.REFERRALS_ADDRESS = "0xfD3A6323878Fc991447CcDd4c644ab419afC6f76";
20
20
  exports.USDC_ADDRESS = "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
21
+ exports.HYPE_BALANCE_HELPER = "0x7B8CFf7E3b8Be150e735f2AF56DBB69ec44d91b3";
21
22
  // ABIs
22
23
  exports.FACTORY_ABI = factory_abi_1.factoryAbi;
23
24
  exports.GLOBAL_STORAGE_ABI = global_storage_abi_1.globalStorageAbi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bouncetech/contracts",
3
- "version": "1.3.0",
3
+ "version": "1.4.1",
4
4
  "description": "Smart contract addresses and ABIs for Bounce Tech - DeFi Leveraged Token Protocol on HyperEVM",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",