
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@greymass/abi2core
Advanced tools
Library and command line tool to generate @wharfkit/antelope types from Antelope ABI definitions
Library and command line tool to generate @wharfkit/antelope types from Antelope ABI definitions.
The @greymass/abi2core
package is distributed as a module on npm.
yarn global add @greymass/abi2core
# or
npm install --global @greymass/abi2core
After installing the abi2core command should be available, it takes Antelope ABI JSON on stdin and outputs @wharfkit/antelope TypeScript Types on stdout.
Example:
$ cleos -u https://eos.greymass.com get abi eosio.token | abi2core
// generated by @greymass/abi2core
import {Asset, Name, Struct} from '@wharfkit/antelope'
@Struct.type('account')
export class Account extends Struct {
@Struct.field(Asset) balance!: Asset
}
@Struct.type('close')
export class Close extends Struct {
@Struct.field(Name) owner!: Name
@Struct.field(Asset.Symbol) symbol!: Asset.Symbol
}
@Struct.type('create')
export class Create extends Struct {
@Struct.field(Name) issuer!: Name
@Struct.field(Asset) maximum_supply!: Asset
}
@Struct.type('currency_stats')
export class CurrencyStats extends Struct {
@Struct.field(Asset) supply!: Asset
@Struct.field(Asset) max_supply!: Asset
@Struct.field(Name) issuer!: Name
}
@Struct.type('issue')
export class Issue extends Struct {
@Struct.field(Name) to!: Name
@Struct.field(Asset) quantity!: Asset
@Struct.field('string') memo!: string
}
@Struct.type('open')
export class Open extends Struct {
@Struct.field(Name) owner!: Name
@Struct.field(Asset.Symbol) symbol!: Asset.Symbol
@Struct.field(Name) ram_payer!: Name
}
@Struct.type('retire')
export class Retire extends Struct {
@Struct.field(Asset) quantity!: Asset
@Struct.field('string') memo!: string
}
@Struct.type('transfer')
export class Transfer extends Struct {
@Struct.field(Name) from!: Name
@Struct.field(Name) to!: Name
@Struct.field(Asset) quantity!: Asset
@Struct.field('string') memo!: string
}
You need Make, node.js and yarn installed.
Clone the repository and run make
to checkout all dependencies and build the project. See the Makefile for other useful targets. Before submitting a pull request make sure to run make lint
.
Made with ☕️ & ❤️ by Greymass, if you find this useful please consider supporting us.
FAQs
Library and command line tool to generate @wharfkit/antelope types from Antelope ABI definitions
The npm package @greymass/abi2core receives a total of 0 weekly downloads. As such, @greymass/abi2core popularity was classified as not popular.
We found that @greymass/abi2core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.