gfx-solana-utils

Crates.iogfx-solana-utils
lib.rsgfx-solana-utils
version0.3.1
sourcesrc
created_at2021-11-16 20:50:52.045824
updated_at2021-12-22 09:34:40.810562
descriptionUtility functions/traits for calling Solana smart contracts.
homepage
repositoryhttps://github.com/GooseFX1/gfx-solana-utils
max_upload_size
id482981
size15,412
owners (github:mcx-lang:owners)

documentation

README

gfx-solana-utils build

This repo contains some utility functions/traits for calling Solana smart contracts.

Currently, it contains the following mods:

  • anchor_extensions: AnchorClientErrorExt for easily extracting the error code and converting it to Anchor error, GetProgramAccounts for the missing get_program_accounts RPC method on Anchor.

  • decimals: DecimalApply for dealing with SPL token decimal.

  • testing: A bunch of functions for integration testing the Solana contract. e.g. create a throw-away account, create a mint etc.

Commit count: 29

cargo fmt