Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cybercongress/cw-cybergift
Contracts for cyberGift execution
https://github.com/cybercongress/cw-cybergift
airdrop contracts cosmos cosmwasm cyber ethereum osmosis web3
Last synced: about 1 month ago
JSON representation
Contracts for cyberGift execution
- Host: GitHub
- URL: https://github.com/cybercongress/cw-cybergift
- Owner: cybercongress
- License: other
- Created: 2021-12-15T05:59:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-04T11:31:17.000Z (9 months ago)
- Last Synced: 2024-08-01T13:36:04.954Z (4 months ago)
- Topics: airdrop, contracts, cosmos, cosmwasm, cyber, ethereum, osmosis, web3
- Language: Rust
- Homepage:
- Size: 4.34 MB
- Stars: 13
- Watchers: 8
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ccamel - cybercongress/cw-cybergift - Contracts for cyberGift execution (Rust)
README
# cyberGift Contracts
```
docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/workspace-optimizer:0.14.0
```## Contracts
### Gift Contract
[cw-cyber-airdrop](contracts/cw-cyber-airdrop)
### Passport Contract
[cw-cyber-passport](contracts/cw-cyber-passport)
### Subgraph Contract
[cw-cyber-subgraph](contracts/cw-cyber-subgraph)
### Treasury Contract
[cw1-subkeys](https://github.com/CosmWasm/cw-plus/tree/main/contracts/cw1-subkeys)
## Gift Execution
![Gift Execution](img/gift_execution.png)
## Contracts Initial Data and Functions
![Contracts Initial Data and Functions](img/contract_initiation_and_functions.png)
## User Story
### Create Passport
![Create Passport](img/create_passport.png)
### Prove Address
![Prove Address](img/prove_address.png)
### Claim Gift
![Claim Gift](img/claim_gift.png)
### Release Gift
![Release Gift](img/release_gift.png)
## Load testing
[Jupyter notebook](testdata/generate_test_data/gift_and_passport_contracts_load_testing.ipynb)## Bounty
cyberGift contracts have treasury which works as a security proxy for claiming process. cyberCongress will gradually replenish the treasury to minimize the risks of a hack. All BOOT on a contract balance is subject to bounty. If you find a way to get BOOT from contracts - do, but please report on the vulnerability.