Skip to content

Commit f2e82de

Browse files
committed
add eth rpc url to auth-eth-bun info endpoint
1 parent f57d4d0 commit f2e82de

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

kms/auth-eth-bun/index.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ describe('API Compatibility Tests', () => {
5858
expect(data).toMatchObject({
5959
status: 'ok',
6060
kmsContractAddr: '0x1234567890123456789012345678901234567890',
61+
ethRpcUrl: 'http://localhost:8545',
6162
gatewayAppId: expect.any(String),
6263
chainId: expect.any(Number),
6364
appAuthImplementation: expect.any(String),
@@ -345,6 +346,7 @@ describe('API Schema Compatibility', () => {
345346
expect(systemInfoSchema.required).toEqual([
346347
'status',
347348
'kmsContractAddr',
349+
'ethRpcUrl',
348350
'gatewayAppId',
349351
'chainId',
350352
'appAuthImplementation',

kms/auth-eth-bun/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ app.get('/', async (c) => {
213213
return c.json({
214214
status: 'ok',
215215
kmsContractAddr: kmsContractAddr,
216+
ethRpcUrl: rpcUrl,
216217
gatewayAppId: batch[0],
217218
chainId: batch[1],
218219
appAuthImplementation: batch[2], // NOTE: for backward compatibility

kms/auth-eth-bun/openapi.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@
181181
"required": [
182182
"status",
183183
"kmsContractAddr",
184+
"ethRpcUrl",
184185
"gatewayAppId",
185186
"chainId",
186187
"appAuthImplementation",
@@ -196,6 +197,10 @@
196197
"type": "string",
197198
"description": "KMS contract address"
198199
},
200+
"ethRpcUrl": {
201+
"type": "string",
202+
"description": "Ethereum RPC URL"
203+
},
199204
"gatewayAppId": {
200205
"type": "string",
201206
"description": "Gateway application ID"

0 commit comments

Comments
 (0)