Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 124 txns
Misc:
Address Watch: Add To Watch List
Contract Creator: 0xd2d641977d21a1dc7758eb619dd5960423ade86eat txn 0xe79ba4a43f0e1769934835ca9a183a4347734a27d7b0000c233af768b03ba5dc
 Latest 25 transactions from a total of 124 transactions

TxHash Age From To Value [TxFee]
0x1e3c4676e7e88e96b284ccfd4ed57fb2eec4487f335392a77fc22c17bb4c0e496 days 2 hrs ago0x008e57eb6dbfcd530fdf0596dd66a056cd35c74e  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.001932658
0x0a071fc297005974c216f7f590360415583a3d972bb2459078329c051cd6a75110 days 14 hrs ago0xa6efb6e62704bf2c0e9775bd561ce1a6536ed22b  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0x636a1ddf03dd3e45b368961abe1078283d302f4c90ab271e5cf9b9761bad758317 days 2 hrs ago0xf87f6a30651c174f8482d64e4462477452040ef8  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0x10269c2f51343ce3c3790abd07966c6659b9159ad93996d58918b54d39d5e2da17 days 9 hrs ago0x3a848a0c9b3979ab9b1e54e5c67b2e540c29fc3c  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.0023569
0x1c4cb611328c33d4b9a667e16d808d318eb1cf7c4ac04df2f265c426dfd930e120 days 17 hrs ago0x4087822d40b51d784d3bc6891fcb10591ad88406  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0x1dd1279bd04729eadbcd8b4174db86a437a8ac3cac3fb6a975c25e91106f65f022 days 18 hrs ago0x1cd02349f3c081e648db360ea93f4d3901665718  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0x4ab7ca56f8540210ce7350f4c8c761eac5ccb3920248c41a9b64f6ed8e196e4627 days 10 hrs ago0x4906e4f95ad546ce865916f65c825e00630bffa8  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0x68a04fd91c32a05b999344c6df4f3cf689fd855d750d6e5beeecad0a1ede231727 days 11 hrs ago0x5cbd74c995be9efe935e07f11a8b5d0efb98f1e8  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0x14ca97d8145282d28e0a3360068247fa4e33866c100f150d154f11e95e5e6f1927 days 13 hrs ago0x60dc6e955b6057b2e83228256cc63b198eb734f4  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0xcf578d8a5de4d2f4af0c14042e3cd98216a0fb24aa7e9d01bae8f0442bb36a2b32 days 1 hr ago0x629835aa16e1ef5f135e98e9a8872e047b47c5ec  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.000989898
0x6a9f5593c239d92ab85783196f8bb5b21a01dac53457f853cff41c37077f91af34 days 5 hrs ago0x5db1c8b8bb8376400fab237afda66777fce91ced  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0x4b9cc921949b0811a7759fc25de4d5b3d0b4f22fff692e51618a3797c2e6c5c234 days 5 hrs ago0x1e7d081e2bf261f99918d02366ed8f3b524e39ec  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0x79171c48e7cd35d6d549c6dac188a138c3659563191969f4d46d116f2ab6532c35 days 8 hrs ago0xf9efcc3526b43b1b26c8e6f17e93779b53e05321  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.001932658
0x77608fdecbe4c6193895b94728ed855ce350e4e81429ff4e8736056d39e56f0d41 days 11 hrs ago0x0c77bef07d1fb0f79eb4fec6b9152758b3471e59  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0xdce8ee1ea1defba7f581b2555f6974c5499d6dfa922c60f939f70b403ff7b5a241 days 11 hrs ago0xb6aac3b56ff818496b747ea57fcbe42a9aae6218  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60.05 Ether0.00052615
0x6d1333e840d0d073583929e0ef9bba8b3c23723e37a485712283dee508ff962443 days 3 hrs ago0x60eed44d6f296bbaf6592c5cfee4bc228782d33a  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0xf3c6ee28785187ca196ed1e1af6a8c2ec0a16b00b9d0edfe449371fd5c1900e543 days 21 hrs ago0x3fb341a9d0e264abe043003b2d3aff155f6db3de  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0xc64077209d022e2e94dcc3fd5ada8899f79f91ae48c486853c587a81c01870f344 days 13 hrs ago0x88d2a2a93399b997f793394d35870fb9b0306270  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0xff1ebd350800a0b018c499b70c8722e2392a6551110506ffba5041d73ab4969352 days 12 hrs ago0x44ed0f7aad619d74453925829c20717e0c0d365b  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0xe659a4ecaa661683d3b9b8e99d273ce0d968ad0557ef1ca389532034fdfe217652 days 13 hrs ago0xe0c54d12c8a47f6fca9f05b2b3342c1987fcfc3f  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0xc2d0ec0bda9f5c6ae84f7fc27eb3dfbe47c983ddf9345d3add26ff946399678e53 days 20 hrs ago0x7ae04ed7f1082d8aa1c19893e9ec4039a666c02c  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0xb8f0dd26d8393c2e1aec7069cd733aa72f38e22db0af7c646f2eb0afbd850f2854 days 14 hrs ago0x80ccf371336d86530fac527350492fc7eaaeb6d6  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0x32034bab104f50466c7d2d7bca507b974a56e04668bdd06715d9f503591b8f6b54 days 21 hrs ago0x109a69e3599b48baba48dc8cfaca6f7e4bffeb5d  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0x90d8a86fca5afe620bf16de1aac5b8cc2b0b1206c2d10ea1084506ce4af30f8655 days 4 hrs ago0xe51291bd638e26d8ec44d2d3145800d339f991bd  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
0x44139c36489a86964be0ec603fea970bcee37c8b3817cbdb0505bd296485176955 days 10 hrs ago0xadaa83f1e4f2b2893600063a3c3d971a76826e77  IN   0x6a372f5ae59e612e701663d25913a2a07efcfae60 Ether0.00047138
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Contract Source Code Verified (Exact Match)
Contract Name: MigrationAgent
Compiler Text: v0.4.25+commit.59dbf8f1
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

// pragma solidity ^0.4.0;
contract MigrationAgent {
    event Migrated( uint indexed id, address indexed from, uint amount, string eos_account_name);
    event NameRegistered(address indexed from, string eos_account_name);

    struct Migration {
        uint id;
        address participant;
        string eos_account_name;
        uint amount;
    }

    address game_address = 0xb1;
    address public token_address = 0x089A6D83282Fb8988A656189F1E7A73FA6C1caC2;
    uint public migration_id = 0;
    
    mapping(address => string) public registrations;
    mapping(uint => Migration) public migrations;
    mapping(address => Migration[]) public participant_migrations;

    function migrateFrom(address participant, uint amount) public {
        if (msg.sender != token_address || !participantRegistered(participant) || amount < 0.0001 ether) revert();
        if (participant != game_address)
        {
            var migration = Migration(migration_id, participant, registrations[participant], amount);
            participant_migrations[participant].push(migration);
            migrations[migration_id] = migration;
            emit Migrated(migration_id, participant, amount, registrations[participant]);
            migration_id++;
        }
    }
    
    function register(string eos_account_name) public
    {
        registrations[msg.sender] = eos_account_name;
        if (participantRegistered(msg.sender))
            emit NameRegistered(msg.sender, eos_account_name);
    }
    
    function participantRegistered(address participant) public constant returns (bool)
    {
        return participant == game_address || keccak256(registrations[participant]) != keccak256("");
    }
}

    Contract ABI  
[{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"uint256"}],"name":"participant_migrations","outputs":[{"name":"id","type":"uint256"},{"name":"participant","type":"address"},{"name":"eos_account_name","type":"string"},{"name":"amount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"participant","type":"address"}],"name":"participantRegistered","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"migrations","outputs":[{"name":"id","type":"uint256"},{"name":"participant","type":"address"},{"name":"eos_account_name","type":"string"},{"name":"amount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"participant","type":"address"},{"name":"amount","type":"uint256"}],"name":"migrateFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token_address","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"registrations","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"migration_id","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"eos_account_name","type":"string"}],"name":"register","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"id","type":"uint256"},{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"eos_account_name","type":"string"}],"name":"Migrated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"eos_account_name","type":"string"}],"name":"NameRegistered","type":"event"}]

  Contract Creation Code Switch To Opcodes View
608060405260b16000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073089a6d83282fb8988a656189f1e7a73fa6c1cac2600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060006002553480156100ab57600080fd5b50610ff9806100bb6000396000f30060806040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631926e549146100935780631d7333371461019a5780631e5cb9be146101f55780637a3130e3146102dc5780638c8e8fee14610329578063942e6bcf14610380578063b37625571461043c578063f2c298be14610467575b600080fd5b34801561009f57600080fd5b506100de600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506104d0565b604051808581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b8381101561015c578082015181840152602081019050610141565b50505050905090810190601f1680156101895780820380516001836020036101000a031916815260200191505b509550505050505060405180910390f35b3480156101a657600080fd5b506101db600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506105d4565b604051808215151515815260200191505060405180910390f35b34801561020157600080fd5b50610220600480360381019080803590602001909291905050506106f6565b604051808581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b8381101561029e578082015181840152602081019050610283565b50505050905090810190601f1680156102cb5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390f35b3480156102e857600080fd5b50610327600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506107de565b005b34801561033557600080fd5b5061033e610c74565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561038c57600080fd5b506103c1600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c9a565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156104015780820151818401526020810190506103e6565b50505050905090810190601f16801561042e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561044857600080fd5b50610451610d4a565b6040518082815260200191505060405180910390f35b34801561047357600080fd5b506104ce600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610d50565b005b6005602052816000526040600020818154811015156104eb57fe5b9060005260206000209060040201600091509150508060000154908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690806002018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105c45780601f10610599576101008083540402835291602001916105c4565b820191906000526020600020905b8154815290600101906020018083116105a757829003601f168201915b5050505050908060030154905084565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806106ef5750604051806000019050604051809103902060001916600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180828054600181600116156101000203166002900480156106db5780601f106106b95761010080835404028352918201916106db565b820191906000526020600020905b8154815290600101906020018083116106c7575b505091505060405180910390206000191614155b9050919050565b60046020528060005260406000206000915090508060000154908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690806002018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107ce5780601f106107a3576101008083540402835291602001916107ce565b820191906000526020600020905b8154815290600101906020018083116107b157829003601f168201915b5050505050908060030154905084565b6107e6610e69565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415806108495750610847836105d4565b155b806108595750655af3107a400082105b1561086357600080fd5b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515610c6f5760806040519081016040528060025481526020018473ffffffffffffffffffffffffffffffffffffffff168152602001600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156109bc5780601f10610991576101008083540402835291602001916109bc565b820191906000526020600020905b81548152906001019060200180831161099f57829003601f168201915b50505050508152602001838152509050600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081908060018154018082558091505090600182039060005260206000209060040201600090919290919091506000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040820151816002019080519060200190610aa4929190610ea8565b5060608201518160030155505050806004600060025481526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040820151816002019080519060200190610b35929190610ea8565b50606082015181600301559050508273ffffffffffffffffffffffffffffffffffffffff166002547f9f318811f1ddb4bb2171d583044f9a214b0757706cb120a62ef7059b38d3e55184600360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518083815260200180602001828103825283818154600181600116156101000203166002900481526020019150805460018160011615610100020316600290048015610c4d5780601f10610c2257610100808354040283529160200191610c4d565b820191906000526020600020905b815481529060010190602001808311610c3057829003601f168201915b5050935050505060405180910390a36002600081548092919060010191905055505b505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60036020528060005260406000206000915090508054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d425780601f10610d1757610100808354040283529160200191610d42565b820191906000526020600020905b815481529060010190602001808311610d2557829003601f168201915b505050505081565b60025481565b80600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209080519060200190610da3929190610f28565b50610dad336105d4565b15610e66573373ffffffffffffffffffffffffffffffffffffffff167f56a1a2764a85c689329fbc04f299b64690a26b1dc5ac82e903cf8ad805cd5396826040518080602001828103825283818151815260200191508051906020019080838360005b83811015610e2b578082015181840152602081019050610e10565b50505050905090810190601f168015610e585780820380516001836020036101000a031916815260200191505b509250505060405180910390a25b50565b60806040519081016040528060008152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160608152602001600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610ee957805160ff1916838001178555610f17565b82800160010185558215610f17579182015b82811115610f16578251825591602001919060010190610efb565b5b509050610f249190610fa8565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610f6957805160ff1916838001178555610f97565b82800160010185558215610f97579182015b82811115610f96578251825591602001919060010190610f7b565b5b509050610fa49190610fa8565b5090565b610fca91905b80821115610fc6576000816000905550600101610fae565b5090565b905600a165627a7a72305820d5435429e0a1502bfbc1142039c1e51f93973dc88f8426f37aac8adbcfbbdd310029

   Swarm Source:
bzzr://d5435429e0a1502bfbc1142039c1e51f93973dc88f8426f37aac8adbcfbbdd31

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.