Skip to content

Commit c7e9cc2

Browse files
authored
docs: Add summary; update descriptions (#180)
1 parent 7e01d91 commit c7e9cc2

146 files changed

Lines changed: 348 additions & 211 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ For OSS contributions, we use a [Forking Workflow](https://www.atlassian.com/git
1414

1515
To begin:
1616

17-
1. [Create a fork](https://github.com/thirdweb-dev/web3-api/fork) of this repository to your own GitHub account.
17+
1. [Create a fork](https://github.com/thirdweb-dev/engine/fork) of this repository to your own GitHub account.
1818

1919
2. [Clone your fork](https://help.github.com/articles/cloning-a-repository/) to your local device.
2020

core/schema/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const chainResponseSchema = Type.Object({
3939

4040
export const walletAuthSchema = Type.Object({
4141
"x-backend-wallet-address": Type.String({
42-
description: "Wallet address",
42+
description: "Backend wallet address",
4343
}),
4444
"x-account-address": Type.Optional(
4545
Type.String({

docs/1-user-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# thirdweb web3-api User Guide
1+
# thirdweb Engine User Guide
22

33
## Getting Started
44

@@ -25,7 +25,7 @@
2525

2626
### PostgreSQL DB
2727

28-
A PostgreSQL DB is required to run web3-api, both the server and worker need access to it. Check [installation guide](./.github/installations.md) for more details.
28+
A PostgreSQL DB is required to run _Engine_, both the server and worker need access to it. Check [installation guide](./.github/installations.md) for more details.
2929

3030
Once you have PostgreSQL DB running set the POSTGRES_CONNECTION_URL environment variable:
3131

server/api/backend-wallet/create.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export const createWallet = async (fastify: FastifyInstance) => {
3030
method: "POST",
3131
url: "/backend-wallet/create",
3232
schema: {
33-
description: "Create a new backend wallet",
33+
summary: "Create backend wallet",
34+
description: "Create a backend wallet.",
3435
tags: ["Backend Wallet"],
3536
operationId: "backendWallet_create",
3637
response: {

server/api/backend-wallet/getAll.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ export async function getAll(fastify: FastifyInstance) {
3434
method: "GET",
3535
url: "/backend-wallet/get-all",
3636
schema: {
37-
description: "Get all created EOA wallet",
37+
summary: "Get all backend wallets",
38+
description: "Get all backend wallets.",
3839
tags: ["Backend Wallet"],
3940
operationId: "backendWallet_getAll",
4041
response: {

server/api/backend-wallet/getBalance.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ export async function getBalance(fastify: FastifyInstance) {
3939
method: "GET",
4040
url: "/backend-wallet/:chain/:wallet_address/get-balance",
4141
schema: {
42-
description: "Get Wallet Balance",
42+
summary: "Get balance",
43+
description: "Get the native balance for a backend wallet.",
4344
tags: ["Backend Wallet"],
4445
operationId: "backendWallet_getBalance",
4546
params: requestSchema,

server/api/backend-wallet/import.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ export const importWallet = async (fastify: FastifyInstance) => {
9999
method: "POST",
100100
url: "/backend-wallet/import",
101101
schema: {
102-
description: "Import a wallet that has already been created",
102+
summary: "Import backend wallet",
103+
description: "Import an existing wallet as a backend wallet.",
103104
tags: ["Backend Wallet"],
104105
operationId: "backendWallet_import",
105106
body: RequestBodySchema,

server/api/chain/get.ts

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,18 @@ const responseSchema = Type.Object({
1515
responseSchema.examples = [
1616
{
1717
result: {
18-
result: {
19-
name: "Mumbai",
20-
chain: "Polygon",
21-
rpc: ["https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_SECRET_KEY}"],
22-
nativeCurrency: {
23-
name: "MATIC",
24-
symbol: "MATIC",
25-
decimals: 18,
26-
},
27-
shortName: "maticmum",
28-
chainId: 80001,
29-
testnet: true,
30-
slug: "mumbai",
18+
name: "Mumbai",
19+
chain: "Polygon",
20+
rpc: ["https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_SECRET_KEY}"],
21+
nativeCurrency: {
22+
name: "MATIC",
23+
symbol: "MATIC",
24+
decimals: 18,
3125
},
26+
shortName: "maticmum",
27+
chainId: 80001,
28+
testnet: true,
29+
slug: "mumbai",
3230
},
3331
},
3432
];
@@ -42,7 +40,8 @@ export async function getChainData(fastify: FastifyInstance) {
4240
method: "GET",
4341
url: "/chain/get",
4442
schema: {
45-
description: "Get a particular chain information",
43+
summary: "Get chain details",
44+
description: "Get details about a chain.",
4645
tags: ["Chain"],
4746
operationId: "chain",
4847
querystring: chainRequestQuerystringSchema,

server/api/chain/getAll.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ export async function getAllChainData(fastify: FastifyInstance) {
5353
method: "GET",
5454
url: "/chain/get-all",
5555
schema: {
56-
description: "Get all chains information",
56+
summary: "Get all chain details",
57+
description: "Get details about all supported chains.",
5758
tags: ["Chain"],
5859
operationId: "getAllChainData",
5960
response: {

server/api/contract/events/getAllEvents.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ export async function getAllEvents(fastify: FastifyInstance) {
6666
method: "GET",
6767
url: "/contract/:chain/:contract_address/events/get-all",
6868
schema: {
69-
description:
70-
"Get a list of all the events emitted from this contract during the specified time period",
69+
summary: "Get all events",
70+
description: "Get a list of all blockchain events for this contract.",
7171
tags: ["Contract-Events"],
7272
operationId: "getAllEvents",
7373
params: requestSchema,

0 commit comments

Comments
 (0)