@riocrypto/common 1.0.571 → 1.0.574

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.
@@ -4,8 +4,8 @@ export declare class CryptoAsset extends Asset {
4
4
  rawSymbol: Crypto;
5
5
  constructor(rawSymbol: Crypto);
6
6
  getImageUri(): string;
7
- getName(): Crypto.BTC | "Ethereum" | "USDC (Ethereum)" | "USDC (Polygon)";
8
- getSymbol(): Crypto.BTC | "USDC (Ethereum)" | "USDC (Polygon)" | "ETH";
9
- getGasSymbol(): Crypto.BTC | "ETH" | "MATIC";
7
+ getName(): "Ethereum" | "USDC (Ethereum)" | "USDC (Polygon)";
8
+ getSymbol(): "USDC (Ethereum)" | "USDC (Polygon)" | "ETH";
9
+ getGasSymbol(): "ETH" | "MATIC";
10
10
  getDescription(): string;
11
11
  }
@@ -44,6 +44,7 @@ export declare class RioClient {
44
44
  }): Promise<void>;
45
45
  updateRioSettings(update: RioSettingsUpdate): Promise<void>;
46
46
  confirmBankPayment(orderId: string): Promise<any>;
47
+ confirmBankPayout(orderId: string): Promise<any>;
47
48
  getUser(): Promise<User>;
48
49
  getBusinessUser(): Promise<BusinessUser>;
49
50
  createUser(user: UserInput): Promise<void>;
@@ -107,6 +107,14 @@ class RioClient {
107
107
  return data;
108
108
  });
109
109
  }
110
+ confirmBankPayout(orderId) {
111
+ return __awaiter(this, void 0, void 0, function* () {
112
+ const { data } = yield this.axios.post(`/api/payouts/bank/confirm`, {
113
+ orderId,
114
+ });
115
+ return data;
116
+ });
117
+ }
110
118
  getUser() {
111
119
  return __awaiter(this, void 0, void 0, function* () {
112
120
  const { data } = yield this.axios.get("/api/users");
@@ -6,8 +6,8 @@ const isValidCryptoAddress = (address, crypto) => {
6
6
  const bitcoinPattern = /^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$/;
7
7
  const ethereumPattern = /^0x[a-fA-F0-9]{40}$/;
8
8
  switch (crypto) {
9
- case crypto_1.Crypto.BTC:
10
- return bitcoinPattern.test(address);
9
+ // case Crypto.BTC:
10
+ // return bitcoinPattern.test(address);
11
11
  case crypto_1.Crypto.ETH || crypto_1.Crypto.USDC || crypto_1.Crypto.USDCPolygon:
12
12
  return ethereumPattern.test(address);
13
13
  default:
@@ -1,5 +1,4 @@
1
1
  export declare enum Crypto {
2
- BTC = "BTC",
3
2
  ETH = "ETH",
4
3
  USDC = "USDC",
5
4
  USDCPolygon = "USDC_POLYGON"
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.Crypto = void 0;
6
6
  var Crypto;
7
7
  (function (Crypto) {
8
- Crypto["BTC"] = "BTC";
8
+ // BTC = "BTC",
9
9
  Crypto["ETH"] = "ETH";
10
10
  Crypto["USDC"] = "USDC";
11
11
  Crypto["USDCPolygon"] = "USDC_POLYGON";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.571",
3
+ "version": "1.0.574",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",