@greymass/eosio
Advanced tools
Comparing version 0.4.7 to 0.4.8
{ | ||
"name": "@greymass/eosio", | ||
"description": "Library for working with EOSIO blockchains", | ||
"version": "0.4.7", | ||
"version": "0.4.8", | ||
"homepage": "https://github.com/greymass/eosio-core", | ||
@@ -30,11 +30,20 @@ "license": "BSD-3-Clause", | ||
"devDependencies": { | ||
"@rollup/plugin-alias": "^3.1.4", | ||
"@rollup/plugin-commonjs": "^20.0.0", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^13.0.2", | ||
"@rollup/plugin-replace": "^3.0.0", | ||
"@rollup/plugin-typescript": "^8.1.1", | ||
"@rollup/plugin-virtual": "^2.0.3", | ||
"@types/bn.js": "^5.1.0", | ||
"@types/elliptic": "^6.4.12", | ||
"@types/mocha": "^8.0.3", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^16.4.0", | ||
"@typescript-eslint/eslint-plugin": "^4.9.0", | ||
"@typescript-eslint/parser": "^4.9.0", | ||
"chai": "^4.3.4", | ||
"eslint": "^7.19.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-prettier": "^3.2.0", | ||
"gh-pages": "^3.2.3", | ||
"mocha": "^9.0.2", | ||
@@ -46,5 +55,8 @@ "node-fetch": "^2.6.1", | ||
"rollup-plugin-dts": "^3.0.1", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"ts-node": "^10.0.0", | ||
"tsconfig-paths": "^3.10.1", | ||
"typedoc": "^0.21.4", | ||
"typescript": "^4.1.2" | ||
} | ||
} |
@@ -5,2 +5,3 @@ import {APIProvider, FetchProvider, FetchProviderOptions} from './provider' | ||
import {ChainAPI} from './v1/chain' | ||
import {HistoryAPI} from './v1/history' | ||
import {BuiltinTypes} from '../serializer/builtins' | ||
@@ -79,2 +80,3 @@ | ||
chain: new ChainAPI(this), | ||
history: new HistoryAPI(this), | ||
} | ||
@@ -81,0 +83,0 @@ |
import { | ||
ABI, | ||
AnyAction, | ||
Asset, | ||
Authority, | ||
BlockTimestamp, | ||
Bytes, | ||
@@ -10,2 +12,3 @@ Checksum160, | ||
Float64, | ||
Int32, | ||
Int64, | ||
@@ -449,1 +452,62 @@ Name, | ||
} | ||
@Struct.type('ordered_action_result') | ||
export class OrderedActionsResult extends Struct { | ||
@Struct.field(UInt64) global_action_seq!: UInt64 | ||
@Struct.field(Int64) account_action_seq!: Int64 | ||
@Struct.field(UInt32) block_num!: UInt32 | ||
@Struct.field(BlockTimestamp) block_time!: BlockTimestamp | ||
@Struct.field('any') action_trace?: any | ||
@Struct.field('boolean?') irrevirsible?: boolean | ||
} | ||
@Struct.type('get_actions_response') | ||
export class GetActionsResponse extends Struct { | ||
@Struct.field(OrderedActionsResult, {array: true}) actions!: OrderedActionsResult[] | ||
@Struct.field(Int32) last_irreversible_block!: Int32 | ||
@Struct.field(Int32) head_block_num!: Int32 | ||
@Struct.field('boolean?') time_limit_exceeded_error?: boolean | ||
} | ||
@Struct.type('transaction_trace') | ||
export class TransactionTrace extends Struct {} | ||
@Struct.type('trx') | ||
export class Trx extends Struct { | ||
@Struct.field('any') actions!: AnyAction[] | ||
@Struct.field('any') context_free_actions!: AnyAction[] | ||
@Struct.field('any') context_free_data!: any[] | ||
@Struct.field('number') delay_sec!: number | ||
@Struct.field('string') expiration!: string | ||
@Struct.field('number') max_cpu_usage_ms!: number | ||
@Struct.field('number') max_net_usage_words!: number | ||
@Struct.field('number') ref_block_num!: number | ||
@Struct.field('number') ref_block_prefix!: number | ||
@Struct.field('string', {array: true}) signatures!: string[] | ||
} | ||
@Struct.type('transaction_info') | ||
export class TransactionInfo extends Struct { | ||
@Struct.field(TransactionReceipt) receipt!: TransactionReceipt | ||
@Struct.field('trx') trx!: Trx | ||
} | ||
@Struct.type('get_transaction_response') | ||
export class GetTransactionResponse extends Struct { | ||
@Struct.field(Checksum256) id!: Checksum256 | ||
@Struct.field(UInt32) block_num!: UInt32 | ||
@Struct.field(BlockTimestamp) block_time!: BlockTimestamp | ||
@Struct.field(UInt32) last_irreversible_block!: UInt32 | ||
@Struct.field('any?') traces?: TransactionTrace[] | ||
@Struct.field('any') trx!: TransactionInfo | ||
} | ||
@Struct.type('get_key_accounts_response') | ||
export class GetKeyAccountsResponse extends Struct { | ||
@Struct.field('name', {array: true}) account_names!: Name[] | ||
} | ||
@Struct.type('get_controlled_accounts_response') | ||
export class GetControlledAccountsResponse extends Struct { | ||
@Struct.field('name', {array: true}) controlled_accounts!: Name[] | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
799147
48
15961
29