Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Merge branch 'fix-issues-yf' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
icerove authored Nov 4, 2019
2 parents 79323f8 + 8c80fec commit 26aaaa6
Show file tree
Hide file tree
Showing 22 changed files with 94 additions and 425 deletions.
31 changes: 21 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,31 @@ near <command>

### Commands

For account:
```bash
near login # create a developer account
near create_account <accountId> # create a developer account with masterAccount, publicKey and initialBalance
near view <accountId> # view account state
near keys <accountId> # view account public keys
near send <sender> <receiver> <amount> # send tokens to given receiver
near stake <accountId> <stakingKey> <amount> # create staking transaction (stakingKey is base58 encoded)
near delete <accountId> <beneficiaryId> # delete an account and transfer funds to beneficiary account
```

For smart contract:
```bash
near create_account <accountId> # create a developer account
near state <accountId> # view account
near tx-status <hash> # lookup transaction status by hash
near build # build your smart contract
near deploy # deploy your smart contract
near call <contractName> <methodName> # schedule smart contract call which
[args] # can modify state
near view <contractName> <methodName> # make smart contract call which can
[args] # view state
near state <accountId> # view account
near send <receiver> <amount> # send tokens to given receiver
near clean # clean the build environment
near new_project [projectDir] # create a new blank project
near stake [accountId] [publicKey] [amount] # create staking transaction
near login # create a developer account
near clean # clean the smart contract build locally(remove ./out )
```

For transactions:
```bash
near tx-status <hash> # lookup transaction status by hash
```

### Options
Expand All @@ -51,4 +59,7 @@ near <command>
| --helperUrl | NEAR contract helper URL | [string] | |
| --keyPath | Path to master account key | [string] | |
| --homeDir | Where to look for master account | [string] |"~/.near" |
| --accountId, --account_id | Unique identifier for the account | [string] | |
| --accountId, --account_id | Unique identifier for the account | [string] [required]| |
| --masterAccount | Account used to create requested account. | [string] [required]| |
| --publicKey | Public key to initialize the account with | [string] [required]| |
| --initialBalance | Number of tokens to transfer to newly account | [string] [required]| |
3 changes: 2 additions & 1 deletion bin/near
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/sh
node --experimental-repl-await "$(dirname "$0")"/cli.js "$@"
node --experimental-repl-await "$(dirname "$0")"/cli.js "$@"

2 changes: 0 additions & 2 deletions blank_project/.gitattributes

This file was deleted.

6 changes: 0 additions & 6 deletions blank_project/README.md

This file was deleted.

32 changes: 0 additions & 32 deletions blank_project/assembly/main.ts

This file was deleted.

13 changes: 0 additions & 13 deletions blank_project/assembly/model.ts

This file was deleted.

6 changes: 0 additions & 6 deletions blank_project/assembly/tsconfig.json

This file was deleted.

11 changes: 0 additions & 11 deletions blank_project/gulpfile.js

This file was deleted.

1 change: 0 additions & 1 deletion blank_project/neardev/shared-test-staging/test.near.json

This file was deleted.

1 change: 0 additions & 1 deletion blank_project/neardev/shared-test/test.near.json

This file was deleted.

4 changes: 0 additions & 4 deletions blank_project/out/.gitignore

This file was deleted.

30 changes: 0 additions & 30 deletions blank_project/package.json

This file was deleted.

38 changes: 0 additions & 38 deletions blank_project/src/index.html

This file was deleted.

94 changes: 0 additions & 94 deletions blank_project/src/main.js

This file was deleted.

41 changes: 0 additions & 41 deletions blank_project/src/test.js

This file was deleted.

28 changes: 0 additions & 28 deletions blank_project/src/wallet/login/index.html

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion get-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = function getConfig() {
} catch (e) {
if (e.code == 'MODULE_NOT_FOUND') {
console.warn(`[WARNING] Didn't find config at ${configPath}, using default shell config`);
const defaultConfig = require('./blank_project/src/config')(process.env.NODE_ENV || 'development');
const defaultConfig = require('./config')(process.env.NODE_ENV || 'development');
console.log(defaultConfig);
return defaultConfig;
}
Expand Down
Loading

0 comments on commit 26aaaa6

Please sign in to comment.