balloonbox-inc / ecoverse-dao Goto Github PK
View Code? Open in Web Editor NEWA DAO allowing Ecoverse users to vote on carbon-neutral FSC-certified projects. Powered by ECOV tokens.
License: Apache License 2.0
A DAO allowing Ecoverse users to vote on carbon-neutral FSC-certified projects. Powered by ECOV tokens.
License: Apache License 2.0
Mint a batch of ECOV tokens (which are SPL-tokens) in JavaScript using Solana's web3.js
mint
, freeze
, and update
authorities are set authomatically by the thirdweb SDK. View them on Solscan.ioSend an SPL-token to a user that doesn't own an ATA account for that token yet.
get_associated_token_account()
Assume George is an Ecoverse user and the recipient of ECOV tokens
spl_associated_token_account::instruction ::create_associated_token_account_idempotent()
)Familiarize with the Trdelník Rust crate
Trdelník is a currently the only existing framework to perform unit tests on Rust smart contracts that got developed via Anchor. Sadly, examples are sparse, docs is limited, and tests still are NOT running.
I dumped Trdelník, moved on, and decided to write either native Rust tests or TypeScript client tests instead.
Docs for ECOSWAP contract
.env
varsDocs for ECOV client
Develop a contract to mint and exchange ECOV utility tokens for SOL.
For the longest time, we were unable to derive a PDA. Fix the derivation logic to correctly derive a PDA.
Pubkey::create_program_address()?
PublicKey.findProgramAddress()
Test ECOV smart contract via Trdelník Rust unit tests
Transfer an spl-token (ECOV) via a unified Rust program which orchestrates both the transfer of SOL & the transfer of ECOV concurrently.
We want to transfer (using Program instructions) custom SPL token (namely ECOV) from BBox's liquidity pool account to an Ecoverse user's wallet?
ECOV are a type of spl-token. Transferring programmatically spl-tokens requires the ECOV host wallet address to be owned by a program-derived address (PDA), derived from the program that minted ECOV in the first place. Hence, let's:
Build, run, pass Trdelník Rust unit tests, validating the logic of the DAO contract
Migrate, delete, or cleanup outdated custom-written Solana Programs which won't be invoked by the client side of the Ecoverse dapp. Some smart contract were developed as a one-off set up of Ecoverse or a s a learning practice.
Prune all Ecoverse Solana Programs that won't make their way to production and launch.
A copy of given Programs will remain available for lookup at this Git repo.
Build a standalone Rust program with corresponding TypeScript client to transfer spl-tokens from a sender's Associated Token Account to a receiver's Associated Token Account
createKeypairfromFile("MY_PATH")
Keypair.fromSecretKey(bs58.decode("MY_SECRETKEY))
Create a ruleset for ecoverse users to cast votes and appoint the next project/initiative/dev priority to be financed via the ecoverse DAO. Eventually, we ended up using Solana's Realms.today to create a DAO. Realm is a UI for Solana DAO. Other options Solana offers for DAOs are squads.so, nation.io. All of these UIs run on the same Solana native program, called SPL-governance
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.