@bouncetech/contracts 1.2.1 → 1.3.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/abis/hyperliquid-handler-abi.d.ts +0 -16
- package/dist/abis/hyperliquid-handler-abi.js +0 -20
- package/dist/abis/leveraged-token-helper-abi.d.ts +16 -2
- package/dist/abis/leveraged-token-helper-abi.js +21 -2
- package/dist/index.d.ts +19 -21
- package/dist/index.js +3 -3
- package/package.json +6 -3
|
@@ -47,10 +47,6 @@ export declare const hyperliquidHandlerAbi: readonly [{
|
|
|
47
47
|
readonly name: "user_";
|
|
48
48
|
readonly type: "address";
|
|
49
49
|
readonly internalType: "address";
|
|
50
|
-
}, {
|
|
51
|
-
readonly name: "marketId_";
|
|
52
|
-
readonly type: "uint32";
|
|
53
|
-
readonly internalType: "uint32";
|
|
54
50
|
}];
|
|
55
51
|
readonly outputs: readonly [{
|
|
56
52
|
readonly name: "";
|
|
@@ -94,18 +90,6 @@ export declare const hyperliquidHandlerAbi: readonly [{
|
|
|
94
90
|
readonly type: "error";
|
|
95
91
|
readonly name: "PrecompileLib__CoreUserExistsPrecompileFailed";
|
|
96
92
|
readonly inputs: readonly [];
|
|
97
|
-
}, {
|
|
98
|
-
readonly type: "error";
|
|
99
|
-
readonly name: "PrecompileLib__MarkPxPrecompileFailed";
|
|
100
|
-
readonly inputs: readonly [];
|
|
101
|
-
}, {
|
|
102
|
-
readonly type: "error";
|
|
103
|
-
readonly name: "PrecompileLib__PerpAssetInfoPrecompileFailed";
|
|
104
|
-
readonly inputs: readonly [];
|
|
105
|
-
}, {
|
|
106
|
-
readonly type: "error";
|
|
107
|
-
readonly name: "PrecompileLib__PositionPrecompileFailed";
|
|
108
|
-
readonly inputs: readonly [];
|
|
109
93
|
}, {
|
|
110
94
|
readonly type: "error";
|
|
111
95
|
readonly name: "PrecompileLib__SpotBalancePrecompileFailed";
|
|
@@ -68,11 +68,6 @@ exports.hyperliquidHandlerAbi = [
|
|
|
68
68
|
type: "address",
|
|
69
69
|
internalType: "address",
|
|
70
70
|
},
|
|
71
|
-
{
|
|
72
|
-
name: "marketId_",
|
|
73
|
-
type: "uint32",
|
|
74
|
-
internalType: "uint32",
|
|
75
|
-
},
|
|
76
71
|
],
|
|
77
72
|
outputs: [
|
|
78
73
|
{
|
|
@@ -131,21 +126,6 @@ exports.hyperliquidHandlerAbi = [
|
|
|
131
126
|
name: "PrecompileLib__CoreUserExistsPrecompileFailed",
|
|
132
127
|
inputs: [],
|
|
133
128
|
},
|
|
134
|
-
{
|
|
135
|
-
type: "error",
|
|
136
|
-
name: "PrecompileLib__MarkPxPrecompileFailed",
|
|
137
|
-
inputs: [],
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
type: "error",
|
|
141
|
-
name: "PrecompileLib__PerpAssetInfoPrecompileFailed",
|
|
142
|
-
inputs: [],
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
type: "error",
|
|
146
|
-
name: "PrecompileLib__PositionPrecompileFailed",
|
|
147
|
-
inputs: [],
|
|
148
|
-
},
|
|
149
129
|
{
|
|
150
130
|
type: "error",
|
|
151
131
|
name: "PrecompileLib__SpotBalancePrecompileFailed",
|
|
@@ -6,6 +6,20 @@ export declare const leveragedTokenHelperAbi: readonly [{
|
|
|
6
6
|
readonly internalType: "address";
|
|
7
7
|
}];
|
|
8
8
|
readonly stateMutability: "nonpayable";
|
|
9
|
+
}, {
|
|
10
|
+
readonly type: "function";
|
|
11
|
+
readonly name: "getLeveragedTokenAssetValue";
|
|
12
|
+
readonly inputs: readonly [{
|
|
13
|
+
readonly name: "leveragedTokenAddress_";
|
|
14
|
+
readonly type: "address";
|
|
15
|
+
readonly internalType: "address";
|
|
16
|
+
}];
|
|
17
|
+
readonly outputs: readonly [{
|
|
18
|
+
readonly name: "";
|
|
19
|
+
readonly type: "int256";
|
|
20
|
+
readonly internalType: "int256";
|
|
21
|
+
}];
|
|
22
|
+
readonly stateMutability: "view";
|
|
9
23
|
}, {
|
|
10
24
|
readonly type: "function";
|
|
11
25
|
readonly name: "getLeveragedTokenPositionData";
|
|
@@ -27,7 +41,7 @@ export declare const leveragedTokenHelperAbi: readonly [{
|
|
|
27
41
|
readonly type: "uint256";
|
|
28
42
|
readonly internalType: "uint256";
|
|
29
43
|
}, {
|
|
30
|
-
readonly name: "
|
|
44
|
+
readonly name: "leveragedTokenCredit";
|
|
31
45
|
readonly type: "uint256";
|
|
32
46
|
readonly internalType: "uint256";
|
|
33
47
|
}, {
|
|
@@ -322,7 +336,7 @@ export declare const leveragedTokenHelperAbi: readonly [{
|
|
|
322
336
|
readonly type: "uint256";
|
|
323
337
|
readonly internalType: "uint256";
|
|
324
338
|
}, {
|
|
325
|
-
readonly name: "
|
|
339
|
+
readonly name: "leveragedTokenCredit";
|
|
326
340
|
readonly type: "uint256";
|
|
327
341
|
readonly internalType: "uint256";
|
|
328
342
|
}, {
|
|
@@ -13,6 +13,25 @@ exports.leveragedTokenHelperAbi = [
|
|
|
13
13
|
],
|
|
14
14
|
stateMutability: "nonpayable",
|
|
15
15
|
},
|
|
16
|
+
{
|
|
17
|
+
type: "function",
|
|
18
|
+
name: "getLeveragedTokenAssetValue",
|
|
19
|
+
inputs: [
|
|
20
|
+
{
|
|
21
|
+
name: "leveragedTokenAddress_",
|
|
22
|
+
type: "address",
|
|
23
|
+
internalType: "address",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
outputs: [
|
|
27
|
+
{
|
|
28
|
+
name: "",
|
|
29
|
+
type: "int256",
|
|
30
|
+
internalType: "int256",
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
stateMutability: "view",
|
|
34
|
+
},
|
|
16
35
|
{
|
|
17
36
|
type: "function",
|
|
18
37
|
name: "getLeveragedTokenPositionData",
|
|
@@ -40,7 +59,7 @@ exports.leveragedTokenHelperAbi = [
|
|
|
40
59
|
internalType: "uint256",
|
|
41
60
|
},
|
|
42
61
|
{
|
|
43
|
-
name: "
|
|
62
|
+
name: "leveragedTokenCredit",
|
|
44
63
|
type: "uint256",
|
|
45
64
|
internalType: "uint256",
|
|
46
65
|
},
|
|
@@ -417,7 +436,7 @@ exports.leveragedTokenHelperAbi = [
|
|
|
417
436
|
internalType: "uint256",
|
|
418
437
|
},
|
|
419
438
|
{
|
|
420
|
-
name: "
|
|
439
|
+
name: "leveragedTokenCredit",
|
|
421
440
|
type: "uint256",
|
|
422
441
|
internalType: "uint256",
|
|
423
442
|
},
|
package/dist/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ export type Address = `0x${string}`;
|
|
|
2
2
|
export declare const FACTORY_ADDRESS = "0xeD8bCDe433EB7c4B69DB1235483bf0Edb726Fc1B";
|
|
3
3
|
export declare const GLOBAL_STORAGE_ADDRESS = "0xa07d06383c1863c8A54d427aC890643d76cc03ff";
|
|
4
4
|
export declare const GLOBAL_STORAGE_HELPER_ADDRESS = "0x99836aCBD207d5BCa57E3Fe0448bD1AB0A4BDf5C";
|
|
5
|
-
export declare const HYPERLIQUID_HANDLER_ADDRESS = "
|
|
6
|
-
export declare const LEVERAGED_TOKEN_HELPER_ADDRESS = "
|
|
7
|
-
export declare const LEVERAGED_TOKEN_IMPLEMENTATION_ADDRESS = "
|
|
5
|
+
export declare const HYPERLIQUID_HANDLER_ADDRESS = "0x0f1365392EA9Df901dEb94d100679E7440E499bc";
|
|
6
|
+
export declare const LEVERAGED_TOKEN_HELPER_ADDRESS = "0x1854A7d55E6c7B101aFca1D8d4Bff7d7BD5c966a";
|
|
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
10
|
export declare const FACTORY_ABI: readonly [{
|
|
@@ -1226,10 +1226,6 @@ export declare const HYPERLIQUID_HANDLER_ABI: readonly [{
|
|
|
1226
1226
|
readonly name: "user_";
|
|
1227
1227
|
readonly type: "address";
|
|
1228
1228
|
readonly internalType: "address";
|
|
1229
|
-
}, {
|
|
1230
|
-
readonly name: "marketId_";
|
|
1231
|
-
readonly type: "uint32";
|
|
1232
|
-
readonly internalType: "uint32";
|
|
1233
1229
|
}];
|
|
1234
1230
|
readonly outputs: readonly [{
|
|
1235
1231
|
readonly name: "";
|
|
@@ -1273,18 +1269,6 @@ export declare const HYPERLIQUID_HANDLER_ABI: readonly [{
|
|
|
1273
1269
|
readonly type: "error";
|
|
1274
1270
|
readonly name: "PrecompileLib__CoreUserExistsPrecompileFailed";
|
|
1275
1271
|
readonly inputs: readonly [];
|
|
1276
|
-
}, {
|
|
1277
|
-
readonly type: "error";
|
|
1278
|
-
readonly name: "PrecompileLib__MarkPxPrecompileFailed";
|
|
1279
|
-
readonly inputs: readonly [];
|
|
1280
|
-
}, {
|
|
1281
|
-
readonly type: "error";
|
|
1282
|
-
readonly name: "PrecompileLib__PerpAssetInfoPrecompileFailed";
|
|
1283
|
-
readonly inputs: readonly [];
|
|
1284
|
-
}, {
|
|
1285
|
-
readonly type: "error";
|
|
1286
|
-
readonly name: "PrecompileLib__PositionPrecompileFailed";
|
|
1287
|
-
readonly inputs: readonly [];
|
|
1288
1272
|
}, {
|
|
1289
1273
|
readonly type: "error";
|
|
1290
1274
|
readonly name: "PrecompileLib__SpotBalancePrecompileFailed";
|
|
@@ -2334,6 +2318,20 @@ export declare const LEVERAGED_TOKEN_HELPER_ABI: readonly [{
|
|
|
2334
2318
|
readonly internalType: "address";
|
|
2335
2319
|
}];
|
|
2336
2320
|
readonly stateMutability: "nonpayable";
|
|
2321
|
+
}, {
|
|
2322
|
+
readonly type: "function";
|
|
2323
|
+
readonly name: "getLeveragedTokenAssetValue";
|
|
2324
|
+
readonly inputs: readonly [{
|
|
2325
|
+
readonly name: "leveragedTokenAddress_";
|
|
2326
|
+
readonly type: "address";
|
|
2327
|
+
readonly internalType: "address";
|
|
2328
|
+
}];
|
|
2329
|
+
readonly outputs: readonly [{
|
|
2330
|
+
readonly name: "";
|
|
2331
|
+
readonly type: "int256";
|
|
2332
|
+
readonly internalType: "int256";
|
|
2333
|
+
}];
|
|
2334
|
+
readonly stateMutability: "view";
|
|
2337
2335
|
}, {
|
|
2338
2336
|
readonly type: "function";
|
|
2339
2337
|
readonly name: "getLeveragedTokenPositionData";
|
|
@@ -2355,7 +2353,7 @@ export declare const LEVERAGED_TOKEN_HELPER_ABI: readonly [{
|
|
|
2355
2353
|
readonly type: "uint256";
|
|
2356
2354
|
readonly internalType: "uint256";
|
|
2357
2355
|
}, {
|
|
2358
|
-
readonly name: "
|
|
2356
|
+
readonly name: "leveragedTokenCredit";
|
|
2359
2357
|
readonly type: "uint256";
|
|
2360
2358
|
readonly internalType: "uint256";
|
|
2361
2359
|
}, {
|
|
@@ -2650,7 +2648,7 @@ export declare const LEVERAGED_TOKEN_HELPER_ABI: readonly [{
|
|
|
2650
2648
|
readonly type: "uint256";
|
|
2651
2649
|
readonly internalType: "uint256";
|
|
2652
2650
|
}, {
|
|
2653
|
-
readonly name: "
|
|
2651
|
+
readonly name: "leveragedTokenCredit";
|
|
2654
2652
|
readonly type: "uint256";
|
|
2655
2653
|
readonly internalType: "uint256";
|
|
2656
2654
|
}, {
|
package/dist/index.js
CHANGED
|
@@ -13,9 +13,9 @@ const erc20_abi_1 = require("./abis/erc20-abi");
|
|
|
13
13
|
exports.FACTORY_ADDRESS = "0xeD8bCDe433EB7c4B69DB1235483bf0Edb726Fc1B";
|
|
14
14
|
exports.GLOBAL_STORAGE_ADDRESS = "0xa07d06383c1863c8A54d427aC890643d76cc03ff";
|
|
15
15
|
exports.GLOBAL_STORAGE_HELPER_ADDRESS = "0x99836aCBD207d5BCa57E3Fe0448bD1AB0A4BDf5C";
|
|
16
|
-
exports.HYPERLIQUID_HANDLER_ADDRESS = "
|
|
17
|
-
exports.LEVERAGED_TOKEN_HELPER_ADDRESS = "
|
|
18
|
-
exports.LEVERAGED_TOKEN_IMPLEMENTATION_ADDRESS = "
|
|
16
|
+
exports.HYPERLIQUID_HANDLER_ADDRESS = "0x0f1365392EA9Df901dEb94d100679E7440E499bc";
|
|
17
|
+
exports.LEVERAGED_TOKEN_HELPER_ADDRESS = "0x1854A7d55E6c7B101aFca1D8d4Bff7d7BD5c966a";
|
|
18
|
+
exports.LEVERAGED_TOKEN_IMPLEMENTATION_ADDRESS = "0x126e039f97Dd34fa64E685Ba4b37ca97b1a03DcB";
|
|
19
19
|
exports.REFERRALS_ADDRESS = "0xfD3A6323878Fc991447CcDd4c644ab419afC6f76";
|
|
20
20
|
exports.USDC_ADDRESS = "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
|
|
21
21
|
// ABIs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bouncetech/contracts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.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",
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"prepublishOnly": "npm run build"
|
|
14
|
+
"prepublishOnly": "npm run build",
|
|
15
|
+
"format": "prettier --write \"src/**/*.{ts,json}\"",
|
|
16
|
+
"lint": "prettier --check \"src/**/*.{ts,json}\" && tsc --noEmit"
|
|
15
17
|
},
|
|
16
18
|
"keywords": [
|
|
17
19
|
"defi",
|
|
@@ -31,10 +33,11 @@
|
|
|
31
33
|
"access": "public"
|
|
32
34
|
},
|
|
33
35
|
"devDependencies": {
|
|
36
|
+
"prettier": "^3.0.0",
|
|
34
37
|
"typescript": "^5.3.3"
|
|
35
38
|
},
|
|
36
39
|
"peerDependencies": {},
|
|
37
40
|
"engines": {
|
|
38
41
|
"node": ">=16.0.0"
|
|
39
42
|
}
|
|
40
|
-
}
|
|
43
|
+
}
|