@riocrypto/common-server 1.0.1177 → 1.0.1179

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.
@@ -25,12 +25,12 @@ declare class BridgeClient {
25
25
  customer_id?: string;
26
26
  }>;
27
27
  createTransfer(bridgeCustomerId: string, amountInUSD: string, source: {
28
- currency: "usdc" | "usd";
28
+ currency: "usdc" | "usdt" | "usd";
29
29
  payment_rail: "ach" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
30
30
  external_account_id?: string;
31
31
  from_address?: string;
32
32
  }, destination: {
33
- currency: "usdc" | "usd";
33
+ currency: "usdc" | "usdt" | "usd";
34
34
  payment_rail: "ach" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
35
35
  external_account_id?: string;
36
36
  to_address?: string;
@@ -41,13 +41,13 @@ declare class BridgeClient {
41
41
  on_behalf_of: string;
42
42
  developer_fee: string;
43
43
  source: {
44
- currency: "usdc" | "usd";
44
+ currency: "usdc" | "usdt" | "usd";
45
45
  payment_rail: "ach" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
46
46
  external_account_id?: string;
47
47
  from_address?: string;
48
48
  };
49
49
  destination: {
50
- currency: "usdc" | "usd";
50
+ currency: "usdc" | "usdt" | "usd";
51
51
  payment_rail: "ach" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
52
52
  external_account_id?: string;
53
53
  to_address?: string;
@@ -57,7 +57,7 @@ declare class BridgeClient {
57
57
  source_deposit_instructions: {
58
58
  payment_rail: "ach" | "wire" | "avalanche_c_chain" | "ethereum" | "polygon";
59
59
  amount: string;
60
- currency: "usdc" | "usd";
60
+ currency: "usdc" | "usdt" | "usd";
61
61
  from_address?: string;
62
62
  to_address?: string;
63
63
  deposit_message?: string;
@@ -75,13 +75,13 @@ declare class BridgeClient {
75
75
  on_behalf_of: string;
76
76
  developer_fee: string;
77
77
  source: {
78
- currency: "usdc" | "usd";
78
+ currency: "usdc" | "usdt" | "usd";
79
79
  payment_rail: "ach" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
80
80
  external_account_id?: string;
81
81
  from_address?: string;
82
82
  };
83
83
  destination: {
84
- currency: "usdc" | "usd";
84
+ currency: "usdc" | "usdt" | "usd";
85
85
  payment_rail: "ach" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
86
86
  external_account_id?: string;
87
87
  to_address?: string;
@@ -91,7 +91,7 @@ declare class BridgeClient {
91
91
  source_deposit_instructions: {
92
92
  payment_rail: "ach" | "wire" | "avalanche_c_chain" | "ethereum" | "polygon";
93
93
  amount: string;
94
- currency: "usdc" | "usd";
94
+ currency: "usdc" | "usdt" | "usd";
95
95
  from_address?: string;
96
96
  to_address?: string;
97
97
  deposit_message?: string;
@@ -108,13 +108,13 @@ declare class BridgeClient {
108
108
  on_behalf_of: string;
109
109
  developer_fee: string;
110
110
  source: {
111
- currency: "usdc" | "usd";
111
+ currency: "usdc" | "usdt" | "usd";
112
112
  payment_rail: "ach" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
113
113
  external_account_id?: string;
114
114
  from_address?: string;
115
115
  };
116
116
  destination: {
117
- currency: "usdc" | "usd";
117
+ currency: "usdc" | "usdt" | "usd";
118
118
  payment_rail: "ach" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
119
119
  external_account_id?: string;
120
120
  to_address?: string;
@@ -124,7 +124,7 @@ declare class BridgeClient {
124
124
  source_deposit_instructions: {
125
125
  payment_rail: "ach" | "wire" | "avalanche_c_chain" | "ethereum" | "polygon";
126
126
  amount: string;
127
- currency: "usdc" | "usd";
127
+ currency: "usdc" | "usdt" | "usd";
128
128
  from_address?: string;
129
129
  to_address?: string;
130
130
  deposit_message?: string;
@@ -6,8 +6,8 @@ interface InternalSwapAttrs {
6
6
  originCrypto: Crypto;
7
7
  destinationCrypto: Crypto;
8
8
  amount: number;
9
- exchange: "coinbase";
10
- status: "processing" | "complete" | "failed";
9
+ exchange?: "coinbase";
10
+ status: "created" | "processing" | "complete" | "failed";
11
11
  }
12
12
  interface InternalSwapDoc extends Document {
13
13
  createdAt: Date;
@@ -15,8 +15,8 @@ interface InternalSwapDoc extends Document {
15
15
  originCrypto: Crypto;
16
16
  destinationCrypto: Crypto;
17
17
  amount: number;
18
- exchange: "coinbase";
19
- status: "processing" | "complete" | "failed";
18
+ exchange?: "coinbase";
19
+ status: "created" | "processing" | "complete" | "failed";
20
20
  }
21
21
  interface InternalSwapModel extends Model<InternalSwapDoc> {
22
22
  build(attrs: InternalSwapAttrs): InternalSwapDoc;
@@ -29,7 +29,6 @@ const buildInternalSwap = (mongoose) => {
29
29
  },
30
30
  exchange: {
31
31
  type: String,
32
- required: true,
33
32
  },
34
33
  status: {
35
34
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1177",
3
+ "version": "1.0.1179",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "@aws-sdk/client-s3": "^3.297.0",
27
27
  "@everapi/currencyapi-js": "^1.0.6",
28
28
  "@google-cloud/storage": "^6.9.5",
29
- "@riocrypto/common": "^1.0.1059",
29
+ "@riocrypto/common": "^1.0.1064",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^0.27.2",
32
32
  "ccxt": "^3.0.30",