Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

history tab#70

Open
aleksandrjet wants to merge 9 commits into
catchain:master from
aleksandrjet:history
Open

history tab #70
aleksandrjet wants to merge 9 commits into
catchain:master from
aleksandrjet:history

Conversation

@aleksandrjet

@aleksandrjet aleksandrjet commented Aug 30, 2023

Copy link
Copy Markdown

No description provided.

this.isLoading = true;

const items = await getItemHistory(this.address, options).then((res) => {
return res.slice(options.offset, options.offset + this.limit)

@aleksandrjet aleksandrjet Aug 30, 2023

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

часть с .then нужна только для мока

await this.loadData({ limit: this.limit,offset: 0 })

this.lastActivity = this.items.length > 0
? new Date().getTime() //FIX_ME this.items[0]?.timestamp

@aleksandrjet aleksandrjet Aug 30, 2023

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

здесь я не понял, откуда брать timestamp для этого

await this.loadData({
limit: this.limit,
offset: this.items.length,
end_utime: this.lastActivity, // FIX_ME

@aleksandrjet aleksandrjet Aug 30, 2023

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не уверен, нужно ли передавать end_utime в ручку с получением транзакций

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /