Skip to content

Commit 68b5d21

Browse files
committed
fix: types & index for task data
1 parent de4ae62 commit 68b5d21

23 files changed

+117
-565
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@effectai/sdk": patch
3+
---
4+
5+
Change types to match contracts on mainnet instead of jungle
6+
fix getTaskData index to consider the current batch

bun.lockb

992 Bytes
Binary file not shown.

package.json

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,40 @@
11
{
2-
"name": "@effectai/sdk",
3-
"workspaces": ["docs", "src"],
4-
"scripts": {
5-
"test": "bun --env-file=.env test",
6-
"test:watch": "bun --env-file=.env test --watch",
7-
"test:only": "bun --env-file=.env test --watch --only",
8-
"test:coverage": "bun --env-file=.env test --coverage",
9-
"dev": "tsc -w",
10-
"build": "bun run sdk:build && bun run docs:build",
11-
"lint": "biome lint --apply .",
12-
"format": "biome format --write .",
13-
"check": "biome check --apply .",
14-
"changeset": "changeset",
15-
"changeset:public": "bun scripts/updateVersion.ts && bun run build && changeset publish",
16-
"changeset:version": "changeset version && bun install --frozen-lockfile && bun scripts/updateVersion.ts",
17-
"changeset:publish": "bun run build && changeset publish",
18-
"docs:dev": "cd docs && bun run dev",
19-
"docs:build": "cd docs && bun run build",
20-
"docs:preview": "cd docs && bun run preview",
21-
"sdk:build": "tsc --project src/tsconfig.build.json --module es2020",
22-
"link": "cd src && bun link"
23-
},
24-
"devDependencies": {
25-
"@biomejs/biome": "1.7.0",
26-
"@wharfkit/wallet-plugin-privatekey": "^1.0.0",
27-
"@changesets/changelog-github": "^0.4.5",
28-
"@changesets/cli": "^2.23.2",
29-
"@greymass/abi2core": "^2.0.1",
30-
"@size-limit/preset-big-lib": "^11.1.2",
31-
"@types/bun": "^1.1.1",
32-
"typescript": "5.4.2",
33-
"vite": "^5.0.7"
34-
},
35-
"trustedDependencies": ["@biomejs/biome"],
36-
"dependencies": {
37-
"gh-pages": "^6.1.1"
38-
}
2+
"name": "@effectai/sdk",
3+
"workspaces": ["docs", "src"],
4+
"scripts": {
5+
"test": "bun --env-file=.env test",
6+
"test:watch": "bun --env-file=.env test --watch",
7+
"test:only": "bun --env-file=.env test --watch --only",
8+
"test:coverage": "bun --env-file=.env test --coverage",
9+
"dev": "tsc -w --project src/tsconfig.build.json",
10+
"build": "bun run sdk:build && bun run docs:build",
11+
"lint": "biome lint --apply .",
12+
"format": "biome format --write .",
13+
"check": "biome check --apply .",
14+
"changeset": "changeset",
15+
"changeset:public": "bun scripts/updateVersion.ts && bun run build && changeset publish",
16+
"changeset:version": "changeset version && bun install --frozen-lockfile && bun scripts/updateVersion.ts",
17+
"changeset:publish": "bun run build && changeset publish",
18+
"docs:dev": "cd docs && bun run dev",
19+
"docs:build": "cd docs && bun run build",
20+
"docs:preview": "cd docs && bun run preview",
21+
"sdk:build": "tsc --project src/tsconfig.build.json --module es2020",
22+
"link": "cd src && bun link"
23+
},
24+
"devDependencies": {
25+
"@biomejs/biome": "1.7.0",
26+
"@wharfkit/wallet-plugin-privatekey": "^1.0.0",
27+
"@changesets/changelog-github": "^0.4.5",
28+
"@changesets/cli": "^2.23.2",
29+
"@greymass/abi2core": "^2.0.1",
30+
"@size-limit/preset-big-lib": "^11.1.2",
31+
"@types/bun": "^1.1.1",
32+
"typescript": "5.4.2",
33+
"vite": "^5.0.7"
34+
},
35+
"trustedDependencies": ["@biomejs/biome"],
36+
"dependencies": {
37+
"@wharfkit/transact-plugin-autocorrect": "^1.2.1",
38+
"gh-pages": "^6.1.1"
39+
}
3940
}

scripts/generateAbiTypes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { transform } from "@greymass/abi2core";
22
import type { ABI } from "@wharfkit/antelope";
33

44
const getAbi = async (name: string) => {
5-
const abis = await fetch("https://jungle4.cryptolions.io/v1/chain/get_abi", {
5+
const abis = await fetch("https://eos.greymass.com/v1/chain/get_abi", {
66
method: "POST",
77
body: JSON.stringify({ account_name: name }),
88
});
@@ -92,7 +92,7 @@ function snakeToPascal(name: string): string {
9292
.join("");
9393
}
9494

95-
const abis = ["effecttasks2", "efxaccount11"];
95+
const abis = ["tasks.efx", "vaccount.efx"];
9696

9797
const main = async () => {
9898
for (const abi of abis) {

0 commit comments

Comments
 (0)