@riocrypto/common 1.0.1114 → 1.0.1116

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.
@@ -6,6 +6,6 @@ export declare class CryptoAsset extends Asset {
6
6
  getImageUri(): string;
7
7
  getName(): Crypto.SOL | Crypto.TRON | "Bitcoin" | "Ethereum" | "USDC (Ethereum)" | "USDC (Polygon)" | "USDC (Bridged to Polygon)" | "USDC (Solana)" | "USDT (Polygon)" | "USDT (Ethereum)" | "USDT (Tron)";
8
8
  getSymbol(): Crypto.SOL | Crypto.TRON | "USDC (Ethereum)" | "USDC (Polygon)" | "USDC (Bridged to Polygon)" | "USDC (Solana)" | "USDT (Polygon)" | "USDT (Ethereum)" | "USDT (Tron)" | "BTC" | "ETH";
9
- getGasSymbol(): Crypto.SOL | Crypto.TRON | "BTC" | "ETH" | "MATIC" | "SOL";
9
+ getGasSymbol(): Crypto.SOL | Crypto.TRON | "BTC" | "ETH" | "MATIC" | "TRX" | "SOL";
10
10
  getDescription(): string;
11
11
  }
@@ -124,7 +124,7 @@ class CryptoAsset extends Asset_1.Asset {
124
124
  return "MATIC";
125
125
  }
126
126
  else if (this.rawSymbol === crypto_1.Crypto.USDTTron) {
127
- return "MATIC";
127
+ return "TRX";
128
128
  }
129
129
  else if (this.rawSymbol === crypto_1.Crypto.USDCSolana) {
130
130
  return "SOL";
@@ -98,12 +98,6 @@ export declare class RioAdminClient {
98
98
  }>;
99
99
  authHasSecurityQuestion(): Promise<Boolean>;
100
100
  createBridgePlaidLink(userId: string): Promise<string>;
101
- signout(): Promise<void>;
102
- verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
103
- signin(password: string): Promise<{
104
- auth: Auth;
105
- missing: string[];
106
- }>;
107
101
  refreshAdminToken(): Promise<void>;
108
102
  createOrder(order: OrderInput): Promise<Order>;
109
103
  createBridgeExternalAccount(userId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string, streetLine1: string, streetLine2: string, city: string, state: string, postalCode: string, country: CountryOfOrigin): Promise<string>;
@@ -288,27 +288,6 @@ class RioAdminClient {
288
288
  return response.data.url;
289
289
  });
290
290
  }
291
- signout() {
292
- return __awaiter(this, void 0, void 0, function* () {
293
- yield this.axios.post("/api/auth/signout", {});
294
- });
295
- }
296
- verifyPhoneCode(phoneNumber, code) {
297
- return __awaiter(this, void 0, void 0, function* () {
298
- yield this.axios.post("/api/auth/phone/verify", {
299
- phoneNumber,
300
- code,
301
- });
302
- });
303
- }
304
- signin(password) {
305
- return __awaiter(this, void 0, void 0, function* () {
306
- const response = yield this.axios.post("/api/auth", {
307
- password,
308
- });
309
- return response.data;
310
- });
311
- }
312
291
  refreshAdminToken() {
313
292
  return __awaiter(this, void 0, void 0, function* () {
314
293
  yield this.axios.post("/api/auth/admin/refresh");
@@ -32,11 +32,26 @@ export declare type UserInput = {
32
32
  countriesToInvoice?: Country[];
33
33
  economicActivity?: string;
34
34
  platformFeeRanges?: {
35
- MX?: PlatformFeeRange[];
36
- PE?: PlatformFeeRange[];
37
- CO?: PlatformFeeRange[];
38
- BR?: PlatformFeeRange[];
39
- US?: PlatformFeeRange[];
35
+ MX?: {
36
+ buy?: PlatformFeeRange[];
37
+ sell?: PlatformFeeRange[];
38
+ };
39
+ PE?: {
40
+ buy?: PlatformFeeRange[];
41
+ sell?: PlatformFeeRange[];
42
+ };
43
+ CO?: {
44
+ buy?: PlatformFeeRange[];
45
+ sell?: PlatformFeeRange[];
46
+ };
47
+ BR?: {
48
+ buy?: PlatformFeeRange[];
49
+ sell?: PlatformFeeRange[];
50
+ };
51
+ US?: {
52
+ buy?: PlatformFeeRange[];
53
+ sell?: PlatformFeeRange[];
54
+ };
40
55
  };
41
56
  attributes?: UserAttribute[];
42
57
  brokerId?: string;
@@ -34,11 +34,26 @@ export declare type UserUpdate = {
34
34
  ruc?: string;
35
35
  economicActivity?: string;
36
36
  platformFeeRanges?: {
37
- MX?: PlatformFeeRange[];
38
- PE?: PlatformFeeRange[];
39
- CO?: PlatformFeeRange[];
40
- BR?: PlatformFeeRange[];
41
- US?: PlatformFeeRange[];
37
+ MX?: {
38
+ buy?: PlatformFeeRange[];
39
+ sell?: PlatformFeeRange[];
40
+ };
41
+ PE?: {
42
+ buy?: PlatformFeeRange[];
43
+ sell?: PlatformFeeRange[];
44
+ };
45
+ CO?: {
46
+ buy?: PlatformFeeRange[];
47
+ sell?: PlatformFeeRange[];
48
+ };
49
+ BR?: {
50
+ buy?: PlatformFeeRange[];
51
+ sell?: PlatformFeeRange[];
52
+ };
53
+ US?: {
54
+ buy?: PlatformFeeRange[];
55
+ sell?: PlatformFeeRange[];
56
+ };
42
57
  };
43
58
  attributes?: UserAttribute[];
44
59
  brokerId?: string;
@@ -33,11 +33,26 @@ export declare type User = {
33
33
  curp?: string;
34
34
  economicActivity?: string;
35
35
  platformFeeRanges?: {
36
- MX?: PlatformFeeRange[];
37
- PE?: PlatformFeeRange[];
38
- CO?: PlatformFeeRange[];
39
- BR?: PlatformFeeRange[];
40
- US?: PlatformFeeRange[];
36
+ MX?: {
37
+ buy?: PlatformFeeRange[];
38
+ sell?: PlatformFeeRange[];
39
+ };
40
+ PE?: {
41
+ buy?: PlatformFeeRange[];
42
+ sell?: PlatformFeeRange[];
43
+ };
44
+ CO?: {
45
+ buy?: PlatformFeeRange[];
46
+ sell?: PlatformFeeRange[];
47
+ };
48
+ BR?: {
49
+ buy?: PlatformFeeRange[];
50
+ sell?: PlatformFeeRange[];
51
+ };
52
+ US?: {
53
+ buy?: PlatformFeeRange[];
54
+ sell?: PlatformFeeRange[];
55
+ };
41
56
  };
42
57
  attributes?: UserAttribute[];
43
58
  brokerId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1114",
3
+ "version": "1.0.1116",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",