Skip to content

basic implementation of fungible asset client - #7

Open
fishronsage wants to merge 1 commit into
aptos-labs:mainfrom
ALCOVE-LAB:fa
Open

basic implementation of fungible asset client#7
fishronsage wants to merge 1 commit into
aptos-labs:mainfrom
ALCOVE-LAB:fa

Conversation

@fishronsage

@fishronsage fishronsage commented May 7, 2024

Copy link
Copy Markdown
Contributor

Description

This PR implements a basic Fungible Asset Client for Aptos FA

@fishronsage

Copy link
Copy Markdown
Contributor Author

Hi, @davidiw, can you review this PR?

@alex4506

Copy link
Copy Markdown
Contributor

cc @gregnazario

@alex4506
alex4506 requested review from a team, davidiw and gregnazario as code owners June 3, 2024 21:10
@davidiw

davidiw commented Jun 3, 2024

Copy link
Copy Markdown
Contributor

how did I miss this??

@davidiw davidiw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this might suffice for a trivial FAC, but I kinda wanted to do the following:

what do you think?

@fishronsage
fishronsage force-pushed the fa branch 2 times, most recently from 57e5bd4 to 2a1a5c8 Compare June 18, 2024 08:20
@fishronsage
fishronsage requested a review from davidiw June 18, 2024 08:22
gregnazario added a commit that referenced this pull request May 28, 2026
…rror

- type_tag.py: TypeTag.__eq__ now compares primitives by variant only — two
  TypeTags with the same primitive variant (e.g. BoolTag(True) vs BoolTag(False))
  represent the same Move type and compare equal. VectorTag/StructTag still compare
  full value equality. Removes inconsistency introduced by the BCS fix (PR review #6)
  where deserialized primitives always receive placeholder values.

- type_tag.py: Remove @lru_cache from StructTag.from_str. StructTag is mutable
  (contains type_args: list[TypeTag]) so caching and returning the same instance
  allowed callers to corrupt the cache via mutation. Drop the unused lru_cache import.

- mnemonic.py: Wrap int(parts[N]) calls in try/except ValueError and re-raise as
  InvalidMnemonicError with a "Non-numeric segment" message. Previously a path like
  m/44'/637'/x'/0'/0' raised ValueError instead of the function's documented error type.
  Applied to both derive_ed25519_private_key and derive_secp256k1_private_key.

- transfer_coin.py: Set last_error = None when the indexer returns a successful
  non-empty response before break. A transient early IndexerError no longer causes
  the soft-skip branch to fire when a later iteration succeeds.
gregnazario added a commit that referenced this pull request Jun 12, 2026
…rror

- type_tag.py: TypeTag.__eq__ now compares primitives by variant only — two
  TypeTags with the same primitive variant (e.g. BoolTag(True) vs BoolTag(False))
  represent the same Move type and compare equal. VectorTag/StructTag still compare
  full value equality. Removes inconsistency introduced by the BCS fix (PR review #6)
  where deserialized primitives always receive placeholder values.

- type_tag.py: Remove @lru_cache from StructTag.from_str. StructTag is mutable
  (contains type_args: list[TypeTag]) so caching and returning the same instance
  allowed callers to corrupt the cache via mutation. Drop the unused lru_cache import.

- mnemonic.py: Wrap int(parts[N]) calls in try/except ValueError and re-raise as
  InvalidMnemonicError with a "Non-numeric segment" message. Previously a path like
  m/44'/637'/x'/0'/0' raised ValueError instead of the function's documented error type.
  Applied to both derive_ed25519_private_key and derive_secp256k1_private_key.

- transfer_coin.py: Set last_error = None when the indexer returns a successful
  non-empty response before break. A transient early IndexerError no longer causes
  the soft-skip branch to fire when a later iteration succeeds.
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