https://github.com/ayushagarwal27/aptos_pokemon_vault
Full Stack dApp deployed on Aptos testnet using Move language | React | TailwindCSS | TS
https://github.com/ayushagarwal27/aptos_pokemon_vault
aptos aptos-move aptos-sdk dapp move
Last synced: about 2 months ago
JSON representation
Full Stack dApp deployed on Aptos testnet using Move language | React | TailwindCSS | TS
- Host: GitHub
- URL: https://github.com/ayushagarwal27/aptos_pokemon_vault
- Owner: ayushagarwal27
- License: apache-2.0
- Created: 2024-08-13T13:37:09.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-09-13T10:40:33.000Z (8 months ago)
- Last Synced: 2025-02-01T06:15:18.876Z (4 months ago)
- Topics: aptos, aptos-move, aptos-sdk, dapp, move
- Language: TypeScript
- Homepage: https://aptos-pokemon-collection.vercel.app
- Size: 12.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# APTOS Pokemon Collection APP
Users can login via wallet, for creating pokemon collection, provide name for their collection
Add pokemon to their PokemonCollection resource.
- PokeVault dApp [link](https://aptos-pokemon-collection.vercel.app/)
- Contract deployed on testnet: [link](https://explorer.aptoslabs.com/account/0x1801bcc65720aef077114d769829df91a5305ac737cc9e0d4cee1b441e23e8e2/modules/code/my_module?network=testnet)
## Smart Contract
- Deployed on Testnet
- Move language
- Struct and entry function for global storage and manipulating the resource
- View function for getting collection data
- Test for checking different scenarios```move
/*
Struct for adding rersource to user collection
contains a name - collection name
pokemon count
*/
struct PokemonCollection has key {
name: String,
pikachu: u64,
squirtle: u64,....}/*
For initializing pokemon collection
Contains check for returning error if already intilzised
*/
public entry fun initialize_pokemon_collection(account: &signer, name: String){}/*
individual entry functions for updating Pokemon code, throws Error uf not initialized
*/
public entry fun add_pikachu(acc: &signer) acquires PokemonCollection {}/*
View function for getting PokemonCollection resource of address
*/
#[view]
public fun get_pokemon_collection(addr: address): (String, u64, u64, u64,u64,u64,u64,u64,u64,u64,u64) acquires PokemonCollection{}/*
Test case for testing over all flow
*/
#[test(acc = @0x1234)]
public entry fun test_happy_case(acc: &signer) acquires PokemonCollection{}
```## Frontend
- React
- Tailwind for UI
- Aptos TS SDK for calling smart contract functions
- Wallet adapter for connecting to wallet
- Toast Notification
- Loading State## Social Link
- [Twitter](https://x.com/ayushagarwal027)
- [Portfolio](https://ayush-website.netlify.app/)`Contract address : 0x1801bcc65720aef077114d769829df91a5305ac737cc9e0d4cee1b441e23e8e2`