Source Code
Overview
ETH Balance
ETH Value
Less Than $0.01 (@ $2,921.91/ETH)Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xC3777630...9AebF2A21 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
FunctionTypes
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/**
*Submitted for verification at scrollscan.com on 2023-10-27
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
contract FunctionTypes{
uint256 public number = 5;
constructor() payable {}
// 函数类型
// function (<parameter types>) {internal|external} [pure|view|payable] [returns (<return types>)]
// 默认function
function add() external{
number = number + 1;
}
// pure: 纯纯牛马
function addPure(uint256 _number) external pure returns(uint256 new_number){
new_number = _number+1;
}
// view: 看客
function addView() external view returns(uint256 new_number) {
new_number = number + 1;
}
// internal: 内部
function minus() internal {
number = number - 1;
}
// 合约内的函数可以调用内部函数
function minusCall() external {
minus();
}
// payable: 递钱,能给合约支付eth的函数
function minusPayable() external payable returns(uint256 balance) {
minus();
balance = address(this).balance;
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"payable","type":"constructor"},{"inputs":[],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_number","type":"uint256"}],"name":"addPure","outputs":[{"internalType":"uint256","name":"new_number","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"addView","outputs":[{"internalType":"uint256","name":"new_number","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minusCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minusPayable","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"number","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
0x60806040526005600055610312806100186000396000f3fe6080604052600436106100555760003560e01c8063303810a61461005a5780634f2be91f146100785780637032c4f21461008f57806380b4ea08146100cc5780638381f58a146100e3578063b262eb7f1461010e575b600080fd5b610062610139565b60405161006f91906101cc565b60405180910390f35b34801561008457600080fd5b5061008d610149565b005b34801561009b57600080fd5b506100b660048036038101906100b19190610218565b610160565b6040516100c391906101cc565b60405180910390f35b3480156100d857600080fd5b506100e1610176565b005b3480156100ef57600080fd5b506100f8610180565b60405161010591906101cc565b60405180910390f35b34801561011a57600080fd5b50610123610186565b60405161013091906101cc565b60405180910390f35b600061014361019c565b47905090565b60016000546101589190610274565b600081905550565b600060018261016f9190610274565b9050919050565b61017e61019c565b565b60005481565b600060016000546101979190610274565b905090565b60016000546101ab91906102a8565b600081905550565b6000819050919050565b6101c6816101b3565b82525050565b60006020820190506101e160008301846101bd565b92915050565b600080fd5b6101f5816101b3565b811461020057600080fd5b50565b600081359050610212816101ec565b92915050565b60006020828403121561022e5761022d6101e7565b5b600061023c84828501610203565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061027f826101b3565b915061028a836101b3565b92508282019050808211156102a2576102a1610245565b5b92915050565b60006102b3826101b3565b91506102be836101b3565b92508282039050818111156102d6576102d5610245565b5b9291505056fea264697066735822122090d702568fc163233814a35a1e64dae0cb6c121259de970425b8740968bf9b1164736f6c63430008120033
Deployed Bytecode
0x6080604052600436106100555760003560e01c8063303810a61461005a5780634f2be91f146100785780637032c4f21461008f57806380b4ea08146100cc5780638381f58a146100e3578063b262eb7f1461010e575b600080fd5b610062610139565b60405161006f91906101cc565b60405180910390f35b34801561008457600080fd5b5061008d610149565b005b34801561009b57600080fd5b506100b660048036038101906100b19190610218565b610160565b6040516100c391906101cc565b60405180910390f35b3480156100d857600080fd5b506100e1610176565b005b3480156100ef57600080fd5b506100f8610180565b60405161010591906101cc565b60405180910390f35b34801561011a57600080fd5b50610123610186565b60405161013091906101cc565b60405180910390f35b600061014361019c565b47905090565b60016000546101589190610274565b600081905550565b600060018261016f9190610274565b9050919050565b61017e61019c565b565b60005481565b600060016000546101979190610274565b905090565b60016000546101ab91906102a8565b600081905550565b6000819050919050565b6101c6816101b3565b82525050565b60006020820190506101e160008301846101bd565b92915050565b600080fd5b6101f5816101b3565b811461020057600080fd5b50565b600081359050610212816101ec565b92915050565b60006020828403121561022e5761022d6101e7565b5b600061023c84828501610203565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061027f826101b3565b915061028a836101b3565b92508282019050808211156102a2576102a1610245565b5b92915050565b60006102b3826101b3565b91506102be836101b3565b92508282039050818111156102d6576102d5610245565b5b9291505056fea264697066735822122090d702568fc163233814a35a1e64dae0cb6c121259de970425b8740968bf9b1164736f6c63430008120033
Deployed Bytecode Sourcemap
58:1013:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;930:138;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;305:61;;;;;;;;;;;;;:::i;:::-;;401:116;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;809:56;;;;;;;;;;;;;:::i;:::-;;87:25;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;550:103;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;930:138;979:15;1007:7;:5;:7::i;:::-;1039:21;1029:31;;930:138;:::o;305:61::-;357:1;348:6;;:10;;;;:::i;:::-;339:6;:19;;;;305:61::o;401:116::-;457:18;508:1;500:7;:9;;;;:::i;:::-;487:22;;401:116;;;:::o;809:56::-;850:7;:5;:7::i;:::-;809:56::o;87:25::-;;;;:::o;550:103::-;591:18;644:1;635:6;;:10;;;;:::i;:::-;622:23;;550:103;:::o;686:64::-;741:1;732:6;;:10;;;;:::i;:::-;723:6;:19;;;;686:64::o;7:77:1:-;44:7;73:5;62:16;;7:77;;;:::o;90:118::-;177:24;195:5;177:24;:::i;:::-;172:3;165:37;90:118;;:::o;214:222::-;307:4;345:2;334:9;330:18;322:26;;358:71;426:1;415:9;411:17;402:6;358:71;:::i;:::-;214:222;;;;:::o;523:117::-;632:1;629;622:12;769:122;842:24;860:5;842:24;:::i;:::-;835:5;832:35;822:63;;881:1;878;871:12;822:63;769:122;:::o;897:139::-;943:5;981:6;968:20;959:29;;997:33;1024:5;997:33;:::i;:::-;897:139;;;;:::o;1042:329::-;1101:6;1150:2;1138:9;1129:7;1125:23;1121:32;1118:119;;;1156:79;;:::i;:::-;1118:119;1276:1;1301:53;1346:7;1337:6;1326:9;1322:22;1301:53;:::i;:::-;1291:63;;1247:117;1042:329;;;;:::o;1377:180::-;1425:77;1422:1;1415:88;1522:4;1519:1;1512:15;1546:4;1543:1;1536:15;1563:191;1603:3;1622:20;1640:1;1622:20;:::i;:::-;1617:25;;1656:20;1674:1;1656:20;:::i;:::-;1651:25;;1699:1;1696;1692:9;1685:16;;1720:3;1717:1;1714:10;1711:36;;;1727:18;;:::i;:::-;1711:36;1563:191;;;;:::o;1760:194::-;1800:4;1820:20;1838:1;1820:20;:::i;:::-;1815:25;;1854:20;1872:1;1854:20;:::i;:::-;1849:25;;1898:1;1895;1891:9;1883:17;;1922:1;1916:4;1913:11;1910:37;;;1927:18;;:::i;:::-;1910:37;1760:194;;;;:::o
Swarm Source
ipfs://90d702568fc163233814a35a1e64dae0cb6c121259de970425b8740968bf9b11
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
Token Allocations
ETH
100.00%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| SCROLL | 100.00% | $2,921.91 | 0.000000000000000001 | <$0.000001 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.