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

Commit ceb4e7b

Browse files
Celia18305ProDog
andauthored
Update migration (#1307)
* Update migration * updated * fix link * update toc * updated * Update tutorials/zh-cn/migrationB.md Co-authored-by: GZ <[email protected]> * Update tutorials/zh-cn/migrationB.md Co-authored-by: GZ <[email protected]> * Update migrationB.md * Update migrationB.md Co-authored-by: GZ <[email protected]>
1 parent 30845c1 commit ceb4e7b

File tree

4 files changed

+51
-2
lines changed

4 files changed

+51
-2
lines changed

tutorials/en-us/migrationB.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Migration from Neo Legacy to Neo N3
2+
3+
This tutorial is intended to guide exchange developers in migrating the global assets NEO/GAS/nNEO/cGAS on the Neo Legacy chain to the Neo N3 chain via transfer transactions.
4+
5+
## Migration process flow
6+
7+
1. On Neo Legacy side, the user sends a transfer transaction (Invocation Transaction/Contracttransaction) to the specific address `ANeo2toNeo3MigrationAddressxwPB2Hz`, placing the N3 standard address (in stringhex format) in **attribute** of the transaction using the key **Remark14**.
8+
9+
The code demos in multi-languages are provided for your reference: [Demos](https://github.com/neo-ngd/sdkDemo)
10+
11+
> [!Caution]
12+
>
13+
> Before sending the transaction, ensure that your transaction meets all the following requirements, otherwise it would not be processed and your assets sent out would be lost!
14+
>
15+
> - The N3 address in the transaction is valid and only one Remark14 in **attribute**.
16+
> - For migration asset amount equal to or more than 10 NEO or 20 GAS it is free. If you are migrating less than that amount, you have to attach **1 GAS as network fee**.
17+
> - One transaction can only include one kind of asset for migration except GAS for network fee payment.
18+
19+
2. We will scan all the Neo legacy transactions sent to the specific address and sends the corresponding amount of NEO/GAS token to the N3 address at regular intervals (up to one business day) only if the transaction is valid.
20+
21+
## See also
22+
23+
- [Asset Contract Hashes](https://github.com/neo-ngd/sdkDemo/blob/master/contracthash.md)
24+
- [Guideline on Migration Page](migration-guide.md)

tutorials/en-us/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
- name: Cross-chain Migration
44
items:
55
- name: Migration Development Guideline
6-
href: /tutorials/en-us/migration.md
6+
href: /tutorials/en-us/migrationB.md
77
- name: Migration Guideline on Migration Page
88
href: /tutorials/en-us/migration-guide.md

tutorials/zh-cn/migrationB.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# 从 Neo Legacy 迁移到 Neo N3
2+
3+
本教程将指导开发人员通过转账的方式将 Neo Legacy 上的资产 NEO/GAS/nNEO/cGAS 迁移到 Neo N3。
4+
5+
## 迁移流程
6+
7+
1. 在 Neo Legacy 端, 用户构建一笔转账交易 (Invocation Transaction/Contracttransaction) 将迁移资产发送到指定地址 `ANeo2toNeo3MigrationAddressxwPB2Hz`, 在这笔交易中将 N3 合法地址 (stringhex格式) 放入交易的 attribute中,使用 **Remark14** 作为 Key。
8+
9+
多语言交易代码可参考示例:[Demos](https://github.com/neo-ngd/sdkDemo)
10+
11+
> [!Caution]
12+
>
13+
> 发送交易前,请确保该交易满足以下所有要求,否则该交易不会被处理且迁移的资产无法找回!
14+
>
15+
> - 交易中的 N3 地址合法且 **attribute **里仅包含一个 Remark14。
16+
> - 迁移资产大于等于 10 NEO 或 20 GAS 是免费的。如果迁移资产小于该金额,必须附加 **1 GAS** 作为网络费。
17+
> - 除了作为网络费的 GAS,一笔交易仅包含一种资产。
18+
> - NEO 或 nNEO 不支持小数部分迁移,N3 发放 NEO 时会做向下取整。
19+
20+
2. 我们将扫描所有 Neo legacy 上发送到上述特定地址的交易,如果验证交易合法,将每隔一段时间(最长一个工作日)将对应金额的资产发送到指定的N3 地址。
21+
22+
## 相关参考
23+
24+
- [资产合约 Hash](https://github.com/neo-ngd/sdkDemo/blob/master/contracthash.md)
25+
- [Neo N3 迁移页面指南](migration-guide.md)

tutorials/zh-cn/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
- name: 跨链迁移
44
items:
55
- name: 迁移开发指南
6-
href: /tutorials/zh-cn/migration.md
6+
href: /tutorials/zh-cn/migrationB.md
77
- name: 迁移页面指南
88
href: /tutorials/zh-cn/migration-guide.md

0 commit comments

Comments
 (0)