@0xcert/ethereum-erc20-contracts
Version:
Smart contract implementation of the ERC-20 standard on the Ethereum blockchain.
120 lines • 3.4 kB
JSON
{
"MigrationReceiver": {
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "_migrator",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "onMigrationReceived",
"outputs": [
{
"internalType": "bytes4",
"name": "magicValue",
"type": "bytes4"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
],
"evm": {
"bytecode": {
"object": ""
},
"methodIdentifiers": {
"onMigrationReceived(address,uint256)": "c5b97e06"
}
},
"metadata": {
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "_migrator",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "onMigrationReceived",
"outputs": [
{
"internalType": "bytes4",
"name": "magicValue",
"type": "bytes4"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {
"onMigrationReceived(address,uint256)": {
"details": "Handle the receipt of a migration. The dapp token calls this function on the migration address when migrating. Return of other than the magic value MUST result in the transaction being reverted. Returns `bytes4(keccak256(\"onMigrationReceived(address,uint256)\"))` unless throwing.",
"params": {
"_amount": "Amount of tokens being migrated.",
"_migrator": "The address which called `migrate` function."
},
"returns": {
"magicValue": "Returns `bytes4(keccak256(\"onMigrationReceived(address,uint256)\"))`."
}
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"notice": "Interface for accepting migrations.",
"version": 1
}
},
"settings": {
"compilationTarget": {
"./src/contracts/migration-receiver.sol": "MigrationReceiver"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"./src/contracts/migration-receiver.sol": {
"keccak256": "0xa526224588f9ccc460aecd1228bee6f01c7eb4df91374a987e6f8c36f201d1ab",
"license": "MIT",
"urls": [
"bzz-raw://48945f8c9768b32bc4d8125dfe25eb9604cce05c5b1357e4823277fe5496ae47",
"dweb:/ipfs/QmZKfCjKUkcUPq4p4gpT4AUD2h8u4HLyWN8CChKKnEB8SX"
]
}
},
"version": 1
}
}
}