diff --git a/Roulette/Roulette.go b/Roulette/Roulette.go index 96d0147..461f218 100644 --- a/Roulette/Roulette.go +++ b/Roulette/Roulette.go @@ -21,7 +21,7 @@ func _deploy(data interface{}, isUpdate bool) { }) if len(args.zaCoinHash) != interop.Hash160Len { - panic("invalid hash of zaCoin contract") + panic("Invalid hash of zaCoin contract") } ctx := storage.GetContext() diff --git a/Roulette/config.json b/Roulette/config.json index 1c2037e..6c012d5 100755 --- a/Roulette/config.json +++ b/Roulette/config.json @@ -1 +1 @@ -{"name":"Roulette","abi":{"methods":[{"name":"_deploy","offset":0,"parameters":[{"name":"data","type":"Any"},{"name":"isUpdate","type":"Boolean"}],"returntype":"Void","safe":false},{"name":"onNEP17Payment","offset":408,"parameters":[{"name":"from","type":"Hash160"},{"name":"amount","type":"Integer"},{"name":"data","type":"Any"}],"returntype":"Void","safe":false},{"name":"playRoulette","offset":95,"parameters":[{"name":"bet","type":"Integer"},{"name":"selectedNumber","type":"Integer"}],"returntype":"Void","safe":false}],"events":[{"name":"rouletteNumber","parameters":[{"name":"int","type":"Integer"}]}]},"features":{},"groups":[{"pubkey":"027171df30177d401c638fb2ddc14f9dbda323291e363ba4f7c3b19a8b44c8ba0a","signature":"xSD7RzJHXAPvoQfwznNSFOu0E8CWbNrWLnLNInig/J66uBky9YZlj4h1wvC0VWQFtAnTLxmuo1UVRh2NGRhAww=="}],"permissions":[{"contract":"*","methods":"*"}],"supportedstandards":[],"trusts":[],"extra":null} \ No newline at end of file +{"name":"Roulette","abi":{"methods":[{"name":"_deploy","offset":0,"parameters":[{"name":"data","type":"Any"},{"name":"isUpdate","type":"Boolean"}],"returntype":"Void","safe":false},{"name":"onNEP17Payment","offset":408,"parameters":[{"name":"from","type":"Hash160"},{"name":"amount","type":"Integer"},{"name":"data","type":"Any"}],"returntype":"Void","safe":false},{"name":"playRoulette","offset":95,"parameters":[{"name":"bet","type":"Integer"},{"name":"selectedNumber","type":"Integer"}],"returntype":"Void","safe":false}],"events":[{"name":"rouletteNumber","parameters":[{"name":"int","type":"Integer"}]}]},"features":{},"groups":[],"permissions":[{"contract":"*","methods":"*"}],"supportedstandards":[],"trusts":[],"extra":null} \ No newline at end of file diff --git a/Roulette/roulette.nef b/Roulette/roulette.nef index c9cd256..59ff228 100755 Binary files a/Roulette/roulette.nef and b/Roulette/roulette.nef differ diff --git a/ZaCoin/config.json b/ZaCoin/config.json index fe17f63..182fae5 100755 --- a/ZaCoin/config.json +++ b/ZaCoin/config.json @@ -1 +1 @@ -{"name":"ZaCoin","abi":{"methods":[{"name":"balanceOf","offset":583,"parameters":[{"name":"holder","type":"Hash160"}],"returntype":"Integer","safe":true},{"name":"decimals","offset":559,"parameters":[],"returntype":"Integer","safe":true},{"name":"isUsableAddress","offset":254,"parameters":[{"name":"addr","type":"ByteArray"}],"returntype":"Boolean","safe":false},{"name":"mint","offset":633,"parameters":[{"name":"to","type":"Hash160"}],"returntype":"Void","safe":false},{"name":"symbol","offset":554,"parameters":[],"returntype":"String","safe":true},{"name":"totalSupply","offset":564,"parameters":[],"returntype":"Integer","safe":true},{"name":"transfer","offset":606,"parameters":[{"name":"from","type":"Hash160"},{"name":"to","type":"Hash160"},{"name":"amount","type":"Integer"},{"name":"data","type":"Any"}],"returntype":"Boolean","safe":false}],"events":[{"name":"Transfer","parameters":[{"name":"from","type":"Hash160"},{"name":"to","type":"Hash160"},{"name":"amount","type":"Integer"}]}]},"features":{},"groups":[{"pubkey":"027171df30177d401c638fb2ddc14f9dbda323291e363ba4f7c3b19a8b44c8ba0a","signature":"2YQ2Jy/KZJlg9lQyguFyOpKfY4L2HYvwHkb6XkiALhVlPFVUKXvKMF5I2u9dnIFCLvI0W9h/D/46edTwPCpLjg=="}],"permissions":[{"contract":"*","methods":["onNEP17Payment"]}],"supportedstandards":["NEP-17"],"trusts":[],"extra":null} \ No newline at end of file +{"name":"ZaCoin","abi":{"methods":[{"name":"balanceOf","offset":583,"parameters":[{"name":"holder","type":"Hash160"}],"returntype":"Integer","safe":true},{"name":"decimals","offset":559,"parameters":[],"returntype":"Integer","safe":true},{"name":"isUsableAddress","offset":254,"parameters":[{"name":"addr","type":"ByteArray"}],"returntype":"Boolean","safe":false},{"name":"mint","offset":633,"parameters":[{"name":"to","type":"Hash160"}],"returntype":"Void","safe":false},{"name":"symbol","offset":554,"parameters":[],"returntype":"String","safe":true},{"name":"totalSupply","offset":564,"parameters":[],"returntype":"Integer","safe":true},{"name":"transfer","offset":606,"parameters":[{"name":"from","type":"Hash160"},{"name":"to","type":"Hash160"},{"name":"amount","type":"Integer"},{"name":"data","type":"Any"}],"returntype":"Boolean","safe":false}],"events":[{"name":"Transfer","parameters":[{"name":"from","type":"Hash160"},{"name":"to","type":"Hash160"},{"name":"amount","type":"Integer"}]}]},"features":{},"groups":[],"permissions":[{"contract":"*","methods":["onNEP17Payment"]}],"supportedstandards":["NEP-17"],"trusts":[],"extra":null} \ No newline at end of file diff --git a/ZaCoin/zaCoin.nef b/ZaCoin/zacoin.nef similarity index 87% rename from ZaCoin/zaCoin.nef rename to ZaCoin/zacoin.nef index 28c012c..d7768ae 100755 Binary files a/ZaCoin/zaCoin.nef and b/ZaCoin/zacoin.nef differ diff --git a/ZaCoin/zacoin_contract.go b/ZaCoin/zacoin_contract.go index fbe5c98..7861f13 100644 --- a/ZaCoin/zacoin_contract.go +++ b/ZaCoin/zacoin_contract.go @@ -7,7 +7,6 @@ import ( ) func getToken() Token { - // Owner of the wallet is wallets/game-wallet.json нету еще owner := address.ToHash160("NXbLSnHA8dNuMUPUSNNivx7XFucN1w5bRq") token := Token{ Name: "ZaCoin", @@ -53,6 +52,6 @@ func Mint(to interop.Hash160) { ctx := storage.GetContext() minted := getToken().Mint(ctx, to) if !minted { - panic("failed to mint initial supply") + panic("Failed to mint initial supply") } } diff --git a/wallets/wallet1.json b/wallets/wallet1.json index a67ecfd..49344ad 100644 --- a/wallets/wallet1.json +++ b/wallets/wallet1.json @@ -1 +1 @@ -{"version":"1.0","accounts":[{"address":"NhCHDEtGgSph1v6PmjFC1gtzJWNKtNSadk","key":"6PYQVTyo4PHBvegpRzSCNijGw6Zj2qN4wLVxTj5CM8nvsoYxkzBHqPzjzq","label":"wallet1","contract":{"script":"DCEDsJuqv/P2EHx+msuHIab8VhjUW1AkejFNguVIcCzOjNVBVuezJw==","parameters":[{"name":"parameter0","type":"Signature"}],"deployed":false},"lock":false,"isDefault":false}],"scrypt":{"n":16384,"r":8,"p":8},"extra":{"Tokens":null}} \ No newline at end of file +{"version":"1.0","accounts":[{"address":"NNkgaxu8GR6s53CYcjGkavVjJsqC4LH6J9","key":"6PYLVbnCcCCb4GA6vPShKapv9PRwwo9rPmY33wDvvrbs9mysTQrPJYaUYK","label":"","contract":{"script":"DCEDvS4Krub5RkiiMrvQ4jM1PgqDw5rlhScBziY1oCTNZ7RBVuezJw==","parameters":[{"name":"parameter0","type":"Signature"}],"deployed":false},"lock":false,"isDefault":false}],"scrypt":{"n":16384,"r":8,"p":8},"extra":{"Tokens":null}} \ No newline at end of file diff --git a/wallets/wallet2.json b/wallets/wallet2.json index f14e64b..40735e5 100644 --- a/wallets/wallet2.json +++ b/wallets/wallet2.json @@ -1 +1 @@ -{"version":"1.0","accounts":[{"address":"NivQRezLwGP8xFPr87DD5XaYGUKK3BMsTa","key":"6PYWJrGbrRmY9eTagWhNaucN2PfuPmi1G3QStUwNX8uAtCjTs6UYj1V1J9","label":"wallet2","contract":{"script":"DCED44dZlzprtyK6q8LdhANqOfCy9T0y/sRaTazeilD+S3BBVuezJw==","parameters":[{"name":"parameter0","type":"Signature"}],"deployed":false},"lock":false,"isDefault":false}],"scrypt":{"n":16384,"r":8,"p":8},"extra":{"Tokens":null}} \ No newline at end of file +{"version":"1.0","accounts":[{"address":"NW3soYmG6gBDmcWnFwDZbTVcFtgHPfKy4Z","key":"6PYVqRwEt2NDWwv4BY4ExMVY4tVsdHfSjQq9PCcX7GEfzoigU3fWedp1AQ","label":"frida","contract":{"script":"DCECujzjikhCmhorLPbReBCUm685BB5wgJI2DNJ0V01Ix9VBVuezJw==","parameters":[{"name":"parameter0","type":"Signature"}],"deployed":false},"lock":false,"isDefault":false}],"scrypt":{"n":16384,"r":8,"p":8},"extra":{"Tokens":null}} \ No newline at end of file