zr-contracts/contracts/wallets/artifacts/ZrWallet_metadata.json
2024-08-20 00:52:44 +03:00

371 lines
7.2 KiB
JSON

{
"compiler": {
"version": "0.8.26+commit.8a97fa7a"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "address[]",
"name": "_owners",
"type": "address[]"
},
{
"internalType": "uint256",
"name": "_requiredConfirmations",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "Deposit",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "TransactionExecuted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "Withdrawal",
"type": "event"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "txHash",
"type": "bytes32"
}
],
"name": "confirmTransaction",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "createTransaction",
"outputs": [
{
"internalType": "bytes32",
"name": "txHash",
"type": "bytes32"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "txHash",
"type": "bytes32"
}
],
"name": "getTransactionDetails",
"outputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
},
{
"internalType": "bool",
"name": "executed",
"type": "bool"
},
{
"internalType": "uint256",
"name": "confirmations",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "confirmedBy",
"type": "address[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "isOwner",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "owners",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "requiredConfirmations",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"name": "transactions",
"outputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
},
{
"internalType": "bool",
"name": "executed",
"type": "bool"
},
{
"internalType": "uint256",
"name": "confirmations",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
],
"devdoc": {
"details": "Advanced wallet contract with features such as multi-signature support, transaction limits, and secure fund management.",
"kind": "dev",
"methods": {
"confirmTransaction(bytes32)": {
"params": {
"txHash": "The hash of the transaction."
}
},
"createTransaction(address,uint256,bytes)": {
"params": {
"amount": "Amount of Ether to send.",
"data": "Data to send with the transaction.",
"to": "Address of the recipient."
},
"returns": {
"txHash": "The hash of the transaction."
}
},
"getTransactionDetails(bytes32)": {
"params": {
"txHash": "The hash of the transaction."
},
"returns": {
"amount": "Amount of Ether to send.",
"confirmations": "Number of confirmations for the transaction.",
"confirmedBy": "Addresses that have confirmed the transaction.",
"data": "Data to send with the transaction.",
"executed": "Boolean indicating if the transaction has been executed.",
"to": "Address of the recipient."
}
}
},
"title": "ZrWallet",
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"confirmTransaction(bytes32)": {
"notice": "Confirm a transaction."
},
"createTransaction(address,uint256,bytes)": {
"notice": "Create a transaction for execution."
},
"getTransactionDetails(bytes32)": {
"notice": "Get the transaction details."
}
},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/wallets/ZrWallet.sol": "ZrWallet"
},
"evmVersion": "cancun",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/wallets/ZrWallet.sol": {
"keccak256": "0x80aefffe849f1064624516dcde5d3bef5e2d9f5f876999373c61a7fa8816fda2",
"license": "MIT",
"urls": [
"bzz-raw://c3f936f7ae46e319ffcdefedfd12a2b856ece976f6c1261c2e42001be007d041",
"dweb:/ipfs/QmRnfJcCrNSzjpFKofmwfNvMUkZi4t3Eyoj6tdEmAyuSmc"
]
}
},
"version": 1
}