This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Add final rewards+final used fee #75
Open
johnnyji-dev
wants to merge
14
commits into
AstarNetwork:main
Choose a base branch
from
johnnyji-dev:add_FinalRewards+FinalUsedFee
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
83ba6ec
add some api(claimedReward, UsedFee).
johnnyji-dev af8b38f
update claimedReward & usedFee param (address to extrinsicHash)
johnnyji-dev 77dc1ce
update claimedReward(Claim_staker_rewards & Claim_bonus_reward)
johnnyji-dev 3f0e8e5
fix: version change 0.2.8 => 0.3.0 on package.json
johnnyji-dev 1c6b8db
Merge branch 'main' into add_FinalRewards+FinalUsedFee
johnnyji-dev b44464d
fix : yarn lint - modification
johnnyji-dev 8b229d5
fix : remove toHuman() & commaStrToBigInt()
johnnyji-dev 6a75c9a
fix : add DAppReward on claimedReward & update README.md
johnnyji-dev 239e162
fix : update UsedFee() to getUsedFee()
johnnyji-dev e0b1ce0
fix : update UsedFee() to getUsedFee() on README.md
johnnyji-dev 77c3d69
fix : Update claimedReward to getClaimedReward
johnnyji-dev 29a523f
fix : update build-error(yarn polkadot-exec-tsc --build tsconfig.buil…
johnnyji-dev 0c90c28
fix : apply <Vec<EventRecord>> on system.events & delete any
johnnyji-dev 49820fa
fix : delete the unusing comments
johnnyji-dev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Please don't use
any
Applicable to multiple locations within the codehttps://www.typescriptlang.org/docs/handbook/declaration-files/do-s-and-don-ts.html
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.
@bobo-k2
BTW, Property 'map' does not exist on type 'Codec'.
The type of 'allRecords' is Codec.
I tried to iterate the data by using 'filter' or 'map'. But that make build error(yarn polkadot-exec-tsc --build tsconfig.build.json).
How can I handle this? Can you suggest any reference docs?
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.
Codec is a base type from which all polkadot.js types are inherited.
System.events
are of typeVec<FrameSystemEventRecord>
so you can change your line toThere 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.
When '<Vec>' applied, can not import the member like below error message.
packages/sdk-core/src/modules/dapp-staking/pending-rewards/index.ts:7:10 - error TS2305: Module '"@polkadot/types/lookup"' has no exported member 'FrameSystemEventRecord'.
Alternative, I used the 'EventRecord' and got properties(actualFee, amount) by index.