Source Code
Latest 24 from a total of 24 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Bright Future | 19927134 | 624 days ago | IN | 0 ETH | 0.00094041 | ||||
| Bright Future | 19927123 | 624 days ago | IN | 0 ETH | 0.00159415 | ||||
| Send Gift | 18129488 | 876 days ago | IN | 0 ETH | 0.00046207 | ||||
| Send Gift | 18122129 | 877 days ago | IN | 0.2 ETH | 0.00062233 | ||||
| Send Gift | 18111875 | 878 days ago | IN | 0 ETH | 0.00029626 | ||||
| Send Gift | 18107187 | 879 days ago | IN | 0 ETH | 0.00026113 | ||||
| Send Gift | 18107132 | 879 days ago | IN | 0 ETH | 0.00023914 | ||||
| Send Gift | 18100636 | 880 days ago | IN | 0 ETH | 0.00025314 | ||||
| Send Gift | 18098845 | 880 days ago | IN | 0.02 ETH | 0.00026124 | ||||
| Send Gift | 18098737 | 880 days ago | IN | 0 ETH | 0.00023233 | ||||
| I Promise | 18098511 | 880 days ago | IN | 0 ETH | 0.00045117 | ||||
| I Promise | 18098508 | 880 days ago | IN | 0 ETH | 0.00047622 | ||||
| Send Gift | 18098310 | 880 days ago | IN | 0 ETH | 0.00026298 | ||||
| Send Gift | 18098231 | 880 days ago | IN | 0 ETH | 0.00032673 | ||||
| Send Gift | 18098187 | 880 days ago | IN | 0 ETH | 0.00027686 | ||||
| Send Gift | 18098176 | 880 days ago | IN | 0 ETH | 0.00026217 | ||||
| Send Gift | 18098163 | 880 days ago | IN | 0.1 ETH | 0.0002219 | ||||
| Send Gift | 18098127 | 880 days ago | IN | 0 ETH | 0.00029513 | ||||
| Send Gift | 18098066 | 880 days ago | IN | 0 ETH | 0.00034556 | ||||
| Send Gift | 18097994 | 880 days ago | IN | 0 ETH | 0.00027305 | ||||
| Send Gift | 18097951 | 880 days ago | IN | 0 ETH | 0.00025601 | ||||
| Send Gift | 18097830 | 880 days ago | IN | 0 ETH | 0.000277 | ||||
| Send Gift | 18097625 | 880 days ago | IN | 0 ETH | 0.00027532 | ||||
| Send Gift | 18093840 | 881 days ago | IN | 0.2 ETH | 0.00050683 |
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 19927134 | 624 days ago | 0.52 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
KryptoSvatbaVT
Compiler Version
v0.8.21+commit.d9974bed
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2023-09-08
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
/**
* ⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⠟⠛⢦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
* ⠀⠀⠀⠀⠀⠀⠀⣰⠟⠋⠁⠀⢸⡇⠀⠀⠀⢀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
* ⠀⠀⠀⠀⠀⠀⠀⠹⣦⣀⣀⣀⣀⡇⠀⠀⢰⠋⠉⢻⠶⢦⡄⠀⠀⠀⠀⠀⠀⠀
* ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠉⠁⠀⠀⢸⡆⠀⠀⠀⢀⡿⠀⠀⠀⠀⠀⠀⠀
* ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢷⣀⣤⠶⠋⠀⠀⠀⠀⠀⠀⠀⠀
* ⠀⠀⠀⠀⠀⠀⠀⠀⣀⣴⣆⡀⠀⠀⠀⠀⠀⠈⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
* ⠀⠀⠀⠀⠀⣠⠞⠛⠉⠀⠈⠙⢧⡀⠀⠀⠀⠀⢀⣠⠴⠶⠶⠶⣤⡀⠀⠀⠀⠀
* ⠀⠀⠀⠀⢀⡏⣀⣠⡴⠶⣆⠀⣈⣧⠀⠀⠀⢰⠏⠁⠀⠀⠀⠀⠀⢻⡄⠀⠀⠀
* ⠀⠀⠀⠀⣟⠛⠁⠀⠀⠀⠈⠛⠙⠛⡇⠀⠀⡟⢀⣠⣤⣤⠾⢷⣄⠀⣧⠀⠀⠀
* ⠀⠀⠀⠀⠙⢦⡀⠀⠀⠀⠀⠀⢀⡼⠃⠀⠀⡇⢸⡇⠀⠀⠀⠀⢸⡇⢻⠀⠀⠀
* ⠀⠀⠀⠀⠀⠈⠻⣄⡀⠀⣀⣴⠟⠀⠀⠀⠀⣧⣸⣇⠀⠀⠀⠀⣼⢃⣸⡇⠀⠀
* ⠀⠀⠀⠀⠀⠀⠀⢸⡏⠉⠉⣿⡀⠀⠀⠀⠀⠉⠉⠙⡷⠦⠴⣾⠉⠉⠉⠁⠀⠀
* ⠀⠀⠀⠀⠀⣀⡴⠞⠛⠒⠚⠋⠉⠛⠶⣤⣀⠀⣠⡴⠳⠶⠶⠛⠶⣄⡀⠀⠀⠀
* ⠀⠀⣀⡴⠞⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣽⠟⠁⠀⠀⠀⠀⠀⠀⠈⠙⢶⡄⠀
* ⠀⣰⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢷⠀
* ⢀⡟⠀⠀⢰⡆⠀⠀⠀⠀⠀⠀⠀⠀⢠⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⡆
* ⢸⠇⠀⠀⢸⡇⠀⠀⠀⠀⠀⠀⠀⠀⡾⠀⠀⢰⠀⠀⠀⠀⠀⠀⠀⠀⣶⠀⠀⣧
* ⣼⣀⣀⣀⣸⣇⣀⣀⣀⣀⣀⣀⣀⣸⣃⣀⣀⣸⣀⣀⣀⣀⣀⣀⣀⣀⣿⣀⣀⣸
* @title KryptoSvatbaVT
* @dev This is a wedding gift contract. The prupose is to
* approximately record the wedding date & to give something
* funny to the newlyweds
*/
contract KryptoSvatbaVT {
// Keep as constants as they should be!
address constant BRIDE = 0xB71430d596313e774940c2969725B4e870Ae9059;
address constant GROOM = 0x6B977d49fcfa6e934d03405bc86Ea1Bc5042F2E4;
// The wedding gift
struct Gift {
bool sheWants;
bool heWants;
}
// To use forever after
struct Family {
address wife;
address husband;
address home;
}
// Initiate structs
Gift gift;
Family family;
// Let everyone know what they've promised
event ShePromised(string what);
event HePromised(string what);
// Gift unwrapping
event GivenGift(string greeting, string from, uint256 amount);
event GiftUnwrapped();
/**
* @dev function for sending gifts
*/
function sendGift(string calldata _greeting, string calldata _from) external payable {
emit GivenGift(_greeting, _from, msg.value);
}
/**
* @dev super important function for calling out a promise
* @param _what string is the made promise
*/
function iPromise(string calldata _what) external payable {
if (msg.sender == BRIDE) {
family.wife = BRIDE;
emit ShePromised(_what);
} else if (msg.sender == GROOM) {
family.husband = GROOM;
emit HePromised(_what);
} else {
revert();
}
}
/**
* @dev function to withdraw the wedding gift
* @param _home address is the account to which the entire balance of the gift should be send to
*/
function brightFuture(address _home) external {
if (_home == address(0)) revert();
if (msg.sender == family.wife) {
gift.sheWants = true;
handleHome(_home);
}
if (msg.sender == family.husband) {
gift.heWants = true;
handleHome(_home);
}
if (gift.sheWants && gift.heWants) {
payable(family.home).transfer(address(this).balance);
emit GiftUnwrapped();
}
}
/**
* @dev internal function for home address handling
* @param _home address to be set or checked
*/
function handleHome(address _home) internal {
if (family.home == address(0)) {
family.home = _home;
} else if (family.home != _home) {
revert();
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[],"name":"GiftUnwrapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"greeting","type":"string"},{"indexed":false,"internalType":"string","name":"from","type":"string"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"GivenGift","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"what","type":"string"}],"name":"HePromised","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"what","type":"string"}],"name":"ShePromised","type":"event"},{"inputs":[{"internalType":"address","name":"_home","type":"address"}],"name":"brightFuture","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_what","type":"string"}],"name":"iPromise","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"_greeting","type":"string"},{"internalType":"string","name":"_from","type":"string"}],"name":"sendGift","outputs":[],"stateMutability":"payable","type":"function"}]Contract Creation Code
608060405234801561000f575f80fd5b506104ab8061001d5f395ff3fe608060405260043610610033575f3560e01c80630f090eb314610037578063764b77081461004c578063f04216ac1461006b575b5f80fd5b61004a610045366004610326565b61007e565b005b348015610057575f80fd5b5061004a610066366004610365565b610172565b61004a610079366004610392565b610253565b73b71430d596313e774940c2969725b4e870ae90581933016100fe57600180546001600160a01b03191673b71430d596313e774940c2969725b4e870ae90591790556040517f4650e446f68b2eed9b8744eecbae6e8cf7299c1d5c130f3ac3e00d4017370985906100f29084908490610421565b60405180910390a15050565b736b977d49fcfa6e934d03405bc86ea1bc5042f2e319330161003357600280546001600160a01b031916736b977d49fcfa6e934d03405bc86ea1bc5042f2e41790556040517faa0821cacb31b26b881b99bb33a3aba6a6130e1db3bca51a81691d53bd24cf1f906100f29084908490610421565b6001600160a01b038116610184575f80fd5b6001546001600160a01b031633036101ab575f805460ff191660011790556101ab81610298565b6002546001600160a01b031633036101d4575f805461ff0019166101001790556101d481610298565b5f5460ff1680156101eb57505f54610100900460ff165b15610250576003546040516001600160a01b03909116904780156108fc02915f818181858888f19350505050158015610226573d5f803e3d5ffd5b506040517f12e15d997c56a0402db4a03ca0f0f24079ea0a1536903d104b7ffec7dd75d64d905f90a15b50565b7fd93b8a27e9fc1565586b3a972c65ea614c0315c73efd9b759d3f5b2c7db82f4d848484843460405161028a95949392919061043c565b60405180910390a150505050565b6003546001600160a01b03166102c857600380546001600160a01b0383166001600160a01b031990911617905550565b6003546001600160a01b03828116911614610250575f80fd5b5f8083601f8401126102f1575f80fd5b50813567ffffffffffffffff811115610308575f80fd5b60208301915083602082850101111561031f575f80fd5b9250929050565b5f8060208385031215610337575f80fd5b823567ffffffffffffffff81111561034d575f80fd5b610359858286016102e1565b90969095509350505050565b5f60208284031215610375575f80fd5b81356001600160a01b038116811461038b575f80fd5b9392505050565b5f805f80604085870312156103a5575f80fd5b843567ffffffffffffffff808211156103bc575f80fd5b6103c8888389016102e1565b909650945060208701359150808211156103e0575f80fd5b506103ed878288016102e1565b95989497509550505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f6104346020830184866103f9565b949350505050565b606081525f61044f6060830187896103f9565b82810360208401526104628186886103f9565b915050826040830152969550505050505056fea2646970667358221220c380536591627a8447a32a8bf4b6c9cc3ab1eef8f9883c0c5541480372dadb0664736f6c63430008150033
Deployed Bytecode
0x608060405260043610610033575f3560e01c80630f090eb314610037578063764b77081461004c578063f04216ac1461006b575b5f80fd5b61004a610045366004610326565b61007e565b005b348015610057575f80fd5b5061004a610066366004610365565b610172565b61004a610079366004610392565b610253565b73b71430d596313e774940c2969725b4e870ae90581933016100fe57600180546001600160a01b03191673b71430d596313e774940c2969725b4e870ae90591790556040517f4650e446f68b2eed9b8744eecbae6e8cf7299c1d5c130f3ac3e00d4017370985906100f29084908490610421565b60405180910390a15050565b736b977d49fcfa6e934d03405bc86ea1bc5042f2e319330161003357600280546001600160a01b031916736b977d49fcfa6e934d03405bc86ea1bc5042f2e41790556040517faa0821cacb31b26b881b99bb33a3aba6a6130e1db3bca51a81691d53bd24cf1f906100f29084908490610421565b6001600160a01b038116610184575f80fd5b6001546001600160a01b031633036101ab575f805460ff191660011790556101ab81610298565b6002546001600160a01b031633036101d4575f805461ff0019166101001790556101d481610298565b5f5460ff1680156101eb57505f54610100900460ff165b15610250576003546040516001600160a01b03909116904780156108fc02915f818181858888f19350505050158015610226573d5f803e3d5ffd5b506040517f12e15d997c56a0402db4a03ca0f0f24079ea0a1536903d104b7ffec7dd75d64d905f90a15b50565b7fd93b8a27e9fc1565586b3a972c65ea614c0315c73efd9b759d3f5b2c7db82f4d848484843460405161028a95949392919061043c565b60405180910390a150505050565b6003546001600160a01b03166102c857600380546001600160a01b0383166001600160a01b031990911617905550565b6003546001600160a01b03828116911614610250575f80fd5b5f8083601f8401126102f1575f80fd5b50813567ffffffffffffffff811115610308575f80fd5b60208301915083602082850101111561031f575f80fd5b9250929050565b5f8060208385031215610337575f80fd5b823567ffffffffffffffff81111561034d575f80fd5b610359858286016102e1565b90969095509350505050565b5f60208284031215610375575f80fd5b81356001600160a01b038116811461038b575f80fd5b9392505050565b5f805f80604085870312156103a5575f80fd5b843567ffffffffffffffff808211156103bc575f80fd5b6103c8888389016102e1565b909650945060208701359150808211156103e0575f80fd5b506103ed878288016102e1565b95989497509550505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f6104346020830184866103f9565b949350505050565b606081525f61044f6060830187896103f9565b82810360208401526104628186886103f9565b915050826040830152969550505050505056fea2646970667358221220c380536591627a8447a32a8bf4b6c9cc3ab1eef8f9883c0c5541480372dadb0664736f6c63430008150033
Deployed Bytecode Sourcemap
2122:2484:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3233:343;;;;;;:::i;:::-;;:::i;:::-;;3757:505;;;;;;;;;;-1:-1:-1;3757:505:0;;;;;:::i;:::-;;:::i;2946:147::-;;;;;;:::i;:::-;;:::i;3233:343::-;-1:-1:-1;;3306:10:0;:19;3302:267;;3342:6;:19;;-1:-1:-1;;;;;;3342:19:0;2223:42;3342:19;;;3381:18;;;;;;3393:5;;;;3381:18;:::i;:::-;;;;;;;;3233:343;;:::o;3302:267::-;-1:-1:-1;;3421:10:0;:19;3417:152;;3457:14;:22;;-1:-1:-1;;;;;;3457:22:0;2297:42;3457:22;;;3499:17;;;;;;3510:5;;;;3499:17;:::i;3757:505::-;-1:-1:-1;;;;;3818:19:0;;3814:33;;3839:8;;;3814:33;3878:6;:11;-1:-1:-1;;;;;3878:11:0;3864:10;:25;3860:110;;3906:4;:20;;-1:-1:-1;;3906:20:0;3922:4;3906:20;;;3941:17;3952:5;3941:10;:17::i;:::-;4000:14;;-1:-1:-1;;;;;4000:14:0;3986:10;:28;3982:112;;4031:4;:19;;-1:-1:-1;;4031:19:0;;;;;4065:17;4076:5;4065:10;:17::i;:::-;4110:4;:13;;;:29;;;;-1:-1:-1;4127:4:0;:12;;;;;;4110:29;4106:149;;;4164:11;;4156:52;;-1:-1:-1;;;;;4164:11:0;;;;4186:21;4156:52;;;;;4164:11;4156:52;4164:11;4156:52;4186:21;4164:11;4156:52;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4228:15:0;;;;;;;4106:149;3757:505;:::o;2946:147::-;3047:38;3057:9;;3068:5;;3075:9;3047:38;;;;;;;;;;:::i;:::-;;;;;;;;2946:147;;;;:::o;4397:206::-;4456:11;;-1:-1:-1;;;;;4456:11:0;4452:144;;4498:11;:19;;-1:-1:-1;;;;;4498:19:0;;-1:-1:-1;;;;;;4498:19:0;;;;;;3757:505;:::o;4452:144::-;4539:11;;-1:-1:-1;;;;;4539:20:0;;;:11;;:20;4535:61;;4576:8;;;14:348:1;66:8;76:6;130:3;123:4;115:6;111:17;107:27;97:55;;148:1;145;138:12;97:55;-1:-1:-1;171:20:1;;214:18;203:30;;200:50;;;246:1;243;236:12;200:50;283:4;275:6;271:17;259:29;;335:3;328:4;319:6;311;307:19;303:30;300:39;297:59;;;352:1;349;342:12;297:59;14:348;;;;;:::o;367:411::-;438:6;446;499:2;487:9;478:7;474:23;470:32;467:52;;;515:1;512;505:12;467:52;555:9;542:23;588:18;580:6;577:30;574:50;;;620:1;617;610:12;574:50;659:59;710:7;701:6;690:9;686:22;659:59;:::i;:::-;737:8;;633:85;;-1:-1:-1;367:411:1;-1:-1:-1;;;;367:411:1:o;783:286::-;842:6;895:2;883:9;874:7;870:23;866:32;863:52;;;911:1;908;901:12;863:52;937:23;;-1:-1:-1;;;;;989:31:1;;979:42;;969:70;;1035:1;1032;1025:12;969:70;1058:5;783:286;-1:-1:-1;;;783:286:1:o;1074:721::-;1166:6;1174;1182;1190;1243:2;1231:9;1222:7;1218:23;1214:32;1211:52;;;1259:1;1256;1249:12;1211:52;1299:9;1286:23;1328:18;1369:2;1361:6;1358:14;1355:34;;;1385:1;1382;1375:12;1355:34;1424:59;1475:7;1466:6;1455:9;1451:22;1424:59;:::i;:::-;1502:8;;-1:-1:-1;1398:85:1;-1:-1:-1;1590:2:1;1575:18;;1562:32;;-1:-1:-1;1606:16:1;;;1603:36;;;1635:1;1632;1625:12;1603:36;;1674:61;1727:7;1716:8;1705:9;1701:24;1674:61;:::i;:::-;1074:721;;;;-1:-1:-1;1754:8:1;-1:-1:-1;;;;1074:721:1:o;1800:267::-;1889:6;1884:3;1877:19;1941:6;1934:5;1927:4;1922:3;1918:14;1905:43;-1:-1:-1;1993:1:1;1968:16;;;1986:4;1964:27;;;1957:38;;;;2049:2;2028:15;;;-1:-1:-1;;2024:29:1;2015:39;;;2011:50;;1800:267::o;2072:247::-;2231:2;2220:9;2213:21;2194:4;2251:62;2309:2;2298:9;2294:18;2286:6;2278;2251:62;:::i;:::-;2243:70;2072:247;-1:-1:-1;;;;2072:247:1:o;2324:508::-;2569:2;2558:9;2551:21;2532:4;2595:62;2653:2;2642:9;2638:18;2630:6;2622;2595:62;:::i;:::-;2705:9;2697:6;2693:22;2688:2;2677:9;2673:18;2666:50;2733;2776:6;2768;2760;2733:50;:::i;:::-;2725:58;;;2819:6;2814:2;2803:9;2799:18;2792:34;2324:508;;;;;;;;:::o
Swarm Source
ipfs://c380536591627a8447a32a8bf4b6c9cc3ab1eef8f9883c0c5541480372dadb06
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.