-
Notifications
You must be signed in to change notification settings - Fork 2
feat: added scripts, more funcs, improvements, ts-documentation #7
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
Conversation
28fd527 to
a416d20
Compare
a416d20 to
d4d1ab8
Compare
9202f32 to
c1e02be
Compare
b82458f to
2c942ba
Compare
19694f7 to
31f2a61
Compare
d4dc9fd to
74312cf
Compare
74312cf to
025f6ab
Compare
| // FIXME | ||
| // public async configureAssets(config: Array<RewardsConfigInput>): Promise<CommittedTransactionResponse> { | ||
| // return this.sendTxAndAwaitResponse( | ||
| // this.peripheryContract.ConfigureAssets, | ||
| // [MoveVector.], | ||
| // ); | ||
| // } |
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.
Do we need this method @mpsc0x
| // FIXME | ||
| // public async configureAssets( | ||
| // config: Array<RewardsConfigInput>, | ||
| // ): Promise<CommittedTransactionResponse> { | ||
| // return this.sendTxAndAwaitResponse(this.peripheryContract.ConfigureAssets, [ | ||
| // config, | ||
| // ]); | ||
| // } | ||
|
|
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.
same with this
| return AccountAddress.fromString(resp as string); | ||
| } | ||
|
|
||
| // FIX ME |
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.
and here
| // public async lookupRewardsData(asset: AccountAddress, reward: AccountAddress, rewardsControllerAddress: AccountAddress): Promise<{assetData: AssetData, rewardData: RewardData}> { | ||
| // const resp = await this.callViewMethod( | ||
| // this.peripheryContract.LookupAssetData, | ||
| // [asset, reward, rewardsControllerAddress], | ||
| // ); | ||
| // const assetDataRaw = resp.at(0) as any; | ||
| // const rewardDataRaw = resp.at(1) as any; | ||
| // const assetData = { | ||
| // rewards: AccountAddress.fromString(assetDataRaw.rewards_admin), | ||
| // availableRewards: AccountAddress.fromString(assetDataRaw.incentives_controller), | ||
| // availableRewardsCount: AccountAddress.fromString(assetDataRaw.incentives_controller), | ||
| // decimals: assetDataRaw.decimals as number, | ||
| // } as AssetData; | ||
|
|
||
| // const rewardData = { | ||
| // index: AccountAddress.fromString(rewardDataRaw.index), | ||
| // emissionPerSecond: AccountAddress.fromString(rewardDataRaw.emission_per_second), | ||
| // distributionEnd: , | ||
| // lastUpdateTimestamp: , | ||
| // usersData: , | ||
| // } as RewardData; | ||
|
|
||
| // return { | ||
| // assetData, | ||
| // rewardData | ||
| // } | ||
| // } |
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.
do we want to remove this? or should we leave a note
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.
this is still WIP will finish it soon
| * @param {string} user - The address of the user whose reserve data is being retrieved. | ||
| * @returns {Promise<UserReservesData>} A promise that resolves to an object containing the user's reserves data and eMode category ID. | ||
| */ | ||
| export class UiPoolDataProviderClient extends AptosContractWrapperBaseClass { |
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.
Would be great to document these methods @EmmanuellNorbertTulbure
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.
Once I finish these, will add annotations!
920a2b7 to
faa0eec
Compare
faa0eec to
a2e051e
Compare
Uh oh!
There was an error while loading. Please reload this page.