@t-0/provider-starter-ts 1.1.8 → 1.1.10

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t-0/provider-starter-ts",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "CLI tool to scaffold a Node.js t-0 Network integration service",
5
5
  "main": "dist/create.js",
6
6
  "bin": {
@@ -31,7 +31,7 @@
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
33
  "chalk": "^5.6.2",
34
- "commander": "^13.1.0",
34
+ "commander": "^14.0.3",
35
35
  "fs-extra": "^11.3.4",
36
36
  "inquirer": "^13.3.0"
37
37
  },
@@ -12,7 +12,7 @@
12
12
  "author": "",
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "@t-0/provider-sdk": "^1.1.8",
15
+ "@t-0/provider-sdk": "^1.1.10",
16
16
  "dotenv": "^16.3.1",
17
17
  "tiny-invariant": "^1.3.3"
18
18
  },
@@ -11,19 +11,6 @@ export default async function publishQuotes(networkClient: Client<typeof Network
11
11
  // So if you want to publish multiple quotes, you need to combine them into a single request.
12
12
  // Otherwise, if you send multiple requests, only the quotes from the last one will be available.
13
13
  await networkClient.updateQuote({
14
- payIn: [{
15
- bands: [{
16
- // note that rate is always USD/XXX, os that for EUR quote should be USD/EUR
17
- rate: toProtoDecimal(863, -3), // rate 0.863
18
- maxAmount: toProtoDecimal(25000, 0), // maximum amount in USD, could be 1000,5000,10000 or 25000
19
- clientQuoteId: randomUUID(),
20
- }],
21
- currency: 'EUR',
22
- expiration: timestampFromDate(new Date(Date.now() + 30 * 1000)), // expiration time (30 seconds from now)
23
- quoteType: QuoteType.REALTIME, // REALTIME is only one supported right now
24
- paymentMethod: PaymentMethodType.SEPA,
25
- timestamp: timestampFromDate(new Date()), // Current timestamp
26
- }],
27
14
  payOut: [{
28
15
  bands: [{
29
16
  // note that rate is always USD/XXX, os that for EUR quote should be USD/EUR