ggez-banking-sdk 0.0.2 → 0.0.4
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/package.json +10 -2
- package/README.md +0 -0
- package/dist/bank-system/constants/enum.d.ts +0 -1057
- package/dist/bank-system/constants/enum.js +0 -1110
- package/dist/bank-system/constants/index.d.ts +0 -1
- package/dist/bank-system/constants/index.js +0 -17
- package/dist/bank-system/content/accountCurrencies.d.ts +0 -12
- package/dist/bank-system/content/accountCurrencies.js +0 -37
- package/dist/bank-system/content/countries.d.ts +0 -24
- package/dist/bank-system/content/countries.js +0 -6472
- package/dist/bank-system/content/currencies.d.ts +0 -32
- package/dist/bank-system/content/currencies.js +0 -5836
- package/dist/bank-system/content/index.d.ts +0 -4
- package/dist/bank-system/content/index.js +0 -12
- package/dist/bank-system/content/state.d.ts +0 -6
- package/dist/bank-system/content/state.js +0 -350
- package/dist/bank-system/helper/data.d.ts +0 -46
- package/dist/bank-system/helper/data.js +0 -57
- package/dist/bank-system/helper/dataStructure.d.ts +0 -3220
- package/dist/bank-system/helper/dataStructure.js +0 -1051
- package/dist/bank-system/helper/index.d.ts +0 -28
- package/dist/bank-system/helper/index.js +0 -394
- package/dist/bank-system/interfaces/accountInterface.d.ts +0 -26
- package/dist/bank-system/interfaces/accountInterface.js +0 -2
- package/dist/bank-system/interfaces/bankingSystemInterface.d.ts +0 -306
- package/dist/bank-system/interfaces/bankingSystemInterface.js +0 -2
- package/dist/bank-system/interfaces/deviceInterface.d.ts +0 -34
- package/dist/bank-system/interfaces/deviceInterface.js +0 -2
- package/dist/bank-system/interfaces/index.d.ts +0 -4
- package/dist/bank-system/interfaces/index.js +0 -20
- package/dist/bank-system/interfaces/interface.d.ts +0 -460
- package/dist/bank-system/interfaces/interface.js +0 -2
- package/dist/bank-system/interfaces/organizationInterface.d.ts +0 -118
- package/dist/bank-system/interfaces/organizationInterface.js +0 -2
- package/dist/bank-system/interfaces/signInterface.d.ts +0 -89
- package/dist/bank-system/interfaces/signInterface.js +0 -2
- package/dist/bank-system/interfaces/transactionInterface.d.ts +0 -17
- package/dist/bank-system/interfaces/transactionInterface.js +0 -2
- package/dist/bank-system/restApi/index.d.ts +0 -8
- package/dist/bank-system/restApi/index.js +0 -41
- package/dist/bank-system/services/account.d.ts +0 -33
- package/dist/bank-system/services/account.js +0 -129
- package/dist/bank-system/services/addresses.d.ts +0 -48
- package/dist/bank-system/services/addresses.js +0 -130
- package/dist/bank-system/services/auth.d.ts +0 -71
- package/dist/bank-system/services/auth.js +0 -250
- package/dist/bank-system/services/bankAccount.d.ts +0 -48
- package/dist/bank-system/services/bankAccount.js +0 -131
- package/dist/bank-system/services/device.d.ts +0 -46
- package/dist/bank-system/services/device.js +0 -212
- package/dist/bank-system/services/document.d.ts +0 -15
- package/dist/bank-system/services/document.js +0 -58
- package/dist/bank-system/services/email.d.ts +0 -70
- package/dist/bank-system/services/email.js +0 -175
- package/dist/bank-system/services/history.d.ts +0 -14
- package/dist/bank-system/services/history.js +0 -55
- package/dist/bank-system/services/identification.d.ts +0 -37
- package/dist/bank-system/services/identification.js +0 -107
- package/dist/bank-system/services/index.d.ts +0 -17
- package/dist/bank-system/services/index.js +0 -35
- package/dist/bank-system/services/organization.d.ts +0 -28
- package/dist/bank-system/services/organization.js +0 -129
- package/dist/bank-system/services/personalInfo.d.ts +0 -26
- package/dist/bank-system/services/personalInfo.js +0 -91
- package/dist/bank-system/services/phone.d.ts +0 -70
- package/dist/bank-system/services/phone.js +0 -175
- package/dist/bank-system/services/security.d.ts +0 -114
- package/dist/bank-system/services/security.js +0 -267
- package/dist/bank-system/services/token.d.ts +0 -11
- package/dist/bank-system/services/token.js +0 -83
- package/dist/bank-system/services/transaction.d.ts +0 -9
- package/dist/bank-system/services/transaction.js +0 -62
- package/dist/bank-system/services/verifyAndConfirm.d.ts +0 -116
- package/dist/bank-system/services/verifyAndConfirm.js +0 -308
- package/dist/bank-system/utils/chainAddressMasking.d.ts +0 -2
- package/dist/bank-system/utils/chainAddressMasking.js +0 -12
- package/dist/bank-system/utils/copyText.d.ts +0 -5
- package/dist/bank-system/utils/copyText.js +0 -22
- package/dist/bank-system/utils/countryAndCurrencyData.d.ts +0 -11
- package/dist/bank-system/utils/countryAndCurrencyData.js +0 -22
- package/dist/bank-system/utils/enumToOption.d.ts +0 -4
- package/dist/bank-system/utils/enumToOption.js +0 -18
- package/dist/bank-system/utils/fillDeviceDetails.d.ts +0 -23
- package/dist/bank-system/utils/fillDeviceDetails.js +0 -44
- package/dist/bank-system/utils/generateOneLiner.d.ts +0 -1
- package/dist/bank-system/utils/generateOneLiner.js +0 -17
- package/dist/bank-system/utils/generateSourceId.d.ts +0 -1
- package/dist/bank-system/utils/generateSourceId.js +0 -13
- package/dist/bank-system/utils/getCountryName.d.ts +0 -1
- package/dist/bank-system/utils/getCountryName.js +0 -16
- package/dist/bank-system/utils/getEnumName.d.ts +0 -1
- package/dist/bank-system/utils/getEnumName.js +0 -10
- package/dist/bank-system/utils/getStateByCountryCode.d.ts +0 -1
- package/dist/bank-system/utils/getStateByCountryCode.js +0 -15
- package/dist/bank-system/utils/handleEncryption/decryptData.d.ts +0 -15
- package/dist/bank-system/utils/handleEncryption/decryptData.js +0 -78
- package/dist/bank-system/utils/handleEncryption/encryptData.d.ts +0 -2
- package/dist/bank-system/utils/handleEncryption/encryptData.js +0 -37
- package/dist/bank-system/utils/handleEncryption/index.d.ts +0 -4
- package/dist/bank-system/utils/handleEncryption/index.js +0 -12
- package/dist/bank-system/utils/handleEncryption/key.d.ts +0 -13
- package/dist/bank-system/utils/handleEncryption/key.js +0 -40
- package/dist/bank-system/utils/index.d.ts +0 -15
- package/dist/bank-system/utils/index.js +0 -42
- package/dist/bank-system/utils/info.d.ts +0 -8
- package/dist/bank-system/utils/info.js +0 -79
- package/dist/bank-system/utils/maskingFunction.d.ts +0 -1
- package/dist/bank-system/utils/maskingFunction.js +0 -28
- package/dist/bank-system/utils/regex.d.ts +0 -106
- package/dist/bank-system/utils/regex.js +0 -110
- package/dist/bank-system/utils/sortUserInfo.d.ts +0 -1
- package/dist/bank-system/utils/sortUserInfo.js +0 -43
- package/dist/index.d.ts +0 -8
- package/dist/index.js +0 -54
- package/dist/keplr-config/chainInfo.d.ts +0 -8
- package/dist/keplr-config/chainInfo.js +0 -111
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useRegExp = void 0;
|
|
4
|
-
const useRegExp = () => {
|
|
5
|
-
return {
|
|
6
|
-
checkEmptyPattern: { required: true },
|
|
7
|
-
GeoCoordinatesPattern: /^(-?(?:1[0-7]|[1-9])?\d(?:\.\d{1,24})?|180(?:\.0{1,24})?)$/,
|
|
8
|
-
GGEZAddressRegexPattern: /^ggez[A-Za-z0-9]{30,80}$/,
|
|
9
|
-
NameRegexPattern: /^(?!.*--)[\p{L}\p{N}][^\\\/*$%^+=<>|\n\r\b\t]{0,49}$/u,
|
|
10
|
-
EmailRegexPattern: /^([\w-+\.]{1,80})@([\w-+\.]{1,80})\.([a-zA-Z]{1,20})$/,
|
|
11
|
-
MoneyRegexPattern: /^(?!0(\.0{1,2})?$)(?!0\d)\d{1,7}(?:\.\d{1,2})?$/,
|
|
12
|
-
DateRegexPattern: /^\d{4}-\d{2}-\d{2}$/u,
|
|
13
|
-
DateTimeRegexPattern: /^(19|20)\d{2}-(0[1-9]|1[0-2])-(0[1-9]|1\d|2\d|3[01])T(0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]){1,22}$/,
|
|
14
|
-
SortRegexPattern: /^(asc|desc)$/,
|
|
15
|
-
URLRegexPattern: /^(http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#]){1,2038}$/,
|
|
16
|
-
TerminalSecurityIDRegexPattern: /^[/+0-9a-zA-Z=_-]{1,50}$/,
|
|
17
|
-
ResultSetDateRegexPattern: /^([0-9]{4})[\/|-]((0[1-9])|(1[0-2]))[\/|-]((0[1-9])|(1[0-9])|(2[0-9])|(3[0-1]))$/,
|
|
18
|
-
StatementMonthRegexPattern: /^([0-9]{4})[\/|-]((0[1-9])|(1[0-2]))$/,
|
|
19
|
-
ENNotes100CharRegexPattern: /^(?!.*--)[?-?a-zA-Z0-9][^\^+=<>|\n\r\b\t]{0,100}$/,
|
|
20
|
-
ENNotes250CharRegexPattern: /^$|(^(?!.*--)[?-?a-zA-Z0-9][^\^+=<>|\n\r\b\t]{0,255}$)/,
|
|
21
|
-
ENNotes500CharRegexPattern: /^$|(^(?!.*--)[?-?a-zA-Z0-9.+][^\^=<>|\n\r\b\t]{0,500}$)/,
|
|
22
|
-
INTText100CharRegexPattern: /^(?!.*--)[\w\+\-][^\^+=<>|\n\r\t]{0,100}$/,
|
|
23
|
-
PostalCodeRegexPattern: /^(?!.*--)[\w][^\*$%^+=<>|\n\r\t]{1,20}$/,
|
|
24
|
-
INTText255CharRegexPattern: /^(?!.*--)[\w\+\-][^\^+=<>|\n\r\t]{0,255}$/,
|
|
25
|
-
INTText500CharRegexPattern: /^(?!.*--)[\w\+\-][^\^+=<>|\n\r\t]{0,500}$/,
|
|
26
|
-
AddressLineRegexPattern: /^$|(^(?!.*--)[\w][^\^+=<>|\n\r\t]{0,500}$)/,
|
|
27
|
-
INTLongDescriptionRegexPattern: /^(?!.*--)[\w][^\^+=<>|\n\r\t]{1,8000}$/,
|
|
28
|
-
TimeZoneRegexPattern: /^((?:UTC [+|-](?:2[0-3]|[01][0-9]):[0-5][0-9])){1,10}$/,
|
|
29
|
-
OperationAndClassificationRegexPattern: /^[a-zA-Z_\/*\s]{1,50}$/,
|
|
30
|
-
PhoneNumberRegexPattern: /^[+]([1-9])\d{7,14}$/,
|
|
31
|
-
SourceIDRegexPattern: /^[a-zA-Z0-9_\-\.\=\/]{1,100}$/,
|
|
32
|
-
BooleanRegexPattern: /^[0-1]{1,1}$/,
|
|
33
|
-
SortByRegexPattern: /^[a-zA-Z0-9_]{1,22}$/,
|
|
34
|
-
TernaryRegexPattern: /^[0-2]{1,1}$/,
|
|
35
|
-
InstallationKeyRegexPattern: /^[a-zA-Z0-9\s-]{1,50}$/,
|
|
36
|
-
LanguageRegexPattern: /^[a-zA-Z]{1,2}(-[a-zA-Z]{1,2})?$/,
|
|
37
|
-
TypeRegexPattern: /^[0-9]{1,1}$/,
|
|
38
|
-
IDRegexPattern: /^[0-9]{1,10}$/,
|
|
39
|
-
CurrencyCodeRegexPattern: /^[0-9a-zA-Z]{3,10}$/,
|
|
40
|
-
AccountNumberRegexPattern: /^[0-9]{8,25}$/,
|
|
41
|
-
CreditCardNumberRegexPattern: /^[0-9]{1,16}$/,
|
|
42
|
-
Numeric2DigitRegexPattern: /^(-1|[0-9]{1,2})$/,
|
|
43
|
-
AlphanumericCode20CharRegexPattern: /^[a-zA-Z0-9-]{1,20}$/,
|
|
44
|
-
AlphanumericCode4CharRegexPattern: /^[a-zA-Z0-9-]{1,4}$/,
|
|
45
|
-
Numeric9DigitRegexPattern: /(^$)|(^[0-9]{1,9}$)/,
|
|
46
|
-
Numeric10DigitRegexPattern: /(^$)|(^[0-9]{1,10}$)/,
|
|
47
|
-
Numeric25DigitRegexPattern: /^[0-9]{1,25}$/,
|
|
48
|
-
Numeric8DigitRegexPattern: /^[0-9]{1,8}$/,
|
|
49
|
-
Numeric3DigitRegexPattern: /^[0-9]{1,3}$/,
|
|
50
|
-
Numeric4DigitRegexPattern: /^[0-9]{1,4}$/,
|
|
51
|
-
Numeric5DigitRegexPattern: /^[0-9]{1,5}$/,
|
|
52
|
-
Numeric6DigitRegexPattern: /^[0-9]{1,6}$/,
|
|
53
|
-
Alphanumeric500CharRegexPattern: /^[a-zA-Z0-9-]{1,500}$/,
|
|
54
|
-
TokenRegexPattern: /[A-Za-z0-9\-\._~\+\/]+=*/,
|
|
55
|
-
TextBooleanRegexPattern: /^(true|false)$/,
|
|
56
|
-
LanguageCultureRegexPattern: /^[a-zA-Z-]{1,5}$/,
|
|
57
|
-
INTText1024CharRegexPattern: /^|^(?!.*--)[\w\+\-][^\^+=<>|\n\r\t]{0,1024}$/,
|
|
58
|
-
QuaternaryRegexPattern: /^[1-4]{1,1}$/,
|
|
59
|
-
SWIFTRegexPattern: /^[a-zA-Z]{6}[a-zA-Z0-9]{2}([a-zA-Z0-9]{3})?$/,
|
|
60
|
-
IBANRegexPattern: /[a-zA-Z]{2}[0-9]{2}[a-zA-Z0-9]{4}[0-9]{7}([a-zA-Z0-9]?){0,16}/,
|
|
61
|
-
AttachmentContentRegexPattern: /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/,
|
|
62
|
-
YearRegexPattern: /^(20|21)\d{2}$/,
|
|
63
|
-
MonthRegexPattern: /^(0[1-9]|1[0-2])$/,
|
|
64
|
-
PasswordRegexPattern: /^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[!@#$%^&*()_+{}\[\]:;<>,.?~\\\-]).{8,25}$/,
|
|
65
|
-
TimeRegexPattern: /^(([01][0-9])|([2][0-3])):[0-5][0-9]$/,
|
|
66
|
-
CodeRegexPattern: /^[A-Z0-9-]{4,6}$/,
|
|
67
|
-
OTPCodeRegexPattern: /^[A-Z0-9]{6}$/,
|
|
68
|
-
PinCodeRegexPattern: /^[ A-Za-z0-9_.\/#=&+-]*$/,
|
|
69
|
-
INTText50CharRegexPattern: /^(?!.*--)[a-zA-Z0-9][^\\\/*$%^+=<>|\n\r\b\t]{0,50}$/,
|
|
70
|
-
WorkingHoursRegexPattern: /^(([0-1][0-9])|([2][0-3])):([0-5][0-9]),(([0-1][0-9])|([2][0-3])):([0-5][0-9])$/,
|
|
71
|
-
ListOfIntRegexPattern: /^$|(^\d+(,\d+)*$)/,
|
|
72
|
-
SecurityCodeRegexPattern: /^[0-9]{6}$/,
|
|
73
|
-
ACSOneCharRegexPattern: /^[a-zA-Z]{1,1}$/,
|
|
74
|
-
ACSDateTimeRegexPattern: /^((0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d ([0-1][0-9]|[2][0-3]):([0-5][0-9]):([0-5][0-9]))$/,
|
|
75
|
-
ACSPurchaseAmountRegexPattern: /^[a-zA-Z]{3,3} [0-9]{2,2}\.[0-9]{2,2}$/,
|
|
76
|
-
ACSText100CharRegexPattern: /^[ A-Za-z0-9_@./#&+-=|]{0,100}$/,
|
|
77
|
-
SortCodeRegexPattern: /^[0-9]{6}$/,
|
|
78
|
-
PageSizeRegexPattern: /^(100|[0-9]{0,2})$/,
|
|
79
|
-
YearandMonthRegexPattern: /^[0-9]{4}[\-]((1[0-2])|(0?[1-9]))$/,
|
|
80
|
-
ENText25CharRegexPattern: /^|[a-zA-Z]+(\s{0,1}[a-zA-Z]){0,25}$/u,
|
|
81
|
-
LatitudeRegexPattern: /^(-?[1-8]?\d(?:\.\d{1,8})?|90(?:\.0{1,8})?)$/,
|
|
82
|
-
Integernumbersexcept0RegexPattern: /[1-9]{1}\d{0,3}/,
|
|
83
|
-
CreditCardExpiryDateRegexPattern: /^(0[1-9]|1[0-2])\/\d{2}$/,
|
|
84
|
-
AssetNameRegexPattern: /^(?!.--)[\p{L}\p{N}][^/$%^+=<>|\n\r\b\t]{1,100}$/u,
|
|
85
|
-
SharePriceRegexPattern: /^(?!0*\.?0{1,6}$)\d+(\.\d{1,6})?$/,
|
|
86
|
-
TradeTypeRegexPattern: /^(buy|sell)$/,
|
|
87
|
-
TypeAdminRegexPattern: /^[a-zA-Z ]{1,50}$/,
|
|
88
|
-
NameAdminRegexPattern: /^[A-Za-z ]{0,50}$/,
|
|
89
|
-
CurrencyRegexPattern: /^(?!Currency-Country$)[A-Z ]{0,50}$/,
|
|
90
|
-
CountryRegexPattern: /^(?!Default From Asset ID$).*/,
|
|
91
|
-
AssetCountryRegexPattern: /^[A-Z]{0,10}$/,
|
|
92
|
-
NoSharesRegexPattern: /^[1-9]\d{0,17}$/,
|
|
93
|
-
TickerRegexPattern: /^[A-Za-z0-9]{0,10}$/,
|
|
94
|
-
QuantityRegexPattern: /^[1-9]\d{0,8}$/,
|
|
95
|
-
PriceRegexPattern: /^(?!0*\.?0{1,15}$)\d+(\.\d{1,15})?$/,
|
|
96
|
-
IssuerRegexPattern: /^(?!.--)[\p{L}\p{N}][^/$%^+=<>|\n\r\b\t]{1,100}$/u,
|
|
97
|
-
TradeValueRegexPattern: /^\d+(\.\d{1,2})?$/,
|
|
98
|
-
CoinRegexPattern: /^(gz|ugz)$/,
|
|
99
|
-
AssetIdRegexPattern: /^[0-9]+$/,
|
|
100
|
-
AumRegexPattern: /^\d+\.\d+[MB]$/,
|
|
101
|
-
ExpenseRatioRegexPattern: /^\d*\.?\d{1,2}%$/,
|
|
102
|
-
OneYrTrRegexPattern: /^-?\d+(\.\d+)?$/,
|
|
103
|
-
VestingAmountRegexPattern: /^-?\d+$/,
|
|
104
|
-
VestingPercentRegexPattern: /^(100(\.0{1,2})?|[1-9]?\d(\.\d{1,2})?)$/,
|
|
105
|
-
ProposalInfoRegexPattern: /^(https:\/\/github\.com\/[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+\/releases\/download\/[a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)$/,
|
|
106
|
-
UUIDPattern: /^[0-9(a-f|A-F)]{8}-[0-9(a-f|A-F)]{4}-4[0-9(a-f|A-F)]{3}-[89ab][0-9(a-f|A-F)]{3}-[0-9(a-f|A-F)]{12}$/,
|
|
107
|
-
CryptoQuantityPattern: /^(?!0(\.0{1,6})?$)(?!0\d)\d{1,7}(?:\.\d{1,6})?$/,
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
exports.useRegExp = useRegExp;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function sortUserInfo(list?: any[] | null): any;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sortUserInfo = void 0;
|
|
4
|
-
function sortUserInfo(list) {
|
|
5
|
-
try {
|
|
6
|
-
const verificationStatusOrder = {
|
|
7
|
-
"1": 0,
|
|
8
|
-
"2": 1,
|
|
9
|
-
"3": 2,
|
|
10
|
-
"0": 3,
|
|
11
|
-
"-1": 4, // Undefined
|
|
12
|
-
};
|
|
13
|
-
return list
|
|
14
|
-
? list === null || list === void 0 ? void 0 : list.sort((a, b) => {
|
|
15
|
-
// First, compare by 'is_primary'
|
|
16
|
-
const isPrimaryComparison = (a === null || a === void 0 ? void 0 : a.is_primary) != undefined && (b === null || b === void 0 ? void 0 : b.is_primary) != undefined
|
|
17
|
-
? (b === null || b === void 0 ? void 0 : b.is_primary) - (a === null || a === void 0 ? void 0 : a.is_primary)
|
|
18
|
-
: 0;
|
|
19
|
-
// If 'is_primary' values are equal, compare by 'verification_status'
|
|
20
|
-
if (isPrimaryComparison === 0) {
|
|
21
|
-
const verificationStatusComparison = verificationStatusOrder[a === null || a === void 0 ? void 0 : a.verification_status] -
|
|
22
|
-
verificationStatusOrder[b === null || b === void 0 ? void 0 : b.verification_status];
|
|
23
|
-
// If 'is_primary' values are equal, and 'verification_status' values are equal, compare by id
|
|
24
|
-
if (verificationStatusComparison == 0) {
|
|
25
|
-
return (b === null || b === void 0 ? void 0 : b.id) - (a === null || a === void 0 ? void 0 : a.id);
|
|
26
|
-
}
|
|
27
|
-
return verificationStatusComparison;
|
|
28
|
-
}
|
|
29
|
-
return isPrimaryComparison;
|
|
30
|
-
})
|
|
31
|
-
: list;
|
|
32
|
-
}
|
|
33
|
-
catch (error) {
|
|
34
|
-
let errorObj = {
|
|
35
|
-
status: "failed",
|
|
36
|
-
message: error,
|
|
37
|
-
funcName: "sortUserInfo",
|
|
38
|
-
response: null,
|
|
39
|
-
};
|
|
40
|
-
return errorObj;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.sortUserInfo = sortUserInfo;
|
package/dist/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { useEmail, useAddresses, useAuth, useBankAccount, useDocument, useIdentification, usePersonalInfo, usePhone, useSecurity, useToken, useVerifyAndConfirm, useAccount, useDevice, useTransaction, useOrganization, } from "./bank-system/services";
|
|
2
|
-
import * as Constants from "./bank-system/constants";
|
|
3
|
-
import * as Content from "./bank-system/content";
|
|
4
|
-
import * as Interfaces from "./bank-system/interfaces";
|
|
5
|
-
import * as Utils from "./bank-system/utils";
|
|
6
|
-
import * as RestApiService from "./bank-system/restApi";
|
|
7
|
-
import { chainInfo } from "./keplr-config/chainInfo";
|
|
8
|
-
export { Constants, Interfaces, Utils, RestApiService, chainInfo, Content };
|
package/dist/index.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.Content = exports.chainInfo = exports.RestApiService = exports.Utils = exports.Interfaces = exports.Constants = exports.useOrganization = exports.useTransaction = exports.useDevice = exports.useAccount = exports.useVerifyAndConfirm = exports.useToken = exports.useSecurity = exports.usePhone = exports.usePersonalInfo = exports.useIdentification = exports.useDocument = exports.useBankAccount = exports.useAuth = exports.useAddresses = exports.useEmail = void 0;
|
|
27
|
-
var services_1 = require("./bank-system/services");
|
|
28
|
-
Object.defineProperty(exports, "useEmail", { enumerable: true, get: function () { return services_1.useEmail; } });
|
|
29
|
-
Object.defineProperty(exports, "useAddresses", { enumerable: true, get: function () { return services_1.useAddresses; } });
|
|
30
|
-
Object.defineProperty(exports, "useAuth", { enumerable: true, get: function () { return services_1.useAuth; } });
|
|
31
|
-
Object.defineProperty(exports, "useBankAccount", { enumerable: true, get: function () { return services_1.useBankAccount; } });
|
|
32
|
-
Object.defineProperty(exports, "useDocument", { enumerable: true, get: function () { return services_1.useDocument; } });
|
|
33
|
-
Object.defineProperty(exports, "useIdentification", { enumerable: true, get: function () { return services_1.useIdentification; } });
|
|
34
|
-
Object.defineProperty(exports, "usePersonalInfo", { enumerable: true, get: function () { return services_1.usePersonalInfo; } });
|
|
35
|
-
Object.defineProperty(exports, "usePhone", { enumerable: true, get: function () { return services_1.usePhone; } });
|
|
36
|
-
Object.defineProperty(exports, "useSecurity", { enumerable: true, get: function () { return services_1.useSecurity; } });
|
|
37
|
-
Object.defineProperty(exports, "useToken", { enumerable: true, get: function () { return services_1.useToken; } });
|
|
38
|
-
Object.defineProperty(exports, "useVerifyAndConfirm", { enumerable: true, get: function () { return services_1.useVerifyAndConfirm; } });
|
|
39
|
-
Object.defineProperty(exports, "useAccount", { enumerable: true, get: function () { return services_1.useAccount; } });
|
|
40
|
-
Object.defineProperty(exports, "useDevice", { enumerable: true, get: function () { return services_1.useDevice; } });
|
|
41
|
-
Object.defineProperty(exports, "useTransaction", { enumerable: true, get: function () { return services_1.useTransaction; } });
|
|
42
|
-
Object.defineProperty(exports, "useOrganization", { enumerable: true, get: function () { return services_1.useOrganization; } });
|
|
43
|
-
const Constants = __importStar(require("./bank-system/constants"));
|
|
44
|
-
exports.Constants = Constants;
|
|
45
|
-
const Content = __importStar(require("./bank-system/content"));
|
|
46
|
-
exports.Content = Content;
|
|
47
|
-
const Interfaces = __importStar(require("./bank-system/interfaces"));
|
|
48
|
-
exports.Interfaces = Interfaces;
|
|
49
|
-
const Utils = __importStar(require("./bank-system/utils"));
|
|
50
|
-
exports.Utils = Utils;
|
|
51
|
-
const RestApiService = __importStar(require("./bank-system/restApi"));
|
|
52
|
-
exports.RestApiService = RestApiService;
|
|
53
|
-
const chainInfo_1 = require("./keplr-config/chainInfo");
|
|
54
|
-
Object.defineProperty(exports, "chainInfo", { enumerable: true, get: function () { return chainInfo_1.chainInfo; } });
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ChainInfo } from "@keplr-wallet/types";
|
|
2
|
-
interface gasPriceStep {
|
|
3
|
-
low: number;
|
|
4
|
-
average: number;
|
|
5
|
-
high: number;
|
|
6
|
-
}
|
|
7
|
-
export declare const chainInfo: (rpc_url: string, rest_url: string, chain_id: string, chain_name: string, ugzGasPriceStep: gasPriceStep, mgzGasPriceStep: gasPriceStep, gzGasPriceStep: gasPriceStep, uggez1GasPriceStep: gasPriceStep, mggez1GasPriceStep: gasPriceStep, ggez1GasPriceStep: gasPriceStep) => ChainInfo;
|
|
8
|
-
export {};
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.chainInfo = void 0;
|
|
4
|
-
// The Cosmos Hub Testnet chain parameters
|
|
5
|
-
const chainInfo = (rpc_url, rest_url, chain_id, chain_name, ugzGasPriceStep, mgzGasPriceStep, gzGasPriceStep, uggez1GasPriceStep, mggez1GasPriceStep, ggez1GasPriceStep) => ({
|
|
6
|
-
chainId: chain_id,
|
|
7
|
-
chainName: chain_name,
|
|
8
|
-
rpc: rpc_url,
|
|
9
|
-
rest: rest_url,
|
|
10
|
-
bip44: {
|
|
11
|
-
coinType: 118,
|
|
12
|
-
},
|
|
13
|
-
bech32Config: {
|
|
14
|
-
bech32PrefixAccAddr: "ggez",
|
|
15
|
-
bech32PrefixAccPub: "ggez" + "pub",
|
|
16
|
-
bech32PrefixValAddr: "ggez" + "valoper",
|
|
17
|
-
bech32PrefixValPub: "ggez" + "valoperpub",
|
|
18
|
-
bech32PrefixConsAddr: "ggez" + "valcons",
|
|
19
|
-
bech32PrefixConsPub: "ggez" + "valconspub",
|
|
20
|
-
},
|
|
21
|
-
currencies: [
|
|
22
|
-
{
|
|
23
|
-
coinDenom: "UGZ",
|
|
24
|
-
coinMinimalDenom: "ugz",
|
|
25
|
-
coinDecimals: 0,
|
|
26
|
-
coinGeckoId: "STX",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
coinDenom: "MGZ",
|
|
30
|
-
coinMinimalDenom: "mgz",
|
|
31
|
-
coinDecimals: 3,
|
|
32
|
-
coinGeckoId: "STX",
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
coinDenom: "GZ",
|
|
36
|
-
coinMinimalDenom: "gz",
|
|
37
|
-
coinDecimals: 6,
|
|
38
|
-
coinGeckoId: "STX",
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
coinDenom: "UGGEZ1",
|
|
42
|
-
coinMinimalDenom: "uggez1",
|
|
43
|
-
coinDecimals: 0,
|
|
44
|
-
coinGeckoId: "XDC",
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
coinDenom: "MGGEZ1",
|
|
48
|
-
coinMinimalDenom: "mggez1",
|
|
49
|
-
coinDecimals: 3,
|
|
50
|
-
coinGeckoId: "XDC",
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
coinDenom: "GGEZ1",
|
|
54
|
-
coinMinimalDenom: "ggez1",
|
|
55
|
-
coinDecimals: 6,
|
|
56
|
-
coinGeckoId: "XDC",
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
feeCurrencies: [
|
|
60
|
-
{
|
|
61
|
-
coinDenom: "UGZ",
|
|
62
|
-
coinMinimalDenom: "ugz",
|
|
63
|
-
coinDecimals: 0,
|
|
64
|
-
coinGeckoId: "STX",
|
|
65
|
-
gasPriceStep: ugzGasPriceStep,
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
coinDenom: "MGZ",
|
|
69
|
-
coinMinimalDenom: "mgz",
|
|
70
|
-
coinDecimals: 3,
|
|
71
|
-
coinGeckoId: "STX",
|
|
72
|
-
gasPriceStep: mgzGasPriceStep,
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
coinDenom: "GZ",
|
|
76
|
-
coinMinimalDenom: "gz",
|
|
77
|
-
coinDecimals: 6,
|
|
78
|
-
coinGeckoId: "STX",
|
|
79
|
-
gasPriceStep: gzGasPriceStep,
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
coinDenom: "UGGEZ1",
|
|
83
|
-
coinMinimalDenom: "uggez1",
|
|
84
|
-
coinDecimals: 0,
|
|
85
|
-
coinGeckoId: "XDC",
|
|
86
|
-
gasPriceStep: uggez1GasPriceStep,
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
coinDenom: "MGGEZ1",
|
|
90
|
-
coinMinimalDenom: "mggez1",
|
|
91
|
-
coinDecimals: 3,
|
|
92
|
-
coinGeckoId: "XDC",
|
|
93
|
-
gasPriceStep: mggez1GasPriceStep,
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
coinDenom: "GGEZ1",
|
|
97
|
-
coinMinimalDenom: "ggez1",
|
|
98
|
-
coinDecimals: 6,
|
|
99
|
-
coinGeckoId: "XDC",
|
|
100
|
-
gasPriceStep: ggez1GasPriceStep,
|
|
101
|
-
},
|
|
102
|
-
],
|
|
103
|
-
stakeCurrency: {
|
|
104
|
-
coinDenom: "UGGEZ1",
|
|
105
|
-
coinMinimalDenom: "uggez1",
|
|
106
|
-
coinDecimals: 0,
|
|
107
|
-
coinGeckoId: "XDC",
|
|
108
|
-
},
|
|
109
|
-
features: ["stargate"],
|
|
110
|
-
});
|
|
111
|
-
exports.chainInfo = chainInfo;
|