@zebec-network/exchange-card-sdk 1.1.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/LICENSE +21 -0
- package/README.md +339 -0
- package/dist/artifacts/abi/ERC20.json +350 -0
- package/dist/artifacts/abi/ZebecCard.json +1060 -0
- package/dist/artifacts/abi/index.d.ts +122 -0
- package/dist/artifacts/abi/index.js +10 -0
- package/dist/artifacts/index.d.ts +2 -0
- package/dist/artifacts/index.js +18 -0
- package/dist/artifacts/typechain-types/ERC20.d.ts +149 -0
- package/dist/artifacts/typechain-types/ERC20.js +2 -0
- package/dist/artifacts/typechain-types/ZebecCard.d.ts +639 -0
- package/dist/artifacts/typechain-types/ZebecCard.js +2 -0
- package/dist/artifacts/typechain-types/common.d.ts +50 -0
- package/dist/artifacts/typechain-types/common.js +2 -0
- package/dist/artifacts/typechain-types/factories/ERC20__factory.d.ts +280 -0
- package/dist/artifacts/typechain-types/factories/ERC20__factory.js +378 -0
- package/dist/artifacts/typechain-types/factories/ZebecCard__factory.d.ts +835 -0
- package/dist/artifacts/typechain-types/factories/ZebecCard__factory.js +1088 -0
- package/dist/artifacts/typechain-types/factories/index.d.ts +2 -0
- package/dist/artifacts/typechain-types/factories/index.js +10 -0
- package/dist/artifacts/typechain-types/index.d.ts +5 -0
- package/dist/artifacts/typechain-types/index.js +31 -0
- package/dist/chains.d.ts +18 -0
- package/dist/chains.js +39 -0
- package/dist/constants.d.ts +3649 -0
- package/dist/constants.js +2502 -0
- package/dist/errors.d.ts +24 -0
- package/dist/errors.js +51 -0
- package/dist/helpers/apiHelpers.d.ts +30 -0
- package/dist/helpers/apiHelpers.js +92 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +26 -0
- package/dist/services/EvmService.d.ts +37 -0
- package/dist/services/EvmService.js +134 -0
- package/dist/services/TaoService.d.ts +49 -0
- package/dist/services/TaoService.js +106 -0
- package/dist/services/TonService.d.ts +57 -0
- package/dist/services/TonService.js +137 -0
- package/dist/services/XdbService.d.ts +58 -0
- package/dist/services/XdbService.js +140 -0
- package/dist/services/stellarService.d.ts +52 -0
- package/dist/services/stellarService.js +119 -0
- package/dist/types.d.ts +59 -0
- package/dist/types.js +263 -0
- package/dist/utils.d.ts +8 -0
- package/dist/utils.js +48 -0
- package/package.json +58 -0
package/dist/types.js
ADDED
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.allCountriesWithCode = exports.Recipient = exports.Money = exports.Receipt = exports.Deposit = exports.Quote = exports.OrderCardRequest = void 0;
|
|
4
|
+
const errors_1 = require("./errors");
|
|
5
|
+
const utils_1 = require("./utils");
|
|
6
|
+
class OrderCardRequest {
|
|
7
|
+
amount;
|
|
8
|
+
recipient;
|
|
9
|
+
receipt;
|
|
10
|
+
constructor(amount, recipient, receipt) {
|
|
11
|
+
this.amount = amount;
|
|
12
|
+
this.receipt = receipt;
|
|
13
|
+
this.recipient = recipient;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.OrderCardRequest = OrderCardRequest;
|
|
17
|
+
// export class Quote {
|
|
18
|
+
// id: string; // Unique identifier for the quote
|
|
19
|
+
// token: string; // Token symbol or name (e.g., BTC, ETH)
|
|
20
|
+
// targetCurrency: string; // Target currency (e.g., "USD")
|
|
21
|
+
// amountRequested: number; // Amount of USD the user wants to purchase
|
|
22
|
+
// pricePerUnitCurrency: number; // Price of 1 USD in terms of the token
|
|
23
|
+
// totalPrice: number; // Total token amount needed for the USD purchase
|
|
24
|
+
// platformFee: number; // Any additional platform fee
|
|
25
|
+
// expiresIn: number; // Validity period for the quote in seconds or ISO date
|
|
26
|
+
// timestamp: Date; // Timestamp when the quote was generated
|
|
27
|
+
// status: "pending" | "expired" | "accepted" | "rejected"; // Quote status
|
|
28
|
+
// constructor(
|
|
29
|
+
// id: string,
|
|
30
|
+
// token: string,
|
|
31
|
+
// targetCurrency: string,
|
|
32
|
+
// amountRequested: number,
|
|
33
|
+
// pricePerUnitCurrency: number,
|
|
34
|
+
// totalPrice: number,
|
|
35
|
+
// platformFee: number,
|
|
36
|
+
// expiresIn: number,
|
|
37
|
+
// timestamp: Date,
|
|
38
|
+
// status: "pending" | "expired" | "accepted" | "rejected",
|
|
39
|
+
// ) {
|
|
40
|
+
// this.id = id;
|
|
41
|
+
// this.token = token;
|
|
42
|
+
// this.targetCurrency = targetCurrency;
|
|
43
|
+
// this.amountRequested = amountRequested;
|
|
44
|
+
// this.pricePerUnitCurrency = pricePerUnitCurrency;
|
|
45
|
+
// this.totalPrice = totalPrice;
|
|
46
|
+
// this.platformFee = platformFee;
|
|
47
|
+
// this.expiresIn = expiresIn;
|
|
48
|
+
// this.timestamp = timestamp;
|
|
49
|
+
// this.status = status;
|
|
50
|
+
// }
|
|
51
|
+
// }
|
|
52
|
+
class Quote {
|
|
53
|
+
price; // Total token amount needed for the USD purchase
|
|
54
|
+
fluctuationPercentage; // Amount of USD the user wants to purchase
|
|
55
|
+
token; // Timestamp when the quote was generated
|
|
56
|
+
constructor(price, // Total token amount needed for the USD purchase
|
|
57
|
+
fluctuationPercentage, // Amount of USD the user wants to purchase
|
|
58
|
+
token) {
|
|
59
|
+
this.price = price;
|
|
60
|
+
this.fluctuationPercentage = fluctuationPercentage;
|
|
61
|
+
this.token = token;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.Quote = Quote;
|
|
65
|
+
class Deposit {
|
|
66
|
+
tokenName;
|
|
67
|
+
tokenAmount;
|
|
68
|
+
signature;
|
|
69
|
+
buyerAddress;
|
|
70
|
+
txHash;
|
|
71
|
+
blockHash;
|
|
72
|
+
chainId;
|
|
73
|
+
purchaseCounter;
|
|
74
|
+
constructor(tokenName, tokenAmount, signature, buyerAddress, txHash, blockHash, chainId, purchaseCounter) {
|
|
75
|
+
this.tokenName = tokenName;
|
|
76
|
+
this.tokenAmount = tokenAmount;
|
|
77
|
+
this.signature = signature;
|
|
78
|
+
this.txHash = txHash;
|
|
79
|
+
this.blockHash = blockHash;
|
|
80
|
+
this.chainId = chainId;
|
|
81
|
+
this.buyerAddress = buyerAddress;
|
|
82
|
+
this.purchaseCounter = purchaseCounter;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.Deposit = Deposit;
|
|
86
|
+
class Receipt {
|
|
87
|
+
quote;
|
|
88
|
+
deposit;
|
|
89
|
+
constructor(quote, deposit) {
|
|
90
|
+
this.quote = quote;
|
|
91
|
+
this.deposit = deposit;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.Receipt = Receipt;
|
|
95
|
+
class Money {
|
|
96
|
+
amount;
|
|
97
|
+
currencyCode;
|
|
98
|
+
constructor(amount, currencyCode) {
|
|
99
|
+
this.amount = amount;
|
|
100
|
+
this.currencyCode = currencyCode;
|
|
101
|
+
}
|
|
102
|
+
// Example static method to create a Money instance from an amount and optional currency code
|
|
103
|
+
static create(amount, currencyCode) {
|
|
104
|
+
return new Money(Number(amount), currencyCode);
|
|
105
|
+
}
|
|
106
|
+
static USD(amount) {
|
|
107
|
+
return this.create((0, utils_1.formatAmount)(amount), "USD");
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.Money = Money;
|
|
111
|
+
class Recipient {
|
|
112
|
+
participantId;
|
|
113
|
+
firstName;
|
|
114
|
+
lastName;
|
|
115
|
+
emailAddress;
|
|
116
|
+
address1;
|
|
117
|
+
address2;
|
|
118
|
+
city;
|
|
119
|
+
state;
|
|
120
|
+
postalCode;
|
|
121
|
+
countryCode;
|
|
122
|
+
language = "en-US";
|
|
123
|
+
mobilePhone;
|
|
124
|
+
constructor(participantId, firstName, lastName, emailAddress, mobilePhone, language, city, state, postalCode, countryCode, address1, address2) {
|
|
125
|
+
this.participantId = participantId;
|
|
126
|
+
this.firstName = firstName;
|
|
127
|
+
this.lastName = lastName;
|
|
128
|
+
this.address1 = address1;
|
|
129
|
+
this.address2 = address2;
|
|
130
|
+
this.city = city;
|
|
131
|
+
this.state = state;
|
|
132
|
+
this.postalCode = postalCode;
|
|
133
|
+
this.countryCode = countryCode;
|
|
134
|
+
this.emailAddress = emailAddress;
|
|
135
|
+
this.language = language;
|
|
136
|
+
this.mobilePhone = mobilePhone;
|
|
137
|
+
}
|
|
138
|
+
static create(participantId, firstName, lastName, emailAddress, mobilePhone, language, city, state, postalCode, countryCode, address1, address2) {
|
|
139
|
+
if (!(0, utils_1.hasLen)(participantId, 1, 20)) {
|
|
140
|
+
throw new errors_1.ValidationError("Participants must be of 1 to 20 characters.");
|
|
141
|
+
}
|
|
142
|
+
if (!(0, utils_1.isAlphaNumeric)(participantId)) {
|
|
143
|
+
throw new errors_1.ValidationError("Participants must only contains alpha numeric characters");
|
|
144
|
+
}
|
|
145
|
+
if (!(0, utils_1.hasLen)(firstName, 1, 50)) {
|
|
146
|
+
throw new errors_1.ValidationError("Firstname must be within 1 to 50 characters.");
|
|
147
|
+
}
|
|
148
|
+
if (!(0, utils_1.hasLen)(lastName, 1, 50)) {
|
|
149
|
+
throw new errors_1.ValidationError("Lastname must be within 1 to 50 characters.");
|
|
150
|
+
}
|
|
151
|
+
if (!(0, utils_1.hasLen)(emailAddress, 1, 80)) {
|
|
152
|
+
throw new errors_1.ValidationError("Email must be within 1 to 80 characters.");
|
|
153
|
+
}
|
|
154
|
+
if (!(0, utils_1.isEmailValid)(emailAddress)) {
|
|
155
|
+
throw new errors_1.ValidationError("Email address must be a valid email.");
|
|
156
|
+
}
|
|
157
|
+
if (!(0, utils_1.hasLen)(language, 2, 5)) {
|
|
158
|
+
throw new errors_1.ValidationError("Language code must be within 2 to 5 characters.");
|
|
159
|
+
}
|
|
160
|
+
if (!(0, utils_1.hasLen)(mobilePhone, 1, 20)) {
|
|
161
|
+
throw new errors_1.ValidationError("Mobile phone number must be within 1 to 20 characters.");
|
|
162
|
+
}
|
|
163
|
+
if (!(0, utils_1.hasLen)(city, 1, 50)) {
|
|
164
|
+
throw new errors_1.ValidationError("City must be within 1 to 50 characters.");
|
|
165
|
+
}
|
|
166
|
+
if (!(0, utils_1.hasLen)(state, 1, 50)) {
|
|
167
|
+
throw new errors_1.ValidationError("State must be within 1 to 50 characters.");
|
|
168
|
+
}
|
|
169
|
+
if (!exports.allCountriesWithCode.find((country) => country.code === countryCode)) {
|
|
170
|
+
throw new errors_1.ValidationError("CountryCode must be a valid supported ISO 3166-1 alpha-3 code");
|
|
171
|
+
}
|
|
172
|
+
if (!(0, utils_1.hasLen)(postalCode, 1, 20)) {
|
|
173
|
+
throw new errors_1.ValidationError("Postal code must be within 1 to 20 characters.");
|
|
174
|
+
}
|
|
175
|
+
if (!(0, utils_1.hasLen)(address1, 1, 50)) {
|
|
176
|
+
throw new errors_1.ValidationError("Address line 1 must be within 1 to 50 characters.");
|
|
177
|
+
}
|
|
178
|
+
if (address2 && !(0, utils_1.hasLen)(address2, 1, 50)) {
|
|
179
|
+
throw new errors_1.ValidationError("Address line 2 must be within 1 to 50 characters.");
|
|
180
|
+
}
|
|
181
|
+
return new Recipient(participantId, firstName, lastName, emailAddress, mobilePhone, language, city, state, postalCode, countryCode, address1, address2 ?? "N/A");
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
exports.Recipient = Recipient;
|
|
185
|
+
exports.allCountriesWithCode = [
|
|
186
|
+
{ name: "Algeria", code: "DZA" },
|
|
187
|
+
{ name: "Angola", code: "AGO" },
|
|
188
|
+
{ name: "Argentina", code: "ARG" },
|
|
189
|
+
{ name: "Australia", code: "AUS" },
|
|
190
|
+
{ name: "Austria", code: "AUT" },
|
|
191
|
+
{ name: "Belgium", code: "BEL" },
|
|
192
|
+
{ name: "Bolivia (Plurinational State of)", code: "BOL" },
|
|
193
|
+
{ name: "Brazil", code: "BRA" },
|
|
194
|
+
{ name: "Cameroon", code: "CMR" },
|
|
195
|
+
{ name: "Canada", code: "CAN" },
|
|
196
|
+
{ name: "Chile", code: "CHL" },
|
|
197
|
+
{ name: "Costa Rica", code: "CRI" },
|
|
198
|
+
{ name: "Cyprus", code: "CYP" },
|
|
199
|
+
{ name: "Czechia", code: "CZE" },
|
|
200
|
+
{ name: "Denmark", code: "DNK" },
|
|
201
|
+
{ name: "Ecuador", code: "ECU" },
|
|
202
|
+
{ name: "Egypt", code: "EGY" },
|
|
203
|
+
{ name: "El Salvador", code: "SLV" },
|
|
204
|
+
{ name: "Estonia", code: "EST" },
|
|
205
|
+
{ name: "Finland", code: "FIN" },
|
|
206
|
+
{ name: "France", code: "FRA" },
|
|
207
|
+
{ name: "Georgia", code: "GEO" },
|
|
208
|
+
{ name: "Germany", code: "DEU" },
|
|
209
|
+
{ name: "Ghana", code: "GHA" },
|
|
210
|
+
{ name: "Greece", code: "GRC" },
|
|
211
|
+
{ name: "Guatemala", code: "GTM" },
|
|
212
|
+
{ name: "Honduras", code: "HND" },
|
|
213
|
+
{ name: "Hungary", code: "HUN" },
|
|
214
|
+
{ name: "Iceland", code: "ISL" },
|
|
215
|
+
{ name: "Ireland", code: "IRL" },
|
|
216
|
+
{ name: "Italy", code: "ITA" },
|
|
217
|
+
{ name: "Jamaica", code: "JAM" },
|
|
218
|
+
{ name: "Japan", code: "JPN" },
|
|
219
|
+
{ name: "Jordan", code: "JOR" },
|
|
220
|
+
{ name: "Kenya", code: "KEN" },
|
|
221
|
+
{ name: "Korea, Republic of Korea", code: "KOR" },
|
|
222
|
+
{ name: "Kuwait", code: "KWT" },
|
|
223
|
+
{ name: "Lithuania", code: "LTU" },
|
|
224
|
+
{ name: "Luxembourg", code: "LUX" },
|
|
225
|
+
{ name: "Malawi", code: "MWI" },
|
|
226
|
+
{ name: "Malaysia", code: "MYS" },
|
|
227
|
+
{ name: "Malta", code: "MLT" },
|
|
228
|
+
{ name: "Mexico", code: "MEX" },
|
|
229
|
+
{ name: "Morocco", code: "MAR" },
|
|
230
|
+
{ name: "Mozambique", code: "MOZ" },
|
|
231
|
+
{ name: "Nepal", code: "NPL" },
|
|
232
|
+
{ name: "Netherlands", code: "NLD" },
|
|
233
|
+
{ name: "New Zealand", code: "NZL" },
|
|
234
|
+
{ name: "Nigeria", code: "NGA" },
|
|
235
|
+
{ name: "Norway", code: "NOR" },
|
|
236
|
+
{ name: "Oman", code: "OMN" },
|
|
237
|
+
{ name: "Pakistan", code: "PAK" },
|
|
238
|
+
{ name: "Papua New Guinea", code: "PNG" },
|
|
239
|
+
{ name: "Paraguay", code: "PRY" },
|
|
240
|
+
{ name: "Peru", code: "PER" },
|
|
241
|
+
{ name: "Philippines", code: "PHL" },
|
|
242
|
+
{ name: "Poland", code: "POL" },
|
|
243
|
+
{ name: "Portugal", code: "PRT" },
|
|
244
|
+
{ name: "Puerto Rico", code: "PRI" },
|
|
245
|
+
{ name: "Qatar", code: "QAT" },
|
|
246
|
+
{ name: "Romania", code: "ROU" },
|
|
247
|
+
{ name: "Saudi Arabia", code: "SAU" },
|
|
248
|
+
{ name: "Singapore", code: "SGP" },
|
|
249
|
+
{ name: "Slovakia", code: "SVK" },
|
|
250
|
+
{ name: "Slovenia", code: "SVN" },
|
|
251
|
+
{ name: "Spain", code: "ESP" },
|
|
252
|
+
{ name: "Sweden", code: "SWE" },
|
|
253
|
+
{ name: "Taiwan", code: "TWN" },
|
|
254
|
+
{ name: "Thailand", code: "THA" },
|
|
255
|
+
{ name: "Trinidad and Tobago", code: "TTO" },
|
|
256
|
+
{ name: "Tunisia", code: "TUN" },
|
|
257
|
+
{ name: "Turkey", code: "TUR" },
|
|
258
|
+
{ name: "United Kingdom", code: "GBR" },
|
|
259
|
+
{ name: "United States", code: "USA" },
|
|
260
|
+
{ name: "Uruguay", code: "URY" },
|
|
261
|
+
{ name: "Vanuatu", code: "VUT" },
|
|
262
|
+
{ name: "Zambia", code: "ZMB" },
|
|
263
|
+
];
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function hashSHA256(input: string): string;
|
|
2
|
+
export declare function isEmailValid(value: string): boolean;
|
|
3
|
+
export declare function isAlphaNumeric(value: string): boolean;
|
|
4
|
+
export declare function areDatesOfSameDay(date1: Date, date2: Date): boolean;
|
|
5
|
+
export declare function hasMinLen(value: string, len: number): boolean;
|
|
6
|
+
export declare function hasMaxLen(value: string, len: number): boolean;
|
|
7
|
+
export declare function hasLen(value: string, min: number, max?: number): boolean;
|
|
8
|
+
export declare function formatAmount(amount: number | string, decimalPlaces?: number): number;
|
package/dist/utils.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.hashSHA256 = hashSHA256;
|
|
7
|
+
exports.isEmailValid = isEmailValid;
|
|
8
|
+
exports.isAlphaNumeric = isAlphaNumeric;
|
|
9
|
+
exports.areDatesOfSameDay = areDatesOfSameDay;
|
|
10
|
+
exports.hasMinLen = hasMinLen;
|
|
11
|
+
exports.hasMaxLen = hasMaxLen;
|
|
12
|
+
exports.hasLen = hasLen;
|
|
13
|
+
exports.formatAmount = formatAmount;
|
|
14
|
+
const crypto_1 = __importDefault(require("crypto"));
|
|
15
|
+
function hashSHA256(input) {
|
|
16
|
+
const hash = crypto_1.default.createHash("sha256");
|
|
17
|
+
hash.update(input);
|
|
18
|
+
const hex = hash.digest("hex");
|
|
19
|
+
return hex;
|
|
20
|
+
}
|
|
21
|
+
function isEmailValid(value) {
|
|
22
|
+
return /^[a-zA-Z0-9._+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,10}$/.test(value);
|
|
23
|
+
}
|
|
24
|
+
function isAlphaNumeric(value) {
|
|
25
|
+
return /^[a-zA-Z0-9]+$/.test(value);
|
|
26
|
+
}
|
|
27
|
+
function areDatesOfSameDay(date1, date2) {
|
|
28
|
+
return (date1.getUTCDay() === date2.getUTCDay() &&
|
|
29
|
+
date1.getUTCMonth() === date2.getUTCMonth() &&
|
|
30
|
+
date1.getUTCFullYear() === date2.getUTCFullYear());
|
|
31
|
+
}
|
|
32
|
+
function hasMinLen(value, len) {
|
|
33
|
+
return value.length >= len;
|
|
34
|
+
}
|
|
35
|
+
function hasMaxLen(value, len) {
|
|
36
|
+
return value.length <= len;
|
|
37
|
+
}
|
|
38
|
+
function hasLen(value, min, max) {
|
|
39
|
+
if (max) {
|
|
40
|
+
return hasMinLen(value, min) && hasMaxLen(value, max);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
return hasMinLen(value, min);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function formatAmount(amount, decimalPlaces = 2) {
|
|
47
|
+
return Number(Number(amount).toFixed(decimalPlaces));
|
|
48
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@zebec-network/exchange-card-sdk",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "An sdk for purchasing silver card in zebec",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"author": "Ashish Sapkota",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "npm run clean && tsc",
|
|
14
|
+
"clean": "rimraf dist",
|
|
15
|
+
"format": "prettier --write .",
|
|
16
|
+
"test": "ts-mocha -p ./tsconfig.json -t 1000000",
|
|
17
|
+
"gen:typechain": "typechain --target ethers-v6 --out-dir \"src/artifacts/typechain-types\" \"src/artifacts/abi/*.json\""
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@typechain/ethers-v6": "^0.5.1",
|
|
21
|
+
"@types/jsonwebtoken": "^9.0.7",
|
|
22
|
+
"@types/mocha": "^10.0.9",
|
|
23
|
+
"@types/node": "^22.7.9",
|
|
24
|
+
"dotenv": "^16.4.5",
|
|
25
|
+
"mocha": "^10.7.3",
|
|
26
|
+
"prettier": "^3.3.3",
|
|
27
|
+
"rimraf": "^6.0.1",
|
|
28
|
+
"ts-mocha": "^10.0.0",
|
|
29
|
+
"ts-node": "^10.9.2",
|
|
30
|
+
"typechain": "^8.3.2",
|
|
31
|
+
"typescript": "^5.6.3"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@creit.tech/stellar-wallets-kit": "^1.7.1",
|
|
35
|
+
"@polkadot/api": "^14.3.1",
|
|
36
|
+
"@polkadot/types": "^14.3.1",
|
|
37
|
+
"@polkadot/util": "^13.2.3",
|
|
38
|
+
"@stellar/stellar-sdk": "^13.1.0",
|
|
39
|
+
"@tonconnect/sdk": "^3.0.6",
|
|
40
|
+
"axios": "^1.7.7",
|
|
41
|
+
"ethers": "^6.13.4",
|
|
42
|
+
"tonweb": "^0.0.66",
|
|
43
|
+
"xdb-digitalbits-sdk": "^8.2.2"
|
|
44
|
+
},
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git+https://github.com/Zebec-Fintech-Labs/zebec-card-minimal-sdk.git"
|
|
48
|
+
},
|
|
49
|
+
"homepage": "https://github.com/Zebec-Fintech-Labs/zebec-card-minimal-sdk.git#README",
|
|
50
|
+
"keywords": [
|
|
51
|
+
"zebec",
|
|
52
|
+
"zebec fintech",
|
|
53
|
+
"zebec instant card"
|
|
54
|
+
],
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public"
|
|
57
|
+
}
|
|
58
|
+
}
|