Skip to content

Commit b95b4a0

Browse files
authored
Merge pull request starcoinorg#188 from starcoinorg/fix_links
fix some broke links
2 parents e48e6a6 + 138e694 commit b95b4a0

17 files changed

+36
-36
lines changed

content/developer/blog/starcoin_merkle_nft.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The logic of MerkleNFTDistributor is concise. It implements NFT registration and
7878
- The register function calls the register of the NFT protocol to register the metadata of the NFT;
7979
- The function mint_with_cap is the NFT required by mint users and the function also calls the NFT protocol. It is important to note that the user needs to pass MerkleTree-related parameters such as merkle_proof, and the verify of the MerkleProof module will be called for verification, and only the verification is passed,an mint is succeed;
8080

81-
The MerkleProof module and MerkleNFTDistributor module are the core implementations of MerkleNFT. The whole logic is very clear and concise. The design uses MerkleTree ingeniously to reduce the logic complexity. It is an interesting application scenario of the NFT protocol. Those who interested can view [the complete source code](https://github.com/starcoinorg/starcoin/blob/master/vm/stdlib/sources/MerkleNFT.move).
81+
The MerkleProof module and MerkleNFTDistributor module are the core implementations of MerkleNFT. The whole logic is very clear and concise. The design uses MerkleTree ingeniously to reduce the logic complexity. It is an interesting application scenario of the NFT protocol. Those who interested can view [the complete source code](https://github.com/starcoinorg/starcoin-framework/tree/main/sources/MerkleNFT.move).
8282

8383

8484

content/developer/blog/starcoin_merkle_nft.zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ MerkleNFTDistributor逻辑也比较简洁,在标准NFT协议实现NFT注册和
8282
* register函数调用了NFT协议的register注册NFT的元数据;
8383
* mint_with_cap函数的作用是mint用户需要的NFT,也是调用了NFT协议的函数,这里需要格外注意的是,用户需要传递merkle_proof等MerkleTree相关的参数,会调用MerkleProof模块的verify进行校验,只有校验通过,才能mint成功;
8484

85-
MerkleProof模块和MerkleNFTDistributor模块是MerkleNFT的核心实现,整个逻辑很清晰、简洁,设计上巧用了MerkleTree,降低了逻辑复杂度,是NFT协议很有意思的一个应用场景。感兴趣的可以查看[完整源码](https://github.com/starcoinorg/starcoin/blob/master/vm/stdlib/sources/MerkleNFT.move)
85+
MerkleProof模块和MerkleNFTDistributor模块是MerkleNFT的核心实现,整个逻辑很清晰、简洁,设计上巧用了MerkleTree,降低了逻辑复杂度,是NFT协议很有意思的一个应用场景。感兴趣的可以查看[完整源码](https://github.com/starcoinorg/starcoin-framework/tree/main/sources/MerkleNFT.move)
8686

8787

8888

@@ -96,7 +96,7 @@ GenesisNFT模块是Starcoin反馈主网上线前在Proxima挖矿的老用户而
9696
public(script) fun mint(sender: signer, index: u64, merkle_proof:vector<vector<u8>>)
9797
~~~
9898

99-
以上是GenesisNFTScripts模块中的mint函数,是script可见性,任何用户都可以发起这个交易,但是只有MerkleProof合法的用户才能拿到属于自己的纪念版NFT。感兴趣的可以查看[完整源码](https://github.com/starcoinorg/starcoin/blob/master/vm/stdlib/sources/GenesisNFT.move)
99+
以上是GenesisNFTScripts模块中的mint函数,是script可见性,任何用户都可以发起这个交易,但是只有MerkleProof合法的用户才能拿到属于自己的纪念版NFT。感兴趣的可以查看[完整源码](https://github.com/starcoinorg/starcoin-framework/tree/main/sources/GenesisNFT.move)
100100

101101

102102

content/developer/blog/starcoin_metaverse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,4 @@ NFT implementation and extension protocol SIP22:
113113

114114
NFT implementation code:
115115

116-
[https://github.com/starcoinorg/starcoin/blob/master/vm/stdlib/modules/NFT.move](https://github.com/starcoinorg/starcoin/blob/master/vm/stdlib/modules/NFT.move)
116+
[https://github.com/starcoinorg/starcoin-framework/tree/main/sources/NFT.move](https://github.com/starcoinorg/starcoin-framework/tree/main/sources/NFT.move)

content/developer/blog/starcoin_metaverse.zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ NFT 的实现和扩展协议 SIP22:
100100
&emsp;&emsp;[https://github.com/starcoinorg/sips/blob/master/sip-22/index.zh.md](https://github.com/starcoinorg/sips/blob/master/sip-22/index.zh.md)
101101

102102
NFT的实现代码:
103-
&emsp;&emsp;[https://github.com/starcoinorg/starcoin/blob/master/vm/stdlib/modules/NFT.move](https://github.com/starcoinorg/starcoin/blob/master/vm/stdlib/modules/NFT.move)
103+
&emsp;&emsp;[https://github.com/starcoinorg/starcoin-framework/tree/main/sources/NFT.move](https://github.com/starcoinorg/starcoin-framework/tree/main/sources/NFT.move)

content/developer/blog/starcoin_nft_application.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Here we don't discuss what kind of cards L1Card and L2Card represent, nor discus
6868
- The function "init" calls the NFT::register_v2 function in the Starcoin standard NFT protocol to register the two types of NFTs, L1Card and L2Card.
6969
- The mint_l1 function and mint_l2 function both call the NFT::mint_with_cap_v2 function in the Starcoin standard NFT protocol mint real NFT
7070

71-
The Starcoin standard NFT protocol design is very simple and efficient, and it can be used directly. In the example, the NFT card game only calls the two functions of the protocol, NFT::register_v2 and NFT::mint_with_cap_v2, which combines NFT with the game very easily. The entire contract is less than 100 lines of code. On the basis of ensuring the security of NFT, it implements the flexible combination of NFT. Those who interested can view [the complete code](https://github.com/starcoinorg/starcoin/blob/master/vm/transactional-tests/tests/testsuite/nft/nft_card.move).
71+
The Starcoin standard NFT protocol design is very simple and efficient, and it can be used directly. In the example, the NFT card game only calls the two functions of the protocol, NFT::register_v2 and NFT::mint_with_cap_v2, which combines NFT with the game very easily. The entire contract is less than 100 lines of code. On the basis of ensuring the security of NFT, it implements the flexible combination of NFT. Those who interested can view [the complete code](https://github.com/starcoinorg/starcoin-framework/blob/main/spectests/nft/nft_card.move).
7272

7373

7474

@@ -105,7 +105,7 @@ Here we focus on the logic of NFT as a membership:
105105
- The quit function calls IdentifierNFT::revoke to recover the member’s NFT credentials, and destroys the NFT through NFT::burn_with_cap
106106
- do_membership_action calls IdentifierNFT::is_owns to determine the user's membership
107107

108-
The above is an example of using NFT as a member ID, which uses both the standard NFT protocol of Starcoin and the IdentifierNFT module. Although there are only about 100 lines of code, from initializing the NFT to casting, using and destroying the NFT, it covers the entire NFT's life cycle. The contract logic is simple and clear. More importantly, it guarantees the security of NFT and Token. If you are interested, you can view [the complete contract code](https://github.com/starcoinorg/starcoin/blob/master/vm/transactional-tests/tests/testsuite/nft/identifier_nft.move).
108+
The above is an example of using NFT as a member ID, which uses both the standard NFT protocol of Starcoin and the IdentifierNFT module. Although there are only about 100 lines of code, from initializing the NFT to casting, using and destroying the NFT, it covers the entire NFT's life cycle. The contract logic is simple and clear. More importantly, it guarantees the security of NFT and Token. If you are interested, you can view [the complete contract code](https://github.com/starcoinorg/starcoin-framework/blob/main/spectests/nft/identifier_nft.move).
109109

110110
<img src="https://tva1.sinaimg.cn/large/008i3skNly1gwb9k9ju6lj30ma0diq3i.jpg" alt="starcoin_nft_vip" style="zoom:30%;" />
111111

@@ -134,7 +134,7 @@ The above code segement is the main logic of the BoxMiner module:
134134
- The init function is the initialization function, calling NFT::register_v2 to register the NFT type of BoxMiner
135135
- The mint function is used for users to purchase NFT, call NFT::mint_with_cap_v2 to cast NFT
136136

137-
The entire contract is about 50 lines, which not only implements the complete business logic, but also guarantees the safety and reliability of the NFT. If you are interested, you can view [the complete contract code](https://github.com/starcoinorg/starcoin/blob/master/vm/transactional-tests/tests/testsuite/nft/nft_boxminer.move).
137+
The entire contract is about 50 lines, which not only implements the complete business logic, but also guarantees the safety and reliability of the NFT. If you are interested, you can view [the complete contract code](https://github.com/starcoinorg/starcoin-framework/blob/main/spectests/nft/nft_boxminer.move).
138138

139139

140140

content/developer/blog/starcoin_nft_application.zh.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ NFT的价值正在很多领域凸显出来,常见的比如游戏、社交、
6565
* init函数调用了Starcoin标准NFT协议中的NFT::register_v2函数注册L1Card和L2Card这两种类型的NFT
6666
* mint_l1函数和mint_l2函数都调用了Starcoin标准NFT协议中的NFT::mint_with_cap_v2函数mint真正的NFT
6767

68-
Starcoin标准NFT协议设计非常简洁高效,开箱即用。例子中,NFT的卡牌游戏,只调用了协议的NFT::register_v2和NFT::mint_with_cap_v2两个函数,非常轻松地把NFT和游戏结合起来了。整个合约不到100行代码,在保障NFT安全的基础上,实现了NFT的灵活组合。感兴趣的可以查看[完整代码](https://github.com/starcoinorg/starcoin/blob/master/vm/transactional-tests/tests/testsuite/nft/nft_card.move)
68+
Starcoin标准NFT协议设计非常简洁高效,开箱即用。例子中,NFT的卡牌游戏,只调用了协议的NFT::register_v2和NFT::mint_with_cap_v2两个函数,非常轻松地把NFT和游戏结合起来了。整个合约不到100行代码,在保障NFT安全的基础上,实现了NFT的灵活组合。感兴趣的可以查看[完整代码](https://github.com/starcoinorg/starcoin-framework/blob/main/spectests/nft/nft_card.move)
6969

7070
Starcoin标准NFT协议通过Move的泛型,拥有了灵活的可堆叠性,也支持批量操作,可以非常轻松地应用在游戏场景。
7171

@@ -103,7 +103,7 @@ NFT作为虚拟身份的标识,在社交等领域也有非常广泛的应用
103103
* quit函数调用IdentifierNFT::revoke收回会员NFT凭证,并通过NFT::burn_with_cap销毁NFT
104104
* do_membership_action调用IdentifierNFT::is_owns判断用户的会员身份
105105

106-
以上是使用NFT作为会员标识的例子,里面既使用了Starcoin的标准NFT协议,也运用了IdentifierNFT模块。虽然只有大概100行代码,从初始化NFT开始,到铸造、使用以及销毁NFT,覆盖了整个NFT的生命周期。合约逻辑简单清晰,更重要的是保障了NFT和Token的安全,感兴趣的可以查看[完整合约代码](https://github.com/starcoinorg/starcoin/blob/master/vm/transactional-tests/tests/testsuite/nft/identifier_nft.move)
106+
以上是使用NFT作为会员标识的例子,里面既使用了Starcoin的标准NFT协议,也运用了IdentifierNFT模块。虽然只有大概100行代码,从初始化NFT开始,到铸造、使用以及销毁NFT,覆盖了整个NFT的生命周期。合约逻辑简单清晰,更重要的是保障了NFT和Token的安全,感兴趣的可以查看[完整合约代码](https://github.com/starcoinorg/starcoin-framework/blob/main/spectests/nft/identifier_nft.move)
107107

108108
NFT作为虚拟身份的场景还有很多,Starcoin未来会推出更多的应用。
109109

@@ -134,7 +134,7 @@ NFT在电商场景也被广泛应用,例如盲盒、潮玩等等。我们从
134134
* init函数是初始化函数,调用NFT::register_v2注册BoxMiner的NFT类型
135135
* mint函数用于用户购买NFT,调用NFT::mint_with_cap_v2铸造NFT
136136

137-
整个合约大概50行,既实现了完整的业务逻辑,又保障了NFT的安全可靠,感兴趣的可以查看[完整合约代码](https://github.com/starcoinorg/starcoin/blob/master/vm/transactional-tests/tests/testsuite/nft/nft_boxminer.move)
137+
整个合约大概50行,既实现了完整的业务逻辑,又保障了NFT的安全可靠,感兴趣的可以查看[完整合约代码](https://github.com/starcoinorg/starcoin-framework/blob/main/spectests/nft/nft_boxminer.move)
138138

139139
电商场景对资产安全的要求更严格。Move正是为金融场景打造的高安全性的智能合约语言。Starcoin标准NFT协议正是通过Move实现,这种得天独厚的安全性,让Starcoin标准NFT协议特别适合电商场景。
140140

content/developer/blog/starcoin_stdlib_config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ RewardConfig is stored under GENESIS_ADDRESS (Genesis Account is the genesis acc
113113

114114
## Summarize
115115

116-
Config is a global module, any account can be used to store and manage the configuration in its own address. In order to avoid the problem of large arrays, Config does not use arrays to implement it, which is safe and reliable. Some global configurations of Starcoin are saved under the Genesis Account account using the Config contract. Those interested can view [the complete code](https://github.com/starcoinorg/starcoin/blob/master/vm/stdlib/sources/Config.move).
116+
Config is a global module, any account can be used to store and manage the configuration in its own address. In order to avoid the problem of large arrays, Config does not use arrays to implement it, which is safe and reliable. Some global configurations of Starcoin are saved under the Genesis Account account using the Config contract. Those interested can view [the complete code](https://github.com/starcoinorg/starcoin-framework/tree/main/sources/Config.move).
117117

118118

119119

content/developer/blog/starcoin_stdlib_config.zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ RewardConfig存储在GENESIS_ADDRESS下(Genesis Account是Starcoin的创世账
121121

122122
## 总结
123123

124-
Config是一个通用模块,任何账户可以用来在自己的地址下存储和管理配置。为了避免大数组问题,Config没有使用数组来实现,安全可靠。Starcoin的一些全局配置,正是使用Config合约保存在Genesis Account账户下。感兴趣的可以查看[完整代码](https://github.com/starcoinorg/starcoin/blob/master/vm/stdlib/sources/Config.move)
124+
Config是一个通用模块,任何账户可以用来在自己的地址下存储和管理配置。为了避免大数组问题,Config没有使用数组来实现,安全可靠。Starcoin的一些全局配置,正是使用Config合约保存在Genesis Account账户下。感兴趣的可以查看[完整代码](https://github.com/starcoinorg/starcoin-framework/tree/main/sources/Config.move)

content/developer/blog/starcoin_token_proto.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ TokenCode is the only way to distinguish between different Tokens. Same value o
120120

121121
The above function covers the whole Token life cycle: registration, minting, destruction, recharge, and withdrawal.
122122

123-
Starcoin's Token protocol takes advantage of Move, and has designed a secure Token type and TokenInfo type. By passing generic parameters, it is guaranteed that Token can be arbitrarily combined and the protocol can be expanded. Click to view [the complete code](https://github.com/starcoinorg/starcoin/blob/master/vm/stdlib/sources/Token.move).
123+
Starcoin's Token protocol takes advantage of Move, and has designed a secure Token type and TokenInfo type. By passing generic parameters, it is guaranteed that Token can be arbitrarily combined and the protocol can be expanded. Click to view [the complete code](https://github.com/starcoinorg/starcoin-framework/tree/main/sources/Token.move).
124124

125125

126126

content/developer/blog/starcoin_token_proto.zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ TokenCode是区别不同Token的唯一方式,只有addr、module_name、name
120120

121121
上面的函数覆盖了整个Token的生命周期:注册、铸造、销毁、充值、提款。
122122

123-
Starcoin的Token协议重复发挥了Move的优势,设计了安全的Token类型和TokenInfo类型,通过泛型参数的方式,保证Token可自由组合、协议可扩展,点击查看[完整代码](https://github.com/starcoinorg/starcoin/blob/master/vm/stdlib/sources/Token.move)
123+
Starcoin的Token协议重复发挥了Move的优势,设计了安全的Token类型和TokenInfo类型,通过泛型参数的方式,保证Token可自由组合、协议可扩展,点击查看[完整代码](https://github.com/starcoinorg/starcoin-framework/tree/main/sources/Token.move)
124124

125125

126126

@@ -150,7 +150,7 @@ STC的完整TokenCode是0x1::STC::STC,分别对应addr、module_name、name这
150150
* 铸造STC:Token::mint,在创世交易中铸造,同时把所有STC托管到Treasury中锁定
151151
* 共享销毁权:把BurnCapability存放在SharedBurnCapability中,任何人可以使用
152152

153-
STC是一种通过Starcoin的Token协议定义的Token,跟其他Token一样,继承了Token协议的所有功能,查看[完整代码](https://github.com/starcoinorg/starcoin/blob/master/vm/stdlib/modules/STC.move)
153+
STC是一种通过Starcoin的Token协议定义的Token,跟其他Token一样,继承了Token协议的所有功能,查看[完整代码](https://github.com/starcoinorg/starcoin-framework/tree/main/sources/STC.move)
154154

155155

156156

0 commit comments

Comments
 (0)