Skip to content

Commit

Permalink
contract built, deployed and initialized: https://explorer.testnet.ne…
Browse files Browse the repository at this point in the history
  • Loading branch information
AGNUcius committed Jan 13, 2022
1 parent 4312d18 commit 4f9e2c6
Show file tree
Hide file tree
Showing 25 changed files with 4,751 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
rustflags = ["-C", "link-args=-s"]
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Cargo.lock -diff
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI
on: push
jobs:
test:
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: 1
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable-2020-10-08
target: wasm32-unknown-unknown

- name: Add wasm32 target
run: rustup target add wasm32-unknown-unknown

- name: Check that build works
run: ./build.sh
# TODO: check that files in `res` are unchanged

- name: Test
uses: actions-rs/cargo@v1
with:
command: test
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# Developer note: near.gitignore will be renamed to .gitignore upon project creation
# dependencies
package-lock.json
**/node_modules
/.pnp
.pnp.js
**/out

#keys
**/neardev

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
.testnet

npm-debug.log*
yarn-debug.log*
yarn-error.log*

**/target
8 changes: 8 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM gitpod/workspace-full

ENV CARGO_HOME=/home/gitpod/.cargo

RUN bash -cl "rustup toolchain install stable && rustup target add wasm32-unknown-unknown"

RUN bash -c ". .nvm/nvm.sh \
&& nvm install v12 && nvm alias default v12"
7 changes: 7 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
image:
file: .gitpod.Dockerfile
# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/config-start-tasks/
tasks:
- before: echo "nvm use default" >> ~/.bashrc && npm install -g near-cli --no-optional && nvm use default
init: yarn
command: clear && echo Hey! Check out examples of how to build a NEP-21 Fungible Token in Rust.
Loading

0 comments on commit 4f9e2c6

Please sign in to comment.