Coder Social home page Coder Social logo

stablecoin-near's Introduction

Circle stablecoins on NEAR

Implementation of a Circle stablecoin on NEAR following near-contract-standards.

Rust v1.70.0 incompatibility issues

As of Rust v1.70.0, .wasm targets by default enable opcodes (specifically sign-ext, due to an update to LLVM) that are currently not supported by the NearVM. NEAR has an open issue to figure out how to work with this. They suggest using a flag from wasm-opt to disable sign extensions.

We have decided to use Rust v1.69.0 for now.

Install Rust v1.69.0 for development

$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=1.69.0 -y

or

$ brew install rustup
$ rustup install 1.69.0

Set Rust v1.69.0 as default

$ rustup default 1.69.0

Testing

$ cargo test

If 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.

Build for deploying on-chain

$ make

Build 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.

$ make clean

Remove compiled artifacts.

Add to PATH

$ source $HOME/.cargo/env

stablecoin-near's People

Contributors

tjbaker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.