ggez-banking-sdk 0.0.4 → 0.0.6

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.
Files changed (116) hide show
  1. package/README.md +0 -0
  2. package/dist/bank-system/constants/enum.d.ts +1061 -0
  3. package/dist/bank-system/constants/enum.js +1115 -0
  4. package/dist/bank-system/constants/index.d.ts +1 -0
  5. package/dist/bank-system/constants/index.js +17 -0
  6. package/dist/bank-system/content/accountCurrencies.d.ts +12 -0
  7. package/dist/bank-system/content/accountCurrencies.js +37 -0
  8. package/dist/bank-system/content/countries.d.ts +24 -0
  9. package/dist/bank-system/content/countries.js +6472 -0
  10. package/dist/bank-system/content/currencies.d.ts +32 -0
  11. package/dist/bank-system/content/currencies.js +5836 -0
  12. package/dist/bank-system/content/index.d.ts +4 -0
  13. package/dist/bank-system/content/index.js +12 -0
  14. package/dist/bank-system/content/state.d.ts +6 -0
  15. package/dist/bank-system/content/state.js +350 -0
  16. package/dist/bank-system/helper/data.d.ts +46 -0
  17. package/dist/bank-system/helper/data.js +57 -0
  18. package/dist/bank-system/helper/dataStructure.d.ts +3220 -0
  19. package/dist/bank-system/helper/dataStructure.js +1055 -0
  20. package/dist/bank-system/helper/index.d.ts +28 -0
  21. package/dist/bank-system/helper/index.js +394 -0
  22. package/dist/bank-system/interfaces/accountInterface.d.ts +26 -0
  23. package/dist/bank-system/interfaces/accountInterface.js +2 -0
  24. package/dist/bank-system/interfaces/bankingSystemInterface.d.ts +306 -0
  25. package/dist/bank-system/interfaces/bankingSystemInterface.js +2 -0
  26. package/dist/bank-system/interfaces/deviceInterface.d.ts +34 -0
  27. package/dist/bank-system/interfaces/deviceInterface.js +2 -0
  28. package/dist/bank-system/interfaces/index.d.ts +4 -0
  29. package/dist/bank-system/interfaces/index.js +20 -0
  30. package/dist/bank-system/interfaces/interface.d.ts +460 -0
  31. package/dist/bank-system/interfaces/interface.js +2 -0
  32. package/dist/bank-system/interfaces/organizationInterface.d.ts +118 -0
  33. package/dist/bank-system/interfaces/organizationInterface.js +2 -0
  34. package/dist/bank-system/interfaces/signInterface.d.ts +91 -0
  35. package/dist/bank-system/interfaces/signInterface.js +2 -0
  36. package/dist/bank-system/interfaces/transactionInterface.d.ts +17 -0
  37. package/dist/bank-system/interfaces/transactionInterface.js +2 -0
  38. package/dist/bank-system/restApi/index.d.ts +8 -0
  39. package/dist/bank-system/restApi/index.js +41 -0
  40. package/dist/bank-system/services/account.d.ts +33 -0
  41. package/dist/bank-system/services/account.js +129 -0
  42. package/dist/bank-system/services/addresses.d.ts +48 -0
  43. package/dist/bank-system/services/addresses.js +130 -0
  44. package/dist/bank-system/services/auth.d.ts +71 -0
  45. package/dist/bank-system/services/auth.js +250 -0
  46. package/dist/bank-system/services/bankAccount.d.ts +48 -0
  47. package/dist/bank-system/services/bankAccount.js +131 -0
  48. package/dist/bank-system/services/device.d.ts +46 -0
  49. package/dist/bank-system/services/device.js +212 -0
  50. package/dist/bank-system/services/document.d.ts +15 -0
  51. package/dist/bank-system/services/document.js +58 -0
  52. package/dist/bank-system/services/email.d.ts +70 -0
  53. package/dist/bank-system/services/email.js +175 -0
  54. package/dist/bank-system/services/history.d.ts +14 -0
  55. package/dist/bank-system/services/history.js +55 -0
  56. package/dist/bank-system/services/identification.d.ts +37 -0
  57. package/dist/bank-system/services/identification.js +107 -0
  58. package/dist/bank-system/services/index.d.ts +17 -0
  59. package/dist/bank-system/services/index.js +35 -0
  60. package/dist/bank-system/services/organization.d.ts +28 -0
  61. package/dist/bank-system/services/organization.js +129 -0
  62. package/dist/bank-system/services/personalInfo.d.ts +26 -0
  63. package/dist/bank-system/services/personalInfo.js +91 -0
  64. package/dist/bank-system/services/phone.d.ts +70 -0
  65. package/dist/bank-system/services/phone.js +175 -0
  66. package/dist/bank-system/services/security.d.ts +114 -0
  67. package/dist/bank-system/services/security.js +267 -0
  68. package/dist/bank-system/services/token.d.ts +11 -0
  69. package/dist/bank-system/services/token.js +83 -0
  70. package/dist/bank-system/services/transaction.d.ts +9 -0
  71. package/dist/bank-system/services/transaction.js +62 -0
  72. package/dist/bank-system/services/verifyAndConfirm.d.ts +116 -0
  73. package/dist/bank-system/services/verifyAndConfirm.js +308 -0
  74. package/dist/bank-system/utils/chainAddressMasking.d.ts +2 -0
  75. package/dist/bank-system/utils/chainAddressMasking.js +12 -0
  76. package/dist/bank-system/utils/copyText.d.ts +5 -0
  77. package/dist/bank-system/utils/copyText.js +22 -0
  78. package/dist/bank-system/utils/countryAndCurrencyData.d.ts +11 -0
  79. package/dist/bank-system/utils/countryAndCurrencyData.js +22 -0
  80. package/dist/bank-system/utils/enumToOption.d.ts +4 -0
  81. package/dist/bank-system/utils/enumToOption.js +18 -0
  82. package/dist/bank-system/utils/fillDeviceDetails.d.ts +23 -0
  83. package/dist/bank-system/utils/fillDeviceDetails.js +44 -0
  84. package/dist/bank-system/utils/generateOneLiner.d.ts +1 -0
  85. package/dist/bank-system/utils/generateOneLiner.js +16 -0
  86. package/dist/bank-system/utils/generateSourceId.d.ts +1 -0
  87. package/dist/bank-system/utils/generateSourceId.js +12 -0
  88. package/dist/bank-system/utils/getCountryName.d.ts +2 -0
  89. package/dist/bank-system/utils/getCountryName.js +29 -0
  90. package/dist/bank-system/utils/getEnumName.d.ts +1 -0
  91. package/dist/bank-system/utils/getEnumName.js +10 -0
  92. package/dist/bank-system/utils/getStateByCountryCode.d.ts +1 -0
  93. package/dist/bank-system/utils/getStateByCountryCode.js +14 -0
  94. package/dist/bank-system/utils/handleEncryption/decryptData.d.ts +15 -0
  95. package/dist/bank-system/utils/handleEncryption/decryptData.js +77 -0
  96. package/dist/bank-system/utils/handleEncryption/encryptData.d.ts +2 -0
  97. package/dist/bank-system/utils/handleEncryption/encryptData.js +36 -0
  98. package/dist/bank-system/utils/handleEncryption/index.d.ts +4 -0
  99. package/dist/bank-system/utils/handleEncryption/index.js +12 -0
  100. package/dist/bank-system/utils/handleEncryption/key.d.ts +13 -0
  101. package/dist/bank-system/utils/handleEncryption/key.js +40 -0
  102. package/dist/bank-system/utils/index.d.ts +15 -0
  103. package/dist/bank-system/utils/index.js +42 -0
  104. package/dist/bank-system/utils/info.d.ts +8 -0
  105. package/dist/bank-system/utils/info.js +79 -0
  106. package/dist/bank-system/utils/maskingFunction.d.ts +1 -0
  107. package/dist/bank-system/utils/maskingFunction.js +27 -0
  108. package/dist/bank-system/utils/regex.d.ts +106 -0
  109. package/dist/bank-system/utils/regex.js +110 -0
  110. package/dist/bank-system/utils/sortUserInfo.d.ts +1 -0
  111. package/dist/bank-system/utils/sortUserInfo.js +42 -0
  112. package/dist/index.d.ts +8 -0
  113. package/dist/index.js +54 -0
  114. package/dist/keplr-config/chainInfo.d.ts +8 -0
  115. package/dist/keplr-config/chainInfo.js +111 -0
  116. package/package.json +1 -1
@@ -0,0 +1,110 @@
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;
@@ -0,0 +1 @@
1
+ export declare function sortUserInfo(list?: any[] | null): any;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sortUserInfo = sortUserInfo;
4
+ function sortUserInfo(list) {
5
+ try {
6
+ const verificationStatusOrder = {
7
+ "1": 0, // Verified
8
+ "2": 1, // Pending
9
+ "3": 2, // Failed
10
+ "0": 3, // Not Verified
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
+ }
@@ -0,0 +1,8 @@
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 ADDED
@@ -0,0 +1,54 @@
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; } });
@@ -0,0 +1,8 @@
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 {};
@@ -0,0 +1,111 @@
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
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",