Skip to content

Commit

Permalink
fix: types & index for task data
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrieh committed Jul 19, 2024
1 parent de4ae62 commit 68b5d21
Show file tree
Hide file tree
Showing 23 changed files with 117 additions and 565 deletions.
6 changes: 6 additions & 0 deletions .changeset/thirty-elephants-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@effectai/sdk": patch
---

Change types to match contracts on mainnet instead of jungle
fix getTaskData index to consider the current batch
Binary file modified bun.lockb
Binary file not shown.
75 changes: 38 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,40 @@
{
"name": "@effectai/sdk",
"workspaces": ["docs", "src"],
"scripts": {
"test": "bun --env-file=.env test",
"test:watch": "bun --env-file=.env test --watch",
"test:only": "bun --env-file=.env test --watch --only",
"test:coverage": "bun --env-file=.env test --coverage",
"dev": "tsc -w",
"build": "bun run sdk:build && bun run docs:build",
"lint": "biome lint --apply .",
"format": "biome format --write .",
"check": "biome check --apply .",
"changeset": "changeset",
"changeset:public": "bun scripts/updateVersion.ts && bun run build && changeset publish",
"changeset:version": "changeset version && bun install --frozen-lockfile && bun scripts/updateVersion.ts",
"changeset:publish": "bun run build && changeset publish",
"docs:dev": "cd docs && bun run dev",
"docs:build": "cd docs && bun run build",
"docs:preview": "cd docs && bun run preview",
"sdk:build": "tsc --project src/tsconfig.build.json --module es2020",
"link": "cd src && bun link"
},
"devDependencies": {
"@biomejs/biome": "1.7.0",
"@wharfkit/wallet-plugin-privatekey": "^1.0.0",
"@changesets/changelog-github": "^0.4.5",
"@changesets/cli": "^2.23.2",
"@greymass/abi2core": "^2.0.1",
"@size-limit/preset-big-lib": "^11.1.2",
"@types/bun": "^1.1.1",
"typescript": "5.4.2",
"vite": "^5.0.7"
},
"trustedDependencies": ["@biomejs/biome"],
"dependencies": {
"gh-pages": "^6.1.1"
}
"name": "@effectai/sdk",
"workspaces": ["docs", "src"],
"scripts": {
"test": "bun --env-file=.env test",
"test:watch": "bun --env-file=.env test --watch",
"test:only": "bun --env-file=.env test --watch --only",
"test:coverage": "bun --env-file=.env test --coverage",
"dev": "tsc -w --project src/tsconfig.build.json",
"build": "bun run sdk:build && bun run docs:build",
"lint": "biome lint --apply .",
"format": "biome format --write .",
"check": "biome check --apply .",
"changeset": "changeset",
"changeset:public": "bun scripts/updateVersion.ts && bun run build && changeset publish",
"changeset:version": "changeset version && bun install --frozen-lockfile && bun scripts/updateVersion.ts",
"changeset:publish": "bun run build && changeset publish",
"docs:dev": "cd docs && bun run dev",
"docs:build": "cd docs && bun run build",
"docs:preview": "cd docs && bun run preview",
"sdk:build": "tsc --project src/tsconfig.build.json --module es2020",
"link": "cd src && bun link"
},
"devDependencies": {
"@biomejs/biome": "1.7.0",
"@wharfkit/wallet-plugin-privatekey": "^1.0.0",
"@changesets/changelog-github": "^0.4.5",
"@changesets/cli": "^2.23.2",
"@greymass/abi2core": "^2.0.1",
"@size-limit/preset-big-lib": "^11.1.2",
"@types/bun": "^1.1.1",
"typescript": "5.4.2",
"vite": "^5.0.7"
},
"trustedDependencies": ["@biomejs/biome"],
"dependencies": {
"@wharfkit/transact-plugin-autocorrect": "^1.2.1",
"gh-pages": "^6.1.1"
}
}
4 changes: 2 additions & 2 deletions scripts/generateAbiTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { transform } from "@greymass/abi2core";
import type { ABI } from "@wharfkit/antelope";

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

const abis = ["effecttasks2", "efxaccount11"];
const abis = ["tasks.efx", "vaccount.efx"];

const main = async () => {
for (const abi of abis) {
Expand Down
Loading

0 comments on commit 68b5d21

Please sign in to comment.