Skip to content

Commit daf068d

Browse files
committed
fix insight blueprints navigation
1 parent 3f21445 commit daf068d

File tree

1 file changed

+118
-114
lines changed

1 file changed

+118
-114
lines changed

apps/playground-web/src/app/insight/insightBlueprints.ts

Lines changed: 118 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -3,185 +3,189 @@ import type { MinimalBlueprintSpec } from "./utils";
33

44
export const insightBlueprints: MinimalBlueprintSpec[] = [
55
{
6-
id: "transactions",
7-
name: "Transactions",
8-
paths: [
6+
"id": "transactions",
7+
"name": "Transactions",
8+
"paths": [
99
{
10-
name: "Get transactions",
11-
path: "/v1/transactions",
10+
"name": "Get transactions",
11+
"path": "/v1/transactions"
1212
},
1313
{
14-
name: "Get contract transactions",
15-
path: "/v1/transactions/:contractAddress",
14+
"name": "Get contract transactions",
15+
"path": "/v1/transactions/{contractAddress}"
1616
},
1717
{
18-
name: "Get contract transactions with specific signature",
19-
path: "/v1/transactions/:contractAddress/:signature",
18+
"name": "Get contract transactions with specific signature",
19+
"path": "/v1/transactions/{contractAddress}/{signature}"
2020
},
2121
{
22-
name: "Get wallet transactions",
23-
path: "/v1/wallets/:wallet_address/transactions",
24-
},
25-
],
22+
"name": "Get wallet transactions",
23+
"path": "/v1/wallets/{wallet_address}/transactions"
24+
}
25+
]
2626
},
2727
{
28-
id: "events",
29-
name: "Events",
30-
paths: [
28+
"id": "events",
29+
"name": "Events",
30+
"paths": [
3131
{
32-
name: "Get events",
33-
path: "/v1/events",
32+
"name": "Get events",
33+
"path": "/v1/events"
3434
},
3535
{
36-
name: "Get contract events",
37-
path: "/v1/events/:contractAddress",
36+
"name": "Get contract events",
37+
"path": "/v1/events/{contractAddress}"
3838
},
3939
{
40-
name: "Get contract events with specific signature",
41-
path: "/v1/events/:contractAddress/:signature",
42-
},
43-
],
40+
"name": "Get contract events with specific signature",
41+
"path": "/v1/events/{contractAddress}/{signature}"
42+
}
43+
]
4444
},
4545
{
46-
id: "tokens",
47-
name: "Tokens",
48-
paths: [
46+
"id": "tokens",
47+
"name": "Tokens",
48+
"paths": [
4949
{
50-
name: "Get token transfers by transaction",
51-
path: "/v1/tokens/transfers/transaction/:transaction_hash",
50+
"name": "Get token transfers by transaction",
51+
"path": "/v1/tokens/transfers/transaction/{transaction_hash}"
5252
},
5353
{
54-
name: "Get token transfers by contract",
55-
path: "/v1/tokens/transfers/:contract_address",
54+
"name": "Get token transfers by contract",
55+
"path": "/v1/tokens/transfers/{contract_address}"
5656
},
5757
{
58-
name: "Get token transfers by wallet address",
59-
path: "/v1/tokens/transfers",
58+
"name": "Get token transfers by wallet address",
59+
"path": "/v1/tokens/transfers"
6060
},
6161
{
62-
name: "Get ERC-20 balances by address",
63-
path: "/v1/tokens/erc20/:ownerAddress",
62+
"name": "Get ERC-20 balances by address",
63+
"path": "/v1/tokens/erc20/{ownerAddress}"
6464
},
6565
{
66-
name: "Get ERC-721 balances by address",
67-
path: "/v1/tokens/erc721/:ownerAddress",
66+
"name": "Get ERC-721 balances by address",
67+
"path": "/v1/tokens/erc721/{ownerAddress}"
6868
},
6969
{
70-
name: "Get ERC-1155 balances by address",
71-
path: "/v1/tokens/erc1155/:ownerAddress",
70+
"name": "Get ERC-1155 balances by address",
71+
"path": "/v1/tokens/erc1155/{ownerAddress}"
7272
},
7373
{
74-
name: "Get supported tokens for price data",
75-
path: "/v1/tokens/price/supported",
74+
"name": "Get supported tokens for price data",
75+
"path": "/v1/tokens/price/supported"
7676
},
7777
{
78-
name: "Get token price",
79-
path: "/v1/tokens/price",
78+
"name": "Get token price",
79+
"path": "/v1/tokens/price"
8080
},
81-
],
81+
{
82+
"name": "Token lookup",
83+
"path": "/v1/tokens/lookup"
84+
}
85+
]
8286
},
8387
{
84-
id: "resolve",
85-
name: "Resolve",
86-
paths: [
87-
{
88-
name: "Resolve",
89-
path: "/v1/resolve/:input",
90-
},
91-
],
88+
"id": "resolve",
89+
"name": "Resolve",
90+
"paths": [
91+
{
92+
"name": "Resolve",
93+
"path": "/v1/resolve/{input}"
94+
}
95+
]
9296
},
9397
{
94-
id: "blocks",
95-
name: "Blocks",
96-
paths: [
97-
{
98-
name: "Get blocks",
99-
path: "/v1/blocks",
100-
},
101-
],
98+
"id": "blocks",
99+
"name": "Blocks",
100+
"paths": [
101+
{
102+
"name": "Get blocks",
103+
"path": "/v1/blocks"
104+
}
105+
]
102106
},
103107
{
104-
id: "contracts",
105-
name: "Contracts",
106-
paths: [
108+
"id": "contracts",
109+
"name": "Contracts",
110+
"paths": [
107111
{
108-
name: "Get contract ABI​",
109-
path: "/v1/contracts/abi/:contractAddress",
112+
"name": "Get contract ABI​",
113+
"path": "/v1/contracts/abi/{contractAddress}"
110114
},
111115
{
112-
name: "Get contract metadata​",
113-
path: "/v1/contracts/metadata/:contractAddress",
114-
},
115-
],
116+
"name": "Get contract metadata​",
117+
"path": "/v1/contracts/metadata/{contractAddress}"
118+
}
119+
]
116120
},
117121
{
118-
id: "decode",
119-
name: "Decode",
120-
paths: [
121-
{
122-
name: "Unknown",
123-
path: "/v1/decode/:contractAddress",
124-
},
125-
],
122+
"id": "decode",
123+
"name": "Decode",
124+
"paths": [
125+
{
126+
"name": "Unknown",
127+
"path": "/v1/decode/{contractAddress}"
128+
}
129+
]
126130
},
127131
{
128-
id: "nfts",
129-
name: "Nfts",
130-
paths: [
132+
"id": "nfts",
133+
"name": "Nfts",
134+
"paths": [
131135
{
132-
name: "Get NFTs by owner",
133-
path: "/v1/nfts",
136+
"name": "Get NFTs by owner",
137+
"path": "/v1/nfts"
134138
},
135139
{
136-
name: "Get NFT owners by contract",
137-
path: "/v1/nfts/owners/:contract_address",
140+
"name": "Get NFT owners by contract",
141+
"path": "/v1/nfts/owners/{contract_address}"
138142
},
139143
{
140-
name: "Get NFT owners by token",
141-
path: "/v1/nfts/owners/:contract_address/:token_id",
144+
"name": "Get NFT owners by token",
145+
"path": "/v1/nfts/owners/{contract_address}/{token_id}"
142146
},
143147
{
144-
name: "Get NFT transfers by owner",
145-
path: "/v1/nfts/transfers",
148+
"name": "Get NFT transfers by owner",
149+
"path": "/v1/nfts/transfers"
146150
},
147151
{
148-
name: "Get NFT transfers by transaction",
149-
path: "/v1/nfts/transfers/transaction/:transaction_hash",
152+
"name": "Get NFT transfers by transaction",
153+
"path": "/v1/nfts/transfers/transaction/{transaction_hash}"
150154
},
151155
{
152-
name: "Get NFT transfers by contract",
153-
path: "/v1/nfts/transfers/:contract_address",
156+
"name": "Get NFT transfers by contract",
157+
"path": "/v1/nfts/transfers/{contract_address}"
154158
},
155159
{
156-
name: "Get NFTs by contract",
157-
path: "/v1/nfts/:contract_address",
160+
"name": "Get NFTs by contract",
161+
"path": "/v1/nfts/{contract_address}"
158162
},
159163
{
160-
name: "Get NFT transfers by token",
161-
path: "/v1/nfts/transfers/:contract_address/:token_id",
164+
"name": "Get NFT transfers by token",
165+
"path": "/v1/nfts/transfers/{contract_address}/{token_id}"
162166
},
163167
{
164-
name: "Get NFT by token",
165-
path: "/v1/nfts/:contract_address/:token_id",
168+
"name": "Get NFT by token",
169+
"path": "/v1/nfts/{contract_address}/{token_id}"
166170
},
167171
{
168-
name: "Force refresh collection metadata",
169-
path: "/v1/nfts/metadata/refresh/:contract_address",
172+
"name": "Force refresh collection metadata",
173+
"path": "/v1/nfts/metadata/refresh/{contract_address}"
170174
},
171175
{
172-
name: "Force refresh token metadata",
173-
path: "/v1/nfts/metadata/refresh/:contract_address/:token_id",
174-
},
175-
],
176+
"name": "Force refresh token metadata",
177+
"path": "/v1/nfts/metadata/refresh/{contract_address}/{token_id}"
178+
}
179+
]
176180
},
177181
{
178-
id: "wallets",
179-
name: "Wallets",
180-
paths: [
181-
{
182-
name: "Get wallet transactions",
183-
path: "/v1/wallets/:wallet_address/transactions",
184-
},
185-
],
186-
},
187-
];
182+
"id": "wallets",
183+
"name": "Wallets",
184+
"paths": [
185+
{
186+
"name": "Get wallet transactions",
187+
"path": "/v1/wallets/{wallet_address}/transactions"
188+
}
189+
]
190+
}
191+
]

0 commit comments

Comments
 (0)