Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/warp-contracts/warp-wasm-templates
Templates for WASM smart contracts (AS, Rust, Go) compatible with SmartWeave Protocol
https://github.com/warp-contracts/warp-wasm-templates
Last synced: 3 months ago
JSON representation
Templates for WASM smart contracts (AS, Rust, Go) compatible with SmartWeave Protocol
- Host: GitHub
- URL: https://github.com/warp-contracts/warp-wasm-templates
- Owner: warp-contracts
- Created: 2022-03-16T13:22:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-16T08:02:40.000Z (over 1 year ago)
- Last Synced: 2024-05-19T02:08:33.986Z (6 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.04 MB
- Stars: 40
- Watchers: 2
- Forks: 6
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-arweave - redstone-wasm-templates - Wasm templates (AssemblyScript, Rust, Go) for SmartWeave contracts. (Tools ⚙️)
README
# Warp contracts - WASM templates
This repo contains Warp WASM contracts templates in:
- [AssemblyScript](assemblyscript/README.md)
- [Rust](rust/pst/README.md)
- [Go](go/README.md)It allows to quickly jump into contract development - each template contains an example PST contract,
deployment scripts (on localhost, testnet and mainnet), build scripts and example tests - all backed-up by the [Warp SDK](https://github.com/warp-contracts/warp).| Feature | JS | WASM - AS | WASM - Rust | WASM - Go |
| ---------------------- | ----------------------------------------- | --------- | ----------- | --------- |
| Sandboxing | [vm2](https://github.com/patriksimek/vm2) | ✅ | ✅ | ✅ |
| Foreign contract read | ✅ | R&D | ✅ | ✅ |
| Foreign contract view | ✅ | R&D | ✅ | Soon |
| Foreign contract write | ✅ | R&D | ✅ | Soon |
| Arweave.utils | ✅ | Soon | Soon | Soon |
| Evolve | ✅ | ✅ | ✅ | ✅ |
| Logging from contract | ✅ | ✅ | ✅ | ✅ |
| Transaction data (1) | ✅ | ✅ | ✅ | ✅ |
| Block data (2) | ✅ | ✅ | ✅ | ✅ |
| Contract data (3) | ✅ | ✅ | ✅ | ✅ |
| Gas metering | 🚫 | ✅ | ✅ | ✅ |Legend:
- `R&D` - we need to make some research and development before implementing the feature
- `Soon` - the technology is already there, we just need to find some time to add the missing features :-)
- `(1)` - access current transaction data (id, owner, etc.)
- `(2)` - access current block data (indep_hash, height, timestamp)
- `(3)` - access current contract data (id, owner)