@bouncetech/contracts 1.0.3 → 1.1.0

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.js CHANGED
@@ -1,34 +1,29 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
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
- const addresses_json_1 = __importDefault(require("../addresses.json"));
8
- const leveraged_token_abi_json_1 = __importDefault(require("../abis/leveraged-token-abi.json"));
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"));
15
- // Export all contract addresses
16
- exports.ALL_ADDRESSES = addresses_json_1.default;
17
- // Export individual addresses for convenience
18
- exports.FACTORY_ADDRESS = exports.ALL_ADDRESSES.Factory;
19
- exports.GLOBAL_STORAGE_ADDRESS = exports.ALL_ADDRESSES.GlobalStorage;
20
- exports.GLOBAL_STORAGE_HELPER_ADDRESS = exports.ALL_ADDRESSES.GlobalStorageHelper;
21
- exports.HYPERLIQUID_HANDLER_ADDRESS = exports.ALL_ADDRESSES.HyperliquidHandler;
22
- exports.LEVERAGED_TOKEN_HELPER_ADDRESS = exports.ALL_ADDRESSES.LeveragedTokenHelper;
23
- exports.LEVERAGED_TOKEN_IMPLEMENTATION_ADDRESS = exports.ALL_ADDRESSES.LeveragedTokenImplementation;
24
- exports.REFERRALS_ADDRESS = exports.ALL_ADDRESSES.Referrals;
25
- // Export ABIs
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;
33
- // Export addresses as default for convenience
34
- exports.default = exports.ALL_ADDRESSES;
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;
4
+ const leveraged_token_abi_1 = require("./abis/leveraged-token-abi");
5
+ const factory_abi_1 = require("./abis/factory-abi");
6
+ const global_storage_abi_1 = require("./abis/global-storage-abi");
7
+ const global_storage_helper_abi_1 = require("./abis/global-storage-helper-abi");
8
+ const hyperliquid_handler_abi_1 = require("./abis/hyperliquid-handler-abi");
9
+ const leveraged_token_helper_abi_1 = require("./abis/leveraged-token-helper-abi");
10
+ const referrals_abi_1 = require("./abis/referrals-abi");
11
+ const erc20_abi_1 = require("./abis/erc20-abi");
12
+ // Addresses
13
+ exports.FACTORY_ADDRESS = "0xeD8bCDe433EB7c4B69DB1235483bf0Edb726Fc1B";
14
+ exports.GLOBAL_STORAGE_ADDRESS = "0xa07d06383c1863c8A54d427aC890643d76cc03ff";
15
+ exports.GLOBAL_STORAGE_HELPER_ADDRESS = "0x99836aCBD207d5BCa57E3Fe0448bD1AB0A4BDf5C";
16
+ exports.HYPERLIQUID_HANDLER_ADDRESS = "0xE57F983f3F317b2feF5585E660ed24980Ba7C3dA";
17
+ exports.LEVERAGED_TOKEN_HELPER_ADDRESS = "0x9F53b119025733d174d514b13B6a061f1C482f8C";
18
+ exports.LEVERAGED_TOKEN_IMPLEMENTATION_ADDRESS = "0x20132f1804Df40Acc9b5115F47191016a5258721";
19
+ exports.REFERRALS_ADDRESS = "0xfD3A6323878Fc991447CcDd4c644ab419afC6f76";
20
+ exports.USDC_ADDRESS = "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
21
+ // ABIs
22
+ exports.FACTORY_ABI = factory_abi_1.factoryAbi;
23
+ exports.GLOBAL_STORAGE_ABI = global_storage_abi_1.globalStorageAbi;
24
+ exports.GLOBAL_STORAGE_HELPER_ABI = global_storage_helper_abi_1.globalStorageHelperAbi;
25
+ exports.HYPERLIQUID_HANDLER_ABI = hyperliquid_handler_abi_1.hyperliquidHandlerAbi;
26
+ exports.LEVERAGED_TOKEN_ABI = leveraged_token_abi_1.leveragedTokenAbi;
27
+ exports.LEVERAGED_TOKEN_HELPER_ABI = leveraged_token_helper_abi_1.leveragedTokenHelperAbi;
28
+ exports.REFERRALS_ABI = referrals_abi_1.referralsAbi;
29
+ exports.USDC_ABI = erc20_abi_1.erc20Abi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bouncetech/contracts",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
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",
@@ -1,194 +0,0 @@
1
- [
2
- {
3
- "type": "constructor",
4
- "inputs": [
5
- {
6
- "name": "globalStorage_",
7
- "type": "address",
8
- "internalType": "address"
9
- }
10
- ],
11
- "stateMutability": "nonpayable"
12
- },
13
- {
14
- "type": "function",
15
- "name": "createLt",
16
- "inputs": [
17
- {
18
- "name": "marketId_",
19
- "type": "uint32",
20
- "internalType": "uint32"
21
- },
22
- {
23
- "name": "targetLeverage_",
24
- "type": "uint256",
25
- "internalType": "uint256"
26
- },
27
- {
28
- "name": "isLong_",
29
- "type": "bool",
30
- "internalType": "bool"
31
- }
32
- ],
33
- "outputs": [
34
- {
35
- "name": "",
36
- "type": "address",
37
- "internalType": "address"
38
- }
39
- ],
40
- "stateMutability": "nonpayable"
41
- },
42
- {
43
- "type": "function",
44
- "name": "lt",
45
- "inputs": [
46
- {
47
- "name": "",
48
- "type": "uint32",
49
- "internalType": "uint32"
50
- },
51
- {
52
- "name": "",
53
- "type": "uint256",
54
- "internalType": "uint256"
55
- },
56
- {
57
- "name": "",
58
- "type": "bool",
59
- "internalType": "bool"
60
- }
61
- ],
62
- "outputs": [
63
- {
64
- "name": "",
65
- "type": "address",
66
- "internalType": "address"
67
- }
68
- ],
69
- "stateMutability": "view"
70
- },
71
- {
72
- "type": "function",
73
- "name": "ltExists",
74
- "inputs": [
75
- {
76
- "name": "",
77
- "type": "address",
78
- "internalType": "address"
79
- }
80
- ],
81
- "outputs": [
82
- {
83
- "name": "",
84
- "type": "bool",
85
- "internalType": "bool"
86
- }
87
- ],
88
- "stateMutability": "view"
89
- },
90
- {
91
- "type": "function",
92
- "name": "lts",
93
- "inputs": [],
94
- "outputs": [
95
- {
96
- "name": "",
97
- "type": "address[]",
98
- "internalType": "address[]"
99
- }
100
- ],
101
- "stateMutability": "view"
102
- },
103
- {
104
- "type": "function",
105
- "name": "redeployLt",
106
- "inputs": [
107
- {
108
- "name": "ltAddress_",
109
- "type": "address",
110
- "internalType": "address"
111
- }
112
- ],
113
- "outputs": [],
114
- "stateMutability": "nonpayable"
115
- },
116
- {
117
- "type": "event",
118
- "name": "CreateLeveragedToken",
119
- "inputs": [
120
- {
121
- "name": "creator",
122
- "type": "address",
123
- "indexed": true,
124
- "internalType": "address"
125
- },
126
- {
127
- "name": "token",
128
- "type": "address",
129
- "indexed": true,
130
- "internalType": "address"
131
- },
132
- {
133
- "name": "marketId",
134
- "type": "uint32",
135
- "indexed": true,
136
- "internalType": "uint32"
137
- },
138
- {
139
- "name": "targetLeverage",
140
- "type": "uint256",
141
- "indexed": false,
142
- "internalType": "uint256"
143
- },
144
- {
145
- "name": "isLong",
146
- "type": "bool",
147
- "indexed": false,
148
- "internalType": "bool"
149
- }
150
- ],
151
- "anonymous": false
152
- },
153
- {
154
- "type": "error",
155
- "name": "AlreadyCreated",
156
- "inputs": []
157
- },
158
- {
159
- "type": "error",
160
- "name": "InvalidLeverage",
161
- "inputs": []
162
- },
163
- {
164
- "type": "error",
165
- "name": "NotLeveragedToken",
166
- "inputs": []
167
- },
168
- {
169
- "type": "error",
170
- "name": "NotOwner",
171
- "inputs": []
172
- },
173
- {
174
- "type": "error",
175
- "name": "PrecompileLib__PerpAssetInfoPrecompileFailed",
176
- "inputs": []
177
- },
178
- {
179
- "type": "error",
180
- "name": "SafeERC20FailedOperation",
181
- "inputs": [
182
- {
183
- "name": "token",
184
- "type": "address",
185
- "internalType": "address"
186
- }
187
- ]
188
- },
189
- {
190
- "type": "error",
191
- "name": "StillHasMargin",
192
- "inputs": []
193
- }
194
- ]