https://github.com/jasmcaus/calabi-stellar
https://github.com/jasmcaus/calabi-stellar
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jasmcaus/calabi-stellar
- Owner: jasmcaus
- Created: 2023-09-20T03:00:47.000Z (over 1 year ago)
- Default Branch: dev
- Last Pushed: 2023-10-22T07:40:37.000Z (over 1 year ago)
- Last Synced: 2025-01-08T12:45:50.802Z (5 months ago)
- Language: TypeScript
- Size: 17.8 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Delta
# Soroban Stuff
Public key: `GAIM4S6HDNGDW4R7452E3SGOSZ3UOAXXGHXEILCDRS4U7KZHRQAMJVOZ`
```
Local deployments:
Asset: CC7Q7J4MJDEAXNSIWKGZZLTGM5J7SQ23V4LGLU5WOWVV4B7HYM7CGWKWFuturenet deployments:
Contract: CDXJNGQNV66Q2DXAGBUSGWGFV6YKZU4EGDY4ZBRZHFTKMPMMQHTNWWFE
``````bash
sudo apt-get update && sudo apt-get install ffmpeg libsm6 libxext6 -yrustup target add wasm32-unknown-unknown
cargo install --locked --version 20.0.0-rc2 soroban-cli --features opt
echo "source <(soroban completion --shell bash)" >> ~/.bashrccargo new --lib contracts
soroban config network add testnet --rpc-url https://soroban-testnet.stellar.org:443 --network-passphrase "Test SDF Network ; September 2015"
soroban config identity generate alice# Build
soroban contract build && soroban contract optimize --wasm target/wasm32-unknown-unknown/release/contracts.wasm# Deploy
soroban contract deploy --wasm target/wasm32-unknown-unknown/release/contracts.optimized.wasm --source alice --network testnet > ../contractId# Invoke on Local testnet
soroban contract invoke --wasm target/wasm32-unknown-unknown/release/contracts.wasm --id 1 -- hello --to friend# Invoke on Futurenet
soroban contract invoke --id $(cat ../.contractId) --source alice --network testnet -- hello --to RPC---
# Frontend
cargo install_soroban
chmod +x sorobansoroban contract bindings typescript --network testnet --contract-id $(cat contracts/.soroban/hello-id) --output-dir amorphous-soroban-client
``````
Deployments:
- Token: CCA4MRQO4N6RYK7IJIOMYLREA3AJNXTRJTVT2ETML2MGDGTU3322OROK```
```md
Token deployments:
make optimize
soroban contract deploy --wasm contracts/target/wasm32-unknown-unknown/release/token.optimized.wasm --source alice# Initialize
soroban contract invoke --wasm contracts/target/wasm32-unknown-unknown/release/token.wasm --id 1 -- initialize --admin GAIM4S6HDNGDW4R7452E3SGOSZ3UOAXXGHXEILCDRS4U7KZHRQAMJVOZ --decimal 6 --name "USDT" --symbol "USDT"# Mint
soroban contract invoke --wasm contracts/target/wasm32-unknown-unknown/release/token.wasm --id 2 -- mint --to GBLPQPPE7B5DFNNR5FKIVIXJCRZUEBNRHMNHCLZZYNZV7DP6WZUS2LED --amount "5"
```# Astro Starter Kit: Basics
```sh
npm create astro@latest -- --template basics
```[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
[](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics)
[](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json)> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun!

## 🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
```text
/
├── public/
│ └── favicon.svg
├── src/
│ ├── components/
│ │ └── Card.astro
│ ├── layouts/
│ │ └── Layout.astro
│ └── pages/
│ └── index.astro
└── package.json
```Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the `public/` directory.
## 🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |## 👀 Want to learn more?
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).