@pvpbet/pvpbet
Version:
A decentralized PVP betting platform based on the Ethereum Virtual Machine (EVM).
114 lines (113 loc) • 5.85 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "BetProxy",
"sourceName": "contracts/BetProxy.sol",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "dispute",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "nonce",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "signature",
"type": "bytes"
}
],
"name": "dispute",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "nonce",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "signature",
"type": "bytes"
}
],
"name": "wager",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "wager",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b5061034b806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80630d2863dd1461005157806395e7f02d14610066578063d840008c14610079578063f4cbf60b1461008c575b600080fd5b61006461005f3660046101f9565b61009f565b005b610064610074366004610298565b61010f565b6100646100873660046101f9565b610174565b61006461009a366004610298565b6101aa565b604051630d2863dd60e01b81526001600160a01b03871690630d2863dd906100d5903390899089908990899089906004016102c2565b600060405180830381600087803b1580156100ef57600080fd5b505af1158015610103573d6000803e3d6000fd5b50505050505050505050565b6040516395e7f02d60e01b8152336004820152602481018290526001600160a01b038316906395e7f02d906044015b600060405180830381600087803b15801561015857600080fd5b505af115801561016c573d6000803e3d6000fd5b505050505050565b604051633610002360e21b81526001600160a01b0387169063d840008c906100d5903390899089908990899089906004016102c2565b60405163f4cbf60b60e01b8152336004820152602481018290526001600160a01b0383169063f4cbf60b9060440161013e565b80356001600160a01b03811681146101f457600080fd5b919050565b60008060008060008060a0878903121561021257600080fd5b61021b876101dd565b9550602087013594506040870135935060608701359250608087013567ffffffffffffffff8082111561024d57600080fd5b818901915089601f83011261026157600080fd5b81358181111561027057600080fd5b8a602082850101111561028257600080fd5b6020830194508093505050509295509295509295565b600080604083850312156102ab57600080fd5b6102b4836101dd565b946020939093013593505050565b60018060a01b038716815285602082015284604082015283606082015260a060808201528160a0820152818360c0830137600081830160c090810191909152601f909201601f191601019594505050505056fea2646970667358221220f4072c915562ad3848ee7bb1376bb688269d8cbf13ea06b18b819c1a56e53be664736f6c63430008140033",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80630d2863dd1461005157806395e7f02d14610066578063d840008c14610079578063f4cbf60b1461008c575b600080fd5b61006461005f3660046101f9565b61009f565b005b610064610074366004610298565b61010f565b6100646100873660046101f9565b610174565b61006461009a366004610298565b6101aa565b604051630d2863dd60e01b81526001600160a01b03871690630d2863dd906100d5903390899089908990899089906004016102c2565b600060405180830381600087803b1580156100ef57600080fd5b505af1158015610103573d6000803e3d6000fd5b50505050505050505050565b6040516395e7f02d60e01b8152336004820152602481018290526001600160a01b038316906395e7f02d906044015b600060405180830381600087803b15801561015857600080fd5b505af115801561016c573d6000803e3d6000fd5b505050505050565b604051633610002360e21b81526001600160a01b0387169063d840008c906100d5903390899089908990899089906004016102c2565b60405163f4cbf60b60e01b8152336004820152602481018290526001600160a01b0383169063f4cbf60b9060440161013e565b80356001600160a01b03811681146101f457600080fd5b919050565b60008060008060008060a0878903121561021257600080fd5b61021b876101dd565b9550602087013594506040870135935060608701359250608087013567ffffffffffffffff8082111561024d57600080fd5b818901915089601f83011261026157600080fd5b81358181111561027057600080fd5b8a602082850101111561028257600080fd5b6020830194508093505050509295509295509295565b600080604083850312156102ab57600080fd5b6102b4836101dd565b946020939093013593505050565b60018060a01b038716815285602082015284604082015283606082015260a060808201528160a0820152818360c0830137600081830160c090810191909152601f909201601f191601019594505050505056fea2646970667358221220f4072c915562ad3848ee7bb1376bb688269d8cbf13ea06b18b819c1a56e53be664736f6c63430008140033",
"linkReferences": {},
"deployedLinkReferences": {}
}