• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: コミット

Golang implemented sidechain for Bytom


コミットメタ情報

リビジョンeb29189ece261e125974247bb42a2b7512307f88 (tree)
日時2019-10-12 17:24:32
作者oys <oys@oysd...>
コミッターoys

ログメッセージ

optimise

変更サマリ

差分

--- a/protocol/vm/vmutil/script.go
+++ b/protocol/vm/vmutil/script.go
@@ -165,22 +165,23 @@ func P2WMCProgram(magneticContractArgs MagneticContractArgs) ([]byte, error) {
165165 // sellerProgram: Program,
166166 // standardProgram: Program,
167167 // sellerKey: PublicKey) locks valueAmount of valueAsset {
168-// clause partialTrade(exchangeAmount: Amount) {
168+// clause partialTrade(exchangeAmount: Amount) {
169169 // define actualAmount: Integer = exchangeAmount * ratioDenominator / ratioMolecule
170170 // verify actualAmount > 0 && actualAmount < valueAmount
171171 // lock exchangeAmount of requestedAsset with sellerProgram
172172 // lock valueAmount-actualAmount of valueAsset with standardProgram
173173 // unlock actualAmount of valueAsset
174-// }
175-// clause fullTrade() {
174+// }
175+// clause fullTrade() {
176176 // define requestedAmount: Integer = valueAmount * ratioMolecule / ratioDenominator
177177 // verify requestedAmount > 0
178178 // lock requestedAmount of requestedAsset with sellerProgram
179179 // unlock valueAmount of valueAsset
180-// }
181-// clause cancel(sellerSig: Signature) {
180+// }
181+// clause cancel(sellerSig: Signature) {
182182 // verify checkTxSig(sellerKey, sellerSig)
183183 // unlock valueAmount of valueAsset
184+// }
184185 // }
185186 //
186187 // contract stack flow:
旧リポジトリブラウザで表示