This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into run-on-master-and-staging
- Loading branch information
Showing
11 changed files
with
65 additions
and
52 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
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
set -ex | ||
cd tmp-project | ||
timestamp=$(date +%s) | ||
testaccount=testaccount$timestamp | ||
echo Create account | ||
../bin/near create_account $testaccount | ||
|
||
echo Get account state | ||
RESULT=$(../bin/near state $testaccount) | ||
if [[ $RESULT != *"Account $testaccount"*"amount: '100000000'"* ]]; then | ||
echo FAILURE Unexpected output from near state | ||
exit 1 | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
set -ex | ||
cd tmp-project | ||
rm -rf assembly | ||
mkdir assembly | ||
timestamp=$(date +%s) | ||
testaccount=testaccount$timestamp | ||
../bin/near create_account $testaccount | ||
echo Building contract | ||
cp ../node_modules/near-runtime-ts/tests/assembly/*.ts assembly/ | ||
yarn | ||
yarn build | ||
echo Deploying contract | ||
../bin/near deploy --accountId=$testaccount --wasmFile=out/main.wasm | ||
echo Calling functions | ||
RESULT=$(../bin/near call $testaccount hello "{}" --accountId=test.near) | ||
if [[ $RESULT != *"Result: helloa"* ]]; then | ||
echo FAILURE Unexpected output from near call | ||
exit 1 | ||
fi |
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,5 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
set -ex | ||
./test/new_project.sh | ||
./test/create_account.sh | ||
./test/account_operations.sh | ||
./test/contract_tests.sh |
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 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
set -ex | ||
|
||
# remove temporary blank project | ||
|