{"id":21850482,"url":"https://github.com/circlefin/stablecoin-near","last_synced_at":"2025-04-14T15:02:19.621Z","repository":{"id":206273061,"uuid":"711911710","full_name":"circlefin/stablecoin-near","owner":"circlefin","description":"Repository for Circle stablecoins on NEAR","archived":false,"fork":false,"pushed_at":"2024-03-08T23:51:11.000Z","size":436,"stargazers_count":3,"open_issues_count":2,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-28T03:51:09.618Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/circlefin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-10-30T12:28:58.000Z","updated_at":"2024-12-05T17:31:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"94c8431b-b3cc-4106-a7cb-488ea5319145","html_url":"https://github.com/circlefin/stablecoin-near","commit_stats":null,"previous_names":["circlefin/stablecoin-near"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circlefin%2Fstablecoin-near","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circlefin%2Fstablecoin-near/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circlefin%2Fstablecoin-near/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circlefin%2Fstablecoin-near/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/circlefin","download_url":"https://codeload.github.com/circlefin/stablecoin-near/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248903706,"owners_count":21180828,"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":[],"created_at":"2024-11-28T00:17:47.352Z","updated_at":"2025-04-14T15:02:19.569Z","avatar_url":"https://github.com/circlefin.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Circle stablecoins on NEAR\nImplementation of a Circle stablecoin on NEAR following [near-contract-standards](https://github.com/near/near-sdk-rs/tree/master/near-contract-standards).\n\n### Rust v1.70.0 incompatibility issues\nAs of Rust v1.70.0, `.wasm` targets by default enable opcodes (specifically `sign-ext`, due to [an update to LLVM](https://releases.rs/docs/1.70.0/#internal-changes)) that are currently not supported by the NearVM. NEAR has an [open issue](https://github.com/near/nearcore/issues/8358#issuecomment-1383247423) to figure out how to work with this.\nThey suggest using a flag from `wasm-opt` to disable sign extensions.\n\nWe have decided to use Rust v1.69.0 for now.\n\n### Install Rust v1.69.0 for development\n```\n$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=1.69.0 -y\n```\nor\n```\n$ brew install rustup\n$ rustup install 1.69.0\n```\n\n### Set Rust v1.69.0 as default\n```\n$ rustup default 1.69.0\n```\n\n### Testing\n```\n$ cargo test\n```\nIf your `integration_test.rs` is failing, ensure you are on Rust v1.69.0. Once you have done so, clean your project with `make clean` before re-running `make` and then `cargo test`.\n\n### Build for deploying on-chain\n```\n$ make\n```\nBuild code for production using local Rust installation (if no local Rust installation is found, Rust docker container will be used). The output file is `target/wasm32-unknown-unknown/release/fiat_token.wasm`.\n\n```\n$ make clean\n```\nRemove compiled artifacts.\n\n### Add to PATH\n```\n$ source $HOME/.cargo/env\n``` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcirclefin%2Fstablecoin-near","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcirclefin%2Fstablecoin-near","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcirclefin%2Fstablecoin-near/lists"}