UNPKG

@river-build/generated

Version:

## How to generate contract types

1 lines 13.5 kB
{"abi":[{"type":"function","name":"tip","inputs":[{"name":"tipRequest","type":"tuple","internalType":"struct ITippingBase.TipRequest","components":[{"name":"receiver","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"messageId","type":"bytes32","internalType":"bytes32"},{"name":"channelId","type":"bytes32","internalType":"bytes32"}]}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"tipAmountByCurrency","inputs":[{"name":"currency","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"tippingCurrencies","inputs":[],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"type":"function","name":"tipsByCurrencyAndTokenId","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"totalTipsByCurrency","inputs":[{"name":"currency","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"event","name":"Tip","inputs":[{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"currency","type":"address","indexed":true,"internalType":"address"},{"name":"sender","type":"address","indexed":false,"internalType":"address"},{"name":"receiver","type":"address","indexed":false,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"messageId","type":"bytes32","indexed":false,"internalType":"bytes32"},{"name":"channelId","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"type":"error","name":"AmountIsZero","inputs":[]},{"type":"error","name":"CannotTipSelf","inputs":[]},{"type":"error","name":"CurrencyIsZero","inputs":[]},{"type":"error","name":"ReceiverIsNotMember","inputs":[]},{"type":"error","name":"TokenDoesNotExist","inputs":[]}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"tip((address,uint256,address,uint256,bytes32,bytes32))":"c46be00e","tipAmountByCurrency(address)":"0a7bb41b","tippingCurrencies()":"6e7ef3fa","tipsByCurrencyAndTokenId(uint256,address)":"568922a6","totalTipsByCurrency(address)":"e4177d0b"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"AmountIsZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CannotTipSelf\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CurrencyIsZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReceiverIsNotMember\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TokenDoesNotExist\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"channelId\",\"type\":\"bytes32\"}],\"name\":\"Tip\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"channelId\",\"type\":\"bytes32\"}],\"internalType\":\"struct ITippingBase.TipRequest\",\"name\":\"tipRequest\",\"type\":\"tuple\"}],\"name\":\"tip\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"}],\"name\":\"tipAmountByCurrency\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tippingCurrencies\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"}],\"name\":\"tipsByCurrencyAndTokenId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"}],\"name\":\"totalTipsByCurrency\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"tip((address,uint256,address,uint256,bytes32,bytes32))\":{\"details\":\"Requires sender and receiver to be members of the spaceRequires amount > 0 and valid currency addressEmits Tip event\",\"params\":{\"tipRequest\":\"The tip request containing token ID, currency, amount, message ID and channel ID\"}},\"tipAmountByCurrency(address)\":{\"params\":{\"currency\":\"The currency address to get tips for\"},\"returns\":{\"_0\":\"The total amount of tips received in the specified currency\"}},\"tippingCurrencies()\":{\"returns\":{\"_0\":\"An array of currency addresses\"}},\"tipsByCurrencyAndTokenId(uint256,address)\":{\"params\":{\"currency\":\"The currency address to get tips in\",\"tokenId\":\"The token ID to get tips for\"},\"returns\":{\"_0\":\"The total amount of tips received in the specified currency\"}},\"totalTipsByCurrency(address)\":{\"params\":{\"currency\":\"The currency address to get tips for\"},\"returns\":{\"_0\":\"The total number of tips received in the specified currency\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"tip((address,uint256,address,uint256,bytes32,bytes32))\":{\"notice\":\"Sends a tip to a space member\"},\"tipAmountByCurrency(address)\":{\"notice\":\"Gets the total amount of tips received in a specific currency\"},\"tippingCurrencies()\":{\"notice\":\"Gets the list of currencies that have been tipped to the space\"},\"tipsByCurrencyAndTokenId(uint256,address)\":{\"notice\":\"Gets the total tips received for a token ID in a specific currency\"},\"totalTipsByCurrency(address)\":{\"notice\":\"Gets the total number of tips received in a specific currency\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/spaces/facets/tipping/ITipping.sol\":\"ITipping\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"appendCBOR\":false,\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@openzeppelin/=node_modules/@openzeppelin/\",\":@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/\",\":@prb/math/=node_modules/@prb/math/src/\",\":@prb/test/=node_modules/@prb/test/src/\",\":@river-build/diamond/=node_modules/@river-build/diamond/\",\":@solidity/=node_modules/crypto-lib/src/\",\":account-abstraction/=node_modules/account-abstraction/contracts/\",\":crypto-lib/=node_modules/crypto-lib/src/\",\":ds-test/=node_modules/ds-test/src/\",\":forge-std/=node_modules/forge-std/src/\",\":hardhat-deploy/=node_modules/hardhat-deploy/\",\":solady/=node_modules/solady/src/\"]},\"sources\":{\"contracts/src/spaces/facets/tipping/ITipping.sol\":{\"keccak256\":\"0xaeb9f0538f72b7f6e9a004ca44fcd2890294a2e9ae640794d7f77ebb74088563\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f8b42ef93b3bbe0ac237aaeef2e1fb624fb9d81aba75f91485a48ae484f3a8eb\",\"dweb:/ipfs/QmWhZH6zUE7Tf8R9xu8JxTeWxHyV9yBgNAJFx2DoHBGuYn\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.24+commit.e11b9ed9"},"language":"Solidity","output":{"abi":[{"inputs":[],"type":"error","name":"AmountIsZero"},{"inputs":[],"type":"error","name":"CannotTipSelf"},{"inputs":[],"type":"error","name":"CurrencyIsZero"},{"inputs":[],"type":"error","name":"ReceiverIsNotMember"},{"inputs":[],"type":"error","name":"TokenDoesNotExist"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256","indexed":true},{"internalType":"address","name":"currency","type":"address","indexed":true},{"internalType":"address","name":"sender","type":"address","indexed":false},{"internalType":"address","name":"receiver","type":"address","indexed":false},{"internalType":"uint256","name":"amount","type":"uint256","indexed":false},{"internalType":"bytes32","name":"messageId","type":"bytes32","indexed":false},{"internalType":"bytes32","name":"channelId","type":"bytes32","indexed":false}],"type":"event","name":"Tip","anonymous":false},{"inputs":[{"internalType":"struct ITippingBase.TipRequest","name":"tipRequest","type":"tuple","components":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"messageId","type":"bytes32"},{"internalType":"bytes32","name":"channelId","type":"bytes32"}]}],"stateMutability":"payable","type":"function","name":"tip"},{"inputs":[{"internalType":"address","name":"currency","type":"address"}],"stateMutability":"view","type":"function","name":"tipAmountByCurrency","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"tippingCurrencies","outputs":[{"internalType":"address[]","name":"","type":"address[]"}]},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"currency","type":"address"}],"stateMutability":"view","type":"function","name":"tipsByCurrencyAndTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"currency","type":"address"}],"stateMutability":"view","type":"function","name":"totalTipsByCurrency","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]}],"devdoc":{"kind":"dev","methods":{"tip((address,uint256,address,uint256,bytes32,bytes32))":{"details":"Requires sender and receiver to be members of the spaceRequires amount > 0 and valid currency addressEmits Tip event","params":{"tipRequest":"The tip request containing token ID, currency, amount, message ID and channel ID"}},"tipAmountByCurrency(address)":{"params":{"currency":"The currency address to get tips for"},"returns":{"_0":"The total amount of tips received in the specified currency"}},"tippingCurrencies()":{"returns":{"_0":"An array of currency addresses"}},"tipsByCurrencyAndTokenId(uint256,address)":{"params":{"currency":"The currency address to get tips in","tokenId":"The token ID to get tips for"},"returns":{"_0":"The total amount of tips received in the specified currency"}},"totalTipsByCurrency(address)":{"params":{"currency":"The currency address to get tips for"},"returns":{"_0":"The total number of tips received in the specified currency"}}},"version":1},"userdoc":{"kind":"user","methods":{"tip((address,uint256,address,uint256,bytes32,bytes32))":{"notice":"Sends a tip to a space member"},"tipAmountByCurrency(address)":{"notice":"Gets the total amount of tips received in a specific currency"},"tippingCurrencies()":{"notice":"Gets the list of currencies that have been tipped to the space"},"tipsByCurrencyAndTokenId(uint256,address)":{"notice":"Gets the total tips received for a token ID in a specific currency"},"totalTipsByCurrency(address)":{"notice":"Gets the total number of tips received in a specific currency"}},"version":1}},"settings":{"remappings":["@openzeppelin/=node_modules/@openzeppelin/","@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/","@prb/math/=node_modules/@prb/math/src/","@prb/test/=node_modules/@prb/test/src/","@river-build/diamond/=node_modules/@river-build/diamond/","@solidity/=node_modules/crypto-lib/src/","account-abstraction/=node_modules/account-abstraction/contracts/","crypto-lib/=node_modules/crypto-lib/src/","ds-test/=node_modules/ds-test/src/","forge-std/=node_modules/forge-std/src/","hardhat-deploy/=node_modules/hardhat-deploy/","solady/=node_modules/solady/src/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"none","appendCBOR":false},"compilationTarget":{"contracts/src/spaces/facets/tipping/ITipping.sol":"ITipping"},"evmVersion":"paris","libraries":{}},"sources":{"contracts/src/spaces/facets/tipping/ITipping.sol":{"keccak256":"0xaeb9f0538f72b7f6e9a004ca44fcd2890294a2e9ae640794d7f77ebb74088563","urls":["bzz-raw://f8b42ef93b3bbe0ac237aaeef2e1fb624fb9d81aba75f91485a48ae484f3a8eb","dweb:/ipfs/QmWhZH6zUE7Tf8R9xu8JxTeWxHyV9yBgNAJFx2DoHBGuYn"],"license":"MIT"}},"version":1},"id":293}