Skip to content

Instantly share code, notes, and snippets.

@jdheeter
Created March 25, 2022 19:16
Show Gist options
  • Save jdheeter/e6097a1c785b5fd80a7125a82d484dd1 to your computer and use it in GitHub Desktop.
Save jdheeter/e6097a1c785b5fd80a7125a82d484dd1 to your computer and use it in GitHub Desktop.
invalid types from abi2core
{
"version": "eosio::abi/1.1",
"types": [
{
"new_type_name": "vector<uint32>",
"type": "uint32[]"
}
],
"structs": [
{
"name": "packadd",
"base": "",
"fields": [
{
"name": "edition_scope",
"type": "name"
},
{
"name": "template_id",
"type": "uint64"
},
{
"name": "base_price",
"type": "asset"
},
{
"name": "floor_price",
"type": "asset"
},
{
"name": "pack_name",
"type": "string"
}
]
},
{
"name": "packdel",
"base": "",
"fields": [
{
"name": "edition_scope",
"type": "name"
},
{
"name": "template_id",
"type": "uint64"
}
]
},
{
"name": "buypack",
"base": "",
"fields": [
{
"name": "buyer",
"type": "name"
},
{
"name": "edition_scope",
"type": "name"
},
{
"name": "template_id",
"type": "uint64"
}
]
},
{
"name": "claimpack",
"base": "",
"fields": [
{
"name": "owner",
"type": "name"
},
{
"name": "pack_asset_id",
"type": "uint64"
}
]
},
{
"name": "editionadd",
"base": "",
"fields": [
{
"name": "edition_scope",
"type": "name"
},
{
"name": "avatar_floor_mint_price",
"type": "asset"
}
]
},
{
"name": "editiondel",
"base": "",
"fields": [
{
"name": "edition_scope",
"type": "name"
}
]
},
{
"name": "config",
"base": "",
"fields": [
{
"name": "freeze",
"type": "bool"
},
{
"name": "collection_name",
"type": "name"
},
{
"name": "parts_schema",
"type": "name"
},
{
"name": "avatar_schema",
"type": "name"
},
{
"name": "pack_schema",
"type": "name"
}
]
},
{
"name": "setconfig",
"base": "",
"fields": [
{
"name": "cfg",
"type": "config?"
}
]
},
{
"name": "extended_asset",
"base": "",
"fields": [
{
"name": "quantity",
"type": "asset"
},
{
"name": "contract",
"type": "name"
}
]
},
{
"name": "withdraw",
"base": "",
"fields": [
{
"name": "owner",
"type": "name"
},
{
"name": "value",
"type": "extended_asset"
}
]
},
{
"name": "extended_symbol",
"base": "",
"fields": [
{
"name": "sym",
"type": "symbol"
},
{
"name": "contract",
"type": "name"
}
]
},
{
"name": "open",
"base": "",
"fields": [
{
"name": "owner",
"type": "name"
},
{
"name": "token",
"type": "extended_symbol"
},
{
"name": "ram_payer",
"type": "name"
}
]
},
{
"name": "namepair",
"base": "",
"fields": [
{
"name": "bodypart",
"type": "string"
},
{
"name": "name",
"type": "string"
}
]
},
{
"name": "assemble_set",
"base": "",
"fields": [
{
"name": "creator",
"type": "name"
},
{
"name": "avatar_name",
"type": "string"
},
{
"name": "template_ids",
"type": "uint32[]"
},
{
"name": "rarity_score",
"type": "uint8"
},
{
"name": "identifier",
"type": "checksum256"
},
{
"name": "max_mint",
"type": "uint32"
},
{
"name": "bodypart_names",
"type": "namepair[]"
},
{
"name": "scope",
"type": "name"
},
{
"name": "base_price",
"type": "asset"
}
]
},
{
"name": "assemble",
"base": "",
"fields": [
{
"name": "set_data",
"type": "assemble_set"
}
]
},
{
"name": "finalize",
"base": "",
"fields": [
{
"name": "identifier",
"type": "checksum256"
},
{
"name": "ipfs_hash",
"type": "string"
}
]
},
{
"name": "mintavatar",
"base": "",
"fields": [
{
"name": "minter",
"type": "name"
},
{
"name": "avatar_id",
"type": "uint64"
},
{
"name": "scope",
"type": "name"
}
]
},
{
"name": "receiverand",
"base": "",
"fields": [
{
"name": "assoc_id",
"type": "uint64"
},
{
"name": "random_value",
"type": "checksum256"
}
]
},
{
"name": "test",
"base": "",
"fields": [
{
"name": "template_id",
"type": "uint32"
},
{
"name": "rarity_score",
"type": "uint8"
}
]
},
{
"name": "clravatars",
"base": "",
"fields": [
{
"name": "scope",
"type": "name"
}
]
},
{
"name": "clrqueue",
"base": "",
"fields": []
},
{
"name": "clrunpack",
"base": "",
"fields": []
},
{
"name": "avatars",
"base": "",
"fields": [
{
"name": "id",
"type": "uint64"
},
{
"name": "avatar_name",
"type": "string"
},
{
"name": "template_id",
"type": "uint32"
},
{
"name": "creator",
"type": "name"
},
{
"name": "identifier",
"type": "checksum256"
},
{
"name": "rarity",
"type": "uint8"
},
{
"name": "mint",
"type": "uint32"
},
{
"name": "max_mint",
"type": "uint32"
},
{
"name": "modified",
"type": "time_point_sec"
},
{
"name": "base_price",
"type": "asset"
},
{
"name": "bodyparts",
"type": "uint32[]"
}
]
},
{
"name": "queue",
"base": "",
"fields": [
{
"name": "id",
"type": "uint64"
},
{
"name": "identifier",
"type": "checksum256"
},
{
"name": "work",
"type": "name"
},
{
"name": "scope",
"type": "name"
},
{
"name": "set_data",
"type": "assemble_set"
},
{
"name": "inserted",
"type": "time_point_sec"
}
]
},
{
"name": "deposits",
"base": "",
"fields": [
{
"name": "id",
"type": "uint64"
},
{
"name": "balance",
"type": "extended_asset"
}
]
},
{
"name": "editions",
"base": "",
"fields": [
{
"name": "edition_scope",
"type": "name"
},
{
"name": "avatar_floor_mint_price",
"type": "asset"
},
{
"name": "part_template_ids",
"type": "vector<uint32>[]"
},
{
"name": "rarity_counts",
"type": "uint16[]"
}
]
},
{
"name": "packs",
"base": "",
"fields": [
{
"name": "template_id",
"type": "uint64"
},
{
"name": "base_price",
"type": "asset"
},
{
"name": "floor_price",
"type": "asset"
},
{
"name": "last_sold",
"type": "time_point_sec"
},
{
"name": "pack_name",
"type": "string"
}
]
},
{
"name": "pack_data",
"base": "",
"fields": [
{
"name": "edition",
"type": "name"
},
{
"name": "pack_size",
"type": "uint8"
}
]
},
{
"name": "unpack",
"base": "",
"fields": [
{
"name": "pack_asset_id",
"type": "uint64"
},
{
"name": "owner",
"type": "name"
},
{
"name": "pack_data",
"type": "pack_data"
},
{
"name": "claimable_template_ids",
"type": "uint32[]"
},
{
"name": "inserted",
"type": "time_point_sec"
}
]
}
],
"actions": [
{
"name": "packadd",
"type": "packadd",
"ricardian_contract": ""
},
{
"name": "packdel",
"type": "packdel",
"ricardian_contract": ""
},
{
"name": "buypack",
"type": "buypack",
"ricardian_contract": ""
},
{
"name": "claimpack",
"type": "claimpack",
"ricardian_contract": ""
},
{
"name": "editionadd",
"type": "editionadd",
"ricardian_contract": ""
},
{
"name": "editiondel",
"type": "editiondel",
"ricardian_contract": ""
},
{
"name": "setconfig",
"type": "setconfig",
"ricardian_contract": ""
},
{
"name": "withdraw",
"type": "withdraw",
"ricardian_contract": ""
},
{
"name": "open",
"type": "open",
"ricardian_contract": ""
},
{
"name": "assemble",
"type": "assemble",
"ricardian_contract": ""
},
{
"name": "finalize",
"type": "finalize",
"ricardian_contract": ""
},
{
"name": "mintavatar",
"type": "mintavatar",
"ricardian_contract": ""
},
{
"name": "receiverand",
"type": "receiverand",
"ricardian_contract": ""
},
{
"name": "test",
"type": "test",
"ricardian_contract": ""
},
{
"name": "clravatars",
"type": "clravatars",
"ricardian_contract": ""
},
{
"name": "clrqueue",
"type": "clrqueue",
"ricardian_contract": ""
},
{
"name": "clrunpack",
"type": "clrunpack",
"ricardian_contract": ""
}
],
"tables": [
{
"name": "avatars",
"index_type": "i64",
"key_names": [],
"key_types": [],
"type": "avatars"
},
{
"name": "queue",
"index_type": "i64",
"key_names": [],
"key_types": [],
"type": "queue"
},
{
"name": "deposits",
"index_type": "i64",
"key_names": [],
"key_types": [],
"type": "deposits"
},
{
"name": "config",
"index_type": "i64",
"key_names": [],
"key_types": [],
"type": "config"
},
{
"name": "editions",
"index_type": "i64",
"key_names": [],
"key_types": [],
"type": "editions"
},
{
"name": "packs",
"index_type": "i64",
"key_names": [],
"key_types": [],
"type": "packs"
},
{
"name": "unpack",
"index_type": "i64",
"key_names": [],
"key_types": [],
"type": "unpack"
}
],
"ricardian_clauses": [],
"error_messages": [],
"abi_extensions": [],
"variants": []
}
// generated by @greymass/abi2core
import {
Asset,
Checksum256,
ExtendedAsset,
Name,
Struct,
TimePointSec,
TypeAlias,
UInt16,
UInt32,
UInt64,
UInt8,
} from '@greymass/eosio'
@TypeAlias('vector<uint32>')
class Vector<uint32> extends UInt32 {}
@Struct.type('packadd')
export class Packadd extends Struct {
@Struct.field(Name) edition_scope!: Name
@Struct.field(UInt64) template_id!: UInt64
@Struct.field(Asset) base_price!: Asset
@Struct.field(Asset) floor_price!: Asset
@Struct.field('string') pack_name!: string
}
@Struct.type('packdel')
export class Packdel extends Struct {
@Struct.field(Name) edition_scope!: Name
@Struct.field(UInt64) template_id!: UInt64
}
@Struct.type('buypack')
export class Buypack extends Struct {
@Struct.field(Name) buyer!: Name
@Struct.field(Name) edition_scope!: Name
@Struct.field(UInt64) template_id!: UInt64
}
@Struct.type('claimpack')
export class Claimpack extends Struct {
@Struct.field(Name) owner!: Name
@Struct.field(UInt64) pack_asset_id!: UInt64
}
@Struct.type('editionadd')
export class Editionadd extends Struct {
@Struct.field(Name) edition_scope!: Name
@Struct.field(Asset) avatar_floor_mint_price!: Asset
}
@Struct.type('editiondel')
export class Editiondel extends Struct {
@Struct.field(Name) edition_scope!: Name
}
@Struct.type('config')
export class Config extends Struct {
@Struct.field('bool') freeze!: boolean
@Struct.field(Name) collection_name!: Name
@Struct.field(Name) parts_schema!: Name
@Struct.field(Name) avatar_schema!: Name
@Struct.field(Name) pack_schema!: Name
}
@Struct.type('setconfig')
export class Setconfig extends Struct {
@Struct.field(Config, {optional: true}) cfg?: Config
}
@Struct.type('extended_asset')
export class ExtendedAsset extends Struct {
@Struct.field(Asset) quantity!: Asset
@Struct.field(Name) contract!: Name
}
@Struct.type('withdraw')
export class Withdraw extends Struct {
@Struct.field(Name) owner!: Name
@Struct.field(ExtendedAsset) value!: ExtendedAsset
}
@Struct.type('extended_symbol')
export class ExtendedSymbol extends Struct {
@Struct.field(Asset.Symbol) sym!: Asset.Symbol
@Struct.field(Name) contract!: Name
}
@Struct.type('open')
export class Open extends Struct {
@Struct.field(Name) owner!: Name
@Struct.field(ExtendedSymbol) token!: ExtendedSymbol
@Struct.field(Name) ram_payer!: Name
}
@Struct.type('namepair')
export class Namepair extends Struct {
@Struct.field('string') bodypart!: string
@Struct.field('string') name!: string
}
@Struct.type('assemble_set')
export class AssembleSet extends Struct {
@Struct.field(Name) creator!: Name
@Struct.field('string') avatar_name!: string
@Struct.field(UInt32, {array: true}) template_ids!: UInt32[]
@Struct.field(UInt8) rarity_score!: UInt8
@Struct.field(Checksum256) identifier!: Checksum256
@Struct.field(UInt32) max_mint!: UInt32
@Struct.field(Namepair, {array: true}) bodypart_names!: Namepair[]
@Struct.field(Name) scope!: Name
@Struct.field(Asset) base_price!: Asset
}
@Struct.type('assemble')
export class Assemble extends Struct {
@Struct.field(AssembleSet) set_data!: AssembleSet
}
@Struct.type('finalize')
export class Finalize extends Struct {
@Struct.field(Checksum256) identifier!: Checksum256
@Struct.field('string') ipfs_hash!: string
}
@Struct.type('mintavatar')
export class Mintavatar extends Struct {
@Struct.field(Name) minter!: Name
@Struct.field(UInt64) avatar_id!: UInt64
@Struct.field(Name) scope!: Name
}
@Struct.type('receiverand')
export class Receiverand extends Struct {
@Struct.field(UInt64) assoc_id!: UInt64
@Struct.field(Checksum256) random_value!: Checksum256
}
@Struct.type('test')
export class Test extends Struct {
@Struct.field(UInt32) template_id!: UInt32
@Struct.field(UInt8) rarity_score!: UInt8
}
@Struct.type('clravatars')
export class Clravatars extends Struct {
@Struct.field(Name) scope!: Name
}
@Struct.type('clrqueue')
export class Clrqueue extends Struct {
}
@Struct.type('clrunpack')
export class Clrunpack extends Struct {
}
@Struct.type('avatars')
export class Avatars extends Struct {
@Struct.field(UInt64) id!: UInt64
@Struct.field('string') avatar_name!: string
@Struct.field(UInt32) template_id!: UInt32
@Struct.field(Name) creator!: Name
@Struct.field(Checksum256) identifier!: Checksum256
@Struct.field(UInt8) rarity!: UInt8
@Struct.field(UInt32) mint!: UInt32
@Struct.field(UInt32) max_mint!: UInt32
@Struct.field(TimePointSec) modified!: TimePointSec
@Struct.field(Asset) base_price!: Asset
@Struct.field(UInt32, {array: true}) bodyparts!: UInt32[]
}
@Struct.type('queue')
export class Queue extends Struct {
@Struct.field(UInt64) id!: UInt64
@Struct.field(Checksum256) identifier!: Checksum256
@Struct.field(Name) work!: Name
@Struct.field(Name) scope!: Name
@Struct.field(AssembleSet) set_data!: AssembleSet
@Struct.field(TimePointSec) inserted!: TimePointSec
}
@Struct.type('deposits')
export class Deposits extends Struct {
@Struct.field(UInt64) id!: UInt64
@Struct.field(ExtendedAsset) balance!: ExtendedAsset
}
@Struct.type('editions')
export class Editions extends Struct {
@Struct.field(Name) edition_scope!: Name
@Struct.field(Asset) avatar_floor_mint_price!: Asset
@Struct.field(Vector<uint32>, {array: true}) part_template_ids!: Vector<uint32>[]
@Struct.field(UInt16, {array: true}) rarity_counts!: UInt16[]
}
@Struct.type('packs')
export class Packs extends Struct {
@Struct.field(UInt64) template_id!: UInt64
@Struct.field(Asset) base_price!: Asset
@Struct.field(Asset) floor_price!: Asset
@Struct.field(TimePointSec) last_sold!: TimePointSec
@Struct.field('string') pack_name!: string
}
@Struct.type('pack_data')
export class PackData extends Struct {
@Struct.field(Name) edition!: Name
@Struct.field(UInt8) pack_size!: UInt8
}
@Struct.type('unpack')
export class Unpack extends Struct {
@Struct.field(UInt64) pack_asset_id!: UInt64
@Struct.field(Name) owner!: Name
@Struct.field(PackData) pack_data!: PackData
@Struct.field(UInt32, {array: true}) claimable_template_ids!: UInt32[]
@Struct.field(TimePointSec) inserted!: TimePointSec
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment