Contrat
Contrat
0x50241113f7…4f0dfd6c4f
0x50241113f7b5cdc1e4ed9c7aca152e4f0dfd6c4f
Solde WTG
0 WTG
≈ 0,00 FCFA (@ 17,02 FCFA/WTG)
Avoirs en tokens
0 token
≈ 0,00 FCFA
Plus d'infos
Transactions envoyées1
Dernière activité—
Première activitéil y a 1 j
Financé par
—
Code du contrat
✓ VérifiéWintg7702Delegate · Solidity v0.8.35 · optimiseur activé (200 runs) · licence MIT
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract Wintg7702Delegate {
event BatchExecuted(address indexed authority, uint256 count);
struct Call { address to; uint256 value; bytes data; }
function execute(Call[] calldata calls) external payable {
require(msg.sender == tx.origin, "no reentry");
for (uint256 i; i < calls.length; ++i) {
(bool ok, ) = calls[i].to.call{value: calls[i].value}(calls[i].data);
require(ok, "call failed");
}
emit BatchExecuted(address(this), calls.length);
}
receive() external payable {}
}
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "authority",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "count",
"type": "uint256"
}
],
"name": "BatchExecuted",
"type": "event"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"internalType": "struct Wintg7702Delegate.Call[]",
"name": "calls",
"type": "tuple[]"
}
],
"name": "execute",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]
0x6080604052600436106100225760003560e01c80633f707e6b1461002e57600080fd5b3661002957005b600080fd5b61004161003c3660046101f8565b610043565b005b3332146100845760405162461bcd60e51b815260206004820152600a6024820152696e6f207265656e74727960b01b60448201526064015b60405180910390fd5b60005b818110156101be5760008383838181106100a3576100a361026f565b90506020028101906100b59190610285565b6100c39060208101906102a5565b6001600160a01b03168484848181106100de576100de61026f565b90506020028101906100f09190610285565b602001358585858181106101065761010661026f565b90506020028101906101189190610285565b6101269060408101906102d5565b604051610134929190610323565b60006040518083038185875af1925050503d8060008114610171576040519150601f19603f3d011682016040523d82523d6000602084013e610176565b606091505b50509050806101b55760405162461bcd60e51b815260206004820152600b60248201526a18d85b1b0819985a5b195960aa1b604482015260640161007b565b50600101610087565b5060405181815230907f7ffb1df8fb1cb14bf915045200c5b519c9cdd3c996c3fa9e781810674194029c9060200160405180910390a25050565b6000806020838503121561020b57600080fd5b823567ffffffffffffffff81111561022257600080fd5b8301601f8101851361023357600080fd5b803567ffffffffffffffff81111561024a57600080fd5b8560208260051b840101111561025f57600080fd5b6020919091019590945092505050565b634e487b7160e01b600052603260045260246000fd5b60008235605e1983360301811261029b57600080fd5b9190910192915050565b6000602082840312156102b757600080fd5b81356001600160a01b03811681146102ce57600080fd5b9392505050565b6000808335601e198436030181126102ec57600080fd5b83018035915067ffffffffffffffff82111561030757600080fd5b60200191503681900382131561031c57600080fd5b9250929050565b818382376000910190815291905056fea2646970667358221220c6f191b261a49abd4f19ec3718000ff03eac555b87c629c11cd46213baa2b90964736f6c63430008230033
Aucun transfert de token.