Moonbase Alpha Testnet

Contract

0xd7a43e007ecE0931227f6013BeE81470a7da8F30

Overview

DEV Balance

Moonbase Alpha LogoMoonbase Alpha LogoMoonbase Alpha Logo12.999999999999999995 DEV

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
Release DEV22041472022-05-24 12:08:30760 days ago1653394110IN
0xd7a43e00...0a7da8F30
0 DEV0.000032781
Deposit DEV22041412022-05-24 12:07:12760 days ago1653394032IN
0xd7a43e00...0a7da8F30
1 DEV0.000058252.5
Deposit DEV22041322022-05-24 12:04:12760 days ago1653393852IN
0xd7a43e00...0a7da8F30
1 DEV0.000058252.5
Release DEV22040192022-05-24 11:34:24760 days ago1653392064IN
0xd7a43e00...0a7da8F30
0 DEV0.000032781
Deposit DEV22040152022-05-24 11:33:12760 days ago1653391992IN
0xd7a43e00...0a7da8F30
1 DEV0.000058252.5
Deposit DEV22039962022-05-24 11:27:42760 days ago1653391662IN
0xd7a43e00...0a7da8F30
1 DEV0.000058252.5
Deposit DEV22039792022-05-24 11:22:36760 days ago1653391356IN
0xd7a43e00...0a7da8F30
1 DEV0.000058252.5
Deposit DEV22039512022-05-24 11:13:54760 days ago1653390834IN
0xd7a43e00...0a7da8F30
1 DEV0.000058252.5
Deposit DEV22039392022-05-24 11:11:06760 days ago1653390666IN
0xd7a43e00...0a7da8F30
1 DEV0.000058252.5
Release DEV22039362022-05-24 11:09:54760 days ago1653390594IN
0xd7a43e00...0a7da8F30
0 DEV0.000032781
Deposit DEV22039252022-05-24 11:06:54760 days ago1653390414IN
0xd7a43e00...0a7da8F30
1 DEV0.000058252.5
Deposit DEV22036652022-05-24 9:54:06760 days ago1653386046IN
0xd7a43e00...0a7da8F30
1 DEV0.000058252.5
Deposit DEV22032772022-05-24 8:03:18760 days ago1653379398IN
0xd7a43e00...0a7da8F30
1 DEV0.000058252.5
Deposit DEV22032752022-05-24 8:02:30760 days ago1653379350IN
0xd7a43e00...0a7da8F30
1 DEV0.000058252.5
Deposit DEV22032732022-05-24 8:02:00760 days ago1653379320IN
0xd7a43e00...0a7da8F30
1 DEV0.000058252.5
Deposit DEV22032032022-05-24 7:41:48760 days ago1653378108IN
0xd7a43e00...0a7da8F30
1 DEV0.000058252.5
Deposit DEV22031982022-05-24 7:40:30760 days ago1653378030IN
0xd7a43e00...0a7da8F30
1 DEV0.000058252.5
Release DEV22031872022-05-24 7:38:06760 days ago1653377886IN
0xd7a43e00...0a7da8F30
0 DEV0.000032781
Deposit DEV22031742022-05-24 7:34:24760 days ago1653377664IN
0xd7a43e00...0a7da8F30
1 DEV0.000058252.5
Release DEV22031642022-05-24 7:31:06760 days ago1653377466IN
0xd7a43e00...0a7da8F30
0 DEV0.000032781
Deposit DEV22031592022-05-24 7:29:24760 days ago1653377364IN
0xd7a43e00...0a7da8F30
1 DEV0.000058252.5
Release DEV22031552022-05-24 7:28:06760 days ago1653377286IN
0xd7a43e00...0a7da8F30
0 DEV0.000032781
Deposit DEV22031462022-05-24 7:25:36760 days ago1653377136IN
0xd7a43e00...0a7da8F30
1 DEV0.000058252.5
Release DEV22031442022-05-24 7:25:00760 days ago1653377100IN
0xd7a43e00...0a7da8F30
0 DEV0.000032781
Deposit DEV22031382022-05-24 7:23:30760 days ago1653377010IN
0xd7a43e00...0a7da8F30
1 DEV0.000058252.5

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To Value
22041472022-05-24 12:08:30760 days ago1653394110
0xd7a43e00...0a7da8F30
1 DEV
22041412022-05-24 12:07:12760 days ago1653394032
0xd7a43e00...0a7da8F30
0 DEV
22041322022-05-24 12:04:12760 days ago1653393852
0xd7a43e00...0a7da8F30
0 DEV
22040192022-05-24 11:34:24760 days ago1653392064
0xd7a43e00...0a7da8F30
1 DEV
22040152022-05-24 11:33:12760 days ago1653391992
0xd7a43e00...0a7da8F30
0 DEV
22039962022-05-24 11:27:42760 days ago1653391662
0xd7a43e00...0a7da8F30
0 DEV
22039792022-05-24 11:22:36760 days ago1653391356
0xd7a43e00...0a7da8F30
0 DEV
22039512022-05-24 11:13:54760 days ago1653390834
0xd7a43e00...0a7da8F30
0 DEV
22039392022-05-24 11:11:06760 days ago1653390666
0xd7a43e00...0a7da8F30
0 DEV
22039362022-05-24 11:09:54760 days ago1653390594
0xd7a43e00...0a7da8F30
1 DEV
22039252022-05-24 11:06:54760 days ago1653390414
0xd7a43e00...0a7da8F30
0 DEV
22036652022-05-24 9:54:06760 days ago1653386046
0xd7a43e00...0a7da8F30
0 DEV
22032772022-05-24 8:03:18760 days ago1653379398
0xd7a43e00...0a7da8F30
0 DEV
22032752022-05-24 8:02:30760 days ago1653379350
0xd7a43e00...0a7da8F30
0 DEV
22032732022-05-24 8:02:00760 days ago1653379320
0xd7a43e00...0a7da8F30
0 DEV
22032032022-05-24 7:41:48760 days ago1653378108
0xd7a43e00...0a7da8F30
0 DEV
22031982022-05-24 7:40:30760 days ago1653378030
0xd7a43e00...0a7da8F30
0 DEV
22031872022-05-24 7:38:06760 days ago1653377886
0xd7a43e00...0a7da8F30
1 DEV
22031742022-05-24 7:34:24760 days ago1653377664
0xd7a43e00...0a7da8F30
0 DEV
22031642022-05-24 7:31:06760 days ago1653377466
0xd7a43e00...0a7da8F30
1 DEV
22031592022-05-24 7:29:24760 days ago1653377364
0xd7a43e00...0a7da8F30
0 DEV
22031552022-05-24 7:28:06760 days ago1653377286
0xd7a43e00...0a7da8F30
1 DEV
22031462022-05-24 7:25:36760 days ago1653377136
0xd7a43e00...0a7da8F30
0 DEV
22031442022-05-24 7:25:00760 days ago1653377100
0xd7a43e00...0a7da8F30
1 DEV
22031382022-05-24 7:23:30760 days ago1653377010
0xd7a43e00...0a7da8F30
0 DEV
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MoonbaseBridgeContract

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at moonbase.moonscan.io on 2022-05-19
*/

// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

contract MoonbaseBridgeContract {
    
    event DEVDeposited(address deposited_by, uint256 value);
    event DEVReleased(address deposited_by, uint256 value);

    function depositDEV(address _receiver) public payable {
        uint256 decimalPart = msg.value % (10**18);
        
        // transfer the decimal points back to user
        payable(msg.sender).transfer(decimalPart);
        // this event will be catched by bridge listener
        emit DEVDeposited(_receiver, msg.value);
    }

    function ReleaseDEV(address _receiver, uint256 _amount) public {
        require(
            _amount < totalDepositedDEV(),
            "Amount exceeding total DEV supply"
        );
        payable(_receiver).transfer(_amount);
        emit DEVReleased(_receiver, _amount);
    }

    function totalDepositedDEV() public view returns (uint256) {
        return (address(this).balance);
    }
}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"deposited_by","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"DEVDeposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"deposited_by","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"DEVReleased","type":"event"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"ReleaseDEV","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"depositDEV","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"totalDepositedDEV","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b506102ac806100206000396000f3fe6080604052600436106100345760003560e01c80631f214447146100395780639cf3bbe31461004e578063f7376d8c1461006e575b600080fd5b61004c610047366004610208565b61008e565b005b34801561005a57600080fd5b504760405190815260200160405180910390f35b34801561007a57600080fd5b5061004c61008936600461022a565b610119565b60006100a2670de0b6b3a764000034610254565b604051909150339082156108fc029083906000818181858888f193505050501580156100d2573d6000803e3d6000fd5b50604080516001600160a01b03841681523460208201527f6227b78a0686e5cbe40b1aa2c90559ac53b9e65d889587caa9a6ad101078e0bd91015b60405180910390a15050565b4781106101765760405162461bcd60e51b815260206004820152602160248201527f416d6f756e7420657863656564696e6720746f74616c2044455620737570706c6044820152607960f81b606482015260840160405180910390fd5b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156101ac573d6000803e3d6000fd5b50604080516001600160a01b0384168152602081018390527fea7d906c39b0ab9df565c7acb7e2309989917af7d0e92256451def58b17a1807910161010d565b80356001600160a01b038116811461020357600080fd5b919050565b60006020828403121561021a57600080fd5b610223826101ec565b9392505050565b6000806040838503121561023d57600080fd5b610246836101ec565b946020939093013593505050565b60008261027157634e487b7160e01b600052601260045260246000fd5b50069056fea2646970667358221220fdfa7f3c6b35949e0bfafbb9c87ddb0ac203de6d7fb41f8d9cf8c6689b62af3064736f6c634300080e0033

Deployed Bytecode

0x6080604052600436106100345760003560e01c80631f214447146100395780639cf3bbe31461004e578063f7376d8c1461006e575b600080fd5b61004c610047366004610208565b61008e565b005b34801561005a57600080fd5b504760405190815260200160405180910390f35b34801561007a57600080fd5b5061004c61008936600461022a565b610119565b60006100a2670de0b6b3a764000034610254565b604051909150339082156108fc029083906000818181858888f193505050501580156100d2573d6000803e3d6000fd5b50604080516001600160a01b03841681523460208201527f6227b78a0686e5cbe40b1aa2c90559ac53b9e65d889587caa9a6ad101078e0bd91015b60405180910390a15050565b4781106101765760405162461bcd60e51b815260206004820152602160248201527f416d6f756e7420657863656564696e6720746f74616c2044455620737570706c6044820152607960f81b606482015260840160405180910390fd5b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156101ac573d6000803e3d6000fd5b50604080516001600160a01b0384168152602081018390527fea7d906c39b0ab9df565c7acb7e2309989917af7d0e92256451def58b17a1807910161010d565b80356001600160a01b038116811461020357600080fd5b919050565b60006020828403121561021a57600080fd5b610223826101ec565b9392505050565b6000806040838503121561023d57600080fd5b610246836101ec565b946020939093013593505050565b60008261027157634e487b7160e01b600052601260045260246000fd5b50069056fea2646970667358221220fdfa7f3c6b35949e0bfafbb9c87ddb0ac203de6d7fb41f8d9cf8c6689b62af3064736f6c634300080e0033

Deployed Bytecode Sourcemap

66:923:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;236:338;;;;;;:::i;:::-;;:::i;:::-;;878:108;;;;;;;;;;-1:-1:-1;956:21:0;878:108;;529:25:1;;;517:2;502:18;878:108:0;;;;;;;582:288;;;;;;;;;;-1:-1:-1;582:288:0;;;;;:::i;:::-;;:::i;236:338::-;301:19;323:20;336:6;323:9;:20;:::i;:::-;417:41;;301:42;;-1:-1:-1;425:10:0;;417:41;;;;;301:42;;417:41;;;;301:42;425:10;417:41;;;;;;;;;;;;;;;;;;;;-1:-1:-1;532:34:0;;;-1:-1:-1;;;;;1230:32:1;;1212:51;;556:9:0;1294:2:1;1279:18;;1272:34;532::0;;1185:18:1;532:34:0;;;;;;;;290:284;236:338;:::o;582:288::-;956:21;678:7;:29;656:112;;;;-1:-1:-1;;;656:112:0;;1519:2:1;656:112:0;;;1501:21:1;1558:2;1538:18;;;1531:30;1597:34;1577:18;;;1570:62;-1:-1:-1;;;1648:18:1;;;1641:31;1689:19;;656:112:0;;;;;;;;779:36;;-1:-1:-1;;;;;779:27:0;;;:36;;;;;807:7;;779:36;;;;807:7;779:27;:36;;;;;;;;;;;;;;;;;;;;-1:-1:-1;831:31:0;;;-1:-1:-1;;;;;1230:32:1;;1212:51;;1294:2;1279:18;;1272:34;;;831:31:0;;1185:18:1;831:31:0;1038:274:1;14:173;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;:::-;333:39;192:186;-1:-1:-1;;;192:186:1:o;565:254::-;633:6;641;694:2;682:9;673:7;669:23;665:32;662:52;;;710:1;707;700:12;662:52;733:29;752:9;733:29;:::i;:::-;723:39;809:2;794:18;;;;781:32;;-1:-1:-1;;;565:254:1:o;824:209::-;856:1;882;872:132;;926:10;921:3;917:20;914:1;907:31;961:4;958:1;951:15;989:4;986:1;979:15;872:132;-1:-1:-1;1018:9:1;;824:209::o

Swarm Source

ipfs://fdfa7f3c6b35949e0bfafbb9c87ddb0ac203de6d7fb41f8d9cf8c6689b62af30

Block Transaction Gas Used Reward
view all blocks collator

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.