@riocrypto/common 1.0.536 → 1.0.538

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(): "Bitcoin" | "Ethereum" | "USDC (Ethereum)" | "USDC (Polygon)";
8
- getSymbol(): "USDC (Ethereum)" | "USDC (Polygon)" | "BTC" | "ETH";
9
- getGasSymbol(): "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,10 +44,10 @@ class CryptoAsset extends Asset_1.Asset {
44
44
  }
45
45
  }
46
46
  getName() {
47
- if (this.rawSymbol === crypto_1.Crypto.BTC) {
48
- return "Bitcoin";
49
- }
50
- else if (this.rawSymbol === crypto_1.Crypto.ETH) {
47
+ // if (this.rawSymbol === Crypto.BTC) {
48
+ // return "Bitcoin";
49
+ // } else
50
+ if (this.rawSymbol === crypto_1.Crypto.ETH) {
51
51
  return "Ethereum";
52
52
  // } else if (this.symbol === Crypto.XLM) {
53
53
  // return "Stellar";
@@ -131,10 +131,10 @@ class CryptoAsset extends Asset_1.Asset {
131
131
  }
132
132
  }
133
133
  getSymbol() {
134
- if (this.rawSymbol === crypto_1.Crypto.BTC) {
135
- return "BTC";
136
- }
137
- else if (this.rawSymbol === crypto_1.Crypto.ETH) {
134
+ // if (this.rawSymbol === Crypto.BTC) {
135
+ // return "BTC";
136
+ // } else
137
+ if (this.rawSymbol === crypto_1.Crypto.ETH) {
138
138
  return "ETH";
139
139
  }
140
140
  else if (this.rawSymbol === crypto_1.Crypto.USDC) {
@@ -148,10 +148,10 @@ class CryptoAsset extends Asset_1.Asset {
148
148
  }
149
149
  }
150
150
  getGasSymbol() {
151
- if (this.rawSymbol === crypto_1.Crypto.BTC) {
152
- return "BTC";
153
- }
154
- else if (this.rawSymbol === crypto_1.Crypto.ETH) {
151
+ // if (this.rawSymbol === Crypto.BTC) {
152
+ // return "BTC";
153
+ // } else
154
+ if (this.rawSymbol === crypto_1.Crypto.ETH) {
155
155
  return "ETH";
156
156
  }
157
157
  else if (this.rawSymbol === crypto_1.Crypto.USDCPolygon) {
@@ -168,7 +168,7 @@ class CryptoAsset extends Asset_1.Asset {
168
168
  // if (this.symbol === Crypto.BTC) {
169
169
  // return "Bitcoin is a decentralized digital currency that can be transferred on the peer-to-peer bitcoin network.";
170
170
  // } else
171
- if (this.symbol === crypto_1.Crypto.ETH) {
171
+ if (this.rawSymbol === crypto_1.Crypto.ETH) {
172
172
  return "Ethereum is a decentralized, open-source blockchain with smart contract functionality.";
173
173
  // } else if (this.symbol === Crypto.XLM) {
174
174
  // return "Stellar is an open source, decentralized protocol for digital currency to fiat money low-cost transfers which allows cross-border transactions between any pair of currencies.";
@@ -181,10 +181,10 @@ class CryptoAsset extends Asset_1.Asset {
181
181
  // } else if (this.symbol === Crypto.DAI) {
182
182
  // return "Dai is a stablecoin cryptocurrency on the Ethereum blockchain which aims to keep its value as close to one United States dollar as possible through a system of smart contracts and the decentralized participants which those contracts incentivize to perform maintenance and governance functions.";
183
183
  }
184
- else if (this.symbol === crypto_1.Crypto.USDC) {
184
+ else if (this.rawSymbol === crypto_1.Crypto.USDC) {
185
185
  return "USD Coin is a digital stablecoin pegged to the United States dollar. USD Coin is managed by a consortium called Centre, which was founded by Circle and includes members from the cryptocurrency exchange Coinbase and Bitcoin mining company Bitmain, an investor in Circle.";
186
186
  }
187
- else if (this.symbol === crypto_1.Crypto.USDCPolygon) {
187
+ else if (this.rawSymbol === crypto_1.Crypto.USDCPolygon) {
188
188
  return "USDC on the Polygon chain.";
189
189
  // } else if (this.symbol === Crypto.mUSDC) {
190
190
  // return "USDC on the Polygon chain";
@@ -228,7 +228,7 @@ class CryptoAsset extends Asset_1.Asset {
228
228
  // return "Polygon is a cryptocurrency and a technology platform that was launched to connect and grow Ethereum-compatible projects and blockchains.";
229
229
  }
230
230
  else {
231
- return this.rawSymbol;
231
+ return this.symbol;
232
232
  }
233
233
  }
234
234
  }
@@ -72,9 +72,6 @@ export declare class RioClient {
72
72
  paymentId: string;
73
73
  }>;
74
74
  createKushkiBankPayment(orderId: string): Promise<any>;
75
- createSPEIPayment(orderId: string): Promise<any>;
76
- createSPIDPayment(orderId: string): Promise<any>;
77
- createSWIFTPayment(orderId: string): Promise<any>;
78
- createInterbankPayment(orderId: string): Promise<any>;
75
+ createBankPayment(orderId: string): Promise<any>;
79
76
  updateAuth(update: AuthUpdate, id?: string): Promise<Auth>;
80
77
  }
@@ -246,33 +246,9 @@ class RioClient {
246
246
  return data;
247
247
  });
248
248
  }
249
- createSPEIPayment(orderId) {
249
+ createBankPayment(orderId) {
250
250
  return __awaiter(this, void 0, void 0, function* () {
251
- const { data } = yield this.axios.post(`/api/payments/bank/init/spei`, {
252
- orderId,
253
- });
254
- return data;
255
- });
256
- }
257
- createSPIDPayment(orderId) {
258
- return __awaiter(this, void 0, void 0, function* () {
259
- const { data } = yield this.axios.post(`/api/payments/bank/init/spid`, {
260
- orderId,
261
- });
262
- return data;
263
- });
264
- }
265
- createSWIFTPayment(orderId) {
266
- return __awaiter(this, void 0, void 0, function* () {
267
- const { data } = yield this.axios.post(`/api/payments/bank/init/swift`, {
268
- orderId,
269
- });
270
- return data;
271
- });
272
- }
273
- createInterbankPayment(orderId) {
274
- return __awaiter(this, void 0, void 0, function* () {
275
- const { data } = yield this.axios.post(`/api/payments/bank/init/interbank`, {
251
+ const { data } = yield this.axios.post(`/api/payments/bank/init`, {
276
252
  orderId,
277
253
  });
278
254
  return data;
@@ -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.536",
3
+ "version": "1.0.538",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",