Created
April 2, 2022 10:25
-
-
Save NBMSacha/2517d428ebb33dfb872121bc7693128f to your computer and use it in GitHub Desktop.
Mobula's API smart-contract ABI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_format": "hh-sol-artifact-1", | |
"contractName": "API", | |
"sourceName": "contracts/API.sol", | |
"abi": [ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "_protocol", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "_owner", | |
"type": "address" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "token", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "string", | |
"name": "hashString", | |
"type": "string" | |
} | |
], | |
"name": "NewListing", | |
"type": "event" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "token", | |
"type": "address" | |
}, | |
{ | |
"internalType": "string", | |
"name": "hashString", | |
"type": "string" | |
} | |
], | |
"name": "addStaticData", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "owner", | |
"outputs": [ | |
{ | |
"internalType": "address", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "protocol", | |
"outputs": [ | |
{ | |
"internalType": "address", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "token", | |
"type": "address" | |
} | |
], | |
"name": "removeStaticData", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "_protocol", | |
"type": "address" | |
} | |
], | |
"name": "setProtocolAddress", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"name": "staticData", | |
"outputs": [ | |
{ | |
"internalType": "string", | |
"name": "", | |
"type": "string" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
} | |
], | |
"bytecode": "0x608060405234801561001057600080fd5b506040516106c23803806106c283398101604081905261002f9161007c565b600080546001600160a01b039384166001600160a01b031991821617909155600180549290931691161790556100ae565b80516001600160a01b038116811461007757600080fd5b919050565b6000806040838503121561008e578182fd5b61009783610060565b91506100a560208401610060565b90509250929050565b610605806100bd6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063187b6e6714610067578063342c2c5f1461007c57806358e470041461008f5780638ce74426146100a25780638da5cb5b146100d2578063ebbd1e62146100e5575b600080fd5b61007a61007536600461046e565b610105565b005b61007a61008a36600461044d565b6101fb565b61007a61009d36600461044d565b610236565b6000546100b5906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6001546100b5906001600160a01b031681565b6100f86100f336600461044d565b6102c8565b6040516100c9919061052b565b6000546001600160a01b031633148061012857506001546001600160a01b031633145b61018c5760405162461bcd60e51b815260206004820152602a60248201527f4f6e6c79207468652044414f206f72207468652050726f746f636f6c2063616e6044820152691030b232103230ba309760b11b60648201526084015b60405180910390fd5b6001600160a01b038216600090815260026020908152604090912082516101b592840190610362565b50816001600160a01b03167f5319b33bc6576925c6874610712f519195b4cae89c62f935dbd909921a76a852826040516101ef919061052b565b60405180910390a25050565b6001546001600160a01b0316331461021257600080fd5b6001600160a01b0381166000908152600260205260408120610233916103e6565b50565b6001546001600160a01b031633146102a65760405162461bcd60e51b815260206004820152602d60248201527f4f6e6c79207468652044414f2063616e206d6f64696679207468652050726f7460448201526c37b1b7b61030b2323932b9b99760991b6064820152608401610183565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b600260205260009081526040902080546102e19061057e565b80601f016020809104026020016040519081016040528092919081815260200182805461030d9061057e565b801561035a5780601f1061032f5761010080835404028352916020019161035a565b820191906000526020600020905b81548152906001019060200180831161033d57829003601f168201915b505050505081565b82805461036e9061057e565b90600052602060002090601f01602090048101928261039057600085556103d6565b82601f106103a957805160ff19168380011785556103d6565b828001600101855582156103d6579182015b828111156103d65782518255916020019190600101906103bb565b506103e292915061041c565b5090565b5080546103f29061057e565b6000825580601f10610402575050565b601f01602090049060005260206000209081019061023391905b5b808211156103e2576000815560010161041d565b80356001600160a01b038116811461044857600080fd5b919050565b60006020828403121561045e578081fd5b61046782610431565b9392505050565b60008060408385031215610480578081fd5b61048983610431565b9150602083013567ffffffffffffffff808211156104a5578283fd5b818501915085601f8301126104b8578283fd5b8135818111156104ca576104ca6105b9565b604051601f8201601f19908116603f011681019083821181831017156104f2576104f26105b9565b8160405282815288602084870101111561050a578586fd5b82602086016020830137856020848301015280955050505050509250929050565b6000602080835283518082850152825b818110156105575785810183015185820160400152820161053b565b818111156105685783604083870101525b50601f01601f1916929092016040019392505050565b600181811c9082168061059257607f821691505b602082108114156105b357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fdfea26469706673582212206f6219198783658a119dcfaa3e8177621abf97efc5d558b27012cc86ceaa7db364736f6c63430008040033", | |
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100625760003560e01c8063187b6e6714610067578063342c2c5f1461007c57806358e470041461008f5780638ce74426146100a25780638da5cb5b146100d2578063ebbd1e62146100e5575b600080fd5b61007a61007536600461046e565b610105565b005b61007a61008a36600461044d565b6101fb565b61007a61009d36600461044d565b610236565b6000546100b5906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6001546100b5906001600160a01b031681565b6100f86100f336600461044d565b6102c8565b6040516100c9919061052b565b6000546001600160a01b031633148061012857506001546001600160a01b031633145b61018c5760405162461bcd60e51b815260206004820152602a60248201527f4f6e6c79207468652044414f206f72207468652050726f746f636f6c2063616e6044820152691030b232103230ba309760b11b60648201526084015b60405180910390fd5b6001600160a01b038216600090815260026020908152604090912082516101b592840190610362565b50816001600160a01b03167f5319b33bc6576925c6874610712f519195b4cae89c62f935dbd909921a76a852826040516101ef919061052b565b60405180910390a25050565b6001546001600160a01b0316331461021257600080fd5b6001600160a01b0381166000908152600260205260408120610233916103e6565b50565b6001546001600160a01b031633146102a65760405162461bcd60e51b815260206004820152602d60248201527f4f6e6c79207468652044414f2063616e206d6f64696679207468652050726f7460448201526c37b1b7b61030b2323932b9b99760991b6064820152608401610183565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b600260205260009081526040902080546102e19061057e565b80601f016020809104026020016040519081016040528092919081815260200182805461030d9061057e565b801561035a5780601f1061032f5761010080835404028352916020019161035a565b820191906000526020600020905b81548152906001019060200180831161033d57829003601f168201915b505050505081565b82805461036e9061057e565b90600052602060002090601f01602090048101928261039057600085556103d6565b82601f106103a957805160ff19168380011785556103d6565b828001600101855582156103d6579182015b828111156103d65782518255916020019190600101906103bb565b506103e292915061041c565b5090565b5080546103f29061057e565b6000825580601f10610402575050565b601f01602090049060005260206000209081019061023391905b5b808211156103e2576000815560010161041d565b80356001600160a01b038116811461044857600080fd5b919050565b60006020828403121561045e578081fd5b61046782610431565b9392505050565b60008060408385031215610480578081fd5b61048983610431565b9150602083013567ffffffffffffffff808211156104a5578283fd5b818501915085601f8301126104b8578283fd5b8135818111156104ca576104ca6105b9565b604051601f8201601f19908116603f011681019083821181831017156104f2576104f26105b9565b8160405282815288602084870101111561050a578586fd5b82602086016020830137856020848301015280955050505050509250929050565b6000602080835283518082850152825b818110156105575785810183015185820160400152820161053b565b818111156105685783604083870101525b50601f01601f1916929092016040019392505050565b600181811c9082168061059257607f821691505b602082108114156105b357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fdfea26469706673582212206f6219198783658a119dcfaa3e8177621abf97efc5d558b27012cc86ceaa7db364736f6c63430008040033", | |
"linkReferences": {}, | |
"deployedLinkReferences": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment