-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented get_table_by_scope #10
Conversation
src/api/v1/types.ts
Outdated
@@ -370,3 +370,28 @@ export interface GetTableRowsResponse<Index = TableIndexType, Row = any> { | |||
ram_payers?: Name[] | |||
next_key?: Index | |||
} | |||
|
|||
export interface GetTableByScopeParams<Index = TableIndexType | string> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no index type or payer:
struct get_table_by_scope_params {
name code; // mandatory
name table; // optional, act as filter
string lower_bound; // lower bound of scope, optional
string upper_bound; // upper bound of scope, optional
uint32_t limit = 10;
optional<bool> reverse;
};
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol, then I shouldn't be following the official documentation:
src/api/v1/types.ts
Outdated
@Struct.type('get_table_by_scope_response') | ||
export class GetTableByScopeResponse extends Struct { | ||
@Struct.field(GetTableByScopeResponseRow, {array: true}) rows!: GetTableByScopeResponseRow[] | ||
@Struct.field('name') more!: Name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more
is a string
struct get_table_by_scope_result {
vector<get_table_by_scope_result_row> rows;
string more; ///< fill lower_bound with this value to fetch more rows
};
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is returning a name value, as in an account. Shouldn't we type that as a name?
Any reason not to merge this? |
I had the changes Johan requested, but they weren't pushed up until now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Published as |
No description provided.