Skip to content

Conversation

@mpsc0x
Copy link
Collaborator

@mpsc0x mpsc0x commented Feb 18, 2025

  • - added missing methods like balanceOf and totalSupply
  • - renamed aptosConfigurator
  • - added cli methods for fetching balances with arguments etc.
  • - added ts-documentation and gh-pages
  • - fixed all pipelines and build process
  • - added periphery methods

@mpsc0x mpsc0x self-assigned this Feb 18, 2025
@mpsc0x mpsc0x force-pushed the fixes/evgeni/various branch 2 times, most recently from 28fd527 to a416d20 Compare February 18, 2025 20:38
@mpsc0x mpsc0x force-pushed the fixes/evgeni/various branch from a416d20 to d4d1ab8 Compare February 21, 2025 09:45
@mpsc0x mpsc0x changed the title feat: added scripts, more funcs, improvements feat: added scripts, more funcs, improvements, ts-documentation Feb 28, 2025
@mpsc0x mpsc0x force-pushed the fixes/evgeni/various branch 22 times, most recently from 9202f32 to c1e02be Compare March 1, 2025 11:03
@mpsc0x mpsc0x force-pushed the fixes/evgeni/various branch 3 times, most recently from b82458f to 2c942ba Compare March 3, 2025 09:30
@mpsc0x mpsc0x force-pushed the fixes/evgeni/various branch 2 times, most recently from 19694f7 to 31f2a61 Compare March 3, 2025 12:11
@mpsc0x mpsc0x force-pushed the fixes/evgeni/various branch 2 times, most recently from d4dc9fd to 74312cf Compare March 13, 2025 14:46
@mpsc0x mpsc0x force-pushed the fixes/evgeni/various branch from 74312cf to 025f6ab Compare March 13, 2025 14:49
Comment on lines +61 to +67
// FIXME
// public async configureAssets(config: Array<RewardsConfigInput>): Promise<CommittedTransactionResponse> {
// return this.sendTxAndAwaitResponse(
// this.peripheryContract.ConfigureAssets,
// [MoveVector.],
// );
// }
Copy link

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

Comment on lines +113 to +121
// FIXME
// public async configureAssets(
// config: Array<RewardsConfigInput>,
// ): Promise<CommittedTransactionResponse> {
// return this.sendTxAndAwaitResponse(this.peripheryContract.ConfigureAssets, [
// config,
// ]);
// }

Copy link

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
Copy link

Choose a reason for hiding this comment

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

and here

Comment on lines +203 to +229
// 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
// }
// }
Copy link

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

Copy link
Collaborator Author

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 {
Copy link

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

Copy link
Collaborator Author

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!

@mpsc0x mpsc0x force-pushed the fixes/evgeni/various branch from 920a2b7 to faa0eec Compare March 13, 2025 15:43
@mpsc0x mpsc0x force-pushed the fixes/evgeni/various branch from faa0eec to a2e051e Compare March 13, 2025 15:47
@mpsc0x mpsc0x merged commit f8a1c93 into main Mar 13, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants