Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 1740921

Browse files
authored
replace nep5 (#1292)
1 parent 1148577 commit 1740921

File tree

16 files changed

+19
-19
lines changed

16 files changed

+19
-19
lines changed

docs/en-us/develop/deploy/deploy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Deploying Smart Contracts
22

3-
When a smart contract is deployed on the blockchain, it can be used by other users or invoked by other contracts. This section describes how to deploy and invoke the smart contract in the Neo blockchain using Neo-CLI or Neo-GUI. The instructions in this section are generic and applicable to all contract types including NEP-5 assets.
3+
When a smart contract is deployed on the blockchain, it can be used by other users or invoked by other contracts. This section describes how to deploy and invoke the smart contract in the Neo blockchain using Neo-CLI or Neo-GUI. The instructions in this section are generic and applicable to all contract types including NEP-17 assets.
44

55
## What contracts need to be deployed?
66

@@ -10,7 +10,7 @@ From the programming language perspective, only when a smart contract will be us
1010

1111
- When a smart contract has variable incoming parameters, it must serve as a storage. The caller or other smart contracts provide the parameters.
1212
- When a smart contract uses storage it must serve as a class library.
13-
- When a smart contract implements NEP-5 standard assets, the contract needs to be deployed on the blockchain.
13+
- When a smart contract implements NEP-17 standard assets, the contract needs to be deployed on the blockchain.
1414

1515
### How to deploy?
1616

docs/en-us/develop/deploy/invoke.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ When invoking a contract in Neo-GUI, you can click `Cosignature` at the bottom o
6565

6666
> [!Note]
6767
>
68-
> When you invoke the transfer method of the NEP-5 contract using the transfer command, the wallet will automatically appends the signature to the from field. You don't need to add it manually.
68+
> When you invoke the transfer method of the NEP-17 contract using the transfer command, the wallet will automatically appends the signature to the from field. You don't need to add it manually.
6969
7070
## Invoking between contracts
7171

docs/en-us/develop/tool/sdk/monitor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The `RPC` module provides methods to get basic information of blockchain data and status, such as block height, block content, transaction details, and contracts.
44

5-
For some specific information of contracts, such as the block maximum transaction number, system fee per byte, NEP-5 contract details, you need to invoke specific contract methods, which will be introduced in this document.
5+
For some specific information of contracts, such as the block maximum transaction number, system fee per byte, NEP-17 contract details, you need to invoke specific contract methods, which will be introduced in this document.
66

77

88
## Getting blockchain data from RPC interfaces

docs/en-us/develop/tool/sdk/rpc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ string wif = await client.DumpPrivKeyAsync("NVVwFw6XyhtRCFQ8SpUTMdPyYt4Vd9A1XQ")
356356
```
357357

358358
### GetBalanceAsync
359-
Returns balance of the specified asset in the wallet by the asset id. This method is applicable to the native contract assets and NEP-5 compliant assets.
359+
Returns balance of the specified asset in the wallet by the asset id. This method is applicable to the native contract assets and NEP-17 compliant assets.
360360

361361
```c#
362362
BigDecimal balance = await client.GetWalletBalanceAsync(NativeContract.NEO.Hash.ToString()).ConfigureAwait(false);

docs/en-us/develop/tool/sdk/wallet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ WalletAPI walletAPI = new WalletAPI(client);
136136
>
137137
> The type of account balance is usually BigInteger, which is a representation after rounding the decimal part. It needs to be divided by Factor to get the actual Token amount.
138138
139-
Inquiry NEP-5 asset balance using the string parameter:
139+
Inquiry NEP-17 asset balance using the string parameter:
140140

141141
```c#
142142
// get the neo balance of account
@@ -200,7 +200,7 @@ In Neo N3 GAS is automatically claimed when NEO is transferred. You can construc
200200

201201
## Asset Transfer
202202

203-
`WalletAPI` encapsulates transfer methods of NEP-5 assets.
203+
`WalletAPI` encapsulates transfer methods of NEP-17 assets.
204204

205205
Use string parameters:
206206

docs/en-us/exchange/client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Neo-CLI provides the following features:
5050
For more API information, refer to [API Reference](../reference/rpc/latest-version/api.md).
5151

5252

53-
- Provides transaction information of NEP-5 assets.
53+
- Provides transaction information of NEP-17 assets.
5454

5555

5656
### Creating a Wallet

docs/en-us/node/gui/blockchain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The transaction list shows the confirmed transactions on the current blockchain.
4242
You can view the following information by switching tabs in this page:
4343

4444
- **Transaction**: Displays the basic information of the transaction, such as the block, size, time stamp, as well as the transaction transfer record and the witness of the transaction.
45-
- **Notifications**: Displays the execution log of the smart contract in the transaction, including information such as whether the NEP-5 transfer was successful.
45+
- **Notifications**: Displays the execution log of the smart contract in the transaction, including information such as whether the NEP-17 transfer was successful.
4646

4747
For information about the basic concept of transactions refer to [Transaction](../../basic/concept/transaction.md).
4848

docs/en-us/reference/rpc/latest-version/api/getwalletbalance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ balance: the balance of the asset in the wallet. Since the NEP-17 assets adopt t
5757
> [!Note]
5858
>
5959
> * Only when your client synchronizes to the block that the contract was deployed, execution of this API will return the correct value, otherwise execution of the API will result in an error.
60-
> * When the input parameter is a script hash of a non-NEP-5 smart contract, execution of the API will result in an error.
60+
> * When the input parameter is a script hash of a non-NEP-17 smart contract, execution of the API will result in an error.

docs/en-us/reference/scapi/framework/services/Contract/IsPayable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contract.IsPayable
22

3-
Whether the contract is able to accept NEP-5 assets
3+
Whether the contract is able to accept NEP-17 assets
44

55
Namespace: [Neo.SmartContract.Framework.Services](../../services.md)
66

docs/zh-cn/develop/deploy/deploy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
- 当一个智能合约有可变的传入参数,此时它必须作为一个类库,由调用者或者其它的智能合约提供参数。
1212
- 当一个智能合约使用存储区(Storage)时,必须作为一个类库。
13-
- 当一个智能合约实现了 NEP-5(合约资产)时,需要将该合约部署到区块链上。
13+
- 当一个智能合约实现了 NEP-17(合约资产)时,需要将该合约部署到区块链上。
1414

1515
智能合约的部署是通过交易调用 API 来部署。通常的做法是通过 Neo-CLI 或 Neo-GUI 的智能合约发布功能来部署合约。
1616

docs/zh-cn/develop/deploy/invoke.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ invoke <scriptHash> <operation> [contractParameters=null] [sender=null] [signerA
6565

6666
> [!Note]
6767
>
68-
> 在通过转账命令调用 NEP-5 合约的 transfer 方法时,钱包会自动对 from 字段进行附加签名。此时不需要手动添加。
68+
> 在通过转账命令调用 NEP-17 合约的 transfer 方法时,钱包会自动对 from 字段进行附加签名。此时不需要手动添加。
6969
7070
## 合约之间的互相调用
7171

docs/zh-cn/develop/tool/sdk/rpc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ string wif = await client.DumpPrivKeyAsync("NVVwFw6XyhtRCFQ8SpUTMdPyYt4Vd9A1XQ")
332332
```
333333

334334
### 余额查询
335-
根据指定的资产哈希,返回钱包中对应资产的余额信息。该方法适用于原生合约资产及符合 NEP-5 标准的合约资产:
335+
根据指定的资产哈希,返回钱包中对应资产的余额信息。该方法适用于原生合约资产及符合 NEP-17 标准的合约资产:
336336

337337
```c#
338338
BigDecimal balance = await client.GetWalletBalanceAsync(NativeContract.NEO.Hash.ToString()).ConfigureAwait(false);

docs/zh-cn/develop/write/nep17.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ transfer 事件变更为 Transfer 事件 (首字母大写)。
165165

166166
### IsPayable
167167

168-
在 Neo Legacy 中部署合约时需要勾选 IsPayable 表示能否接收 NEP-5 资产。
168+
在 Neo Legacy 中部署合约时需要勾选 IsPayable 表示能否接收 NEP-17 资产。
169169

170170
在 Neo N3 中移除了 payable 检查,相应逻辑将放到 `onNEP17Payment` 方法中。
171171

docs/zh-cn/node/gui/blockchain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
在该页面切换选项卡可以查看以下信息:
4444

4545
- **交易体**:显示交易的基本信息,如所在区块、大小、时间戳等,以及交易的转账记录和交易的见证人。
46-
- **交易日志**:显示交易中智能合约的执行日志,包括 NEP-5 转账是否成功等信息。
46+
- **交易日志**:显示交易中智能合约的执行日志,包括 NEP-17 转账是否成功等信息。
4747

4848
关于交易的基本概念请参考 [交易](../../basic/concept/transaction.md)
4949

docs/zh-cn/reference/govapi/supportedStandards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var result = Contract.Call(nativeHash, "supportedStandards", new object[] { });
2121
"type": "Array",
2222
"value": [{
2323
"type": "ByteString",
24-
"value": "NEP-5"
24+
"value": "NEP-17"
2525
}, {
2626
"type": "ByteString",
2727
"value": "NEP-10"

docs/zh-cn/reference/scapi/framework/services/Contract/IsPayable.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contract.IsPayable 属性
22

3-
该合约能否接收 NEP-5 资产。
3+
该合约能否接收 NEP-17 资产。
44

55
命名空间:[Neo.SmartContract.Framework.Services](../../services.md)
66

@@ -12,7 +12,7 @@
1212
public extern bool IsPayable
1313
```
1414

15-
属性值:布尔值,该合约能否接收 NEP-5 资产。
15+
属性值:布尔值,该合约能否接收 NEP-17 资产。
1616

1717

1818

0 commit comments

Comments
 (0)