tx · A3osnWz3LAfBtmRyqDTN4wPUUMNb8KmMdEzBZNmfMfxz 3NC9boevS259eTsMAkFAxCPorzK4Z9bpWje: -0.01400000 Waves 2023.01.30 16:07 [2427741] smart account 3NC9boevS259eTsMAkFAxCPorzK4Z9bpWje > SELF 0.00000000 Waves
{ "type": 13, "id": "A3osnWz3LAfBtmRyqDTN4wPUUMNb8KmMdEzBZNmfMfxz", "fee": 1400000, "feeAssetId": null, "timestamp": 1675084059749, "version": 2, "chainId": 84, "sender": "3NC9boevS259eTsMAkFAxCPorzK4Z9bpWje", "senderPublicKey": "515tSAyMUbAb8kKjcpGDpqALGfCgcwfWmWKKkcBKTcGB", "proofs": [ "6n6KUXHzMeWMdTi5m53kHa51mVQEwEPpgJu2L4QqJ7A8zVK1tVjYXbWFD4TmpQpH9Hv9SNj8h4e9bSbQySq6n6h" ], "script": "base64:AAIFAAAAAAAAABIIAhIAEgASAwoBCBIDCgEBEgAAAAACAAAAABREYXBwX0FkZHJlc3NfcHViX2tleQEAAAAgq4kJ/Yx/hxwE0cwMFuJmegviyQmGySeZGqn46Eb83C8AAAAAGW9yYWNsZV9jb250cm9sbGVyX2FkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAFERhcHBfQWRkcmVzc19wdWJfa2V5AAAABQAAAAFpAQAAAA9wbGFjZW9wdGlvbkNhbGwAAAAABAAAAA1jYWxsZXJhZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAEnJlYWRfb3JhY2xlX3N0YXR1cwkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAANb3JhY2xlX3N0YXR1cwQAAAAUcmVhZF9PcHRpb25Db3VudGVySUQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAADjFtX2NvbnRyYWN0X2lkBAAAAApnZXRidGNkYXRhCQEAAAARQGV4dHJOYXRpd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AAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BFNdrg==", "height": 2427741, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8iS5rBhpnJBKgBERcguh4HCfnT3NNS3Gy4f4bEoXt3J Next: AkQH5dMrNAfPyDww271RCqnu2ub6UHquW76D8XHVrWZh Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let Dapp_Address_pub_key = base58' | |
4 | + | let Dapp_Address_pub_key = base58'CYbv2nupcWmnVFixN6Q2sxd9ChbDsq1KqXQ66VjsZBJE' | |
5 | 5 | ||
6 | 6 | let oracle_controller_address = addressFromPublicKey(Dapp_Address_pub_key) | |
7 | 7 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let Dapp_Address_pub_key = base58' | |
4 | + | let Dapp_Address_pub_key = base58'CYbv2nupcWmnVFixN6Q2sxd9ChbDsq1KqXQ66VjsZBJE' | |
5 | 5 | ||
6 | 6 | let oracle_controller_address = addressFromPublicKey(Dapp_Address_pub_key) | |
7 | 7 | ||
8 | 8 | @Callable(i) | |
9 | 9 | func placeoptionCall () = { | |
10 | 10 | let calleraddress = toBase58String(i.caller.bytes) | |
11 | 11 | let read_oracle_status = getStringValue(this, "oracle_status") | |
12 | 12 | let read_OptionCounterID = getIntegerValue(this, "1m_contract_id") | |
13 | 13 | let getbtcdata = getStringValue(this, ("1m_btc_" + toString(read_OptionCounterID))) | |
14 | 14 | let swapLi = split(getbtcdata, "_") | |
15 | 15 | let price = swapLi[0] | |
16 | 16 | let block = parseIntValue(swapLi[2]) | |
17 | 17 | let checkblockgap = (height - block) | |
18 | 18 | let OpionExpireCounter = 1 | |
19 | 19 | let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter) | |
20 | 20 | let PreviousCall = match getInteger(this, "Total_Calls") { | |
21 | 21 | case a: Int => | |
22 | 22 | a | |
23 | 23 | case _ => | |
24 | 24 | 0 | |
25 | 25 | } | |
26 | 26 | let TotalCall = (PreviousCall + 1) | |
27 | 27 | let PreviousUserCall = match getInteger(this, (calleraddress + "_Total_Calls")) { | |
28 | 28 | case a: Int => | |
29 | 29 | a | |
30 | 30 | case _ => | |
31 | 31 | 0 | |
32 | 32 | } | |
33 | 33 | let TotalUserCall = (PreviousUserCall + 1) | |
34 | 34 | if ((checkblockgap > 2)) | |
35 | 35 | then throw("Something Wrong with Oracle or Height is not matched.") | |
36 | 36 | else if ((read_oracle_status == "Close")) | |
37 | 37 | then throw("Oracle is closed. Wait Until Oracle is Turned On.") | |
38 | 38 | else [StringEntry(((("Call_" + calleraddress) + "_") + toString(TotalUserCall)), price), StringEntry(((("Call_Start_End_" + calleraddress) + "_") + toString(TotalUserCall)), ((toString(read_OptionCounterID) + "_") + toString(OptionExpireCounterID))), IntegerEntry("Total_Calls", TotalCall), IntegerEntry((calleraddress + "_Total_Calls"), TotalUserCall)] | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | ||
43 | 43 | @Callable(i) | |
44 | 44 | func placeoptionPut () = { | |
45 | 45 | let calleraddress = toBase58String(i.caller.bytes) | |
46 | 46 | let read_oracle_status = getStringValue(this, "oracle_status") | |
47 | 47 | let read_OptionCounterID = getIntegerValue(this, "1m_contract_id") | |
48 | 48 | let getbtcdata = getStringValue(this, ("1m_btc_" + toString(read_OptionCounterID))) | |
49 | 49 | let swapLi = split(getbtcdata, "_") | |
50 | 50 | let price = swapLi[0] | |
51 | 51 | let block = parseIntValue(swapLi[2]) | |
52 | 52 | let checkblockgap = (height - block) | |
53 | 53 | let OpionExpireCounter = 1 | |
54 | 54 | let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter) | |
55 | 55 | let PreviousPut = match getInteger(this, "Total_Puts") { | |
56 | 56 | case a: Int => | |
57 | 57 | a | |
58 | 58 | case _ => | |
59 | 59 | 0 | |
60 | 60 | } | |
61 | 61 | let TotalPut = (PreviousPut + 1) | |
62 | 62 | let PreviousUserPut = match getInteger(this, (calleraddress + "_Total_Puts")) { | |
63 | 63 | case a: Int => | |
64 | 64 | a | |
65 | 65 | case _ => | |
66 | 66 | 0 | |
67 | 67 | } | |
68 | 68 | let TotalUserPut = (PreviousUserPut + 1) | |
69 | 69 | if ((checkblockgap > 2)) | |
70 | 70 | then throw("Something Wrong with Oracle or Height is not matched.") | |
71 | 71 | else if ((read_oracle_status == "Close")) | |
72 | 72 | then throw("Oracle is closed. Wait Until Oracle is Turned On.") | |
73 | 73 | else [StringEntry(((("Put_" + calleraddress) + "_") + toString(TotalUserPut)), price), StringEntry(((("Put_Start_End_" + calleraddress) + "_") + toString(TotalUserPut)), ((toString(read_OptionCounterID) + "_") + toString(OptionExpireCounterID))), IntegerEntry("Total_Puts", TotalPut), IntegerEntry((calleraddress + "_Total_Puts"), TotalUserPut)] | |
74 | 74 | } | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | ||
78 | 78 | @Callable(i) | |
79 | 79 | func ClaimCall (Call_Sequence) = { | |
80 | 80 | let calleraddress = toBase58String(i.caller.bytes) | |
81 | 81 | let pmt = if ((size(i.payments) == 1)) | |
82 | 82 | then i.payments[0] | |
83 | 83 | else throw("No payment attached, Please Attach Tokens in payment[1].") | |
84 | 84 | let getOptionCallPrice = getStringValue(this, ((("Call_" + calleraddress) + "_") + Call_Sequence)) | |
85 | 85 | let getOptionCall_Sequencedata = getStringValue(this, ((("Call_Start_End_" + calleraddress) + "_") + Call_Sequence)) | |
86 | 86 | let splitStartEndCounter = split(getOptionCall_Sequencedata, "_") | |
87 | 87 | let getStartCounter = splitStartEndCounter[0] | |
88 | 88 | let getEndCounter = splitStartEndCounter[1] | |
89 | 89 | let getbtcdataAtStartCounter = getStringValue(this, ("1m_btc_" + getStartCounter)) | |
90 | 90 | let splitbtcpriceAtStartCounter = split(getbtcdataAtStartCounter, "_") | |
91 | 91 | let getbtcpriceAtStartCounter = splitbtcpriceAtStartCounter[0] | |
92 | 92 | let getbtcdataAtEndCounter = getStringValue(this, ("1m_btc_" + getEndCounter)) | |
93 | 93 | let splitbtcpriceAtEndCounter = split(getbtcdataAtEndCounter, "_") | |
94 | 94 | let getbtcpriceAtEndCounter = splitbtcpriceAtEndCounter[0] | |
95 | 95 | let pricediff = (parseIntValue(getbtcpriceAtEndCounter) - parseIntValue(getbtcpriceAtStartCounter)) | |
96 | 96 | let PreviousCallWin = match getInteger(this, "Total_Option_Call_Wins") { | |
97 | 97 | case a: Int => | |
98 | 98 | a | |
99 | 99 | case _ => | |
100 | 100 | 0 | |
101 | 101 | } | |
102 | 102 | let TotalCallWin = (PreviousCallWin + 1) | |
103 | 103 | let PreviousCallLose = match getInteger(this, "Total_Option_Call_Lose") { | |
104 | 104 | case a: Int => | |
105 | 105 | a | |
106 | 106 | case _ => | |
107 | 107 | 0 | |
108 | 108 | } | |
109 | 109 | let TotalCallLose = (PreviousCallLose + 1) | |
110 | 110 | if ((0 > pricediff)) | |
111 | 111 | then [IntegerEntry("Diff", pricediff), IntegerEntry("Total_Option_Call_Lose", TotalCallLose), StringEntry(((((((((((calleraddress + "_") + Call_Sequence) + "_") + getStartCounter) + "_") + getEndCounter) + "_") + getbtcpriceAtStartCounter) + "_") + getbtcpriceAtEndCounter), "lose"), StringEntry("message", "You lose!"), DeleteEntry(((("Call_" + calleraddress) + "_") + Call_Sequence)), DeleteEntry(((("Call_Start_End_" + calleraddress) + "_") + Call_Sequence))] | |
112 | 112 | else [IntegerEntry("Diff", pricediff), IntegerEntry("Total_Option_Call_Wins", TotalCallWin), StringEntry(((((((((((calleraddress + "_") + Call_Sequence) + "_") + getStartCounter) + "_") + getEndCounter) + "_") + getbtcpriceAtStartCounter) + "_") + getbtcpriceAtEndCounter), "Win"), StringEntry("message", "You Win!"), DeleteEntry(((("Call_" + calleraddress) + "_") + Call_Sequence)), DeleteEntry(((("Call_Start_End_" + calleraddress) + "_") + Call_Sequence))] | |
113 | 113 | } | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | ||
117 | 117 | @Callable(i) | |
118 | 118 | func calldata (Counter) = { | |
119 | 119 | let getbtcdata = getStringValue(this, ("1m_btc_" + toString(Counter))) | |
120 | 120 | let swapLi = split(getbtcdata, "_") | |
121 | 121 | let price = swapLi[0] | |
122 | 122 | let time = swapLi[1] | |
123 | 123 | let blockheight = swapLi[2] | |
124 | 124 | let div = swapLi[3] | |
125 | 125 | [StringEntry("price", swapLi[0]), StringEntry("time", swapLi[1]), StringEntry("blockheight", swapLi[2]), StringEntry("div", swapLi[3])] | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | ||
130 | 130 | @Callable(i) | |
131 | 131 | func OpenOracle () = if ((i.caller != oracle_controller_address)) | |
132 | 132 | then throw((("This Address is not Authorized. Only " + toString(oracle_controller_address)) + " is Authorized Address to Sign it.")) | |
133 | 133 | else [StringEntry("oracle_status", "Open")] | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | @Verifier(tx) | |
137 | 137 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
138 | 138 |
github/deemru/w8io/026f985 36.52 ms ◑