@greymass/eosio
Advanced tools
Comparing version 0.4.2 to 0.4.3
{ | ||
"name": "@greymass/eosio", | ||
"description": "Library for working with EOSIO blockchains", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"homepage": "https://github.com/greymass/eosio-core", | ||
@@ -6,0 +6,0 @@ "license": "BSD-3-Clause", |
@@ -25,2 +25,4 @@ import {APIClient} from '../client' | ||
GetInfoResponse, | ||
GetTableByScopeParams, | ||
GetTableByScopeResponse, | ||
GetTableRowsParams, | ||
@@ -238,2 +240,10 @@ GetTableRowsParamsKeyed, | ||
} | ||
async get_table_by_scope(params: GetTableByScopeParams) { | ||
return this.client.call({ | ||
path: '/v1/chain/get_table_by_scope', | ||
params, | ||
responseType: GetTableByScopeResponse, | ||
}) | ||
} | ||
} |
@@ -373,1 +373,25 @@ import { | ||
} | ||
export interface GetTableByScopeParams { | ||
code: NameType | ||
table?: NameType | ||
lower_bound?: string | ||
upper_bound?: string | ||
limit?: UInt32Type | ||
reverse?: boolean | ||
} | ||
@Struct.type('get_table_by_scope_response_row') | ||
export class GetTableByScopeResponseRow extends Struct { | ||
@Struct.field('name') code!: Name | ||
@Struct.field('name') scope!: Name | ||
@Struct.field('name') table!: Name | ||
@Struct.field('name') payer!: Name | ||
@Struct.field('uint32') count!: UInt32 | ||
} | ||
@Struct.type('get_table_by_scope_response') | ||
export class GetTableByScopeResponse extends Struct { | ||
@Struct.field(GetTableByScopeResponseRow, {array: true}) rows!: GetTableByScopeResponseRow[] | ||
@Struct.field('string') more!: string | ||
} |
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
752588
15015