tx · GwcgBC5c2pCaSgFTQUpQzXFamqEFyQ1rzgbyvdSaWW8w 3N9tj3b2djcaZozn97VkYchL9S1i6cdEbC1: -0.00500000 Waves 2022.06.27 18:04 [2114998] smart account 3N9tj3b2djcaZozn97VkYchL9S1i6cdEbC1 > SELF 0.00000000 Waves
{ "type": 13, "id": "GwcgBC5c2pCaSgFTQUpQzXFamqEFyQ1rzgbyvdSaWW8w", "fee": 500000, "feeAssetId": null, "timestamp": 1656342326861, "version": 2, "chainId": 84, "sender": "3N9tj3b2djcaZozn97VkYchL9S1i6cdEbC1", "senderPublicKey": "YjNSeXGvvuyi7zZ1dR6t1m8EuszvAMtoqyqbMAFExAE", "proofs": [ "56oAKXr1VEJd7GKyeZWaXWMWmoNEnMHpEgmTosSxa1kkWua46Wpri7uSsriU41ZNWpsKfPTR44vjfXWjdZ2nNG49" ], "script": "base64:AAIFAAAAAAAAAB8IAhIPCg0IAQgBAQEEBAgIAQQBEgQKAggIEgQKAggIAAAAFwAAAAAKc2hpbnl3Z2dpZAEAAAAgiWnPAv+2urnUcZbXebiZdiawdNB3efRzbobw9HOfBiYAAAAAD3RyZWFzdXJ5QWRkcmVzcwEAAAAaAVRl+PAWCwTAWUJwGp5IjJf/ftwcYvLdu/0AAAAADWFzc2V0c0FkZHJlc3MBAAAAGgFUy+a0wXfXHSctaxYQS8qRSOspiwoalaeaAAAAABJtYXJrZXRwbGFjZUFkZHJlc3MBAAAAGgFUHSG5k/H8GMOnG0lxFkOWUXTrrFQuJbzvAAAAABRjb25maWd1cmF0aW9uQWRkcmVzcwEAAAAaAVTbIMuXkVY/Qg5sp2U1gothv7V0cji00C4AAAAADm5hdGlvbnNBZGRyZXNzAQAAABoBVE2F6N70+ERrWRA7cF/Dt7llDlH1REZtoAAAAAALYWRtaW5XYWxsZXQJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNNcE50aVBTUlNxNk5uYVFZazM4QmZXU3paY2dBWVR5clE5AAAAABZkYWlseU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AAANrZXkFAAAAA3ZhbAUAAAADbmlsAAAAAK9EUrs=", "height": 2114998, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CcfJcUG8LCqPk5bZQ3E1ewzCGEdwfVXHQjLwAvHo5NE3 Next: 9URjJpN5jBa3jPBnh6bSnBZjpzwuJjRzkyAsga35qXaQ Diff:
Old | New | Differences | |
---|---|---|---|
19 | 19 | ||
20 | 20 | let dailyStakingRewardsWallet = addressFromStringValue("3Mv3mr3uNXdpgkVPApbGEJjMQXqau37DY5i") | |
21 | 21 | ||
22 | - | func checkAdmin (caller) = if (if (if (if ((caller == adminWallet)) | |
22 | + | func checkAdmin (caller) = if (if (if (if (if ((caller == adminWallet)) | |
23 | 23 | then true | |
24 | 24 | else (caller == this)) | |
25 | 25 | then true | |
27 | 27 | then true | |
28 | 28 | else (caller.bytes == treasuryAddress)) | |
29 | 29 | then true | |
30 | - | else (caller.bytes == marketplaceAddress) | |
30 | + | else (caller.bytes == marketplaceAddress)) | |
31 | + | then true | |
32 | + | else (caller.bytes == nationsAddress) | |
31 | 33 | ||
32 | 34 | ||
33 | 35 | func tryGetInteger (key) = match getInteger(this, key) { | |
136 | 138 | } | |
137 | 139 | ||
138 | 140 | ||
141 | + | ||
142 | + | @Callable(i) | |
143 | + | func UpdKeyString (key,val) = if (!(checkAdmin(i.caller))) | |
144 | + | then throw("") | |
145 | + | else [StringEntry(key, val)] | |
146 | + | ||
147 | + | ||
148 | + | ||
149 | + | @Callable(i) | |
150 | + | func UpdKeyInt (key,val) = if (!(checkAdmin(i.caller))) | |
151 | + | then throw("") | |
152 | + | else [StringEntry(key, val)] | |
153 | + | ||
154 | + |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let shinywggid = base58'AFQS5E4ELtxex3iANtWtUU2V2oWJZSo8VVnK8z3VFmqf' | |
5 | 5 | ||
6 | 6 | let treasuryAddress = base58'3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ' | |
7 | 7 | ||
8 | 8 | let assetsAddress = base58'3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb' | |
9 | 9 | ||
10 | 10 | let marketplaceAddress = base58'3Mra7mjPipcQd5sJaRmXK8xgS4scb8gPF4A' | |
11 | 11 | ||
12 | 12 | let configurationAddress = base58'3N9tj3b2djcaZozn97VkYchL9S1i6cdEbC1' | |
13 | 13 | ||
14 | 14 | let nationsAddress = base58'3MvyzDtzWWV5MZ1GP8JfQhhQqiGU4Nbifdy' | |
15 | 15 | ||
16 | 16 | let adminWallet = addressFromStringValue("3MpNtiPSRSq6NnaQYk38BfWSzZcgAYTyrQ9") | |
17 | 17 | ||
18 | 18 | let dailyGameRewardsWallet = addressFromStringValue("3MuSrXTTiwo9bdoD6FeaBpMUYMiU5saDv2U") | |
19 | 19 | ||
20 | 20 | let dailyStakingRewardsWallet = addressFromStringValue("3Mv3mr3uNXdpgkVPApbGEJjMQXqau37DY5i") | |
21 | 21 | ||
22 | - | func checkAdmin (caller) = if (if (if (if ((caller == adminWallet)) | |
22 | + | func checkAdmin (caller) = if (if (if (if (if ((caller == adminWallet)) | |
23 | 23 | then true | |
24 | 24 | else (caller == this)) | |
25 | 25 | then true | |
26 | 26 | else (caller.bytes == assetsAddress)) | |
27 | 27 | then true | |
28 | 28 | else (caller.bytes == treasuryAddress)) | |
29 | 29 | then true | |
30 | - | else (caller.bytes == marketplaceAddress) | |
30 | + | else (caller.bytes == marketplaceAddress)) | |
31 | + | then true | |
32 | + | else (caller.bytes == nationsAddress) | |
31 | 33 | ||
32 | 34 | ||
33 | 35 | func tryGetInteger (key) = match getInteger(this, key) { | |
34 | 36 | case b: Int => | |
35 | 37 | b | |
36 | 38 | case _ => | |
37 | 39 | 0 | |
38 | 40 | } | |
39 | 41 | ||
40 | 42 | ||
41 | 43 | func tryGetBoolean (key) = match getBoolean(this, key) { | |
42 | 44 | case b: Boolean => | |
43 | 45 | b | |
44 | 46 | case _ => | |
45 | 47 | false | |
46 | 48 | } | |
47 | 49 | ||
48 | 50 | ||
49 | 51 | func tryGetString (key) = match getString(this, key) { | |
50 | 52 | case b: String => | |
51 | 53 | b | |
52 | 54 | case _ => | |
53 | 55 | "" | |
54 | 56 | } | |
55 | 57 | ||
56 | 58 | ||
57 | 59 | func getALKey (Name,Level) = ((Name + "_lvl") + toString(Level)) | |
58 | 60 | ||
59 | 61 | ||
60 | 62 | func confTryGetInteger (key) = match getInteger(Address(configurationAddress), key) { | |
61 | 63 | case b: Int => | |
62 | 64 | b | |
63 | 65 | case _ => | |
64 | 66 | 0 | |
65 | 67 | } | |
66 | 68 | ||
67 | 69 | ||
68 | 70 | func confTryGetString (key) = match getString(Address(configurationAddress), key) { | |
69 | 71 | case b: String => | |
70 | 72 | b | |
71 | 73 | case _ => | |
72 | 74 | "" | |
73 | 75 | } | |
74 | 76 | ||
75 | 77 | ||
76 | 78 | func confTryGetBoolean (key) = match getBoolean(Address(configurationAddress), key) { | |
77 | 79 | case b: Boolean => | |
78 | 80 | b | |
79 | 81 | case _ => | |
80 | 82 | false | |
81 | 83 | } | |
82 | 84 | ||
83 | 85 | ||
84 | 86 | func getTreasuryKey (nationid) = (nationid + "_Treasury") | |
85 | 87 | ||
86 | 88 | ||
87 | 89 | func treasuryTryGetInteger (key) = match getInteger(Address(treasuryAddress), key) { | |
88 | 90 | case b: Int => | |
89 | 91 | b | |
90 | 92 | case _ => | |
91 | 93 | 0 | |
92 | 94 | } | |
93 | 95 | ||
94 | 96 | ||
95 | 97 | func nationsTryGetInteger (key) = match getInteger(Address(nationsAddress), key) { | |
96 | 98 | case b: Int => | |
97 | 99 | b | |
98 | 100 | case _ => | |
99 | 101 | 0 | |
100 | 102 | } | |
101 | 103 | ||
102 | 104 | ||
103 | 105 | func nationsTryGetBoolean (key) = match getBoolean(Address(nationsAddress), key) { | |
104 | 106 | case b: Boolean => | |
105 | 107 | b | |
106 | 108 | case _ => | |
107 | 109 | false | |
108 | 110 | } | |
109 | 111 | ||
110 | 112 | ||
111 | 113 | func nationsTryGetString (key) = match getString(Address(nationsAddress), key) { | |
112 | 114 | case b: String => | |
113 | 115 | b | |
114 | 116 | case _ => | |
115 | 117 | "" | |
116 | 118 | } | |
117 | 119 | ||
118 | 120 | ||
119 | 121 | func getAssetOwnerKeyString (assetId) = (assetId + "_Owner") | |
120 | 122 | ||
121 | 123 | ||
122 | 124 | @Callable(i) | |
123 | 125 | func WriteConfig (AssetOrTecnhology,Level,Description,BuildingTime,Cost,Power,Aggregated,Nft,Technology_Discovered,SacrificeAsset,SacrificeAssetLevel,NationReserved,Sellprice) = if (!(checkAdmin(i.caller))) | |
124 | 126 | then throw("you are not allowed to perform this operation") | |
125 | 127 | else if (if ((Cost > 0)) | |
126 | 128 | then (SacrificeAsset != "") | |
127 | 129 | else false) | |
128 | 130 | then throw("you can specify a build cost OR an asset sacrifice, not both") | |
129 | 131 | else if (if (NationReserved) | |
130 | 132 | then (SacrificeAsset != "") | |
131 | 133 | else false) | |
132 | 134 | then throw("you cannot specify a sacrifice for a nation reserved item") | |
133 | 135 | else { | |
134 | 136 | let lk = getALKey(AssetOrTecnhology, Level) | |
135 | 137 | [IntegerEntry((lk + "_BuildTime"), BuildingTime), IntegerEntry((lk + "_Cost"), Cost), IntegerEntry((lk + "_Power"), Power), BooleanEntry((lk + "_Aggregated"), Aggregated), BooleanEntry((lk + "_NFT"), Nft), BooleanEntry((lk + "_NationReserved"), NationReserved), StringEntry((lk + "_Description"), Description), StringEntry((lk + "_Tecnhology_discovered"), Technology_Discovered), StringEntry((lk + "_SacrificeAsset"), SacrificeAsset), IntegerEntry((lk + "_SacrificeAssetLevel"), SacrificeAssetLevel), IntegerEntry((lk + "_SellPrice"), Sellprice)] | |
136 | 138 | } | |
137 | 139 | ||
138 | 140 | ||
141 | + | ||
142 | + | @Callable(i) | |
143 | + | func UpdKeyString (key,val) = if (!(checkAdmin(i.caller))) | |
144 | + | then throw("") | |
145 | + | else [StringEntry(key, val)] | |
146 | + | ||
147 | + | ||
148 | + | ||
149 | + | @Callable(i) | |
150 | + | func UpdKeyInt (key,val) = if (!(checkAdmin(i.caller))) | |
151 | + | then throw("") | |
152 | + | else [StringEntry(key, val)] | |
153 | + | ||
154 | + |
github/deemru/w8io/169f3d6 52.38 ms ◑