{"id":13651907,"url":"https://github.com/greymass/abi2core","last_synced_at":"2026-03-02T06:33:23.214Z","repository":{"id":57114329,"uuid":"342757130","full_name":"greymass/abi2core","owner":"greymass","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-24T16:49:57.000Z","size":137,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-08T19:56:28.956Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/greymass.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"custom":"https://greymass.com/support-us"}},"created_at":"2021-02-27T03:01:39.000Z","updated_at":"2022-03-28T00:51:37.000Z","dependencies_parsed_at":"2024-01-03T05:13:53.309Z","dependency_job_id":"2e3a5667-4265-455b-840c-ff3bcc635acc","html_url":"https://github.com/greymass/abi2core","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/greymass/abi2core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greymass%2Fabi2core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greymass%2Fabi2core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greymass%2Fabi2core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greymass%2Fabi2core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greymass","download_url":"https://codeload.github.com/greymass/abi2core/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greymass%2Fabi2core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29994155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T02:00:53.363Z","updated_at":"2026-03-02T06:33:23.192Z","avatar_url":"https://github.com/greymass.png","language":"TypeScript","funding_links":["https://greymass.com/support-us"],"categories":["Developers"],"sub_categories":["Developer Tools"],"readme":"# @greymass/abi2core\n\nLibrary and command line tool to generate [@wharfkit/antelope](https://github.com/wharfkit/antelope) types from Antelope ABI definitions.\n\n## Installation\n\nThe `@greymass/abi2core` package is distributed as a module on [npm](https://www.npmjs.com/package/@greymass/abi2core).\n\n```\nyarn global add @greymass/abi2core\n# or\nnpm install --global @greymass/abi2core\n```\n\n## Usage\n\nAfter installing the abi2core command should be available, it takes Antelope ABI JSON on stdin and outputs @wharfkit/antelope TypeScript Types on stdout.\n\nExample:\n\n```sh\n$ cleos -u https://eos.greymass.com get abi eosio.token | abi2core\n```\n\n```ts\n// generated by @greymass/abi2core\n\nimport {Asset, Name, Struct} from '@wharfkit/antelope'\n\n@Struct.type('account')\nexport class Account extends Struct {\n    @Struct.field(Asset) balance!: Asset\n}\n\n@Struct.type('close')\nexport class Close extends Struct {\n    @Struct.field(Name) owner!: Name\n    @Struct.field(Asset.Symbol) symbol!: Asset.Symbol\n}\n\n@Struct.type('create')\nexport class Create extends Struct {\n    @Struct.field(Name) issuer!: Name\n    @Struct.field(Asset) maximum_supply!: Asset\n}\n\n@Struct.type('currency_stats')\nexport class CurrencyStats extends Struct {\n    @Struct.field(Asset) supply!: Asset\n    @Struct.field(Asset) max_supply!: Asset\n    @Struct.field(Name) issuer!: Name\n}\n\n@Struct.type('issue')\nexport class Issue extends Struct {\n    @Struct.field(Name) to!: Name\n    @Struct.field(Asset) quantity!: Asset\n    @Struct.field('string') memo!: string\n}\n\n@Struct.type('open')\nexport class Open extends Struct {\n    @Struct.field(Name) owner!: Name\n    @Struct.field(Asset.Symbol) symbol!: Asset.Symbol\n    @Struct.field(Name) ram_payer!: Name\n}\n\n@Struct.type('retire')\nexport class Retire extends Struct {\n    @Struct.field(Asset) quantity!: Asset\n    @Struct.field('string') memo!: string\n}\n\n@Struct.type('transfer')\nexport class Transfer extends Struct {\n    @Struct.field(Name) from!: Name\n    @Struct.field(Name) to!: Name\n    @Struct.field(Asset) quantity!: Asset\n    @Struct.field('string') memo!: string\n}\n```\n\n## Developing\n\nYou need [Make](https://www.gnu.org/software/make/), [node.js](https://nodejs.org/en/) and [yarn](https://classic.yarnpkg.com/en/docs/install) installed.\n\nClone the repository and run `make` to checkout all dependencies and build the project. See the [Makefile](./Makefile) for other useful targets. Before submitting a pull request make sure to run `make lint`.\n\n---\n\nMade with ☕️ \u0026 ❤️ by [Greymass](https://greymass.com), if you find this useful please consider [supporting us](https://greymass.com/support-us).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreymass%2Fabi2core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreymass%2Fabi2core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreymass%2Fabi2core/lists"}