tapimo 0.4.0 → 0.4.1
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/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +20 -3
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/routes/balances.d.ts +45 -45
- package/dist/apps/data/routes/coingecko.d.ts +176 -176
- package/dist/apps/data/routes/rpc.d.ts +31 -31
- package/dist/apps/data/routes/transactions.d.ts +281 -281
- package/dist/apps/data/routes/transfers.d.ts +58 -58
- package/dist/apps/management/routes/me.d.ts +17 -17
- package/dist/apps/management/routes/scopes.d.ts +11 -11
- package/dist/handlers/relay.d.ts +13 -10
- package/dist/handlers/relay.d.ts.map +1 -1
- package/dist/handlers/relay.js +46 -16
- package/dist/handlers/relay.js.map +1 -1
- package/package.json +1 -1
- package/src/apps/data/App.ts +24 -3
- package/src/apps/data/routes/rpc.test.ts +33 -0
- package/src/handlers/relay.test-d.ts +8 -0
- package/src/handlers/relay.test.ts +2 -2
- package/src/handlers/relay.ts +62 -22
|
@@ -67,96 +67,96 @@ export declare function rpc(): import("hono/hono-base").HonoBase<App.Environment
|
|
|
67
67
|
"/rpc/:chain{(mainnet|testnet|[0-9]+)}?": {
|
|
68
68
|
$post: {
|
|
69
69
|
output: {
|
|
70
|
-
error
|
|
71
|
-
code:
|
|
72
|
-
|
|
73
|
-
message: string;
|
|
74
|
-
} | undefined;
|
|
75
|
-
id?: string | number | null | undefined;
|
|
76
|
-
jsonrpc: "2.0";
|
|
77
|
-
result?: import("hono/utils/types").JSONValue;
|
|
78
|
-
}[] | {
|
|
79
|
-
error?: {
|
|
80
|
-
code: number;
|
|
81
|
-
data?: import("hono/utils/types").JSONValue;
|
|
70
|
+
error: {
|
|
71
|
+
code: "api_key_malformed";
|
|
72
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
82
73
|
message: string;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
jsonrpc: "2.0";
|
|
86
|
-
result?: import("hono/utils/types").JSONValue;
|
|
74
|
+
};
|
|
75
|
+
requestId: string;
|
|
87
76
|
};
|
|
88
77
|
outputFormat: "json";
|
|
89
|
-
status:
|
|
78
|
+
status: 400;
|
|
90
79
|
input: {
|
|
91
80
|
param: Record<"chain", string | undefined>;
|
|
92
81
|
};
|
|
93
82
|
} | {
|
|
94
83
|
output: {
|
|
95
84
|
error: {
|
|
96
|
-
code: "
|
|
85
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
97
86
|
details?: readonly Response.error.Detail[] | undefined;
|
|
98
87
|
message: string;
|
|
99
88
|
};
|
|
100
89
|
requestId: string;
|
|
101
90
|
};
|
|
102
91
|
outputFormat: "json";
|
|
103
|
-
status:
|
|
92
|
+
status: 401;
|
|
104
93
|
input: {
|
|
105
94
|
param: Record<"chain", string | undefined>;
|
|
106
95
|
};
|
|
107
96
|
} | {
|
|
108
97
|
output: {
|
|
109
98
|
error: {
|
|
110
|
-
code: "
|
|
99
|
+
code: "api_key_forbidden";
|
|
111
100
|
details?: readonly Response.error.Detail[] | undefined;
|
|
112
101
|
message: string;
|
|
113
102
|
};
|
|
114
103
|
requestId: string;
|
|
115
104
|
};
|
|
116
105
|
outputFormat: "json";
|
|
117
|
-
status:
|
|
106
|
+
status: 403;
|
|
118
107
|
input: {
|
|
119
108
|
param: Record<"chain", string | undefined>;
|
|
120
109
|
};
|
|
121
110
|
} | {
|
|
122
111
|
output: {
|
|
123
112
|
error: {
|
|
124
|
-
code: "
|
|
113
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
125
114
|
details?: readonly Response.error.Detail[] | undefined;
|
|
126
115
|
message: string;
|
|
127
116
|
};
|
|
128
117
|
requestId: string;
|
|
129
118
|
};
|
|
130
119
|
outputFormat: "json";
|
|
131
|
-
status:
|
|
120
|
+
status: 429;
|
|
132
121
|
input: {
|
|
133
122
|
param: Record<"chain", string | undefined>;
|
|
134
123
|
};
|
|
135
124
|
} | {
|
|
136
125
|
output: {
|
|
137
126
|
error: {
|
|
138
|
-
code: "
|
|
127
|
+
code: "chain_id_invalid";
|
|
139
128
|
details?: readonly Response.error.Detail[] | undefined;
|
|
140
129
|
message: string;
|
|
141
130
|
};
|
|
142
131
|
requestId: string;
|
|
143
132
|
};
|
|
144
133
|
outputFormat: "json";
|
|
145
|
-
status:
|
|
134
|
+
status: 400;
|
|
146
135
|
input: {
|
|
147
136
|
param: Record<"chain", string | undefined>;
|
|
148
137
|
};
|
|
149
138
|
} | {
|
|
150
139
|
output: {
|
|
151
|
-
error
|
|
152
|
-
code:
|
|
153
|
-
|
|
140
|
+
error?: {
|
|
141
|
+
code: number;
|
|
142
|
+
data?: import("hono/utils/types").JSONValue;
|
|
154
143
|
message: string;
|
|
155
|
-
};
|
|
156
|
-
|
|
144
|
+
} | undefined;
|
|
145
|
+
id?: string | number | null | undefined;
|
|
146
|
+
jsonrpc: "2.0";
|
|
147
|
+
result?: import("hono/utils/types").JSONValue;
|
|
148
|
+
}[] | {
|
|
149
|
+
error?: {
|
|
150
|
+
code: number;
|
|
151
|
+
data?: import("hono/utils/types").JSONValue;
|
|
152
|
+
message: string;
|
|
153
|
+
} | undefined;
|
|
154
|
+
id?: string | number | null | undefined;
|
|
155
|
+
jsonrpc: "2.0";
|
|
156
|
+
result?: import("hono/utils/types").JSONValue;
|
|
157
157
|
};
|
|
158
158
|
outputFormat: "json";
|
|
159
|
-
status:
|
|
159
|
+
status: 200;
|
|
160
160
|
input: {
|
|
161
161
|
param: Record<"chain", string | undefined>;
|
|
162
162
|
};
|