Skip to content
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

add api query getFungibleAssetActivities #78

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

0xmigo
Copy link
Contributor

@0xmigo 0xmigo commented Oct 17, 2023

Description

Add getFungibleAssetActivities api query

Test Plan

pnpm test
pnpm fmt

Related Links

Copy link
Contributor Author

0xmigo commented Oct 17, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@0xmigo 0xmigo force-pushed the jin/getFungibleAssetActivities branch from a89c042 to bea632b Compare October 17, 2023 06:12
tests/e2e/api/fungible_asset.test.ts Outdated Show resolved Hide resolved
src/api/fungible_asset.ts Outdated Show resolved Hide resolved
src/internal/fungible_asset.ts Outdated Show resolved Hide resolved
src/internal/fungible_asset.ts Outdated Show resolved Hide resolved
@@ -19,4 +19,23 @@ describe("FungibleAsset", () => {
expect(data[0]).toHaveProperty("asset_type");
expect(data[0].asset_type).toEqual(APT_COIN_TYPE);
});

test("it should fetch fungible asset activities with correct number and asset type ", async () => {
const config = new AptosConfig({ network: Network.LOCAL });
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's declare all those repated variables (config, aptos, APT_COIN_TYPE, etc) at the top of the file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call. I will address this part in the next PR on the stack, so there won't be conflict.

src/api/fungible_asset.ts Outdated Show resolved Hide resolved
src/api/fungible_asset.ts Outdated Show resolved Hide resolved
src/api/fungible_asset.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@0xmaayan 0xmaayan left a comment

Choose a reason for hiding this comment

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

left comments

@0xmigo 0xmigo force-pushed the jin/getFungibleAssetMetadata branch from 2402520 to 6ab7b88 Compare October 17, 2023 18:37
@0xmigo 0xmigo force-pushed the jin/getFungibleAssetActivities branch 2 times, most recently from 5efb885 to dcb4c06 Compare October 17, 2023 19:07
@0xmigo
Copy link
Contributor Author

0xmigo commented Oct 17, 2023

Update - Fixed most part from comments. Will address the repeated use of same const variable in the next(last) PR in the stack

@0xmigo 0xmigo requested a review from 0xmaayan October 17, 2023 19:11
@0xmigo 0xmigo force-pushed the jin/getFungibleAssetMetadata branch from 6ab7b88 to 7078921 Compare October 17, 2023 19:39
@0xmigo 0xmigo force-pushed the jin/getFungibleAssetActivities branch from dcb4c06 to 0aa86bf Compare October 17, 2023 19:40
Base automatically changed from jin/getFungibleAssetMetadata to main October 17, 2023 20:31
@0xmigo 0xmigo force-pushed the jin/getFungibleAssetActivities branch from 0aa86bf to 8dee394 Compare October 17, 2023 20:34
@0xmigo 0xmigo enabled auto-merge (squash) October 17, 2023 20:35
@0xmigo 0xmigo force-pushed the jin/getFungibleAssetActivities branch from 8dee394 to deff2e2 Compare October 17, 2023 20:44
@0xmigo 0xmigo dismissed 0xmaayan’s stale review October 17, 2023 21:08

Fixed the issue from comments

@0xmigo 0xmigo merged commit ddac7d6 into main Oct 17, 2023
@0xmigo 0xmigo deleted the jin/getFungibleAssetActivities branch October 17, 2023 21:08
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.

3 participants