-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from garikbesson/migrate-sdk
Migration to Rust SDK 5.0.0
- Loading branch information
Showing
51 changed files
with
572 additions
and
860 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
**/sandbox-ts/node_modules | ||
**/sandbox-ts/package-lock.json | ||
# Rust | ||
**/target | ||
**/Cargo.lock | ||
|
||
**/build | ||
**/node_modules | ||
**/sandbox-ts/node_modules | ||
**/sandbox-ts/package-lock.json | ||
**/sandbox-ts/yarn.lock | ||
|
||
|
||
# TypeScript | ||
**/package-lock.json | ||
**/node_modules/ | ||
**/build/ | ||
**/yarn.lock | ||
**/.tsimp | ||
|
||
# Frontend | ||
**/dist/ | ||
**/.parcel-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,27 @@ | ||
# Cross-Contract Call Examples | ||
# Cross-Contract Call Examples 👋 | ||
[![](https://img.shields.io/badge/⋈%20Examples-Basics-green)](https://docs.near.org/tutorials/welcome) | ||
[![](https://img.shields.io/badge/Contract-JS-yellow)](contract-ts) | ||
[![](https://img.shields.io/badge/Contract-Rust-red)](contract-rs) | ||
[![](https://img.shields.io/badge/Frontend-JS-yellow)](frontend) | ||
![example workflow](https://github.com/near-examples/cross-contract-calls/actions/workflows/tests-ts.yml/badge.svg) | ||
![example workflow](https://github.com/near-examples/cross-contract-calls/actions/workflows/tests-rs.yml/badge.svg) | ||
|
||
This repository contains examples on how to perform cross-contract calls in Rust and JavaScript Smart Contracts. | ||
This repository contains examples on how to perform cross-contract calls in both JavaScript and Rust. | ||
|
||
## Repositories | ||
|
||
- [contract-hello-rs](contract-hello-rs) - Rust example | ||
- [contract-hello-ts](contract-hello-ts) - JavaScript example | ||
- [contract-simple-rs](contract-simple-rs) - Rust example | ||
- [contract-simple-ts](contract-simple-ts) - JavaScript example | ||
- [contract-advanced-rs](contract-advanced-rs) - Rust advanced example | ||
- [contract-advanced-ts](ccontract-advanced-ts) - JavaScript advanced example | ||
|
||
<br /> | ||
|
||
# What These Examples Show | ||
|
||
1. How to make cross contract call and handle their responses information in the NEAR network. | ||
2. How to handle their responses. | ||
|
||
<br /> | ||
|
||
# Learn More | ||
1. Learn more about the contract through its [README](./contract-ts/README.md). | ||
2. Check [**our documentation**](https://docs.near.org/tutorials/examples/xcc). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[toolchain] | ||
channel = "1.73.0" | ||
channel = "stable" | ||
components = ["rustfmt"] | ||
targets = ["wasm32-unknown-unknown"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.