You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/n3/develop/write/difference.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ using Neo.SmartContract.Framework;
38
38
usingNeo.SmartContract.Framework.Services.Neo;
39
39
usingSystem;
40
40
```
41
+
41
42
Neo N3:
42
43
43
44
```cs
@@ -114,6 +115,7 @@ Neo N3 adds a new security method. You can execute the contract in a read-only m
114
115
Neo N3 introduces a large number of native contracts, moving massive interoperable services from Neo Legacy to native contracts. The major changes are as follows.
115
116
116
117
- Upgraded the Blockchain class to a Ledger native contract, e.g. `Blockchain.GetBlock()` changed to `Ledger.GetBlock()`.
118
+
117
119
- Added the ContractManagement native contract to query contracts and manage their updating and destruction.
118
120
119
121
- Moved the contract part of the Blockchain class to the ContractManagement native contract, e.g. `Blockchain.GetContract()` changed to `ContractManagement .GetContract()`.
@@ -133,8 +135,8 @@ Neo N3 introduces a large number of native contracts, moving massive interoperab
133
135
- The Transaction class has been extensively updated to fit the data structure of Neo N3 transactions.
134
136
- Added a new Crypto class and moved some of the methods provided by the SmartContract class to this class.
@@ -144,13 +144,13 @@ The base class `Nep11Token` also provides the following methods and events:
144
144
| tokensOf | Hash160(owner) | InteropInterface | Returns all of the token ids owned by the specified address |
145
145
| transfer | Hash160(to) ByteArray(tokenId) Any(data) | Boolean | It transfers an amount of NFT with TokenId. This method requires the signature of NFT owner. |
| transfer | Hash160(from) Hash160(to) Integer(amount) ByteArray(tokenId) | Transfer event | When the `from` address is set to `null` tokens are created; When the `to` address set to `null`tokens are burned. |
152
152
153
-
####Compatibility check
153
+
### Compatibility check
154
154
155
155
Compatibility checks will be activated for any contract that includes the `[SupportedStandards("NEP-17")]` or `[SupportedStandards("NEP-11")]` attribute.
156
156
The Compatibility Check reviews method names, parameters, return values, events, and similar elements to ensure they comply with the standard, and alerts about any failures in the check.
Copy file name to clipboardExpand all lines: docs/n3/exchange/client.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,11 @@ sidebar_label: 'Using Neo-CLI'
3
3
sidebar_position: 2
4
4
---
5
5
6
-
##Using Neo-CLI
6
+
# Using Neo-CLI
7
7
8
8
The Neo-CLI client works as a node in the P2P network and meanwhile a cross-platform wallet handling various assets transactions.
9
9
10
-
###Neo-CLI Security Policies
10
+
## Neo-CLI Security Policies
11
11
12
12
:::caution
13
13
@@ -23,7 +23,7 @@ Neo-CLI does not provide the function to remotely switching on/off the wallet, a
23
23
| P2P | 10333 | 20333 |
24
24
| websocket | 10334 | 20334 |
25
25
26
-
###About Neo-CLI
26
+
## About Neo-CLI
27
27
28
28
Neo-CLI is a command-line client (wallet) for developers. Developers have two ways to interact with it:
29
29
@@ -59,7 +59,7 @@ Neo-CLI provides the following features:
59
59
- Provides transaction information of NEP-17 assets.
60
60
61
61
62
-
###Creating a Wallet
62
+
## Creating a Wallet
63
63
64
64
The exchange needs to create an online wallet to manage the deposit addresses of users. A wallet is used to store the information of the accounts (both public keys and private keys) and the contracts. It is the most important proof that the user holds. Users must keep the wallet files and the wallet passwords secure. They must not lose or disclose these data. Exchanges do not have to create a wallet for every address. An online wallet usually keeps all deposit addresses of users. A cold wallet (offline wallet) is another storage option which provides better security.
65
65
@@ -76,7 +76,7 @@ To create a wallet, do the following:
76
76
77
77
2. Set a password for the wallet.
78
78
79
-
###Generating Deposit Addresses
79
+
## Generating Deposit Addresses
80
80
81
81
A wallet can store multiple addresses. The exchange needs to generate a deposit address for each user.
Copy file name to clipboardExpand all lines: docs/n3/exchange/deploynode.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ install RpcNep17Tracker
38
38
39
39
- The RpcServer plug-in must be installed before you can use the RpcNep17Tracker plug-in.
40
40
- You must install the plugins ApplicationLogs and RpcNep17Tracker before synchronizing the Neo client, otherwise the log in the blocks synchronized before will be lost.
Copy file name to clipboardExpand all lines: docs/n3/exchange/gas.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,10 @@ In Neo N3 every time a NEO transfer transaction occurs in the address, GASs gene
18
18
Claimed *GAS = f(neo_amount, Δt_const)*
19
19
20
20
Δt_const = t_end - t_start
21
-
- t_end = the current time that Neo is transferred into or out of the address.
22
-
- t_start = the last time that Neo was transferred into or out of the address.
21
+
22
+
- t_end = the current time that Neo is transferred into or out of the address.
23
+
24
+
- t_start = the last time that Neo was transferred into or out of the address.
23
25
24
26
Δt_const is fixed, thus the claimed Gas is of a fixed amount too. And this amount depends on the amount of Neo held by the user and the duration between the moments that the user transferred this amount of Neo into and out of his or her address.
Copy file name to clipboardExpand all lines: docs/n3/glossary.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,27 +4,27 @@ sidebar_label: 'Glossary'
4
4
5
5
# Glossary
6
6
7
-
####Block
7
+
## Block
8
8
9
9
A block in a Blockchain contains a number of transaction records. Blocks are paired up with the previous block according to the timestamp and the cryptographic hash of the previous block contained in each block header, thereby creating a chain of blocks, or a blockchain.
10
10
11
-
####Wallet
11
+
## Wallet
12
12
13
13
A wallet is a cryptographic public/private key pair which is used to sign and authenticate database transactions that occur on the Neo network.
14
14
15
-
####Account (Address)
15
+
## Account (Address)
16
16
17
17
Similar to your bank account, a blockchain account is used to transfer or receive assets in a transaction. The address is generated by the script hash through some operations, and can be converted back to the script hash. In Neo Legacy, the address starts with A, and in Neo N3, the address starts with N.
18
18
19
-
####Private Key/Public Key
19
+
## Private Key/Public Key
20
20
21
21
The private key is a 256-bit random number that is kept by users themselves, without disclosing to others. It is a proof of the user's right to use the account and ownership of assets in the account. Each private key has a public key paired with it.
22
22
23
-
####Transaction
23
+
## Transaction
24
24
25
25
A Neo transaction is a signed data package with an instruction for the network, for example a user indicating that he wants to transfer assets to another address. Each Neo block in the blockchain ledger contains one or more transactions, making each block a transaction batch.
26
26
27
-
####Script
27
+
## Script
28
28
29
29
A script is a piece of code that consists of opcodes and operands. Each account is a contract with a script. A standard account script is composed of the public key and the OpCode that verifies the signature. The format is as follows
The script hash is generated from the smart contract script with the RIPEMD-160 algorithm. Each script has a unique script hash. Any change made in the script of the contract will cause the script hash to change. The script hash length is 20 bytes (160 bits). The script hash is generated unidirectionally by the script, and cannot be reversed to the script. The script hash and address can be converted to each other.
39
39
40
-
####Opcode
40
+
## Opcode
41
41
42
42
Opcodes are similar to instructions in assembly language. For all OpCode, refer to [OpCode source](https://github.com/neo-project/neo/blob/master/src/Neo.VM/OpCode.cs).
43
43
44
-
####Cryptographic private key
44
+
## Cryptographic private key
45
45
46
46
Cryptographic private key refers to the encryption of the private key through the wallet password, which is more secure than the plaintext private key. In this way, you can write the cryptographic private key on paper and keep the password in your mind.
47
47
48
-
####Smart Contract
48
+
## Smart Contract
49
49
50
50
From the blockchain perspective, a smart contract is a set of promises, specified in digital form, including protocols within which the parties perform on these promises.
51
51
52
-
####NEP-17
52
+
## NEP-17
53
53
54
54
The NEP-17 proposal outlines a token standard for the Neo blockchain that will provide systems with a generalized interaction mechanism for tokenized smart contracts.
55
55
56
-
####SysCall
56
+
## SysCall
57
57
58
58
The system call is a special operation code, through which you can call the interoperable service layer interface. By calling the interoperable service layer interface, NeoVM can access data such as block, transaction , contract, and asset information that are required for running smart contracts. For more information refer to the files in [Neo smart contract module](https://github.com/neo-project/neo/tree/master/src/Neo/SmartContract) starting with `ApplicationEngine.` , such as `ApplicationEngine.Contract.cs`, `ApplicationEngine.Blockchain.cs`.
59
59
60
-
####Dynamic Call
60
+
## Dynamic Call
61
61
62
62
A special system call that invokes another contract within a contract. It can be wrote as `Contract.Call(scriptHash, method, params)`. For more information refer to [Invoking Smart Contracts](develop/deploy/invoke).
63
63
64
-
####Storage
64
+
## Storage
65
65
66
66
Each smart contract deployed on the Neo blockchain has a private storage area for storing application data. When creating a smart contract or transaction to use this contract, the contract code needs to read and write its storage. Each contract can declare a storage area. For more information refer to [Storage](reference/scapi/framework/services/Storage.md).
67
67
68
-
####NEF
68
+
## NEF
69
69
70
70
NEF is short for Neo Executable Format. The smart contract compiler compiles the source code and eventually generate NEF files and Manifest files (see below).
0 commit comments