Skip to content

Commit

Permalink
Merge pull request #167 from chenzhitong/fix-link
Browse files Browse the repository at this point in the history
fix link
  • Loading branch information
Celia18305 authored Nov 28, 2024
2 parents fa7b29d + 504613c commit 09d1740
Show file tree
Hide file tree
Showing 83 changed files with 251 additions and 250 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Neo Developer Portal is built using [Docusaurus](https://docusaurus.io/) v2.
4. Wait for a review
1. Neo developer portal team will review your PR
2. Acceptable PRs will be approved and merged into `dev` branch
3. Once your changes are merged into the `dev` branch, and it will automatically deploy to [docs.neo.org](https://docs.neo.org).
5. Release
1. Neo developer portal team will periodically merge `dev` into `main` branch and it will automatically deploy to [developers.neo.org](https://developers.neo.org/docs)
2. View history of releases on Github
Expand Down
2 changes: 1 addition & 1 deletion docs/faq/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ You can check any confirmed transaction on any blockchain explorer that is compa

## What browsers are available for Neo blockchain?

A full list of explorers for Neo N3 can be found on the [Neo website](https://developers.neo.org/resources).
A full list of explorers for Neo N3 can be found on the [Neo website](https://neo.org/dev#tooling).

## Is there an equivalent of the ERC-20 standard for Neo?

Expand Down
6 changes: 3 additions & 3 deletions docs/n3/develop/write/framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The .NET framework is an encapsulation of the Smart Contract API, which helps .N

Neo.SmartContract.Framework mainly provides the following API methods:

- A series of native contract methods that can be invoked in the smart contract,see [Neo.SmartContract.Framework.Native](https://developers.neo.org/docs/n3/reference/scapi/framework/native).
- Interoperability services layer methods, see [Neo.SmartContract.Framework.Service](https://developers.neo.org/docs/n3/reference/scapi/framework/services).
- Methods provided by the framework,see [Neo.SmartContract.Framework](https://developers.neo.org/docs/n3/reference/scapi/framework).
- A series of native contract methods that can be invoked in the smart contract,see [Neo.SmartContract.Framework.Native](../../reference/scapi/framework/native/index.md).
- Interoperability services layer methods, see [Neo.SmartContract.Framework.Service](../../reference/scapi/framework/services/index.md).
- Methods provided by the framework,see [Neo.SmartContract.Framework](../../reference/scapi/framework/index.md).

Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public static string Name() => "name of the token";

在开发智能合约时,必须将应用程序的数据存储在区块链上。当创建一个智能合约或者交易使用这个合约时,合约的代码需要读写它的存储空间。存储在智能合约存储区中的所有数据在智能合约的调用期间会自动持久化。区块链中的全节点会存储链上每一个智能合约的状态。

Neo提供了基于键值对的数据访问接口。可以使用键从智能合约中读取、删除数据或将数据记录写入到智能合约中。此外,智能合约可以检索并将它们的存储上下文发送给其他合约,从而委托其他合约管理它们的存储区域。在C#开发中,智能合约可以使用 `Storage` 类来读写持久性存储区。 `Storage` 类是一个静态类,不需要构造函数。 `Storage` 类的方法可以查看 [API 参考文档](../../reference/scapi/framework/services/Storage.md)
Neo提供了基于键值对的数据访问接口。可以使用键从智能合约中读取、删除数据或将数据记录写入到智能合约中。此外,智能合约可以检索并将它们的存储上下文发送给其他合约,从而委托其他合约管理它们的存储区域。在C#开发中,智能合约可以使用 `Storage` 类来读写持久性存储区。 `Storage` 类是一个静态类,不需要构造函数。 `Storage` 类的方法可以查看 [API 参考文档](../../reference/scapi/framework/services/Storage/index.md)

例如,如果你想将token的总供应量存储到存储区:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Neo 智能合约框架(Neo.SmartContract.Framework)是对智能合约开发

Neo.SmartContract.Framework 提供了以下重要的 API 方法集:

- 原生合约中的一系列方法,请参阅 [Neo.SmartContract.Framework.Native](https://developers.neo.org/zh/docs/n3/reference/scapi/framework/native)
- 互操作服务层的方法,请参阅 [Neo.SmartContract.Framework.Service](https://developers.neo.org/zh/docs/n3/reference/scapi/framework/services)
- 智能合约框架本身提供的常用方法,请参阅 [Neo.SmartContract.Framework](https://developers.neo.org/zh/docs/n3/reference/scapi/framework/framework)
- 原生合约中的一系列方法,请参阅 [Neo.SmartContract.Framework.Native](../../reference/scapi/framework/native/index.md)
- 互操作服务层的方法,请参阅 [Neo.SmartContract.Framework.Service](../../reference/scapi/framework/services/index.md)
- 智能合约框架本身提供的常用方法,请参阅 [Neo.SmartContract.Framework](../../reference/scapi/framework/index.md)

Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ NEP17 协议是 Neo 补充协议中的第17号协议。其目的是为 Neo 建

#### 存储区

每个被部署到 Neo 区块链上的智能合约程序,都拥有一个私有存储区用于存放应用程序的数据。当创建一个智能合约或者交易使用这个合约时,合约的代码需要读写它的存储空间。每个合约都可以声明一块存储区,声名方式为在合约的类上添加一段自定义特性。详情请参见 [存储区操作](reference/scapi/framework/services/storage.md)
每个被部署到 Neo 区块链上的智能合约程序,都拥有一个私有存储区用于存放应用程序的数据。当创建一个智能合约或者交易使用这个合约时,合约的代码需要读写它的存储空间。每个合约都可以声明一块存储区,声名方式为在合约的类上添加一段自定义特性。详情请参见 [存储区操作](reference/scapi/framework/services/storage/index.md)

#### NEF

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

部署合约。

命名空间:[Neo.SmartContract.Framework.Native](../../native.md)
命名空间:[Neo.SmartContract.Framework.Native](../../native/index.md)

程序集:Neo.SmartContract.Framework

Expand Down Expand Up @@ -59,4 +59,4 @@ public static void _deploy(object data, bool update)
}
```

[返回上级](../ContractManagement.md)
[返回上级](index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

销毁合约。

命名空间:[Neo.SmartContract.Framework.Native](../../native.md)
命名空间:[Neo.SmartContract.Framework.Native](../../native/index.md)

程序集:Neo.SmartContract.Framework

Expand Down Expand Up @@ -39,4 +39,4 @@ public class Contract1 : SmartContract.Framework.SmartContract

- 其他:失败。

[返回上级](../ContractManagement.md)
[返回上级](index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

获取合约信息。

命名空间:[Neo.SmartContract.Framework.Native](../../native.md)
命名空间:[Neo.SmartContract.Framework.Native](../../native/index.md)

程序集:Neo.SmartContract.Framework

Expand Down Expand Up @@ -46,4 +46,4 @@ public class Contract1 : SmartContract.Framework.SmartContract

- 其他:失败。

[返回上级](../ContractManagement.md)
[返回上级](index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

更新合约。

命名空间:[Neo.SmartContract.Framework.Native](../../native.md)
命名空间:[Neo.SmartContract.Framework.Native](../../native/index.md)

程序集:Neo.SmartContract.Framework

Expand Down Expand Up @@ -50,4 +50,4 @@ public class Contract1 : SmartContract.Framework.SmartContract
更新后合约哈希保持不变。
:::

[返回上级](../ContractManagement.md)
[返回上级](index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

提供了原生合约 ContractManagement 的一系列方法,合约哈希为`0xfffdc93764dbaddd97c48f252a53ea4643faa3fd`

命名空间:[Neo.SmartContract.Framework.Native](../native.md)
命名空间:[Neo.SmartContract.Framework.Native](index.md)

程序集:Neo.SmartContract.Framework

Expand All @@ -23,8 +23,8 @@ public class ContractManagement
| 名称 | 说明 |
| ------------------------------------------------------------ | -------------------------- |
| GetMinimumDeploymentFee() | 查询部署合约的最低手续费 |
| [GetContract(UInt160 hash)](ContractManagement/GetContract.md) | 根据给定的合约哈希获取合约 |
| [Deploy(ByteString nefFile, string manifest)](ContractManagement/Deploy.md) | 部署合约 |
| [Update(ByteString nefFile, string manifest)](ContractManagement/Update.md) | 更新合约 |
| [Destroy()](ContractManagement/Destroy.md) | 销毁合约 |
| [GetContract(UInt160 hash)](GetContract.md) | 根据给定的合约哈希获取合约 |
| [Deploy(ByteString nefFile, string manifest)](Deploy.md) | 部署合约 |
| [Update(ByteString nefFile, string manifest)](Update.md) | 更新合约 |
| [Destroy()](Destroy.md) | 销毁合约 |

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

提供了原生合约CryptoLib的一系列属性与方法,合约哈希为`0x726cb6e0cd8628a1350a611384688911ab75f51b`

命名空间:[Neo.SmartContract.Framework.Native](../native.md)
命名空间:[Neo.SmartContract.Framework.Native](index.md)

程序集:Neo.SmartContract.Framework

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

获取账户的GAS余额。

命名空间:[Neo.SmartContract.Framework.Native](../../native.md)
命名空间:[Neo.SmartContract.Framework.Native](../../native/index.md)

程序集:Neo.SmartContract.Framework

Expand Down Expand Up @@ -45,4 +45,4 @@ public class Contract1 : SmartContract.Framework.SmartContract

- 其他:失败。

[返回上级](../Gas.md)
[返回上级](index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

获取GAS总发行量。

命名空间:[Neo.SmartContract.Framework.Native](../../native.md)
命名空间:[Neo.SmartContract.Framework.Native](../../native/index.md)

程序集:Neo.SmartContract.Framework

Expand All @@ -25,4 +25,4 @@ public class Contract1 : SmartContract.Framework.SmartContract
}
```

[返回上级](../Gas.md)
[返回上级](index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

GAS转账。

命名空间:[Neo.SmartContract.Framework.Native](../../native.md)
命名空间:[Neo.SmartContract.Framework.Native](../../native/index.md)

程序集:Neo.SmartContract.Framework

Expand Down Expand Up @@ -50,4 +50,4 @@ public class Contract1 : SmartContract.Framework.SmartContract

- 其他:失败。

[返回上级](../Gas.md)
[返回上级](index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

GasToken 同时也是NEP-17合约,继承了NEP-17合约所有的属性和方法。

命名空间:[Neo.SmartContract.Framework.Native](../native.md)
命名空间:[Neo.SmartContract.Framework.Native](index.md)

程序集:Neo.SmartContract.Framework

Expand All @@ -26,7 +26,7 @@ public class GAS

| 名称 | 说明 |
| ------------------------------------------------------------ | -------------------------------- |
| [TotalSupply()](Gas/TotalSupply.md) | 获取GAS总发行量 |
| [BalanceOf(UInt160 account)](Gas/BalanceOf.md) | 获取余额 |
| [Transfer(UInt160 from, UInt160 to, BigInteger amount, object data = null)](Gas/Transfer.md) | 转账 |
| [TotalSupply()](TotalSupply.md) | 获取GAS总发行量 |
| [BalanceOf(UInt160 account)](BalanceOf.md) | 获取余额 |
| [Transfer(UInt160 from, UInt160 to, BigInteger amount, object data = null)](Transfer.md) | 转账 |
| Refuel | 为智能合约执行补充燃料(手续费) |
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

通过区块索引或区块哈希 ,查找区块。

命名空间:[Neo.SmartContract.Framework.Native](../../native.md)
命名空间:[Neo.SmartContract.Framework.Native](../../native/index.md)

程序集:Neo.SmartContract.Framework

Expand Down Expand Up @@ -33,4 +33,4 @@ public class Contract1 : SmartContract.Framework.SmartContract
}
}
```
[返回上级](../Ledger.md)
[返回上级](index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

通过交易哈希 ,查找交易。

命名空间:[Neo.SmartContract.Framework.Native](../../native.md)
命名空间:[Neo.SmartContract.Framework.Native](../../native/index.md)

程序集:Neo.SmartContract.Framework

Expand All @@ -27,4 +27,4 @@ public class Contract1 : SmartContract.Framework.SmartContract
}
}
```
[返回上级](../Ledger.md)
[返回上级](index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

通过区块和交易索引查询指定的交易,其中区块可以通过区块索引(区块高度)或区块哈希指定。

命名空间:[Neo.SmartContract.Framework.Native](../../native.md)
命名空间:[Neo.SmartContract.Framework.Native](../../native/index.md)

程序集:Neo.SmartContract.Framework

Expand Down Expand Up @@ -35,4 +35,4 @@ public class Contract1 : SmartContract.Framework.SmartContract
}
}
```
[返回上级](../Ledger.md)
[返回上级](index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

通过交易哈希 ,查找交易所在的区块。

命名空间:[Neo.SmartContract.Framework.Native](../../native.md)
命名空间:[Neo.SmartContract.Framework.Native](../../native/index.md)

程序集:Neo.SmartContract.Framework

Expand All @@ -27,4 +27,4 @@ public class Contract1 : SmartContract.Framework.SmartContract
}
}
```
[返回上级](../Ledger.md)
[返回上级](index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

提供了原生合约GasToken的一系列属性与方法,合约哈希为`0xda65b600f7124ce6c79950c1772a36403104f2be`

命名空间:[Neo.SmartContract.Framework.Native](../native.md)
命名空间:[Neo.SmartContract.Framework.Native](index.md)

程序集:Neo.SmartContract.Framework

Expand All @@ -24,8 +24,8 @@ public class Ledger

| 名称 | 说明 |
| ------------------------------------------------------------ | ------------------------------------------------------------ |
| [GetBlock()](../native/Ledger/GetBlock.md) | 通过区块哈希或区块索引,查找区块 |
| [GetTransaction(UInt256 hash)](../native/Ledger/GetTransaction.md) | 通过交易 ID 查找交易 |
| [GetTransactionFromBlock()](../native/Ledger/GetTransactionFromBlock.md) | 通过区块和交易索引查询指定的交易 |
| [GetTransactionHeight(UInt256 hash)](../native/Ledger/GetTransactionHeight.md) | 通过交易哈希,获得交易所在区块的高度 |
| [GetBlock()](GetBlock.md) | 通过区块哈希或区块索引,查找区块 |
| [GetTransaction(UInt256 hash)](GetTransaction.md) | 通过交易 ID 查找交易 |
| [GetTransactionFromBlock()](GetTransactionFromBlock.md) | 通过区块和交易索引查询指定的交易 |
| [GetTransactionHeight(UInt256 hash)](GetTransactionHeight.md) | 通过交易哈希,获得交易所在区块的高度 |

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

支持的椭圆曲线扩展。

命名空间:[Neo.SmartContract.Framework.Native](../native.md)
命名空间:[Neo.SmartContract.Framework.Native](index.md)

程序集:Neo.SmartContract.Framework

Expand Down

This file was deleted.

Loading

0 comments on commit 09d1740

Please sign in to comment.