@bouncetech/contracts 1.0.2 → 1.0.3

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 CHANGED
@@ -34,7 +34,15 @@ const leveragedTokenAddress = LEVERAGED_TOKEN_IMPLEMENTATION_ADDRESS;
34
34
  ### Import Contract ABIs
35
35
 
36
36
  ```typescript
37
- import { FACTORY_ABI, LEVERAGED_TOKEN_ABI } from "@bouncetech/contracts";
37
+ import {
38
+ FACTORY_ABI,
39
+ LEVERAGED_TOKEN_ABI,
40
+ GLOBAL_STORAGE_ABI,
41
+ GLOBAL_STORAGE_HELPER_ABI,
42
+ HYPERLIQUID_HANDLER_ABI,
43
+ LEVERAGED_TOKEN_HELPER_ABI,
44
+ REFERRALS_ABI,
45
+ } from "@bouncetech/contracts";
38
46
 
39
47
  // Use with ethers.js
40
48
  import { Contract } from "ethers";
@@ -55,18 +63,29 @@ const result = await client.readContract({
55
63
 
56
64
  ### Available Contracts
57
65
 
58
- - **Factory**: `0xeD8bCDe433EB7c4B69DB1235483bf0Edb726Fc1B`
59
- - **GlobalStorage**: `0xa07d06383c1863c8A54d427aC890643d76cc03ff`
60
- - **GlobalStorageHelper**: `0x99836aCBD207d5BCa57E3Fe0448bD1AB0A4BDf5C`
61
- - **HyperliquidHandler**: `0xE57F983f3F317b2feF5585E660ed24980Ba7C3dA`
62
- - **LeveragedTokenHelper**: `0x74dd1ecdA4fA350Ee67Ab4103C8728d8C2983802`
63
- - **LeveragedTokenImplementation**: `0x20132f1804Df40Acc9b5115F47191016a5258721`
64
- - **Referrals**: `0xfD3A6323878Fc991447CcDd4c644ab419afC6f76`
66
+ The following contracts are available through this package:
67
+
68
+ - **Factory**
69
+ - **GlobalStorage**
70
+ - **GlobalStorageHelper**
71
+ - **HyperliquidHandler**
72
+ - **LeveragedTokenHelper**
73
+ - **LeveragedTokenImplementation**
74
+ - **Referrals**
75
+
76
+ For the latest contract addresses, see `addresses.json` in the package or import them programmatically using the exported address constants.
65
77
 
66
78
  ### Available ABIs
67
79
 
80
+ The following ABIs are available:
81
+
68
82
  - `FACTORY_ABI` - Factory contract ABI
83
+ - `GLOBAL_STORAGE_ABI` - GlobalStorage contract ABI
84
+ - `GLOBAL_STORAGE_HELPER_ABI` - GlobalStorageHelper contract ABI
85
+ - `HYPERLIQUID_HANDLER_ABI` - HyperliquidHandler contract ABI
69
86
  - `LEVERAGED_TOKEN_ABI` - Leveraged Token contract ABI
87
+ - `LEVERAGED_TOKEN_HELPER_ABI` - LeveragedTokenHelper contract ABI
88
+ - `REFERRALS_ABI` - Referrals contract ABI
70
89
 
71
90
  ## Updating
72
91
 
package/dist/index.d.ts CHANGED
@@ -15,6 +15,149 @@ export declare const HYPERLIQUID_HANDLER_ADDRESS: `0x${string}`;
15
15
  export declare const LEVERAGED_TOKEN_HELPER_ADDRESS: `0x${string}`;
16
16
  export declare const LEVERAGED_TOKEN_IMPLEMENTATION_ADDRESS: `0x${string}`;
17
17
  export declare const REFERRALS_ADDRESS: `0x${string}`;
18
+ export declare const FACTORY_ABI: ({
19
+ type: string;
20
+ inputs: {
21
+ name: string;
22
+ type: string;
23
+ internalType: string;
24
+ }[];
25
+ stateMutability: string;
26
+ name?: undefined;
27
+ outputs?: undefined;
28
+ anonymous?: undefined;
29
+ } | {
30
+ type: string;
31
+ name: string;
32
+ inputs: {
33
+ name: string;
34
+ type: string;
35
+ internalType: string;
36
+ }[];
37
+ outputs: {
38
+ name: string;
39
+ type: string;
40
+ internalType: string;
41
+ }[];
42
+ stateMutability: string;
43
+ anonymous?: undefined;
44
+ } | {
45
+ type: string;
46
+ name: string;
47
+ inputs: {
48
+ name: string;
49
+ type: string;
50
+ indexed: boolean;
51
+ internalType: string;
52
+ }[];
53
+ anonymous: boolean;
54
+ stateMutability?: undefined;
55
+ outputs?: undefined;
56
+ } | {
57
+ type: string;
58
+ name: string;
59
+ inputs: {
60
+ name: string;
61
+ type: string;
62
+ internalType: string;
63
+ }[];
64
+ stateMutability?: undefined;
65
+ outputs?: undefined;
66
+ anonymous?: undefined;
67
+ })[];
68
+ export declare const GLOBAL_STORAGE_ABI: ({
69
+ type: string;
70
+ inputs: never[];
71
+ stateMutability: string;
72
+ name?: undefined;
73
+ outputs?: undefined;
74
+ anonymous?: undefined;
75
+ } | {
76
+ type: string;
77
+ name: string;
78
+ inputs: {
79
+ name: string;
80
+ type: string;
81
+ internalType: string;
82
+ }[];
83
+ outputs: {
84
+ name: string;
85
+ type: string;
86
+ internalType: string;
87
+ }[];
88
+ stateMutability: string;
89
+ anonymous?: undefined;
90
+ } | {
91
+ type: string;
92
+ name: string;
93
+ inputs: {
94
+ name: string;
95
+ type: string;
96
+ indexed: boolean;
97
+ internalType: string;
98
+ }[];
99
+ anonymous: boolean;
100
+ stateMutability?: undefined;
101
+ outputs?: undefined;
102
+ } | {
103
+ type: string;
104
+ name: string;
105
+ inputs: {
106
+ name: string;
107
+ type: string;
108
+ internalType: string;
109
+ }[];
110
+ stateMutability?: undefined;
111
+ outputs?: undefined;
112
+ anonymous?: undefined;
113
+ })[];
114
+ export declare const GLOBAL_STORAGE_HELPER_ABI: ({
115
+ type: string;
116
+ inputs: {
117
+ name: string;
118
+ type: string;
119
+ internalType: string;
120
+ }[];
121
+ stateMutability: string;
122
+ name?: undefined;
123
+ outputs?: undefined;
124
+ } | {
125
+ type: string;
126
+ name: string;
127
+ inputs: never[];
128
+ outputs: {
129
+ name: string;
130
+ type: string;
131
+ internalType: string;
132
+ components: {
133
+ name: string;
134
+ type: string;
135
+ internalType: string;
136
+ }[];
137
+ }[];
138
+ stateMutability: string;
139
+ })[];
140
+ export declare const HYPERLIQUID_HANDLER_ABI: ({
141
+ type: string;
142
+ name: string;
143
+ inputs: {
144
+ name: string;
145
+ type: string;
146
+ internalType: string;
147
+ }[];
148
+ outputs: {
149
+ name: string;
150
+ type: string;
151
+ internalType: string;
152
+ }[];
153
+ stateMutability: string;
154
+ } | {
155
+ type: string;
156
+ name: string;
157
+ inputs: never[];
158
+ outputs?: undefined;
159
+ stateMutability?: undefined;
160
+ })[];
18
161
  export declare const LEVERAGED_TOKEN_ABI: ({
19
162
  type: string;
20
163
  inputs: never[];
@@ -81,7 +224,53 @@ export declare const LEVERAGED_TOKEN_ABI: ({
81
224
  outputs?: undefined;
82
225
  anonymous?: undefined;
83
226
  })[];
84
- export declare const FACTORY_ABI: ({
227
+ export declare const LEVERAGED_TOKEN_HELPER_ABI: ({
228
+ type: string;
229
+ inputs: {
230
+ name: string;
231
+ type: string;
232
+ internalType: string;
233
+ }[];
234
+ stateMutability: string;
235
+ name?: undefined;
236
+ outputs?: undefined;
237
+ } | {
238
+ type: string;
239
+ name: string;
240
+ inputs: {
241
+ name: string;
242
+ type: string;
243
+ internalType: string;
244
+ }[];
245
+ outputs: {
246
+ name: string;
247
+ type: string;
248
+ internalType: string;
249
+ components: ({
250
+ name: string;
251
+ type: string;
252
+ internalType: string;
253
+ components?: undefined;
254
+ } | {
255
+ name: string;
256
+ type: string;
257
+ internalType: string;
258
+ components: {
259
+ name: string;
260
+ type: string;
261
+ internalType: string;
262
+ }[];
263
+ })[];
264
+ }[];
265
+ stateMutability: string;
266
+ } | {
267
+ type: string;
268
+ name: string;
269
+ inputs: never[];
270
+ stateMutability?: undefined;
271
+ outputs?: undefined;
272
+ })[];
273
+ export declare const REFERRALS_ABI: ({
85
274
  type: string;
86
275
  inputs: {
87
276
  name: string;
package/dist/index.js CHANGED
@@ -3,10 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.FACTORY_ABI = exports.LEVERAGED_TOKEN_ABI = 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 = exports.ALL_ADDRESSES = void 0;
6
+ 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.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 = exports.ALL_ADDRESSES = void 0;
7
7
  const addresses_json_1 = __importDefault(require("../addresses.json"));
8
8
  const leveraged_token_abi_json_1 = __importDefault(require("../abis/leveraged-token-abi.json"));
9
9
  const factory_abi_json_1 = __importDefault(require("../abis/factory-abi.json"));
10
+ const global_storage_abi_json_1 = __importDefault(require("../abis/global-storage-abi.json"));
11
+ const global_storage_helper_abi_json_1 = __importDefault(require("../abis/global-storage-helper-abi.json"));
12
+ const hyperliquid_handler_abi_json_1 = __importDefault(require("../abis/hyperliquid-handler-abi.json"));
13
+ const leveraged_token_helper_abi_json_1 = __importDefault(require("../abis/leveraged-token-helper-abi.json"));
14
+ const referrals_abi_json_1 = __importDefault(require("../abis/referrals-abi.json"));
10
15
  // Export all contract addresses
11
16
  exports.ALL_ADDRESSES = addresses_json_1.default;
12
17
  // Export individual addresses for convenience
@@ -18,7 +23,12 @@ exports.LEVERAGED_TOKEN_HELPER_ADDRESS = exports.ALL_ADDRESSES.LeveragedTokenHel
18
23
  exports.LEVERAGED_TOKEN_IMPLEMENTATION_ADDRESS = exports.ALL_ADDRESSES.LeveragedTokenImplementation;
19
24
  exports.REFERRALS_ADDRESS = exports.ALL_ADDRESSES.Referrals;
20
25
  // Export ABIs
21
- exports.LEVERAGED_TOKEN_ABI = leveraged_token_abi_json_1.default;
22
26
  exports.FACTORY_ABI = factory_abi_json_1.default;
27
+ exports.GLOBAL_STORAGE_ABI = global_storage_abi_json_1.default;
28
+ exports.GLOBAL_STORAGE_HELPER_ABI = global_storage_helper_abi_json_1.default;
29
+ exports.HYPERLIQUID_HANDLER_ABI = hyperliquid_handler_abi_json_1.default;
30
+ exports.LEVERAGED_TOKEN_ABI = leveraged_token_abi_json_1.default;
31
+ exports.LEVERAGED_TOKEN_HELPER_ABI = leveraged_token_helper_abi_json_1.default;
32
+ exports.REFERRALS_ABI = referrals_abi_json_1.default;
23
33
  // Export addresses as default for convenience
24
34
  exports.default = exports.ALL_ADDRESSES;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bouncetech/contracts",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
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",