tapimo 0.8.0 → 0.9.0
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/dist/App.d.ts +2095 -2111
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +0 -1
- package/dist/App.js.map +1 -1
- package/dist/admin/apps/verified-tokens.d.ts +166 -166
- package/dist/apps/data/App.d.ts +4084 -3845
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +270 -270
- package/dist/apps/data/routes/addresses.d.ts +248 -17
- package/dist/apps/data/routes/addresses.d.ts.map +1 -1
- package/dist/apps/data/routes/balances.d.ts +272 -2
- package/dist/apps/data/routes/balances.d.ts.map +1 -1
- package/dist/apps/data/routes/balances.js +114 -2
- package/dist/apps/data/routes/balances.js.map +1 -1
- package/dist/apps/data/routes/blocks.d.ts +123 -123
- package/dist/apps/data/routes/earn.d.ts +65 -3
- package/dist/apps/data/routes/earn.d.ts.map +1 -1
- package/dist/apps/data/routes/earn.js +259 -14
- package/dist/apps/data/routes/earn.js.map +1 -1
- package/dist/apps/data/routes/rpc.d.ts +31 -31
- package/dist/apps/data/routes/tokens.d.ts +454 -454
- package/dist/apps/data/routes/transfers.d.ts +81 -81
- package/dist/apps/funding/App.d.ts +40 -299
- package/dist/apps/funding/App.d.ts.map +1 -1
- package/dist/apps/funding/App.js +20 -5
- package/dist/apps/funding/App.js.map +1 -1
- package/dist/apps/funding/routes/deposit-addresses.d.ts +43 -434
- package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -1
- package/dist/apps/funding/routes/deposit-addresses.js +21 -103
- package/dist/apps/funding/routes/deposit-addresses.js.map +1 -1
- package/dist/apps/funding/routes/quotes.d.ts +89 -89
- package/dist/apps/funding/routes/transfers.js +5 -5
- package/dist/apps/funding/routes/transfers.js.map +1 -1
- package/dist/apps/management/routes/invitations.d.ts +134 -134
- package/dist/apps/management/routes/orgs.d.ts +98 -98
- package/dist/apps/management/routes/verified-token-requests.d.ts +83 -83
- package/dist/apps/mpp/App.d.ts +44 -44
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +8 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/tables/fundingDeposits.d.ts +18 -1
- package/dist/db/tables/fundingDeposits.d.ts.map +1 -1
- package/dist/db/tables/fundingDeposits.js +46 -2
- package/dist/db/tables/fundingDeposits.js.map +1 -1
- package/dist/internal/Auth.d.ts +4 -0
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +11 -2
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/funding/Provider.d.ts +6 -6
- package/dist/internal/funding/Provider.d.ts.map +1 -1
- package/dist/internal/funding/Reconciliation.d.ts.map +1 -1
- package/dist/internal/funding/Reconciliation.js +101 -16
- package/dist/internal/funding/Reconciliation.js.map +1 -1
- package/dist/internal/funding/providers/relay.d.ts.map +1 -1
- package/dist/internal/funding/providers/relay.js +6 -2
- package/dist/internal/funding/providers/relay.js.map +1 -1
- package/package.json +1 -1
- package/src/App.test.ts +32 -0
- package/src/App.ts +4 -1
- package/src/Client.test-d.ts +56 -33
- package/src/apps/composition.test.ts +39 -10
- package/src/apps/data/routes/balances.test.ts +42 -0
- package/src/apps/data/routes/balances.ts +218 -85
- package/src/apps/data/routes/earn.test.ts +89 -9
- package/src/apps/data/routes/earn.ts +355 -14
- package/src/apps/funding/App.ts +20 -5
- package/src/apps/funding/routes/deposit-addresses.test.ts +43 -22
- package/src/apps/funding/routes/deposit-addresses.ts +34 -117
- package/src/apps/funding/routes/transfers.test.ts +6 -25
- package/src/apps/funding/routes/transfers.ts +5 -5
- package/src/db/Db.ts +9 -0
- package/src/db/tables/fundingDeposits.test.ts +101 -0
- package/src/db/tables/fundingDeposits.ts +71 -2
- package/src/internal/Auth.test.ts +28 -0
- package/src/internal/Auth.ts +15 -1
- package/src/internal/funding/Provider.ts +4 -4
- package/src/internal/funding/Reconciliation.test.ts +292 -54
- package/src/internal/funding/Reconciliation.ts +160 -53
- package/src/internal/funding/SourceObservation.test.ts +2 -2
- package/src/internal/funding/providers/relay.ts +7 -2
|
@@ -224,9 +224,69 @@ export declare namespace schema {
|
|
|
224
224
|
export declare function transfers(options?: transfers.Options): import("hono/hono-base").HonoBase<App.Environment, {
|
|
225
225
|
"/v1/transfers": {
|
|
226
226
|
$get: {
|
|
227
|
-
output:
|
|
228
|
-
|
|
229
|
-
|
|
227
|
+
output: {
|
|
228
|
+
data: {
|
|
229
|
+
attribution?: string | undefined;
|
|
230
|
+
blockNumber: number;
|
|
231
|
+
destinationAmount?: {
|
|
232
|
+
baseUnits: string;
|
|
233
|
+
currency: string;
|
|
234
|
+
decimals: number;
|
|
235
|
+
formatted: string;
|
|
236
|
+
valuation?: {
|
|
237
|
+
amount: string;
|
|
238
|
+
currency: string;
|
|
239
|
+
} | null | undefined;
|
|
240
|
+
} | undefined;
|
|
241
|
+
destinationToken?: {
|
|
242
|
+
address: `0x${string}`;
|
|
243
|
+
currency: string;
|
|
244
|
+
decimals: number;
|
|
245
|
+
logoUri?: string | undefined;
|
|
246
|
+
name: string;
|
|
247
|
+
symbol: string;
|
|
248
|
+
verified?: boolean | undefined;
|
|
249
|
+
} | undefined;
|
|
250
|
+
id: string;
|
|
251
|
+
logIndex: number;
|
|
252
|
+
memo?: string | undefined;
|
|
253
|
+
recipient: `0x${string}`;
|
|
254
|
+
sender: `0x${string}`;
|
|
255
|
+
sourceAmount: {
|
|
256
|
+
baseUnits: string;
|
|
257
|
+
currency: string;
|
|
258
|
+
decimals: number;
|
|
259
|
+
formatted: string;
|
|
260
|
+
valuation?: {
|
|
261
|
+
amount: string;
|
|
262
|
+
currency: string;
|
|
263
|
+
} | null | undefined;
|
|
264
|
+
};
|
|
265
|
+
sourceToken: {
|
|
266
|
+
address: `0x${string}`;
|
|
267
|
+
currency: string;
|
|
268
|
+
decimals: number;
|
|
269
|
+
logoUri?: string | undefined;
|
|
270
|
+
name: string;
|
|
271
|
+
symbol: string;
|
|
272
|
+
verified?: boolean | undefined;
|
|
273
|
+
};
|
|
274
|
+
timestamp: string;
|
|
275
|
+
transactionHash: `0x${string}`;
|
|
276
|
+
}[];
|
|
277
|
+
meta?: {
|
|
278
|
+
valuation?: {
|
|
279
|
+
asOf: string;
|
|
280
|
+
basis: "nominal";
|
|
281
|
+
source: string;
|
|
282
|
+
} | undefined;
|
|
283
|
+
totalCount?: number | undefined;
|
|
284
|
+
totalCountCapped?: boolean | undefined;
|
|
285
|
+
} | undefined;
|
|
286
|
+
nextCursor: string | null;
|
|
287
|
+
};
|
|
288
|
+
outputFormat: "json";
|
|
289
|
+
status: 200;
|
|
230
290
|
input: {
|
|
231
291
|
query?: {
|
|
232
292
|
recipient?: string | string[];
|
|
@@ -279,14 +339,14 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
279
339
|
} | {
|
|
280
340
|
output: {
|
|
281
341
|
error: {
|
|
282
|
-
code: "
|
|
342
|
+
code: "query_invalid";
|
|
283
343
|
details?: readonly Response.error.Detail[] | undefined;
|
|
284
344
|
message: string;
|
|
285
345
|
};
|
|
286
346
|
requestId: string;
|
|
287
347
|
};
|
|
288
348
|
outputFormat: "json";
|
|
289
|
-
status:
|
|
349
|
+
status: 400;
|
|
290
350
|
input: {
|
|
291
351
|
query?: {
|
|
292
352
|
recipient?: string | string[];
|
|
@@ -309,14 +369,14 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
309
369
|
} | {
|
|
310
370
|
output: {
|
|
311
371
|
error: {
|
|
312
|
-
code: "
|
|
372
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
313
373
|
details?: readonly Response.error.Detail[] | undefined;
|
|
314
374
|
message: string;
|
|
315
375
|
};
|
|
316
376
|
requestId: string;
|
|
317
377
|
};
|
|
318
378
|
outputFormat: "json";
|
|
319
|
-
status:
|
|
379
|
+
status: 401;
|
|
320
380
|
input: {
|
|
321
381
|
query?: {
|
|
322
382
|
recipient?: string | string[];
|
|
@@ -337,16 +397,9 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
337
397
|
} | undefined;
|
|
338
398
|
};
|
|
339
399
|
} | {
|
|
340
|
-
output:
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
344
|
-
message: string;
|
|
345
|
-
};
|
|
346
|
-
requestId: string;
|
|
347
|
-
};
|
|
348
|
-
outputFormat: "json";
|
|
349
|
-
status: 429;
|
|
400
|
+
output: null;
|
|
401
|
+
outputFormat: "body";
|
|
402
|
+
status: 402;
|
|
350
403
|
input: {
|
|
351
404
|
query?: {
|
|
352
405
|
recipient?: string | string[];
|
|
@@ -369,14 +422,14 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
369
422
|
} | {
|
|
370
423
|
output: {
|
|
371
424
|
error: {
|
|
372
|
-
code: "
|
|
425
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
373
426
|
details?: readonly Response.error.Detail[] | undefined;
|
|
374
427
|
message: string;
|
|
375
428
|
};
|
|
376
429
|
requestId: string;
|
|
377
430
|
};
|
|
378
431
|
outputFormat: "json";
|
|
379
|
-
status:
|
|
432
|
+
status: 403;
|
|
380
433
|
input: {
|
|
381
434
|
query?: {
|
|
382
435
|
recipient?: string | string[];
|
|
@@ -399,14 +452,14 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
399
452
|
} | {
|
|
400
453
|
output: {
|
|
401
454
|
error: {
|
|
402
|
-
code: "
|
|
455
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
403
456
|
details?: readonly Response.error.Detail[] | undefined;
|
|
404
457
|
message: string;
|
|
405
458
|
};
|
|
406
459
|
requestId: string;
|
|
407
460
|
};
|
|
408
461
|
outputFormat: "json";
|
|
409
|
-
status:
|
|
462
|
+
status: 429;
|
|
410
463
|
input: {
|
|
411
464
|
query?: {
|
|
412
465
|
recipient?: string | string[];
|
|
@@ -428,68 +481,15 @@ export declare function transfers(options?: transfers.Options): import("hono/hon
|
|
|
428
481
|
};
|
|
429
482
|
} | {
|
|
430
483
|
output: {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
decimals: number;
|
|
438
|
-
formatted: string;
|
|
439
|
-
valuation?: {
|
|
440
|
-
amount: string;
|
|
441
|
-
currency: string;
|
|
442
|
-
} | null | undefined;
|
|
443
|
-
} | undefined;
|
|
444
|
-
destinationToken?: {
|
|
445
|
-
address: `0x${string}`;
|
|
446
|
-
currency: string;
|
|
447
|
-
decimals: number;
|
|
448
|
-
logoUri?: string | undefined;
|
|
449
|
-
name: string;
|
|
450
|
-
symbol: string;
|
|
451
|
-
verified?: boolean | undefined;
|
|
452
|
-
} | undefined;
|
|
453
|
-
id: string;
|
|
454
|
-
logIndex: number;
|
|
455
|
-
memo?: string | undefined;
|
|
456
|
-
recipient: `0x${string}`;
|
|
457
|
-
sender: `0x${string}`;
|
|
458
|
-
sourceAmount: {
|
|
459
|
-
baseUnits: string;
|
|
460
|
-
currency: string;
|
|
461
|
-
decimals: number;
|
|
462
|
-
formatted: string;
|
|
463
|
-
valuation?: {
|
|
464
|
-
amount: string;
|
|
465
|
-
currency: string;
|
|
466
|
-
} | null | undefined;
|
|
467
|
-
};
|
|
468
|
-
sourceToken: {
|
|
469
|
-
address: `0x${string}`;
|
|
470
|
-
currency: string;
|
|
471
|
-
decimals: number;
|
|
472
|
-
logoUri?: string | undefined;
|
|
473
|
-
name: string;
|
|
474
|
-
symbol: string;
|
|
475
|
-
verified?: boolean | undefined;
|
|
476
|
-
};
|
|
477
|
-
timestamp: string;
|
|
478
|
-
transactionHash: `0x${string}`;
|
|
479
|
-
}[];
|
|
480
|
-
meta?: {
|
|
481
|
-
valuation?: {
|
|
482
|
-
asOf: string;
|
|
483
|
-
basis: "nominal";
|
|
484
|
-
source: string;
|
|
485
|
-
} | undefined;
|
|
486
|
-
totalCount?: number | undefined;
|
|
487
|
-
totalCountCapped?: boolean | undefined;
|
|
488
|
-
} | undefined;
|
|
489
|
-
nextCursor: string | null;
|
|
484
|
+
error: {
|
|
485
|
+
code: "upstream_error";
|
|
486
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
487
|
+
message: string;
|
|
488
|
+
};
|
|
489
|
+
requestId: string;
|
|
490
490
|
};
|
|
491
491
|
outputFormat: "json";
|
|
492
|
-
status:
|
|
492
|
+
status: 502;
|
|
493
493
|
input: {
|
|
494
494
|
query?: {
|
|
495
495
|
recipient?: string | string[];
|