@bouncetech/contracts 1.0.1 → 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 +27 -8
- package/abis/factory-abi.json +156 -6
- package/abis/global-storage-abi.json +1185 -0
- package/abis/global-storage-helper-abi.json +128 -0
- package/abis/hyperliquid-handler-abi.json +151 -0
- package/abis/leveraged-token-abi.json +1311 -1
- package/abis/leveraged-token-helper-abi.json +443 -0
- package/abis/referrals-abi.json +422 -0
- package/addresses.json +1 -1
- package/dist/index.d.ts +267 -3
- package/dist/index.js +12 -2
- package/package.json +1 -1
|
@@ -0,0 +1,128 @@
|
|
|
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": "getGlobalStorageData",
|
|
16
|
+
"inputs": [],
|
|
17
|
+
"outputs": [
|
|
18
|
+
{
|
|
19
|
+
"name": "",
|
|
20
|
+
"type": "tuple",
|
|
21
|
+
"internalType": "struct IGlobalStorageHelper.GlobalStorageData",
|
|
22
|
+
"components": [
|
|
23
|
+
{
|
|
24
|
+
"name": "owner",
|
|
25
|
+
"type": "address",
|
|
26
|
+
"internalType": "address"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "ltImplementation",
|
|
30
|
+
"type": "address",
|
|
31
|
+
"internalType": "address"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "baseAsset",
|
|
35
|
+
"type": "address",
|
|
36
|
+
"internalType": "address"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "treasury",
|
|
40
|
+
"type": "address",
|
|
41
|
+
"internalType": "address"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "factory",
|
|
45
|
+
"type": "address",
|
|
46
|
+
"internalType": "address"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "hyperliquidHandler",
|
|
50
|
+
"type": "address",
|
|
51
|
+
"internalType": "address"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "feeHandler",
|
|
55
|
+
"type": "address",
|
|
56
|
+
"internalType": "address"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "bounce",
|
|
60
|
+
"type": "address",
|
|
61
|
+
"internalType": "address"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "allMintsPaused",
|
|
65
|
+
"type": "bool",
|
|
66
|
+
"internalType": "bool"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "vesting",
|
|
70
|
+
"type": "address",
|
|
71
|
+
"internalType": "address"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "airdrop",
|
|
75
|
+
"type": "address",
|
|
76
|
+
"internalType": "address"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "referrals",
|
|
80
|
+
"type": "address",
|
|
81
|
+
"internalType": "address"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "minTransactionSize",
|
|
85
|
+
"type": "uint256",
|
|
86
|
+
"internalType": "uint256"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "minLockAmount",
|
|
90
|
+
"type": "uint256",
|
|
91
|
+
"internalType": "uint256"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "redemptionFee",
|
|
95
|
+
"type": "uint256",
|
|
96
|
+
"internalType": "uint256"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "streamingFee",
|
|
100
|
+
"type": "uint256",
|
|
101
|
+
"internalType": "uint256"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "executeRedemptionFee",
|
|
105
|
+
"type": "uint256",
|
|
106
|
+
"internalType": "uint256"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "treasuryFeeShare",
|
|
110
|
+
"type": "uint256",
|
|
111
|
+
"internalType": "uint256"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "referrerRebate",
|
|
115
|
+
"type": "uint256",
|
|
116
|
+
"internalType": "uint256"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "refereeRebate",
|
|
120
|
+
"type": "uint256",
|
|
121
|
+
"internalType": "uint256"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"stateMutability": "view"
|
|
127
|
+
}
|
|
128
|
+
]
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "coreUserExists",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "user_",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"internalType": "address"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"outputs": [
|
|
13
|
+
{
|
|
14
|
+
"name": "",
|
|
15
|
+
"type": "bool",
|
|
16
|
+
"internalType": "bool"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"stateMutability": "view"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "function",
|
|
23
|
+
"name": "hyperliquidUsdc",
|
|
24
|
+
"inputs": [
|
|
25
|
+
{
|
|
26
|
+
"name": "user_",
|
|
27
|
+
"type": "address",
|
|
28
|
+
"internalType": "address"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"outputs": [
|
|
32
|
+
{
|
|
33
|
+
"name": "",
|
|
34
|
+
"type": "uint256",
|
|
35
|
+
"internalType": "uint256"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"stateMutability": "view"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"type": "function",
|
|
42
|
+
"name": "marginUsedUsdc",
|
|
43
|
+
"inputs": [
|
|
44
|
+
{
|
|
45
|
+
"name": "user_",
|
|
46
|
+
"type": "address",
|
|
47
|
+
"internalType": "address"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"outputs": [
|
|
51
|
+
{
|
|
52
|
+
"name": "",
|
|
53
|
+
"type": "uint256",
|
|
54
|
+
"internalType": "uint256"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"stateMutability": "view"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "function",
|
|
61
|
+
"name": "notionalUsdc",
|
|
62
|
+
"inputs": [
|
|
63
|
+
{
|
|
64
|
+
"name": "user_",
|
|
65
|
+
"type": "address",
|
|
66
|
+
"internalType": "address"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "marketId_",
|
|
70
|
+
"type": "uint32",
|
|
71
|
+
"internalType": "uint32"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"outputs": [
|
|
75
|
+
{
|
|
76
|
+
"name": "",
|
|
77
|
+
"type": "uint256",
|
|
78
|
+
"internalType": "uint256"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"stateMutability": "view"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"type": "function",
|
|
85
|
+
"name": "perpUsdc",
|
|
86
|
+
"inputs": [
|
|
87
|
+
{
|
|
88
|
+
"name": "user_",
|
|
89
|
+
"type": "address",
|
|
90
|
+
"internalType": "address"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"outputs": [
|
|
94
|
+
{
|
|
95
|
+
"name": "",
|
|
96
|
+
"type": "uint256",
|
|
97
|
+
"internalType": "uint256"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"stateMutability": "view"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"type": "function",
|
|
104
|
+
"name": "spotUsdc",
|
|
105
|
+
"inputs": [
|
|
106
|
+
{
|
|
107
|
+
"name": "user_",
|
|
108
|
+
"type": "address",
|
|
109
|
+
"internalType": "address"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"outputs": [
|
|
113
|
+
{
|
|
114
|
+
"name": "",
|
|
115
|
+
"type": "uint256",
|
|
116
|
+
"internalType": "uint256"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"stateMutability": "view"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"type": "error",
|
|
123
|
+
"name": "PrecompileLib__AccountMarginSummaryPrecompileFailed",
|
|
124
|
+
"inputs": []
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"type": "error",
|
|
128
|
+
"name": "PrecompileLib__CoreUserExistsPrecompileFailed",
|
|
129
|
+
"inputs": []
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"type": "error",
|
|
133
|
+
"name": "PrecompileLib__MarkPxPrecompileFailed",
|
|
134
|
+
"inputs": []
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"type": "error",
|
|
138
|
+
"name": "PrecompileLib__PerpAssetInfoPrecompileFailed",
|
|
139
|
+
"inputs": []
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"type": "error",
|
|
143
|
+
"name": "PrecompileLib__PositionPrecompileFailed",
|
|
144
|
+
"inputs": []
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"type": "error",
|
|
148
|
+
"name": "PrecompileLib__SpotBalancePrecompileFailed",
|
|
149
|
+
"inputs": []
|
|
150
|
+
}
|
|
151
|
+
]
|