UNPKG

test-kohin-sdk

Version:

The Kohin JS is a comprehensive developer toolkit designed to integrate Kohin's decentralized insurance system seamlessly into your applications. It enables efficient interaction with Kohin smart contracts and backend APIs, facilitating management and ana

414 lines (413 loc) 10.3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.singlePremiumCal = void 0; exports.singlePremiumCal = [ { inputs: [], name: "InvalidInitialization", type: "error", }, { inputs: [], name: "NotInitializing", type: "error", }, { inputs: [], name: "OnlyPolicyManager", type: "error", }, { inputs: [], name: "ReentrancyGuardReentrantCall", type: "error", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "newAccessControl", type: "address", }, ], name: "AccessControlUpdated", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint64", name: "version", type: "uint64", }, ], name: "Initialized", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "enum IPolicyManager.BetType", name: "betType", type: "uint8", }, { indexed: false, internalType: "uint256", name: "minOdds", type: "uint256", }, { indexed: false, internalType: "uint256", name: "maxOdds", type: "uint256", }, { indexed: false, internalType: "uint256", name: "minAmount", type: "uint256", }, { indexed: false, internalType: "uint256", name: "maxAmount", type: "uint256", }, ], name: "LimitsUpdated", 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", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "newPolicyManager", type: "address", }, ], name: "PolicyManagerUpdated", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "newMinPremiumCap", type: "uint256", }, { indexed: false, internalType: "uint256", name: "newMaxPremiumCap", type: "uint256", }, { indexed: false, internalType: "uint256", name: "newHighOddsPremiumFactor", type: "uint256", }, ], name: "PremiumCalculationConfigUpdated", type: "event", }, { inputs: [], name: "accessControl", outputs: [ { internalType: "contract IAccessControl", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "betLimits", outputs: [ { internalType: "uint256", name: "minOdds", type: "uint256", }, { internalType: "uint256", name: "maxOdds", type: "uint256", }, { internalType: "uint256", name: "minAmount", type: "uint256", }, { internalType: "uint256", name: "maxAmount", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "odds", type: "uint256", }, { internalType: "uint256", name: "stake", type: "uint256", }, { internalType: "uint256[]", name: "oppositeOdds", type: "uint256[]", }, ], name: "calculateInsurancePremium", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "account", type: "address", }, ], name: "checkOwner", outputs: [], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "odds", type: "uint256", }, { internalType: "uint256", name: "stake", type: "uint256", }, { internalType: "uint256[]", name: "oppositeOdds", type: "uint256[]", }, ], name: "getInsurancePremium", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_accessControl", type: "address", }, { internalType: "address", name: "_policyManager", type: "address", }, { internalType: "uint256", name: "_minPremiumCap", type: "uint256", }, { internalType: "uint256", name: "_maxPremiumCap", type: "uint256", }, { internalType: "uint256", name: "_highOddsPremiumFactor", type: "uint256", }, ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "owner", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "policyManager", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "newAccessControl", type: "address", }, ], name: "setAccessControl", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "newPolicyManager", type: "address", }, ], name: "setPolicyManager", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "newOwner", type: "address", }, ], name: "transferOwnership", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "uint256", name: "minOdds", type: "uint256", }, { internalType: "uint256", name: "maxOdds", type: "uint256", }, { internalType: "uint256", name: "minAmount", type: "uint256", }, { internalType: "uint256", name: "maxAmount", type: "uint256", }, ], internalType: "struct IPremiumCalculator.BetLimits", name: "betData", type: "tuple", }, ], name: "updateBetLimits", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "newMinPremiumCap", type: "uint256", }, { internalType: "uint256", name: "newMaxPremiumCap", type: "uint256", }, { internalType: "uint256", name: "newHighOddsPremiumFactor", type: "uint256", }, ], name: "updatePremiumCalculationConfig", outputs: [], stateMutability: "nonpayable", type: "function", }, ];