ggez-banking-sdk 0.0.96 → 0.0.98
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.
|
@@ -68,15 +68,15 @@ const Data = () => {
|
|
|
68
68
|
};
|
|
69
69
|
const dataSignUpApi = (values) => {
|
|
70
70
|
const client = new clientjs_1.ClientJS();
|
|
71
|
-
let customField = {
|
|
71
|
+
let customField = { promotion_data: {} };
|
|
72
72
|
if (values.referralCode && values.referralCodeType) {
|
|
73
|
-
customField.
|
|
73
|
+
customField.promotion_data["referral_data"] = {
|
|
74
74
|
code: values.referralCode,
|
|
75
75
|
type: +values.referralCodeType,
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
if (values.giftData) {
|
|
79
|
-
customField.
|
|
79
|
+
customField.promotion_data["gift_data"] = [values.giftData];
|
|
80
80
|
}
|
|
81
81
|
let data = {
|
|
82
82
|
...data_1.userData,
|
|
@@ -171,15 +171,15 @@ const Data = () => {
|
|
|
171
171
|
};
|
|
172
172
|
const dataSignUpWithGoogle = (values) => {
|
|
173
173
|
const client = new clientjs_1.ClientJS();
|
|
174
|
-
let customField = {
|
|
174
|
+
let customField = { promotion_data: {} };
|
|
175
175
|
if (values.referralCode && values.referralCodeType) {
|
|
176
|
-
customField.
|
|
176
|
+
customField.promotion_data["referral_data"] = {
|
|
177
177
|
code: values.referralCode,
|
|
178
178
|
type: +values.referralCodeType,
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
181
|
if (values.giftData) {
|
|
182
|
-
customField.
|
|
182
|
+
customField.promotion_data["gift_data"] = [values.giftData];
|
|
183
183
|
}
|
|
184
184
|
let data = {
|
|
185
185
|
...data_1.userData,
|
|
@@ -95,9 +95,9 @@ export interface LimitedTokenInterface {
|
|
|
95
95
|
geoCoordinates?: IGeoCoordinates | null;
|
|
96
96
|
}
|
|
97
97
|
export interface CustomField {
|
|
98
|
-
|
|
98
|
+
promotion_data: PromotionData;
|
|
99
99
|
}
|
|
100
|
-
export interface
|
|
100
|
+
export interface PromotionData {
|
|
101
101
|
referral_data?: ReferralData;
|
|
102
102
|
gift_data?: Gift[];
|
|
103
103
|
}
|
|
@@ -7,6 +7,12 @@ const chainInfo = (rpc_url, rest_url, chain_id, chain_name, uggzGasPriceStep, ug
|
|
|
7
7
|
chainName: chain_name,
|
|
8
8
|
rpc: rpc_url,
|
|
9
9
|
rest: rest_url,
|
|
10
|
+
chainSymbolImageUrl: "https://ggez.one/images/assets/chain.png",
|
|
11
|
+
nodeProvider: {
|
|
12
|
+
name: "GGEZ1 Foundation DAO LLC.",
|
|
13
|
+
email: "ggez@ggez.one",
|
|
14
|
+
website: "https://ggez.one",
|
|
15
|
+
},
|
|
10
16
|
bip44: {
|
|
11
17
|
coinType: 118,
|
|
12
18
|
},
|
|
@@ -30,7 +36,7 @@ const chainInfo = (rpc_url, rest_url, chain_id, chain_name, uggzGasPriceStep, ug
|
|
|
30
36
|
coinMinimalDenom: "uggz",
|
|
31
37
|
coinDecimals: 6,
|
|
32
38
|
coinImageUrl: "https://ggez.one/images/assets/ggz.png",
|
|
33
|
-
}
|
|
39
|
+
},
|
|
34
40
|
],
|
|
35
41
|
feeCurrencies: [
|
|
36
42
|
{
|
|
@@ -55,6 +61,5 @@ const chainInfo = (rpc_url, rest_url, chain_id, chain_name, uggzGasPriceStep, ug
|
|
|
55
61
|
coinImageUrl: "https://ggez.one/images/assets/ggez1.png",
|
|
56
62
|
},
|
|
57
63
|
features: ["cosmwasm"],
|
|
58
|
-
chainSymbolImageUrl: "https://ggez.one/images/assets/chain.png",
|
|
59
64
|
});
|
|
60
65
|
exports.chainInfo = chainInfo;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ggez-banking-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.98",
|
|
4
4
|
"description": "A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|