Skip to content

Commit ea87b1c

Browse files
committed
reformat code
1 parent acbd5a2 commit ea87b1c

File tree

192 files changed

+19481
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+19481
-4
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ yarn-error.log
44
.idea
55
_book
66
dist
7-
docs/detail
8-
docs/Changelog.md
9-
docs/README.md
107

118

docs/Changelog.md

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
# CHANGELOG
2+
3+
### JS SDK Version ChangeLog
4+
### v0.2.6
5+
1) NFT withdraw L2 -> L1
6+
2) NFT Deposit L1 -> L2 (NFT approvedAll fot Exchange)
7+
3) NFT Transfer L2 -> L2
8+
4) NFT Mint L2
9+
5) NFT META
10+
6) NFT Action Check History L2
11+
12+
13+
### v0.0.99
14+
1) update swap calc function.
15+
2) add getWithdrawalAgents
16+
3) update TradeChannel enum
17+
18+
### v0.0.90
19+
1) add callback to updateaccount transfer and withdraw.
20+
21+
### v0.0.87
22+
1) fix no amm swap calc issue.
23+
2) add symbol to DepthData.
24+
25+
### v0.0.85
26+
1) add getUserTxs api.
27+
28+
### v0.0.82
29+
1) update response of some apis according to backend's change.
30+
31+
### v0.0.81
32+
1) change init method of BaseApi.
33+
2) update response of some apis.
34+
35+
### v0.0.78
36+
1) add GetLiquidityMiningUserHistory
37+
2) update response of submitOrder, updateAccount transfer and withdraw
38+
39+
### v0.0.75
40+
1) add getAmmAssetHistory function.
41+
2) fix null pointer exceptions.
42+
43+
### v0.0.71
44+
1) add error_code defs.
45+
2) update account and ammpoolsnapshot response.
46+
47+
### v0.0.69
48+
1) add status === 400 to status validation.
49+
50+
### v0.0.68
51+
1) add getRecommendedMarkets to exchange api.
52+
53+
### v0.0.67
54+
1) add feeVersion: v2 to request's header.
55+
56+
### v0.0.60
57+
1) fix swap calc utils bug
58+
59+
### v0.0.59
60+
1) add amountMap to getMinimumTokenAmt
61+
62+
### v0.0.58
63+
1) update error log level
64+
65+
### v0.0.54
66+
1) update swap calc response
67+
68+
### v0.0.50
69+
1) update getUserOnchainWithdrawalHistory response
70+
71+
### v0.0.48
72+
1) add tags to AccountInfo
73+
2) fix covertPublickey issue.
74+
75+
### v0.0.45
76+
1) update make join/exit request
77+
78+
### v0.0.43
79+
1) update getEthBalances response.
80+
81+
### v0.0.41
82+
1) add getEthBalances function.
83+
84+
### v0.0.39
85+
1) fix swap_calc_utils format bug.
86+
87+
### v0.0.37
88+
1) add getAllMixTickers function to exchangeApi.
89+
90+
### v0.0.36
91+
1) fix swap calc bug.
92+
93+
### v0.0.30
94+
1) refine code arch. seperate enums and constants.
95+
96+
### v0.0.28
97+
1) fix TransferTxType def issue.
98+
2) fix AmmTxType def issue.
99+
100+
### v0.0.27
101+
1) add walletApi support
102+
2) fix AmmPoolSnapshot struct bug
103+
104+
### v0.0.24
105+
1) update getAmmPoolGameUserRank response
106+
107+
### v0.0.23
108+
1) add isLpToken to TokenInfo struct
109+
110+
### v0.0.22
111+
1) fix GetDepthRequest param format issue
112+
113+
### v0.0.21
114+
1) add ruleType def to getAmmPoolActivityRules
115+
116+
### v0.0.20
117+
1) modify getAmmPoolUserRewards. add ammPoolMarkets support.
118+
119+
### v0.0.19
120+
1) modify getDepth. add amt/vol Total stat support.
121+
122+
### v0.0.18
123+
1) modify getAmmPoolActivityRules. add support for grouping by ruleType and status.
124+
2) modify getDepth. update response format.
125+
126+
### v0.0.16
127+
1) modify getMixMarkets.
128+
129+
### v0.0.15
130+
1) add getAmmPoolTxs api.
131+
132+
### v0.0.13
133+
1) change metamask.js to typescript.
134+
2) fix missing params issue.
135+
136+
### v0.0.12
137+
1) add missing function for APIs.
138+
2) fix response arch of some APIs.
139+
140+
### v0.0.11
141+
1) update getTicker api. modify fields.
142+
2) change TokenVolumeV3 def.
143+
144+
#### v0.0.10
145+
1) update interface definitions for APIs.
146+
147+
#### v0.0.9
148+
1) add interface definitions for APIs.
149+
150+
#### v0.0.8
151+
1) update UpdateAccount api.
152+
2) add setChainId to BaseAPI.
153+
154+
#### v0.0.7
155+
1) refine response arch;
156+
2) update interface defs.
157+
158+
#### v0.0.6
159+
1) add ammpool rank api;
160+
2) fix deposit confliction;
161+
162+
#### v0.0.5
163+
1) fix sign_tool functions export issue.
164+
165+
---
166+
167+
## PYTHON SDK Version ChangeLog

docs/README.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Loopring SDK
2+
3+
[![license](https://img.shields.io/badge/license-GPL-blue)](https://github.com/Loopring/loopring_sdk/master/LICENSE)
4+
[![type-badge](https://img.shields.io/npm/types/react-data-grid)](https://www.npmjs.com/package/react-data-grid)
5+
[![Discord](https://img.shields.io/discord/687207715902193673)](https://discord.com/invite/KkYccYp)
6+
7+
## 🚀 Quick Start
8+
9+
Using NPM
10+
11+
```bash
12+
npm i @loopring-web/loopring-sdk --save
13+
```
14+
15+
Using Yarn
16+
17+
```bash
18+
yarn add @loopring-web/loopring-sdk
19+
```
20+
21+
## 📒 Documentation
22+
23+
Please see the [documentation page](https://loopring.github.io/loopring_sdk/) for information about getting started and developing with the Loopring SDK.
24+
25+
- [JS SDK](https://loopring.github.io/loopring_sdk)
26+
- [Python](https://github.com/Loopring/hello_loopring)
27+
- [APIs](https://docs.loopring.io/en/)
28+
29+
## ✨ Changelog
30+
31+
- [JS SDK](https://docs.loopring.io/en/ChangeLog.html)
32+
33+
## 🫂 Community
34+
35+
- [Loopring Website](https://loopring.org/)
36+
- [Loopring Exchange](https://loopring.io/#/layer2)
37+
- [Loopring Reddit](https://www.reddit.com/r/loopringorg/)
38+
- [Loopring Medium](https://medium.com/loopring-protocol)
39+
- [Loopring Twitter](https://twitter.com/loopringorg)
40+
- [Loopring Telegram](https://t.me/loopring_en)
41+
42+
## 🎒 Getting Started
43+
44+
Please see our [introduction page](https://loopring.github.io/loopring_sdk/) for details on integrating the SDK into your application.
45+
46+
## 🙋 Protocol & Architecture
47+
48+
- [Whitepaper](https://loopring.org/resources/en_whitepaper.pdf)
49+
- [Design Docs](https://github.com/LoopringSecondary/docs/wiki/Loopring3_Design)
50+
51+
## [Help](https://loopring.io/#/newticket)
52+
53+
## 👉 [What is Loopring?](https://loopring.org/#/)
54+
55+
## 🔑 Security
56+
57+
- [Wallet](https://security.loopring.io/)
58+
- [Protocol Audit](https://loopring.org/resources/loopring1.0_audit.pdf)

docs/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- [Introduction](README.md)
66
- [Changelog](ChangeLog.md)
7+
- [GitHub](https://github.com/Loopring/loopring_sdk)
78

89
### SDKs demo
910

docs/detail/.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.

docs/detail/README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
@loopring-web/loopring-sdk / [Exports](modules.md)
2+
3+
# Loopring SDK
4+
5+
[![license](https://img.shields.io/badge/license-GPL-blue)](https://github.com/Loopring/loopring_sdk/master/LICENSE)
6+
[![type-badge](https://img.shields.io/npm/types/react-data-grid)](https://www.npmjs.com/package/react-data-grid)
7+
[![Discord](https://img.shields.io/discord/687207715902193673)](https://discord.com/invite/KkYccYp)
8+
9+
## 🚀 Quick Start
10+
11+
Using NPM
12+
13+
```bash
14+
npm i @loopring-web/loopring-sdk --save
15+
```
16+
17+
Using Yarn
18+
19+
```bash
20+
yarn add @loopring-web/loopring-sdk
21+
```
22+
23+
## 📒 Documentation
24+
25+
Please see the [documentation page](https://loopring.github.io/loopring_sdk/) for information about getting started and developing with the Loopring SDK.
26+
27+
- [JS SDK](https://loopring.github.io/loopring_sdk)
28+
- [Python](https://github.com/Loopring/hello_loopring)
29+
- [APIs](https://docs.loopring.io/en/)
30+
31+
## ✨ Changelog
32+
33+
- [JS SDK](https://docs.loopring.io/en/ChangeLog.html)
34+
35+
## 🫂 Community
36+
37+
- [Loopring Website](https://loopring.org/)
38+
- [Loopring Exchange](https://loopring.io/#/layer2)
39+
- [Loopring Reddit](https://www.reddit.com/r/loopringorg/)
40+
- [Loopring Medium](https://medium.com/loopring-protocol)
41+
- [Loopring Twitter](https://twitter.com/loopringorg)
42+
- [Loopring Telegram](https://t.me/loopring_en)
43+
44+
## 🎒 Getting Started
45+
46+
Please see our [introduction page](https://loopring.github.io/loopring_sdk/) for details on integrating the SDK into your application.
47+
48+
## 🙋 Protocol & Architecture
49+
50+
- [Whitepaper](https://loopring.org/resources/en_whitepaper.pdf)
51+
- [Design Docs](https://github.com/LoopringSecondary/docs/wiki/Loopring3_Design)
52+
53+
## [Help](https://loopring.io/#/newticket)
54+
55+
## 👉 [What is Loopring?](https://loopring.org/#/)
56+
57+
## 🔑 Security
58+
59+
- [Wallet](https://security.loopring.io/)
60+
- [Protocol Audit](https://loopring.org/resources/loopring1.0_audit.pdf)

0 commit comments

Comments
 (0)