Skip to content

Commit 26fcb37

Browse files
committed
v1.6.8
1 parent b797977 commit 26fcb37

File tree

4 files changed

+99
-1
lines changed

4 files changed

+99
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Changelog
22

3+
## 1.6.8 - 2024-02-19
4+
### Updated
5+
- Parse deposit status
6+
37
## 1.6.7 - 2023-11-17
48
### Updated
5-
- Imporve stardard withdrawal
9+
- Improve stardard withdrawal
610

711
## 1.6.6 - 2023-10-25
812
### Updated

cmd/degate.h

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
/* Code generated by cmd/cgo; DO NOT EDIT. */
2+
3+
/* package command-line-arguments */
4+
5+
6+
#line 1 "cgo-builtin-export-prolog"
7+
8+
#include <stddef.h>
9+
10+
#ifndef GO_CGO_EXPORT_PROLOGUE_H
11+
#define GO_CGO_EXPORT_PROLOGUE_H
12+
13+
#ifndef GO_CGO_GOSTRING_TYPEDEF
14+
typedef struct { const char *p; ptrdiff_t n; } _GoString_;
15+
#endif
16+
17+
#endif
18+
19+
/* Start of preamble from import "C" comments. */
20+
21+
22+
#line 3 "main.go"
23+
24+
#include "clib.h"
25+
extern void CallBack(char *c, callback cb);
26+
27+
#line 1 "cgo-generated-wrapper"
28+
29+
30+
/* End of preamble from import "C" comments. */
31+
32+
33+
/* Start of boilerplate cgo prologue. */
34+
#line 1 "cgo-gcc-export-header-prolog"
35+
36+
#ifndef GO_CGO_PROLOGUE_H
37+
#define GO_CGO_PROLOGUE_H
38+
39+
typedef signed char GoInt8;
40+
typedef unsigned char GoUint8;
41+
typedef short GoInt16;
42+
typedef unsigned short GoUint16;
43+
typedef int GoInt32;
44+
typedef unsigned int GoUint32;
45+
typedef long long GoInt64;
46+
typedef unsigned long long GoUint64;
47+
typedef GoInt64 GoInt;
48+
typedef GoUint64 GoUint;
49+
typedef size_t GoUintptr;
50+
typedef float GoFloat32;
51+
typedef double GoFloat64;
52+
#ifdef _MSC_VER
53+
#include <complex.h>
54+
typedef _Fcomplex GoComplex64;
55+
typedef _Dcomplex GoComplex128;
56+
#else
57+
typedef float _Complex GoComplex64;
58+
typedef double _Complex GoComplex128;
59+
#endif
60+
61+
/*
62+
static assertion to make sure the file is being used on architecture
63+
at least with matching size of GoInt.
64+
*/
65+
typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
66+
67+
#ifndef GO_CGO_GOSTRING_TYPEDEF
68+
typedef _GoString_ GoString;
69+
#endif
70+
typedef void *GoMap;
71+
typedef void *GoChan;
72+
typedef struct { void *t; void *v; } GoInterface;
73+
typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
74+
75+
#endif
76+
77+
/* End of boilerplate cgo prologue. */
78+
79+
#ifdef __cplusplus
80+
extern "C" {
81+
#endif
82+
83+
extern char* send_request(char* c, char* method, char* params);
84+
extern char* send_subscribe(char* c, char* method, char* params, void* cb);
85+
86+
#ifdef __cplusplus
87+
}
88+
#endif

cmd/degate.so

16.9 MB
Binary file not shown.

degate/lib/convert.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ func ConvertDeposit(w *model.DepositData) (deposit *binance.DepositHistory, err
174174
deposit.Status = 6
175175
} else if strings.EqualFold(w.Status, "COMPLETED") {
176176
deposit.Status = 1
177+
} else if strings.EqualFold(w.Status, "SUCCESS") {
178+
deposit.Status = 2
179+
} else if strings.EqualFold(w.Status, "FAILED") {
180+
deposit.Status = 3
181+
} else if strings.EqualFold(w.Status, "CANCELED") {
182+
deposit.Status = 4
177183
}
178184
if w.Token != nil {
179185
deposit.Coin = w.Token.Symbol

0 commit comments

Comments
 (0)