https://github.com/flexyledger/sei-wrapper
SEI Wrapper Contract
https://github.com/flexyledger/sei-wrapper
Last synced: about 2 months ago
JSON representation
SEI Wrapper Contract
- Host: GitHub
- URL: https://github.com/flexyledger/sei-wrapper
- Owner: flexyledger
- Created: 2023-09-25T21:22:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-28T15:36:55.000Z (9 months ago)
- Last Synced: 2024-08-28T17:19:10.358Z (9 months ago)
- Language: Rust
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SEI Wrapper Contract
This is an example CosmWasm smart contract that wraps and unwraps arbitrary CW20 tokens into custom SEI tokens.
# 🔭 Overview
This contract allows wrapping any CW20 token by depositing it into the contract. When tokens are wrapped, a proportional amount of custom SEI tokens are minted to the user's wallet.The user can also unwrap their SEI tokens back into the original CW20 tokens.
## ✍️ Contract Actions
The main actions the contract supports are:* init(): Initializes the contract with the SEI token address
* wrap(): Transfers in CW20 tokens and mints SEI tokens
* unwrap(): Burns SEI tokens and transfers out CW20 tokens
* balances(): Views current wrapped balances## 💫 Running Tests
The contract includes an integration test suite that can be run with:* cargo test
This will execute wraps and unwraps using mock CW20 and SEI contracts and verify the expected token amounts.
## 🏆 Future Work
Some potential ways to extend the contract:* Support unwrapping to a different CW20 token
* Implement governance and admin controls
* Add helper views for total wrapped supply## 💻 Resources
* CosmWasm Docs
* CW20 Spec#### [Back to Table of Content](#--overview)
---
![]()
![]()
![]()