Contract 0xA3d2127F85041729fec05Ca483b302ddb806d50a

Contract Overview

Balance:
0 MATIC
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x80530ec6575a66e60dc1759ad064268c4b1e8d61cbfcfc0578f4ead86eb7faf7Update Coin Info203944422021-10-19 22:03:4139 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000511918
0x5b6b2e33fbda6dbb6e09eb774f29f3cf4cdac5d6991843dd99a21a741a0bc93fUpdate Coin Info203944372021-10-19 22:03:2139 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000511786
0x323ab1e79f79813ceedccc4f7bfcb67d673335c23705ce1beff37f751b46d012Update Coin Info203944322021-10-19 22:03:0139 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000511918
0xfe0cd6329671eed24f4a90a486a3fde6c935ba26b2bb4e2a3cd3103f093cae0eUpdate Coin Info203944092021-10-19 22:02:0939 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000481118
0xa57d72cd1463a07a60a22bc4cde9ae37a8fec87996b9a749bf384fdbc043d558Update Coin Info203943612021-10-19 22:00:1739 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.00006143016
0x2ba70e5ec2d2e780496201fa1e1c100ed68536f2c3579c4f1c3146dd5f671cd0Update Coin Info203943482021-10-19 21:59:2539 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000511918
0x5c4285bf9c4aaa84cb602f6c9fc173b5400120f4d7f35b6ea331a0e448d2eb51Update Coin Info203941682021-10-19 21:49:2139 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.00005287942
0x39346409df4ea32ed481333db27970ed5c6119bf472f9856f8a2e27de3e769feUpdate Coin Info203941632021-10-19 21:49:0139 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000511654
0xf486c2253c8603aa830e31be1624d10d9f916e3738432ed1120fbbe67034e0efUpdate Coin Info203941582021-10-19 21:48:4139 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000542586
0x3ca6c2b90fc125edaaaf1866904286286124eb2831d473ebc9156fff12e5aedaUpdate Coin Info203941532021-10-19 21:48:2139 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000511918
0x8fe8ca6396fefe40b0803f4de7afb1a0051504c90c1027f6627445637b6cb7d2Update Coin Info203941472021-10-19 21:47:5739 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000511786
0x1f3ba9a685779350a0b03603bc1095ca98e193d6a2640dd1f8cf70e9782cbe17Update Coin Info203941422021-10-19 21:47:3739 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000511918
0x3656ead26c61a8f35aca37faef62d1448bb9705e0d4c2d0f89d7bc80f5981c47Update Coin Info203941082021-10-19 21:45:1739 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000481118
0xc7a838f270efc9d28c9a3f9f496db4b36834f9fbbc1f70799fcc5f9b6483e03eUpdate Coin Info203940962021-10-19 21:44:2939 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000511918
0x23c5c8f3dda5ba0da81e443d7d04f472233a361db8ae68c9458d7e9f7a3e3adaUpdate Coin Info203940532021-10-19 21:41:3739 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.00005629646
0x6a14c64214840b25c90339a36028924f4aa402c71e9c3809cabc1be33c387227Update Coin Info203940482021-10-19 21:41:1939 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000511918
0x4ec2c286878af31be7be126e4f201758f57cd526505e70d2f7434e923f95c0aeUpdate Coin Info203939472021-10-19 21:37:4939 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000481118
0x65bc826487f19f247d887ee1e4aebbe25cdb4aeda510da91bae18246598cc53fUpdate Coin Info203939092021-10-19 21:36:2939 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000511918
0x5971923e23ae66b65be9bba96f064a5d5d657c5c11f34048358768d89640cbd2Update Coin Info203938202021-10-19 21:33:2739 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000511786
0xfc03d1beefe9ec1f143d633771e651cddd3bcc27b51baa1b0c843246b48ff9a9Update Coin Info203938102021-10-19 21:33:0739 days 4 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000511786
0x689d105e5059906e09aeff8099220e2dfb2adfeca6ade9d12ab4bbd62b1720d7Update Coin Info203934182021-10-19 21:19:3939 days 5 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.000063507576
0x4a9226a761089d7cc0a58da8925699dd2085a25315fd39a4cc10b7a85c6f2c36Update Coin Info203933782021-10-19 21:18:1539 days 5 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000511918
0x376f27df2d1e002fe05601c526e077b577953a35a200472ad5f8fbfdbbfb31c6Update Coin Info203932922021-10-19 21:15:1939 days 5 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0000511786
0xc9d9f6fdd4935acd0d1f3657b897f9e06c4bd6bf5c2b217b2dceac36e499961cUpdate Coin Info203932812021-10-19 21:14:5739 days 5 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0001023836
0x31e55297cdd7ff68070b6f7637cc1aee670c72112afe62f19eb58da348315b74Update Coin Info203932262021-10-19 21:13:0339 days 5 hrs ago0x4dc485895f195b1d5b1a6deae1937a595b9ab7a5 IN  0xa3d2127f85041729fec05ca483b302ddb806d50a0 MATIC0.0001023836
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DiaOracle

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at polygonscan.com on 2021-09-09
*/

/**
 *Submitted for verification at Etherscan.io on 2018-10-25
*/

pragma solidity ^0.4.21;

contract DiaOracle {
	address owner;

	struct CoinInfo {
		uint256 price;
		uint256 supply;
		uint256 lastUpdateTimestamp;
		string symbol;
	}

	mapping(string => CoinInfo) diaOracles;
	
	event newCoinInfo(
		string name,
		string symbol,
		uint256 price,
		uint256 supply,
		uint256 lastUpdateTimestamp
	);
    
	constructor() public {
		owner = msg.sender;
	}

	function changeOwner(address newOwner) public {
		require(msg.sender == owner);
		owner = newOwner;
	}
    
	function updateCoinInfo(string name, string symbol, uint256 newPrice, uint256 newSupply, uint256 newTimestamp) public {
		require(msg.sender == owner);
		diaOracles[name] = (CoinInfo(newPrice, newSupply, newTimestamp, symbol));
		emit newCoinInfo(name, symbol, newPrice, newSupply, newTimestamp);
	}
    
	function getCoinInfo(string name) public view returns (uint256, uint256, uint256, string) {
		return (
			diaOracles[name].price,
			diaOracles[name].supply,
			diaOracles[name].lastUpdateTimestamp,
			diaOracles[name].symbol
		);
	}
}

Contract ABI

[{"constant":false,"inputs":[{"name":"name","type":"string"},{"name":"symbol","type":"string"},{"name":"newPrice","type":"uint256"},{"name":"newSupply","type":"uint256"},{"name":"newTimestamp","type":"uint256"}],"name":"updateCoinInfo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"name","type":"string"}],"name":"getCoinInfo","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"symbol","type":"string"},{"indexed":false,"name":"price","type":"uint256"},{"indexed":false,"name":"supply","type":"uint256"},{"indexed":false,"name":"lastUpdateTimestamp","type":"uint256"}],"name":"newCoinInfo","type":"event"}]

608060405234801561001057600080fd5b5060008054600160a060020a0319163317905561076c806100326000396000f3006080604052600436106100565763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166345cc0a2f811461005b578063a6f9dae114610101578063e12214001461012f575b600080fd5b34801561006757600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526100ff94369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a999881019791965091820194509250829150840183828082843750949750508435955050506020830135926040013591506102159050565b005b34801561010d57600080fd5b506100ff73ffffffffffffffffffffffffffffffffffffffff6004351661040d565b34801561013b57600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261018894369492936024939284019190819084018382808284375094975061046d9650505050505050565b6040518085815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156101d75781810151838201526020016101bf565b50505050905090810190601f1680156102045780820380516001836020036101000a031916815260200191505b509550505050505060405180910390f35b60005473ffffffffffffffffffffffffffffffffffffffff16331461023957600080fd5b608060405190810160405280848152602001838152602001828152602001858152506001866040518082805190602001908083835b6020831061028d5780518252601f19909201916020918201910161026e565b51815160209384036101000a60001901801990921691161790529201948552506040805194859003820190942085518155858201516001820155938501516002850155606085015180516102ea94506003860193509101906106a5565b509050507f8d468b5f823f8d38322e9c4433d184adf453fd3eaa28cef280056aa0664981f08585858585604051808060200180602001868152602001858152602001848152602001838103835288818151815260200191508051906020019080838360005b8381101561036757818101518382015260200161034f565b50505050905090810190601f1680156103945780820380516001836020036101000a031916815260200191505b50838103825287518152875160209182019189019080838360005b838110156103c75781810151838201526020016103af565b50505050905090810190601f1680156103f45780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390a15050505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461043157600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff191673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600080600060606001856040518082805190602001908083835b602083106104a65780518252601f199092019160209182019101610487565b51815160209384036101000a600019018019909216911617905292019485525060405193849003810184205489519094600194508a9350918291908401908083835b602083106105075780518252601f1990920191602091820191016104e8565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020600101546001876040518082805190602001908083835b602083106105705780518252601f199092019160209182019101610551565b51815160209384036101000a60001901801990921691161790529201948552506040519384900381018420600201548b519094600194508c9350918291908401908083835b602083106105d45780518252601f1990920191602091820191016105b5565b518151600019602094850361010090810a820192831692199390931691909117909252949092019687526040805197889003820188206003018054601f60026001831615909802909501169590950492830182900482028801820190528187529295945085935091840190508282801561068f5780601f106106645761010080835404028352916020019161068f565b820191906000526020600020905b81548152906001019060200180831161067257829003601f168201915b5050505050905093509350935093509193509193565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106106e657805160ff1916838001178555610713565b82800160010185558215610713579182015b828111156107135782518255916020019190600101906106f8565b5061071f929150610723565b5090565b61073d91905b8082111561071f5760008155600101610729565b905600a165627a7a72305820c8712ca2f191c931fcbf0027a8be3145627a0182919794b4d7cd81dcbe3655e80029

Deployed ByteCode Sourcemap

99:1057:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;601:303;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;601:303:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;601:303:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;601:303:0;;;;-1:-1:-1;601:303:0;-1:-1:-1;601:303:0;;-1:-1:-1;601:303:0;;;;;;;;-1:-1:-1;601:303:0;;-1:-1:-1;;601:303:0;;;-1:-1:-1;;;601:303:0;;;;;;;;;-1:-1:-1;601:303:0;;-1:-1:-1;601:303:0;;;487:105;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;487:105:0;;;;;;;913:240;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;913:240:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;913:240:0;;-1:-1:-1;913:240:0;;-1:-1:-1;;;;;;;913:240:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;913:240:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;601:303;746:5;;;;732:10;:19;724:28;;;;;;777:51;;;;;;;;;786:8;777:51;;;;796:9;777:51;;;;807:12;777:51;;;;821:6;777:51;;;757:10;768:4;757:16;;;;;;;;;;;;;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;757:16:0;;;;;-1:-1:-1;757:16:0;;;;;;;;;;;;:72;;;;;;;;274:1:-1;757:72:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;757:72:0;;;;-1:-1:-1;757:72:0;;;;:::i;:::-;;;;;839:60;851:4;857:6;865:8;875:9;886:12;839:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;839:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;839:60:0;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;839:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;601:303;;;;;:::o;487:105::-;560:5;;;;546:10;:19;538:28;;;;;;571:5;:16;;-1:-1:-1;;571:16:0;;;;;;;;;;;;487:105::o;913:240::-;968:7;977;986;995:6;1021:10;1032:4;1021:16;;;;;;;;;;;;;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;1021:16:0;;;;;-1:-1:-1;1021:16:0;;;;;;;;;;:22;1049:16;;1021:22;;274:1:-1;;-1:-1;1049:16:0;;-1:-1:-1;1021:16:0;;;1049;;;;;1021;1049;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1049:16:0;;;;;;;;;;;;;;;;;;;;;:23;;;1078:10;1089:4;1078:16;;;;;;;;;;;;;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;1078:16:0;;;;;-1:-1:-1;1078:16:0;;;;;;;;;;:36;;;1120:16;;1078:36;;274:1:-1;;-1:-1;1120:16:0;;-1:-1:-1;1078:16:0;;;1120;;;;;1078;1120;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;-1:-1;;263:2;259:12;;;254:3;250:22;;;246:30;;340:21;;;311:9;;295:26;;;;377:20;;;;365:33;;;1120:16:0;;;;;;;;;;;;;;;;;;:23;;1008:140;;;;274:1:-1;1008:140:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1120:23;;:16;-1:-1:-1;1120:23:0;;-1:-1:-1;1008:140:0;;;;-1:-1:-1;1120:23:0;1008:140;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;913:240;;;;;:::o;99:1057::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;99:1057:0;;;-1:-1:-1;99:1057:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

bzzr://c8712ca2f191c931fcbf0027a8be3145627a0182919794b4d7cd81dcbe3655e8
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading