{"id":13511358,"url":"https://github.com/SiennaNetwork/SiennaNetwork","last_synced_at":"2025-03-30T20:33:07.602Z","repository":{"id":99729783,"uuid":"415340284","full_name":"SiennaNetwork/SiennaNetwork","owner":"SiennaNetwork","description":"Sienna Network Monorepo","archived":false,"fork":false,"pushed_at":"2022-04-29T18:34:43.000Z","size":28610,"stargazers_count":11,"open_issues_count":3,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-02T03:07:55.749Z","etag":null,"topics":["amm","blockchain","defi","lending","privacy"],"latest_commit_sha":null,"homepage":"https://app.sienna.network","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SiennaNetwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-10-09T15:00:39.000Z","updated_at":"2024-05-13T20:15:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"7d11fc1f-d649-4efb-91b2-42df4409ba62","html_url":"https://github.com/SiennaNetwork/SiennaNetwork","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiennaNetwork%2FSiennaNetwork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiennaNetwork%2FSiennaNetwork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiennaNetwork%2FSiennaNetwork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiennaNetwork%2FSiennaNetwork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SiennaNetwork","download_url":"https://codeload.github.com/SiennaNetwork/SiennaNetwork/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222581262,"owners_count":17006322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amm","blockchain","defi","lending","privacy"],"created_at":"2024-08-01T03:00:48.222Z","updated_at":"2024-11-01T13:30:52.197Z","avatar_url":"https://github.com/SiennaNetwork.png","language":"Rust","funding_links":[],"categories":["Dapps"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n[![](/logo.svg)](https://sienna.network/)\n\n[![Twitter Follow](https://img.shields.io/twitter/follow/sienna_network?style=plastic\u0026logo=twitter)](https://twitter.com/sienna_network)\n\n[![Coverage Status](https://coveralls.io/repos/github/SiennaNetwork/sienna/badge.svg?branch=dev\u0026t=s6kRdI)](https://coveralls.io/github/SiennaNetwork/sienna?branch=dev)\n[![Contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](CONTRIBUTING.md)\n[![Code style](https://img.shields.io/badge/code%20style-open--minded-%239013fe)](CONTRIBUTING.md#coding-style)\n\n\u003c/div\u003e\n\n## Mainnet addresses\n\nMOVED: See [**`receipts/secret-4/deployments/prod.yml`**](./receipts/secret-4/deployments/prod.yml)\nfor the up-to-date mainnet addresses of all production contracts.\n\n## Development quickstart\n\n```sh\ngit clone \u003cthis-repo\u003e\n```\n\n```sh\ngit submodule update --init --recursive\nnix-shell # optional, or bring your own Cargo and PNPM\npnpm i\npnpm build latest\nFADROMA_CHAIN=Scrt_1_2_Devnet pnpm deploy latest\n```\n\nThe smart contracts are written in Rust, targeting SecretNetwork's fork of `cosmwasm-std 0.10`\non `wasm32-unknown-unknown`.\n\nSee [**`package.json`**](package.json) and [**`scripts/`**](./scripts/)\nfor the available workflow commands.\n\nSee also:\n\n-   **[Git submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules)** documentation,\n    and most importantly the `git submodule update --init --recursive` command.\n-   The **[pnpm](https://pnpm.io/)** package manager, and most importantly\n    its [Workspaces feature](https://pnpm.io/workspaces).\n\n## Repository content\n\n* [**artifacts**](./artifacts) contains the compiled smart contracts (gitignored)\n  and their checksums (not gitignored).\n\n* [**contracts**](./contracts) contains the Rust source code of the smart contracts,\n  as well as the TypeScript code necessary to build them and interact with them.\n\n  * [📖 tge](./contracts/tge) - **Token Generation Event (TGE)**: mints and vests a new token\n    * **Contract:** [snip20-sienna](./contracts/tge/snip20-sienna) - Main SIENNA governance token\n    * **Contract:** [mgmt](./contracts/tge/mgmt) - Vesting management contract\n    * **Contract:** [rpt](./contracts/tge/rpt) - Remaining pool token splitter contract\n    * **Script:**   [deploy.ts](./contracts/tge/deploy.ts) - TGE deployment\n\n  * [📖 amm](./contracts/amm) - **Automated Market Maker (AMM)**: Sienna Swap and friends\n    * **Contract:** [amm-snip20](./contracts/amm/amm-snip20) - Vanilla SNIP20 token usable by the AMM\n    * **Contract:** [factory](./contracts/amm/factory) - Sienna Swap Factory\n    * **Contract:** [exchange](./contracts/amm/exchange) - Sienna Swap Exchange\n    * **Contract:** [lp-token](./contracts/amm/lp-token) - Sienna Swap LP Token\n    * **Contract:** [router](./contracts/amm/router) - Sienna Swap Router\n    * **Contract:** [📖 rewards](./contracts/amm/rewards) - Sienna Rewards\n    * **Contract:** [launchpad](./contracts/amm/launchpas) - Sienna Launchpad\n    * **Contract:** [ido](./contracts/amm/ido) - Sienna IDO\n    * **Script:**   [deploy.ts](./contracts/amm/deploy.ts) - AMM deployment\n    * **Script:**   [upgrade.ts](./contracts/amm/upgrade.ts) - AMM migrations\n\n  * [📖 lend](./contracts/lend) - **Sienna Lend** - Private Lending Protocol\n    * **Contract:** [market](./contracts/lend/market)\n    * **Contract:** [oracle](./contracts/lend/oracle)\n    * **Contract:** [overseer](./contracts/lend/overseer)\n    * **Contract:** [interest_model](./contracts/lend/interest_model)\n\n* [**deps**](./deps) contains submodules of our foundational frameworks.\n  * [fadroma](./deps/fadroma) is a Git submodule pointing to the top of\n    the [Fadroma deployment framework](https://github.com/hackbg/fadroma), which takes care of building and uploading the\n    contracts behind the scenes.\n\n* [**frontends**](./frontends) contains clients for the smart contracts, written in JS/TS.\n  Some of them are transcluded as git submodules pointing to other repos.\n  * [siennajs](./frontends/siennajs) - current client library\n  * [@sienna/api](./frontends/api) - upcoming mixed deploy/client library\n  * [dashboard](./frontends/dashboard) - rewards simulation dashboard\n  * [reward-pools-monitor](./frontends/reward-pools-monitor) - query status of reward pools\n  * [claim](./frontends/claim) - TGE claim frontend\n  * [vest](./frontends/vest) - TGE vest frontend\n\n* [**libraries**](./libraries) contains Rust libraries used by one or more smart contracts.\n  * [amm-shared](./libraries/amm-shared) defines the contract API of Sienna Swap.\n  * [lend-shared](./libraries/lend-shared) defines the contract API of Sienna Lend.\n\n* [**receipts**](./receipts) contains the responses to upload and init transactions\n  performed by the framework, grouped by chain ID. This lets you keep track of uploaded\n  contracts.\n  * [secret-4/deployments/prod](./receipts/secret-4/deployments/prod.yml) - current mainnet deployment\n  * [pulsar-2/deployments/.active](./receipts/pulsar-2/deployments/.active) - current testnet deployment\n\n* [**scripts**](./scripts) contains utility scripts pertaining to the whole repo.\n  * [Build.ts.md](./scripts/Build.ts.md) - build with `pnpm build`\n  * [Chain.ts.md](./scripts/Chain.ts.md)\n  * [Configure.ts.md](./scripts/Configure.ts.md)\n  * [Deploy.ts.md](./scripts/Deploy.ts.md) - deploy with `pnpm deploy`\n  * [Deployment.ts.md](./scripts/Deployment.ts.md)\n  * [Generate.ts.md](./scripts/Generate.ts.md)\n  * [Live.ts.md](./scripts/Live.ts.md)\n  * [Receipts.ts.md](./scripts/Receipts.ts.md)\n  * [Schema.ts.md](./scripts/Schema.ts.md)\n  * [Status.ts.md](./scripts/Status.ts.md)\n  * [Test.ts.md](./scripts/Test.ts.md) - test with `pnpm test`\n  * [Tokens.ts.md](./scripts/Tokens.ts.md)\n  * [Upload.ts.md](./scripts/Upload.ts.md)\n\n* [**settings**](./settings) contains the values of configurable properties for each\n  smart contract, again grouped by chain ID. This is a NPM module that can be imported\n  by the deploy scripts to access the settings for deploying to a specific chain\n  (as testnet configuration may need to systematically differ from mainnet).\n  * [schedule.json](./settings/schedule.json) - vesting schedule\n\n## Post-deployment configuration\n\nAfter deployment the contracts should be\ntransferred to the master multisig account.\nThe CLI and API wrappers in this repo\ndo not support generating multisig transactions.\n\nSee [hackbg/motika](https://github.com/hackbg/motika)\nfor a GUI-based multisig transaction signer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSiennaNetwork%2FSiennaNetwork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSiennaNetwork%2FSiennaNetwork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSiennaNetwork%2FSiennaNetwork/lists"}