Contract 0xdE44d3fB118E0f007f2C0D8fFFE98b994383949A 10

Contract Overview

Balance:
0 AVAX
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x999e014a644041c7695080bc199eb1cae6d557d77ff3352b47d5219bb341b634Link Identity115271752022-07-12 10:15:5184 days 20 hrs ago0x197f818c1313dc58b32d88078ecdfb40ea822614 IN 0xde44d3fb118e0f007f2c0d8fffe98b994383949a0 AVAX0.0061722225
0xe18bb50e4c638692d6e093b78c632ca091c6d9fd0aa47af0615f0ac7ba2723da0x60206103115271012022-07-12 10:12:4884 days 20 hrs ago0x197f818c1313dc58b32d88078ecdfb40ea822614 IN  Create: Vyper_contract0 AVAX0.055928475225
[ Download CSV Export 
Latest 2 internal transactions
Parent Txn Hash Block From To Value
0x999e014a644041c7695080bc199eb1cae6d557d77ff3352b47d5219bb341b634115271752022-07-12 10:15:5184 days 20 hrs ago 0xde44d3fb118e0f007f2c0d8fffe98b994383949a0x00000000000000000000000000000000000000040 AVAX
0xe18bb50e4c638692d6e093b78c632ca091c6d9fd0aa47af0615f0ac7ba2723da115271012022-07-12 10:12:4884 days 20 hrs ago 0xde44d3fb118e0f007f2c0d8fffe98b994383949a0x00000000000000000000000000000000000000040 AVAX
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Vyper_contract

Compiler Version
vyper:0.3.1

Optimization Enabled:
N/A

Other Settings:
, MIT license

Contract Source Code (Vyper language format)

"""
@title Ark Network
@license MIT
@author charmful0x
@notice this contract is only for testing purpose
@dev link an EVM address to an Arweave address. The
     contract is deterministic, but as part of Ark Network,
     it becomes non-deterministic where the result
     depends on the other SmartWeave contracts states.
"""

# Contract's events
event LinkIdentity:
    evmAddress: indexed(address)
    arweaveAddress: indexed(String[43])
    arAddress: String[43]

event LaunchContract:
    network: String[25]

event PauseState:
    isPaused: bool

# Contract State
network: public(String[25]) # Ark Network's metadata to identify the contract's network
owner: public(address) # the contract admin
pausedContract: public(bool) # contract's pausing state

@external
def __init__(_network: String[25], _pausedContract: bool):
    """
    @dev contract's initialization
    @param _network network's name. This contract is EVMs compatible
    @param _pausedContract initial contract's pause state. Assigned to False
    """
    assert len(_network) > 0

    self.owner = msg.sender # set the contract admin
    self.network = _network
    self.pausedContract = _pausedContract

    log LaunchContract(_network)


@external
def reversePauseState(_pause: bool):
    """
    @dev admin function to pause/unpause the contract
    @param _pause True to pause the contract & vice-versa
    """

    assert msg.sender == self.owner
    assert _pause != self.pausedContract

    self.pausedContract = _pause

    log PauseState(_pause)

@external
def linkIdentity(_arweave_address: String[43]):
    """
    @dev link an Arweave address to the caller's address (msg.sender)
    @param _arweave_address base64url 43 char string
    """
    assert len(_arweave_address) == 43
    assert self.pausedContract == False

    log LinkIdentity(msg.sender, _arweave_address, _arweave_address)

Contract ABI

[{"name":"LinkIdentity","inputs":[{"name":"evmAddress","type":"address","indexed":true},{"name":"arweaveAddress","type":"string","indexed":true},{"name":"arAddress","type":"string","indexed":false}],"anonymous":false,"type":"event"},{"name":"LaunchContract","inputs":[{"name":"network","type":"string","indexed":false}],"anonymous":false,"type":"event"},{"name":"PauseState","inputs":[{"name":"isPaused","type":"bool","indexed":false}],"anonymous":false,"type":"event"},{"stateMutability":"nonpayable","type":"constructor","inputs":[{"name":"_network","type":"string"},{"name":"_pausedContract","type":"bool"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"reversePauseState","inputs":[{"name":"_pause","type":"bool"}],"outputs":[],"gas":41645},{"stateMutability":"nonpayable","type":"function","name":"linkIdentity","inputs":[{"name":"_arweave_address","type":"string"}],"outputs":[],"gas":15741},{"stateMutability":"view","type":"function","name":"network","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":10538},{"stateMutability":"view","type":"function","name":"owner","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2550},{"stateMutability":"view","type":"function","name":"pausedContract","inputs":[],"outputs":[{"name":"","type":"bool"}],"gas":2580}]

6020610379608039608051610379016019602082608039608051116103745780602081608039608051602001808260e03950505060206020610379016080396080518060011c6103745761012052600060e0511115610374573360025560e0806000602082510160c060006002818352015b8260c0516020021115610083576100a2565b60c05160200285015160c0518501558151600101808352811415610071575b505050505050610120516003557f2d34cccf3dec1286696f9978f3cca7504855f903e97edcc7450a3dae2844d82b6101408060208082528083018060e080516020018083828460045afa905050508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090508101905090509050610140a161035c56600436101561000d5761021b565b60046000601c37600051346102215763150c5d31811861007f576004358060011c6102215760e05260025433186102215760035460e051146102215760e0516003557f4a70f7b28175f47e972c97acb46a374c20795051fa46ea55d41c77b1aabcaef560e051610100526020610100a1005b633840b88d811861014857600435600401602b81351161022157808035602001808260e037505050602b60e05118610221576003546102215760e0805160208201209050337fc82a21a8a25a90ffe1a52dc32548ae2f5a28966ae58fb7a6c0d734d411c2f6ec6101408060208082528083018060e080516020018083828460045afa905050508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f8201039050905090508101905090509050610140a3005b636739afca81186101eb5760e08060208082528083018060008082602082540160c060006002818352015b8260c0516020021115610185576101a4565b60c05185015460c0516020028501528151600101808352811415610173575b5050505050508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f820103905090509050810190509050905060e0f35b638da5cb5b81186102025760025460e052602060e0f35b63fface1ac81186102195760035460e052602060e0f35b505b60006000fd5b600080fd5b61013661035c0361013660003961013661035c036000f35b600080fd0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044156415800000000000000000000000000000000000000000000000000000000

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044156415800000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _network (string): AVAX
Arg [1] : _pausedContract (bool): False

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [3] : 4156415800000000000000000000000000000000000000000000000000000000


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