-
Notifications
You must be signed in to change notification settings - Fork 157
V9 #2186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
gagdiez
wants to merge
10
commits into
master
Choose a base branch
from
V9
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
V9 #2186
Changes from 5 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
12993d2
feat: remove Python and change contracs templates (#2185)
matiasbenary 30cb832
Migrate frontend create-near-app from wallet-selector to `near-select…
Amira1502 d386bc4
feat: update files and package (#2187)
matiasbenary c0a66ea
chore: reduce workflows
5329e2c
fix: vite
1cde1ae
fix: node version tests
gagdiez f58fc0b
feat: add near-connect-hooks for frontend templates
matiasbenary edcbe1c
Merge branch 'V9' of github.com:near/create-near-app into V9
matiasbenary 4079318
chore: update snapshots
matiasbenary 70167a7
fix: tests
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -15,7 +15,7 @@ jobs: | |
| name: Add issue/PR to project | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/[email protected].0 | ||
| - uses: actions/[email protected].2 | ||
| with: | ||
| # add to DevRel Project #117 | ||
| project-url: https://github.com/orgs/near/projects/117 | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| [package] | ||
| name = "auction-contract" | ||
| description = "Auction Example Part 3" | ||
| version = "0.1.0" | ||
| edition = "2021" | ||
|
|
||
| [lib] | ||
| crate-type = ["cdylib", "rlib"] | ||
|
|
||
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
| [dependencies] | ||
| near-sdk = "5.17" | ||
|
|
||
| [dev-dependencies] | ||
| near-sdk = { version = "5.17", features = ["unit-testing"] } | ||
| near-workspaces = { version = "0.21", features = ["unstable"] } | ||
| tokio = { version = "1.12.0", features = ["full"] } | ||
| serde_json = "1" | ||
|
|
||
| [profile.release] | ||
| codegen-units = 1 | ||
| opt-level = "z" | ||
| lto = true | ||
| debug = false | ||
| panic = "abort" | ||
| overflow-checks = true |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Auction contract with FTs | ||
|
|
||
| This directory contains a Rust contract that is used as part of the [Bidding with FTs](https://docs.near.org/tutorials/auction/bidding-with-fts) section of the auction tutorial. | ||
|
|
||
| In this part the contract is adapted so users can bid in fungible tokens (FTs) instead of NEAR tokens. It is a great way to learn how to work with FTs in NEAR. | ||
|
|
||
| ## How to Build Locally? | ||
|
|
||
| Install [`cargo-near`](https://github.com/near/cargo-near) and run: | ||
|
|
||
| ```bash | ||
| cargo near build | ||
| ``` | ||
|
|
||
| ## How to Test Locally? | ||
|
|
||
| ```bash | ||
| cargo test | ||
| ``` | ||
|
|
||
| ## How to Deploy? | ||
|
|
||
| To deploy manually, install [NEAR CLI](https://docs.near.org/tools/near-cli#installation) and run: | ||
|
|
||
| ```bash | ||
| # Create a new account | ||
| near create <contractId> --useFaucet | ||
|
|
||
| # Deploy the contract on it | ||
| near deploy <contractId> ./target/near/auction-contract.wasm | ||
|
|
||
| # Initialize the contract | ||
| TWO_MINUTES_FROM_NOW=$(date -v+2M +%s000000000) | ||
| near call <contractId> init '{"end_time": "'$TWO_MINUTES_FROM_NOW'", "auctioneer": "<auctioneerAccountId>", "ft_contract": "<ftContractId>", "nft_contract": "<nftContractId>", "token_id": "<tokenId>", "starting_price": "<startingPrice>"}' --accountId <contractId> | ||
| ``` |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [toolchain] | ||
| channel = "stable" | ||
| components = ["rustfmt"] | ||
| targets = ["wasm32-unknown-unknown"] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.