test-contracts-sovryn
Version:
Smart contracts for the Sovryn protocol and external integrations.
109 lines (108 loc) • 2.44 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "ProtocolAffiliatesInterface",
"sourceName": "contracts/modules/interfaces/ProtocolAffiliatesInterface.sol",
"abi": [
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "user_",
"type": "address"
}
],
"name": "getUserNotFirstTradeFlag",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "affiliate",
"type": "address"
},
{
"internalType": "address",
"name": "trader",
"type": "address"
},
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "payTradingFeeToAffiliatesReferrer",
"outputs": [
{
"internalType": "uint256",
"name": "affiliatesBonusSOVAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "affiliatesBonusTokenAmount",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
},
{
"internalType": "address",
"name": "referrer",
"type": "address"
}
],
"name": "setAffiliatesReferrer",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "user_",
"type": "address"
}
],
"name": "setUserNotFirstTradeFlag",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}