ocean-subgraph/abis/Dispenser.json

359 lines
27 KiB
JSON
Raw Normal View History

2021-11-10 13:47:44 +01:00
{
2021-11-19 15:42:17 +01:00
"_format": "hh-sol-artifact-1",
"contractName": "Dispenser",
"sourceName": "contracts/pools/dispenser/Dispenser.sol",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "_router",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "datatokenAddress",
"type": "address"
}
],
"name": "DispenserActivated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "datatoken",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newAllowedSwapper",
"type": "address"
}
],
"name": "DispenserAllowedSwapperChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "datatokenAddress",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "maxTokens",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "maxBalance",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "allowedSwapper",
"type": "address"
}
],
"name": "DispenserCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "datatokenAddress",
"type": "address"
}
],
"name": "DispenserDeactivated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "datatoken",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "OwnerWithdrawed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "datatokenAddress",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "userAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "TokensDispensed",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "datatoken",
"type": "address"
},
{
"internalType": "uint256",
"name": "maxTokens",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxBalance",
"type": "uint256"
}
],
"name": "activate",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "datatoken",
"type": "address"
},
{
"internalType": "uint256",
"name": "maxTokens",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxBalance",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "allowedSwapper",
"type": "address"
}
],
"name": "create",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "datatokensList",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "datatoken",
"type": "address"
}
],
"name": "deactivate",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "datatoken",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "address",
"name": "destination",
"type": "address"
}
],
"name": "dispense",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "datatoken",
"type": "address"
}
],
"name": "ownerWithdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "router",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "datatoken",
"type": "address"
},
{
"internalType": "address",
"name": "newAllowedSwapper",
"type": "address"
}
],
"name": "setAllowedSwapper",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "datatoken",
"type": "address"
}
],
"name": "status",
"outputs": [
{
"internalType": "bool",
"name": "active",
"type": "bool"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "bool",
"name": "isMinter",
"type": "bool"
},
{
"internalType": "uint256",
"name": "maxTokens",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxBalance",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "balance",
"type": "uint256"
},
{
"internalType": "address",
"name": "allowedSwapper",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b5060405161137b38038061137b83398101604081905261002f916100ae565b6001600160a01b0381166100895760405162461bcd60e51b815260206004820152601f60248201527f44697370656e7365723a2057726f6e6720526f75746572206164647265737300604482015260640160405180910390fd5b600080546001600160a01b0319166001600160a01b03929092169190911790556100de565b6000602082840312156100c057600080fd5b81516001600160a01b03811681146100d757600080fd5b9392505050565b61128e806100ed6000396000f3fe6080604052600436106100865760003560e01c806345d6646b1161005957806345d6646b1461011d578063645b8b1b1461013d578063938d71d0146101a0578063f887ea40146101c0578063f9bfaa7d146101e057600080fd5b80631d746d831461008b57806324ce2917146100a05780633398086a146100c05780633ea053eb146100fd575b600080fd5b61009e6100993660046110e2565b610200565b005b3480156100ac57600080fd5b5061009e6100bb366004611151565b6107d6565b3480156100cc57600080fd5b506100e06100db3660046111ca565b610a08565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561010957600080fd5b5061009e61011836600461108d565b610a32565b34801561012957600080fd5b5061009e6101383660046110af565b610b0f565b34801561014957600080fd5b5061015d61015836600461108d565b610bfd565b6040805197151588526001600160a01b039687166020890152941515948701949094526060860192909252608085015260a08401521660c082015260e0016100f4565b3480156101ac57600080fd5b5061009e6101bb36600461111e565b610d84565b3480156101cc57600080fd5b506000546100e0906001600160a01b031681565b3480156101ec57600080fd5b5061009e6101fb36600461108d565b610ea2565b6001600160a01b03831661022f5760405162461bcd60e51b8152600401610226906111fc565b60405180910390fd5b6001600160a01b03831660009081526001602081905260409091205460ff161515146102945760405162461bcd60e51b815260206004820152601460248201527344697370656e736572206e6f742061637469766560601b6044820152606401610226565b600082116102da5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081e995c9bc8185b5bdd5b9d606a1b6044820152606401610226565b6001600160a01b038316600090815260016020819052604090912001548211156103385760405162461bcd60e51b815260206004820152600f60248201526e082dadeeadce840e8dede40d0d2ced608b1b6044820152606401610226565b6001600160a01b0383811660009081526001602052604090206003015416156103d9576001600160a01b038381166000908152600160205260409020600301541633146103d95760405162461bcd60e51b815260206004820152602960248201527f546869732061646472657373206973206e6f7420616c6c6f77656420746f2072604482015268195c5d595cdd08111560ba1b6064820152608401610226565b6040516370a0823160e01b81526001600160a01b03828116600483015284916000918316906370a082319060240160206040518083038186803b15801561041f57600080fd5b505afa158015610433573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045791906111e3565b6001600160a01b03861660009081526001602052604090206002015490915081106104c45760405162461bcd60e51b815260206004820152601760248201527f43616c6c65722062616c616e636520746f6f20686967680000000000000000006044820152606401610226565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b15801561050657600080fd5b505afa15801561051a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053e91906111e3565b905084811080156105c157506040516355138f0d60e11b81523060048201526001600160a01b0384169063aa271e1a9060240160206040518083038186803b15801561058957600080fd5b505afa15801561059d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c191906111a8565b156106b8576001600160a01b0383166340c10f19306105e08489611233565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561062657600080fd5b505af115801561063a573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201526001600160a01b03861692506370a08231915060240160206040518083038186803b15801561067d57600080fd5b505afa158015610691573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b591906111e3565b90505b848110156106fe5760405162461bcd60e51b81526020600482015260136024820152724e6f7420656e6f75676820726573657276657360681b6044820152606401610226565b60405163a9059cbb60e01b
"deployedBytecode": "0x6080604052600436106100865760003560e01c806345d6646b1161005957806345d6646b1461011d578063645b8b1b1461013d578063938d71d0146101a0578063f887ea40146101c0578063f9bfaa7d146101e057600080fd5b80631d746d831461008b57806324ce2917146100a05780633398086a146100c05780633ea053eb146100fd575b600080fd5b61009e6100993660046110e2565b610200565b005b3480156100ac57600080fd5b5061009e6100bb366004611151565b6107d6565b3480156100cc57600080fd5b506100e06100db3660046111ca565b610a08565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561010957600080fd5b5061009e61011836600461108d565b610a32565b34801561012957600080fd5b5061009e6101383660046110af565b610b0f565b34801561014957600080fd5b5061015d61015836600461108d565b610bfd565b6040805197151588526001600160a01b039687166020890152941515948701949094526060860192909252608085015260a08401521660c082015260e0016100f4565b3480156101ac57600080fd5b5061009e6101bb36600461111e565b610d84565b3480156101cc57600080fd5b506000546100e0906001600160a01b031681565b3480156101ec57600080fd5b5061009e6101fb36600461108d565b610ea2565b6001600160a01b03831661022f5760405162461bcd60e51b8152600401610226906111fc565b60405180910390fd5b6001600160a01b03831660009081526001602081905260409091205460ff161515146102945760405162461bcd60e51b815260206004820152601460248201527344697370656e736572206e6f742061637469766560601b6044820152606401610226565b600082116102da5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081e995c9bc8185b5bdd5b9d606a1b6044820152606401610226565b6001600160a01b038316600090815260016020819052604090912001548211156103385760405162461bcd60e51b815260206004820152600f60248201526e082dadeeadce840e8dede40d0d2ced608b1b6044820152606401610226565b6001600160a01b0383811660009081526001602052604090206003015416156103d9576001600160a01b038381166000908152600160205260409020600301541633146103d95760405162461bcd60e51b815260206004820152602960248201527f546869732061646472657373206973206e6f7420616c6c6f77656420746f2072604482015268195c5d595cdd08111560ba1b6064820152608401610226565b6040516370a0823160e01b81526001600160a01b03828116600483015284916000918316906370a082319060240160206040518083038186803b15801561041f57600080fd5b505afa158015610433573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045791906111e3565b6001600160a01b03861660009081526001602052604090206002015490915081106104c45760405162461bcd60e51b815260206004820152601760248201527f43616c6c65722062616c616e636520746f6f20686967680000000000000000006044820152606401610226565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b15801561050657600080fd5b505afa15801561051a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053e91906111e3565b905084811080156105c157506040516355138f0d60e11b81523060048201526001600160a01b0384169063aa271e1a9060240160206040518083038186803b15801561058957600080fd5b505afa15801561059d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c191906111a8565b156106b8576001600160a01b0383166340c10f19306105e08489611233565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561062657600080fd5b505af115801561063a573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201526001600160a01b03861692506370a08231915060240160206040518083038186803b15801561067d57600080fd5b505afa158015610691573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b591906111e3565b90505b848110156106fe5760405162461bcd60e51b81526020600482015260136024820152724e6f7420656e6f75676820726573657276657360681b6044820152606401610226565b60405163a9059cbb60e01b81526001600160a01b0385811660048301526024820187905284169063a9059cbb90604401602060405180830381600087803b15801561074857600080fd5b505af115801561075c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078091906111a8565b50836001600160a01b0316866001600160a01b03167f63e223ff524bd93d4cbff98ef34405b39f63ded87f5a8d85e39ccda966f13543876040516107c691815260200190565b60405180910390a3505050505050565b6000546001600160a01b031633146108295760405162461bcd60e51b
"linkReferences": {},
"deployedLinkReferences": {}
}