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
|
@@ -3807,6 +3807,196 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
|
|
|
3807
3807
|
};
|
|
3808
3808
|
};
|
|
3809
3809
|
};
|
|
3810
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3811
|
+
"/v1/addresses/:address/valuation": {
|
|
3812
|
+
$get: {
|
|
3813
|
+
output: null;
|
|
3814
|
+
outputFormat: "body";
|
|
3815
|
+
status: 402;
|
|
3816
|
+
input: {
|
|
3817
|
+
param: {
|
|
3818
|
+
address: `0x${string}`;
|
|
3819
|
+
};
|
|
3820
|
+
} & {
|
|
3821
|
+
query?: {
|
|
3822
|
+
chainId?: string | string[];
|
|
3823
|
+
currency?: string | string[];
|
|
3824
|
+
} | undefined;
|
|
3825
|
+
};
|
|
3826
|
+
} | {
|
|
3827
|
+
output: {
|
|
3828
|
+
error: {
|
|
3829
|
+
code: "upstream_error";
|
|
3830
|
+
details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
|
|
3831
|
+
message: string;
|
|
3832
|
+
};
|
|
3833
|
+
requestId: string;
|
|
3834
|
+
};
|
|
3835
|
+
outputFormat: "json";
|
|
3836
|
+
status: 502;
|
|
3837
|
+
input: {
|
|
3838
|
+
param: {
|
|
3839
|
+
address: `0x${string}`;
|
|
3840
|
+
};
|
|
3841
|
+
} & {
|
|
3842
|
+
query?: {
|
|
3843
|
+
chainId?: string | string[];
|
|
3844
|
+
currency?: string | string[];
|
|
3845
|
+
} | undefined;
|
|
3846
|
+
};
|
|
3847
|
+
} | {
|
|
3848
|
+
output: {
|
|
3849
|
+
error: {
|
|
3850
|
+
code: "api_key_malformed";
|
|
3851
|
+
details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
|
|
3852
|
+
message: string;
|
|
3853
|
+
};
|
|
3854
|
+
requestId: string;
|
|
3855
|
+
};
|
|
3856
|
+
outputFormat: "json";
|
|
3857
|
+
status: 400;
|
|
3858
|
+
input: {
|
|
3859
|
+
param: {
|
|
3860
|
+
address: `0x${string}`;
|
|
3861
|
+
};
|
|
3862
|
+
} & {
|
|
3863
|
+
query?: {
|
|
3864
|
+
chainId?: string | string[];
|
|
3865
|
+
currency?: string | string[];
|
|
3866
|
+
} | undefined;
|
|
3867
|
+
};
|
|
3868
|
+
} | {
|
|
3869
|
+
output: {
|
|
3870
|
+
error: {
|
|
3871
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
3872
|
+
details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
|
|
3873
|
+
message: string;
|
|
3874
|
+
};
|
|
3875
|
+
requestId: string;
|
|
3876
|
+
};
|
|
3877
|
+
outputFormat: "json";
|
|
3878
|
+
status: 401;
|
|
3879
|
+
input: {
|
|
3880
|
+
param: {
|
|
3881
|
+
address: `0x${string}`;
|
|
3882
|
+
};
|
|
3883
|
+
} & {
|
|
3884
|
+
query?: {
|
|
3885
|
+
chainId?: string | string[];
|
|
3886
|
+
currency?: string | string[];
|
|
3887
|
+
} | undefined;
|
|
3888
|
+
};
|
|
3889
|
+
} | {
|
|
3890
|
+
output: {
|
|
3891
|
+
error: {
|
|
3892
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
3893
|
+
details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
|
|
3894
|
+
message: string;
|
|
3895
|
+
};
|
|
3896
|
+
requestId: string;
|
|
3897
|
+
};
|
|
3898
|
+
outputFormat: "json";
|
|
3899
|
+
status: 403;
|
|
3900
|
+
input: {
|
|
3901
|
+
param: {
|
|
3902
|
+
address: `0x${string}`;
|
|
3903
|
+
};
|
|
3904
|
+
} & {
|
|
3905
|
+
query?: {
|
|
3906
|
+
chainId?: string | string[];
|
|
3907
|
+
currency?: string | string[];
|
|
3908
|
+
} | undefined;
|
|
3909
|
+
};
|
|
3910
|
+
} | {
|
|
3911
|
+
output: {
|
|
3912
|
+
error: {
|
|
3913
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
3914
|
+
details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
|
|
3915
|
+
message: string;
|
|
3916
|
+
};
|
|
3917
|
+
requestId: string;
|
|
3918
|
+
};
|
|
3919
|
+
outputFormat: "json";
|
|
3920
|
+
status: 429;
|
|
3921
|
+
input: {
|
|
3922
|
+
param: {
|
|
3923
|
+
address: `0x${string}`;
|
|
3924
|
+
};
|
|
3925
|
+
} & {
|
|
3926
|
+
query?: {
|
|
3927
|
+
chainId?: string | string[];
|
|
3928
|
+
currency?: string | string[];
|
|
3929
|
+
} | undefined;
|
|
3930
|
+
};
|
|
3931
|
+
} | {
|
|
3932
|
+
output: {
|
|
3933
|
+
error: {
|
|
3934
|
+
code: "query_invalid";
|
|
3935
|
+
details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
|
|
3936
|
+
message: string;
|
|
3937
|
+
};
|
|
3938
|
+
requestId: string;
|
|
3939
|
+
};
|
|
3940
|
+
outputFormat: "json";
|
|
3941
|
+
status: 400;
|
|
3942
|
+
input: {
|
|
3943
|
+
param: {
|
|
3944
|
+
address: `0x${string}`;
|
|
3945
|
+
};
|
|
3946
|
+
} & {
|
|
3947
|
+
query?: {
|
|
3948
|
+
chainId?: string | string[];
|
|
3949
|
+
currency?: string | string[];
|
|
3950
|
+
} | undefined;
|
|
3951
|
+
};
|
|
3952
|
+
} | {
|
|
3953
|
+
output: {
|
|
3954
|
+
error: {
|
|
3955
|
+
code: "address_invalid";
|
|
3956
|
+
details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
|
|
3957
|
+
message: string;
|
|
3958
|
+
};
|
|
3959
|
+
requestId: string;
|
|
3960
|
+
};
|
|
3961
|
+
outputFormat: "json";
|
|
3962
|
+
status: 400;
|
|
3963
|
+
input: {
|
|
3964
|
+
param: {
|
|
3965
|
+
address: `0x${string}`;
|
|
3966
|
+
};
|
|
3967
|
+
} & {
|
|
3968
|
+
query?: {
|
|
3969
|
+
chainId?: string | string[];
|
|
3970
|
+
currency?: string | string[];
|
|
3971
|
+
} | undefined;
|
|
3972
|
+
};
|
|
3973
|
+
} | {
|
|
3974
|
+
output: {
|
|
3975
|
+
address: `0x${string}`;
|
|
3976
|
+
amount: string;
|
|
3977
|
+
currency: string;
|
|
3978
|
+
id: string;
|
|
3979
|
+
pricing: {
|
|
3980
|
+
asOf: string;
|
|
3981
|
+
basis: "nominal";
|
|
3982
|
+
source: string;
|
|
3983
|
+
} | null;
|
|
3984
|
+
unpriced: string[];
|
|
3985
|
+
};
|
|
3986
|
+
outputFormat: "json";
|
|
3987
|
+
status: 200;
|
|
3988
|
+
input: {
|
|
3989
|
+
param: {
|
|
3990
|
+
address: `0x${string}`;
|
|
3991
|
+
};
|
|
3992
|
+
} & {
|
|
3993
|
+
query?: {
|
|
3994
|
+
chainId?: string | string[];
|
|
3995
|
+
currency?: string | string[];
|
|
3996
|
+
} | undefined;
|
|
3997
|
+
};
|
|
3998
|
+
};
|
|
3999
|
+
};
|
|
3810
4000
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3811
4001
|
"/v1/addresses/:address/balances": {
|
|
3812
4002
|
$get: {
|
|
@@ -4082,8 +4272,8 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
|
|
|
4082
4272
|
};
|
|
4083
4273
|
};
|
|
4084
4274
|
};
|
|
4085
|
-
}
|
|
4086
|
-
"/v1/addresses/:address/
|
|
4275
|
+
} & {
|
|
4276
|
+
"/v1/addresses/:address/balances/:token": {
|
|
4087
4277
|
$get: {
|
|
4088
4278
|
output: null;
|
|
4089
4279
|
outputFormat: "body";
|
|
@@ -4091,11 +4281,12 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
|
|
|
4091
4281
|
input: {
|
|
4092
4282
|
param: {
|
|
4093
4283
|
address: `0x${string}`;
|
|
4284
|
+
token: `0x${string}`;
|
|
4094
4285
|
};
|
|
4095
4286
|
} & {
|
|
4096
4287
|
query?: {
|
|
4097
4288
|
chainId?: string | string[];
|
|
4098
|
-
currency?: string | string[];
|
|
4289
|
+
'valuation.currency'?: string | string[];
|
|
4099
4290
|
} | undefined;
|
|
4100
4291
|
};
|
|
4101
4292
|
} | {
|
|
@@ -4112,11 +4303,12 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
|
|
|
4112
4303
|
input: {
|
|
4113
4304
|
param: {
|
|
4114
4305
|
address: `0x${string}`;
|
|
4306
|
+
token: `0x${string}`;
|
|
4115
4307
|
};
|
|
4116
4308
|
} & {
|
|
4117
4309
|
query?: {
|
|
4118
4310
|
chainId?: string | string[];
|
|
4119
|
-
currency?: string | string[];
|
|
4311
|
+
'valuation.currency'?: string | string[];
|
|
4120
4312
|
} | undefined;
|
|
4121
4313
|
};
|
|
4122
4314
|
} | {
|
|
@@ -4133,11 +4325,12 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
|
|
|
4133
4325
|
input: {
|
|
4134
4326
|
param: {
|
|
4135
4327
|
address: `0x${string}`;
|
|
4328
|
+
token: `0x${string}`;
|
|
4136
4329
|
};
|
|
4137
4330
|
} & {
|
|
4138
4331
|
query?: {
|
|
4139
4332
|
chainId?: string | string[];
|
|
4140
|
-
currency?: string | string[];
|
|
4333
|
+
'valuation.currency'?: string | string[];
|
|
4141
4334
|
} | undefined;
|
|
4142
4335
|
};
|
|
4143
4336
|
} | {
|
|
@@ -4154,11 +4347,12 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
|
|
|
4154
4347
|
input: {
|
|
4155
4348
|
param: {
|
|
4156
4349
|
address: `0x${string}`;
|
|
4350
|
+
token: `0x${string}`;
|
|
4157
4351
|
};
|
|
4158
4352
|
} & {
|
|
4159
4353
|
query?: {
|
|
4160
4354
|
chainId?: string | string[];
|
|
4161
|
-
currency?: string | string[];
|
|
4355
|
+
'valuation.currency'?: string | string[];
|
|
4162
4356
|
} | undefined;
|
|
4163
4357
|
};
|
|
4164
4358
|
} | {
|
|
@@ -4175,11 +4369,12 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
|
|
|
4175
4369
|
input: {
|
|
4176
4370
|
param: {
|
|
4177
4371
|
address: `0x${string}`;
|
|
4372
|
+
token: `0x${string}`;
|
|
4178
4373
|
};
|
|
4179
4374
|
} & {
|
|
4180
4375
|
query?: {
|
|
4181
4376
|
chainId?: string | string[];
|
|
4182
|
-
currency?: string | string[];
|
|
4377
|
+
'valuation.currency'?: string | string[];
|
|
4183
4378
|
} | undefined;
|
|
4184
4379
|
};
|
|
4185
4380
|
} | {
|
|
@@ -4196,11 +4391,12 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
|
|
|
4196
4391
|
input: {
|
|
4197
4392
|
param: {
|
|
4198
4393
|
address: `0x${string}`;
|
|
4394
|
+
token: `0x${string}`;
|
|
4199
4395
|
};
|
|
4200
4396
|
} & {
|
|
4201
4397
|
query?: {
|
|
4202
4398
|
chainId?: string | string[];
|
|
4203
|
-
currency?: string | string[];
|
|
4399
|
+
'valuation.currency'?: string | string[];
|
|
4204
4400
|
} | undefined;
|
|
4205
4401
|
};
|
|
4206
4402
|
} | {
|
|
@@ -4217,11 +4413,12 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
|
|
|
4217
4413
|
input: {
|
|
4218
4414
|
param: {
|
|
4219
4415
|
address: `0x${string}`;
|
|
4416
|
+
token: `0x${string}`;
|
|
4220
4417
|
};
|
|
4221
4418
|
} & {
|
|
4222
4419
|
query?: {
|
|
4223
4420
|
chainId?: string | string[];
|
|
4224
|
-
currency?: string | string[];
|
|
4421
|
+
'valuation.currency'?: string | string[];
|
|
4225
4422
|
} | undefined;
|
|
4226
4423
|
};
|
|
4227
4424
|
} | {
|
|
@@ -4238,36 +4435,70 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
|
|
|
4238
4435
|
input: {
|
|
4239
4436
|
param: {
|
|
4240
4437
|
address: `0x${string}`;
|
|
4438
|
+
token: `0x${string}`;
|
|
4241
4439
|
};
|
|
4242
4440
|
} & {
|
|
4243
4441
|
query?: {
|
|
4244
4442
|
chainId?: string | string[];
|
|
4245
|
-
currency?: string | string[];
|
|
4443
|
+
'valuation.currency'?: string | string[];
|
|
4246
4444
|
} | undefined;
|
|
4247
4445
|
};
|
|
4248
4446
|
} | {
|
|
4249
4447
|
output: {
|
|
4250
|
-
address: `0x${string}`;
|
|
4251
4448
|
amount: string;
|
|
4252
4449
|
currency: string;
|
|
4450
|
+
decimals: number;
|
|
4451
|
+
feeEligible?: boolean | undefined;
|
|
4452
|
+
formatted: string;
|
|
4253
4453
|
id: string;
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4454
|
+
token: {
|
|
4455
|
+
address: `0x${string}`;
|
|
4456
|
+
currency: string;
|
|
4457
|
+
decimals: number;
|
|
4458
|
+
id: string;
|
|
4459
|
+
logoUri?: string | undefined;
|
|
4460
|
+
name: string;
|
|
4461
|
+
symbol: string;
|
|
4462
|
+
verified: boolean;
|
|
4463
|
+
};
|
|
4464
|
+
valuation: {
|
|
4465
|
+
amount: string;
|
|
4466
|
+
currency: string;
|
|
4258
4467
|
} | null;
|
|
4259
|
-
unpriced: string[];
|
|
4260
4468
|
};
|
|
4261
4469
|
outputFormat: "json";
|
|
4262
4470
|
status: 200;
|
|
4263
4471
|
input: {
|
|
4264
4472
|
param: {
|
|
4265
4473
|
address: `0x${string}`;
|
|
4474
|
+
token: `0x${string}`;
|
|
4266
4475
|
};
|
|
4267
4476
|
} & {
|
|
4268
4477
|
query?: {
|
|
4269
4478
|
chainId?: string | string[];
|
|
4270
|
-
currency?: string | string[];
|
|
4479
|
+
'valuation.currency'?: string | string[];
|
|
4480
|
+
} | undefined;
|
|
4481
|
+
};
|
|
4482
|
+
} | {
|
|
4483
|
+
output: {
|
|
4484
|
+
error: {
|
|
4485
|
+
code: "token_not_found";
|
|
4486
|
+
details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
|
|
4487
|
+
message: string;
|
|
4488
|
+
};
|
|
4489
|
+
requestId: string;
|
|
4490
|
+
};
|
|
4491
|
+
outputFormat: "json";
|
|
4492
|
+
status: 404;
|
|
4493
|
+
input: {
|
|
4494
|
+
param: {
|
|
4495
|
+
address: `0x${string}`;
|
|
4496
|
+
token: `0x${string}`;
|
|
4497
|
+
};
|
|
4498
|
+
} & {
|
|
4499
|
+
query?: {
|
|
4500
|
+
chainId?: string | string[];
|
|
4501
|
+
'valuation.currency'?: string | string[];
|
|
4271
4502
|
} | undefined;
|
|
4272
4503
|
};
|
|
4273
4504
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../../../src/apps/data/routes/addresses.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,GAAG,MAAM,iBAAiB,CAAA;AAG3C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CAAC,OAAO,GAAE,SAAS,CAAC,OAAY
|
|
1
|
+
{"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../../../src/apps/data/routes/addresses.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,GAAG,MAAM,iBAAiB,CAAA;AAG3C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CAAC,OAAO,GAAE,SAAS,CAAC,OAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAKxD;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,qDAAqD;IACrD,KAAK,OAAO,GAAG;QACb,mDAAmD;QACnD,EAAE,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,EAAE,GAAG,SAAS,CAAA;KACxC,CAAA;CACF"}
|
|
@@ -102,10 +102,49 @@ export declare namespace schema {
|
|
|
102
102
|
nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
103
103
|
}, z.core.$strip>;
|
|
104
104
|
}
|
|
105
|
+
/** Schemas for the getAddressBalance operation. */
|
|
106
|
+
namespace getAddressBalance {
|
|
107
|
+
/** Path parameters for a single address balance request. */
|
|
108
|
+
const Params: z.ZodMiniObject<{
|
|
109
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
110
|
+
token: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
/** Query parameters for a single address balance request. */
|
|
113
|
+
const Query: z.ZodMiniObject<{
|
|
114
|
+
chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
115
|
+
mainnet: "mainnet";
|
|
116
|
+
testnet: "testnet";
|
|
117
|
+
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
|
|
118
|
+
'valuation.currency': z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<string, string>>>;
|
|
119
|
+
}, z.core.$strict>;
|
|
120
|
+
/** A single TIP-20 token balance held by an address. */
|
|
121
|
+
const Response: z.ZodMiniObject<{
|
|
122
|
+
amount: z.ZodMiniString<string>;
|
|
123
|
+
currency: z.ZodMiniString<string>;
|
|
124
|
+
decimals: z.ZodMiniNumber<number>;
|
|
125
|
+
feeEligible: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
126
|
+
formatted: z.ZodMiniString<string>;
|
|
127
|
+
id: z.ZodMiniString<string>;
|
|
128
|
+
token: z.ZodMiniObject<{
|
|
129
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
130
|
+
currency: z.ZodMiniString<string>;
|
|
131
|
+
decimals: z.ZodMiniNumber<number>;
|
|
132
|
+
id: z.ZodMiniString<string>;
|
|
133
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
134
|
+
name: z.ZodMiniString<string>;
|
|
135
|
+
symbol: z.ZodMiniString<string>;
|
|
136
|
+
verified: z.ZodMiniBoolean<boolean>;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
valuation: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
139
|
+
amount: z.ZodMiniString<string>;
|
|
140
|
+
currency: z.ZodMiniString<string>;
|
|
141
|
+
}, z.core.$strip>>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
}
|
|
105
144
|
}
|
|
106
145
|
/**
|
|
107
146
|
* Creates address-scoped balance handlers, mounted under the `/addresses`
|
|
108
|
-
* composer. Exposes
|
|
147
|
+
* composer. Exposes the held-balance page and individual token balances.
|
|
109
148
|
*/
|
|
110
149
|
export declare function addresses(options?: addresses.Options): import("hono/hono-base").HonoBase<App.Environment, {
|
|
111
150
|
"/v1/addresses/:address/balances": {
|
|
@@ -382,7 +421,238 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
|
|
|
382
421
|
};
|
|
383
422
|
};
|
|
384
423
|
};
|
|
385
|
-
}
|
|
424
|
+
} & {
|
|
425
|
+
"/v1/addresses/:address/balances/:token": {
|
|
426
|
+
$get: {
|
|
427
|
+
output: null;
|
|
428
|
+
outputFormat: "body";
|
|
429
|
+
status: 402;
|
|
430
|
+
input: {
|
|
431
|
+
param: {
|
|
432
|
+
address: `0x${string}`;
|
|
433
|
+
token: `0x${string}`;
|
|
434
|
+
};
|
|
435
|
+
} & {
|
|
436
|
+
query?: {
|
|
437
|
+
chainId?: string | string[];
|
|
438
|
+
'valuation.currency'?: string | string[];
|
|
439
|
+
} | undefined;
|
|
440
|
+
};
|
|
441
|
+
} | {
|
|
442
|
+
output: {
|
|
443
|
+
error: {
|
|
444
|
+
code: "api_key_malformed";
|
|
445
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
446
|
+
message: string;
|
|
447
|
+
};
|
|
448
|
+
requestId: string;
|
|
449
|
+
};
|
|
450
|
+
outputFormat: "json";
|
|
451
|
+
status: 400;
|
|
452
|
+
input: {
|
|
453
|
+
param: {
|
|
454
|
+
address: `0x${string}`;
|
|
455
|
+
token: `0x${string}`;
|
|
456
|
+
};
|
|
457
|
+
} & {
|
|
458
|
+
query?: {
|
|
459
|
+
chainId?: string | string[];
|
|
460
|
+
'valuation.currency'?: string | string[];
|
|
461
|
+
} | undefined;
|
|
462
|
+
};
|
|
463
|
+
} | {
|
|
464
|
+
output: {
|
|
465
|
+
error: {
|
|
466
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
467
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
468
|
+
message: string;
|
|
469
|
+
};
|
|
470
|
+
requestId: string;
|
|
471
|
+
};
|
|
472
|
+
outputFormat: "json";
|
|
473
|
+
status: 401;
|
|
474
|
+
input: {
|
|
475
|
+
param: {
|
|
476
|
+
address: `0x${string}`;
|
|
477
|
+
token: `0x${string}`;
|
|
478
|
+
};
|
|
479
|
+
} & {
|
|
480
|
+
query?: {
|
|
481
|
+
chainId?: string | string[];
|
|
482
|
+
'valuation.currency'?: string | string[];
|
|
483
|
+
} | undefined;
|
|
484
|
+
};
|
|
485
|
+
} | {
|
|
486
|
+
output: {
|
|
487
|
+
error: {
|
|
488
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
489
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
490
|
+
message: string;
|
|
491
|
+
};
|
|
492
|
+
requestId: string;
|
|
493
|
+
};
|
|
494
|
+
outputFormat: "json";
|
|
495
|
+
status: 403;
|
|
496
|
+
input: {
|
|
497
|
+
param: {
|
|
498
|
+
address: `0x${string}`;
|
|
499
|
+
token: `0x${string}`;
|
|
500
|
+
};
|
|
501
|
+
} & {
|
|
502
|
+
query?: {
|
|
503
|
+
chainId?: string | string[];
|
|
504
|
+
'valuation.currency'?: string | string[];
|
|
505
|
+
} | undefined;
|
|
506
|
+
};
|
|
507
|
+
} | {
|
|
508
|
+
output: {
|
|
509
|
+
error: {
|
|
510
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
511
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
512
|
+
message: string;
|
|
513
|
+
};
|
|
514
|
+
requestId: string;
|
|
515
|
+
};
|
|
516
|
+
outputFormat: "json";
|
|
517
|
+
status: 429;
|
|
518
|
+
input: {
|
|
519
|
+
param: {
|
|
520
|
+
address: `0x${string}`;
|
|
521
|
+
token: `0x${string}`;
|
|
522
|
+
};
|
|
523
|
+
} & {
|
|
524
|
+
query?: {
|
|
525
|
+
chainId?: string | string[];
|
|
526
|
+
'valuation.currency'?: string | string[];
|
|
527
|
+
} | undefined;
|
|
528
|
+
};
|
|
529
|
+
} | {
|
|
530
|
+
output: {
|
|
531
|
+
error: {
|
|
532
|
+
code: "query_invalid";
|
|
533
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
534
|
+
message: string;
|
|
535
|
+
};
|
|
536
|
+
requestId: string;
|
|
537
|
+
};
|
|
538
|
+
outputFormat: "json";
|
|
539
|
+
status: 400;
|
|
540
|
+
input: {
|
|
541
|
+
param: {
|
|
542
|
+
address: `0x${string}`;
|
|
543
|
+
token: `0x${string}`;
|
|
544
|
+
};
|
|
545
|
+
} & {
|
|
546
|
+
query?: {
|
|
547
|
+
chainId?: string | string[];
|
|
548
|
+
'valuation.currency'?: string | string[];
|
|
549
|
+
} | undefined;
|
|
550
|
+
};
|
|
551
|
+
} | {
|
|
552
|
+
output: {
|
|
553
|
+
error: {
|
|
554
|
+
code: "upstream_error";
|
|
555
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
556
|
+
message: string;
|
|
557
|
+
};
|
|
558
|
+
requestId: string;
|
|
559
|
+
};
|
|
560
|
+
outputFormat: "json";
|
|
561
|
+
status: 502;
|
|
562
|
+
input: {
|
|
563
|
+
param: {
|
|
564
|
+
address: `0x${string}`;
|
|
565
|
+
token: `0x${string}`;
|
|
566
|
+
};
|
|
567
|
+
} & {
|
|
568
|
+
query?: {
|
|
569
|
+
chainId?: string | string[];
|
|
570
|
+
'valuation.currency'?: string | string[];
|
|
571
|
+
} | undefined;
|
|
572
|
+
};
|
|
573
|
+
} | {
|
|
574
|
+
output: {
|
|
575
|
+
error: {
|
|
576
|
+
code: "address_invalid";
|
|
577
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
578
|
+
message: string;
|
|
579
|
+
};
|
|
580
|
+
requestId: string;
|
|
581
|
+
};
|
|
582
|
+
outputFormat: "json";
|
|
583
|
+
status: 400;
|
|
584
|
+
input: {
|
|
585
|
+
param: {
|
|
586
|
+
address: `0x${string}`;
|
|
587
|
+
token: `0x${string}`;
|
|
588
|
+
};
|
|
589
|
+
} & {
|
|
590
|
+
query?: {
|
|
591
|
+
chainId?: string | string[];
|
|
592
|
+
'valuation.currency'?: string | string[];
|
|
593
|
+
} | undefined;
|
|
594
|
+
};
|
|
595
|
+
} | {
|
|
596
|
+
output: {
|
|
597
|
+
amount: string;
|
|
598
|
+
currency: string;
|
|
599
|
+
decimals: number;
|
|
600
|
+
feeEligible?: boolean | undefined;
|
|
601
|
+
formatted: string;
|
|
602
|
+
id: string;
|
|
603
|
+
token: {
|
|
604
|
+
address: `0x${string}`;
|
|
605
|
+
currency: string;
|
|
606
|
+
decimals: number;
|
|
607
|
+
id: string;
|
|
608
|
+
logoUri?: string | undefined;
|
|
609
|
+
name: string;
|
|
610
|
+
symbol: string;
|
|
611
|
+
verified: boolean;
|
|
612
|
+
};
|
|
613
|
+
valuation: {
|
|
614
|
+
amount: string;
|
|
615
|
+
currency: string;
|
|
616
|
+
} | null;
|
|
617
|
+
};
|
|
618
|
+
outputFormat: "json";
|
|
619
|
+
status: 200;
|
|
620
|
+
input: {
|
|
621
|
+
param: {
|
|
622
|
+
address: `0x${string}`;
|
|
623
|
+
token: `0x${string}`;
|
|
624
|
+
};
|
|
625
|
+
} & {
|
|
626
|
+
query?: {
|
|
627
|
+
chainId?: string | string[];
|
|
628
|
+
'valuation.currency'?: string | string[];
|
|
629
|
+
} | undefined;
|
|
630
|
+
};
|
|
631
|
+
} | {
|
|
632
|
+
output: {
|
|
633
|
+
error: {
|
|
634
|
+
code: "token_not_found";
|
|
635
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
636
|
+
message: string;
|
|
637
|
+
};
|
|
638
|
+
requestId: string;
|
|
639
|
+
};
|
|
640
|
+
outputFormat: "json";
|
|
641
|
+
status: 404;
|
|
642
|
+
input: {
|
|
643
|
+
param: {
|
|
644
|
+
address: `0x${string}`;
|
|
645
|
+
token: `0x${string}`;
|
|
646
|
+
};
|
|
647
|
+
} & {
|
|
648
|
+
query?: {
|
|
649
|
+
chainId?: string | string[];
|
|
650
|
+
'valuation.currency'?: string | string[];
|
|
651
|
+
} | undefined;
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
};
|
|
655
|
+
}, "/", "/v1/addresses/:address/balances/:token">;
|
|
386
656
|
export declare namespace addresses {
|
|
387
657
|
/** Options for the address-scoped balance handlers. */
|
|
388
658
|
type Options = {
|