@brightunion/sdk
Version:
Brightjs is a set of javascript tools to interact with the Bright Union's risk platform aggregator's protocol on Ethereum, Binance Smart Chain and Polygon blockchains.
422 lines (421 loc) • 9.76 kB
JSON
{
"contractName": "Distributors",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "string",
"name": "provider",
"type": "string"
},
{
"components": [
{
"internalType": "bytes32",
"name": "coverType",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "productId",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "contractName",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "coverAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "premium",
"type": "uint256"
},
{
"internalType": "address",
"name": "currency",
"type": "address"
},
{
"internalType": "address",
"name": "contractAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "expiration",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "status",
"type": "uint256"
},
{
"internalType": "address",
"name": "refAddress",
"type": "address"
}
],
"indexed": false,
"internalType": "struct IDistributor.Cover",
"name": "",
"type": "tuple"
}
],
"name": "BuyCoverEvent",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes",
"name": "distributor",
"type": "bytes"
},
{
"indexed": false,
"internalType": "bytes",
"name": "reason",
"type": "bytes"
}
],
"name": "ErrorNotHandled",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"name": "distributorsMap",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
},
{
"inputs": [],
"name": "__Distributors_init",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "distributorName",
"type": "string"
},
{
"internalType": "address",
"name": "distributorAddress",
"type": "address"
}
],
"name": "addDistributor",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_distributorName",
"type": "string"
}
],
"name": "getDistributorAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_distributorName",
"type": "string"
},
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "bool",
"name": "_isActive",
"type": "bool"
}
],
"name": "getCoversCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_distributorName",
"type": "string"
},
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "bool",
"name": "_isActive",
"type": "bool"
},
{
"internalType": "uint256",
"name": "_limitLoop",
"type": "uint256"
}
],
"name": "getCovers",
"outputs": [
{
"components": [
{
"internalType": "bytes32",
"name": "coverType",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "productId",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "contractName",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "coverAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "premium",
"type": "uint256"
},
{
"internalType": "address",
"name": "currency",
"type": "address"
},
{
"internalType": "address",
"name": "contractAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "expiration",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "status",
"type": "uint256"
},
{
"internalType": "address",
"name": "refAddress",
"type": "address"
}
],
"internalType": "struct IDistributor.Cover[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_distributorName",
"type": "string"
},
{
"internalType": "uint256",
"name": "_sumAssured",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_coverPeriod",
"type": "uint256"
},
{
"internalType": "address",
"name": "_contractAddress",
"type": "address"
},
{
"internalType": "address",
"name": "_coverAsset",
"type": "address"
},
{
"internalType": "address",
"name": "_nexusCoverable",
"type": "address"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "getQuote",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "prop1",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "prop2",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "prop3",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "prop4",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "prop5",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "prop6",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "prop7",
"type": "uint256"
}
],
"internalType": "struct IDistributor.CoverQuote",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
}
]
}