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 new api getFungibleAssetMetadata #73

Merged
merged 1 commit into from
Oct 17, 2023
Merged

Conversation

0xmigo
Copy link
Contributor

@0xmigo 0xmigo commented Oct 17, 2023

Description

Add the new query getFungibleAssetMetadata.

Note: This time I am modifying on how we construct the function in /internal Please take a look

Test Plan

pnpm fmt
pnpm lint
pnpm test

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 requested a review from a team October 17, 2023 01:14
@0xmigo 0xmigo marked this pull request as ready for review October 17, 2023 01:14
@0xmigo 0xmigo force-pushed the jin/getFungibleAssetMetadata branch from ff1b95f to 2402520 Compare October 17, 2023 01:18
@@ -106,6 +111,7 @@ applyMixin(Aptos, Coin, "coin");
applyMixin(Aptos, Collection, "collection");
applyMixin(Aptos, Event, "event");
applyMixin(Aptos, Faucet, "faucet");
applyMixin(Aptos, FungibleAsset, "fungible_asset");
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 avoid snake case and have everything use camelcase. I'm going to change the rest but it ends up with a lot of conflicts

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm wait, thats the class name, I think it make sense for snake case? Similar to TransactionSubmission on line 109

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
src/api/fungible_asset.ts Outdated Show resolved Hide resolved
@0xmigo 0xmigo force-pushed the jin/getFungibleAssetMetadata branch from 2402520 to 6ab7b88 Compare October 17, 2023 18:37
@0xmigo 0xmigo force-pushed the jin/getFungibleAssetMetadata branch from 6ab7b88 to 7078921 Compare October 17, 2023 19:39
test("it should fetch fungible asset metadata", async () => {
const config = new AptosConfig({ network: Network.LOCAL });
const aptos = new Aptos(config);
const APT_COIN_TYPE = "0x1::aptos_coin::AptosCoin";
Copy link
Contributor

Choose a reason for hiding this comment

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

i assume you'll handle this somewhere in pr stack

@0xmigo 0xmigo merged commit e32ac43 into main Oct 17, 2023
5 checks passed
@0xmigo 0xmigo deleted the jin/getFungibleAssetMetadata branch October 17, 2023 20:31
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