rain-sdk-v2 1.2.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1,2 @@
1
- export const CreateMarketAbi = [{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [{ "internalType": "address", "name": "target", "type": "address" }], "name": "AddressEmptyCode", "type": "error" }, { "inputs": [], "name": "BalanceMismatch", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }], "name": "ERC1967InvalidImplementation", "type": "error" }, { "inputs": [], "name": "ERC1967NonPayable", "type": "error" }, { "inputs": [], "name": "FailedCall", "type": "error" }, { "inputs": [], "name": "InsufficientPoolLiquidity", "type": "error" }, { "inputs": [], "name": "InvalidAddress", "type": "error" }, { "inputs": [], "name": "InvalidBytes", "type": "error" }, { "inputs": [], "name": "InvalidInitialLiquidity", "type": "error" }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, { "inputs": [], "name": "InvalidPath", "type": "error" }, { "inputs": [], "name": "InvalidValue", "type": "error" }, { "inputs": [], "name": "LengthMismatch", "type": "error" }, { "inputs": [], "name": "NotInitializing", "type": "error" }, { "inputs": [], "name": "OnlyCreatedPool", "type": "error" }, { "inputs": [], "name": "OrderBookNotAllowedForPrivatePool", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "OwnableInvalidOwner", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "OwnableUnauthorizedAccount", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }], "name": "SafeERC20FailedOperation", "type": "error" }, { "inputs": [], "name": "TokenNotAllowed", "type": "error" }, { "inputs": [], "name": "UUPSUnauthorizedCallContext", "type": "error" }, { "inputs": [{ "internalType": "bytes32", "name": "slot", "type": "bytes32" }], "name": "UUPSUnsupportedProxiableUUID", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "tokenAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "tokenDecimals", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "tokenName", "type": "string" }, { "indexed": false, "internalType": "string", "name": "tokenSymbol", "type": "string" }], "name": "ExistingTokenDisallowed", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" }], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "tokenAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "tokenDecimals", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "tokenName", "type": "string" }, { "indexed": false, "internalType": "string", "name": "tokenSymbol", "type": "string" }], "name": "NewTokenAllowed", "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": "poolAddress", "type": "address" }, { "indexed": true, "internalType": "address", "name": "poolCreator", "type": "address" }, { "indexed": false, "internalType": "string", "name": "uri", "type": "string" }, { "indexed": false, "internalType": "enum Types.TradingModel", "name": "tradingModel", "type": "uint8" }], "name": "PoolCreated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "poolAddress", "type": "address" }, { "indexed": true, "internalType": "address", "name": "tokenAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "tokenDecimals", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "tokenName", "type": "string" }, { "indexed": false, "internalType": "string", "name": "tokenSymbol", "type": "string" }], "name": "PoolTokenSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }], "name": "Upgraded", "type": "event" }, { "inputs": [], "name": "UPGRADE_INTERFACE_VERSION", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newTokenAddress", "type": "address" }, { "components": [{ "internalType": "enum IRainDeployer.TokenPool", "name": "tokenPool", "type": "uint8" }, { "internalType": "bool", "name": "isAllowed", "type": "bool" }, { "internalType": "address", "name": "routerAddress", "type": "address" }, { "internalType": "address", "name": "routerHelper", "type": "address" }, { "internalType": "bytes", "name": "pathUSDTToToken", "type": "bytes" }, { "internalType": "bytes", "name": "pathTokenToUSDT", "type": "bytes" }, { "internalType": "bytes", "name": "pathTokenWETH", "type": "bytes" }], "internalType": "struct IRainDeployer.TokenData", "name": "tokenData_", "type": "tuple" }], "name": "allowNewToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "baseToken", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "closingFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "numberOfOracles", "type": "uint256" }, { "internalType": "uint256", "name": "oracleReward", "type": "uint256" }, { "internalType": "uint256", "name": "fixedFee", "type": "uint256" }, { "internalType": "address", "name": "creator", "type": "address" }, { "internalType": "uint256", "name": "endTime", "type": "uint256" }, { "internalType": "uint256", "name": "totalNumberOfOptions", "type": "uint256" }, { "internalType": "string", "name": "questionUri", "type": "string" }], "name": "createOracle", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "bool", "name": "isPublic", "type": "bool" }, { "internalType": "bool", "name": "resolverIsAI", "type": "bool" }, { "internalType": "address", "name": "poolOwner", "type": "address" }, { "internalType": "address", "name": "referrer", "type": "address" }, { "internalType": "uint256", "name": "startTime", "type": "uint256" }, { "internalType": "uint256", "name": "endTime", "type": "uint256" }, { "internalType": "uint256", "name": "numberOfOptions", "type": "uint256" }, { "internalType": "uint256", "name": "oracleEndTime", "type": "uint256" }, { "internalType": "string", "name": "ipfsUri", "type": "string" }, { "internalType": "uint256", "name": "initialLiquidity", "type": "uint256" }, { "internalType": "uint256[]", "name": "liquidityPercentages", "type": "uint256[]" }, { "internalType": "address", "name": "baseToken", "type": "address" }, { "internalType": "enum Types.TradingModel", "name": "tradingModel", "type": "uint8" }], "internalType": "struct IRainDeployer.Params", "name": "params", "type": "tuple" }], "name": "createPool", "outputs": [{ "internalType": "address", "name": "poolInstance", "type": "address" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "createdPools", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "creatorFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondCancelOrderFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondClaimFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondCutFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondDisputeFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondFactory", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondGetterFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondInfoFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondLoupeFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondOracleFeeFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondResolutionFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondSplitMergeFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondTradingFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "tokenAddress", "type": "address" }], "name": "disallowExistingToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "disputeResolverAI", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "name": "facetFunctionSelectors", "outputs": [{ "internalType": "bytes4", "name": "", "type": "bytes4" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_oracleFactoryAddress", "type": "address" }, { "internalType": "address", "name": "_baseToken", "type": "address" }, { "internalType": "address", "name": "_platformAddress", "type": "address" }, { "internalType": "address", "name": "_resolverAI", "type": "address" }, { "internalType": "address", "name": "_disputeResolverAI", "type": "address" }, { "internalType": "address", "name": "_rainToken", "type": "address" }, { "internalType": "address", "name": "_diamondFactory", "type": "address" }, { "internalType": "uint256", "name": "_baseTokenDecimals", "type": "uint256" }, { "internalType": "uint256", "name": "_liquidityFee", "type": "uint256" }, { "internalType": "uint256", "name": "_platformFee", "type": "uint256" }, { "internalType": "uint256", "name": "_oracleFixedFee", "type": "uint256" }, { "internalType": "uint256", "name": "_creatorFee", "type": "uint256" }, { "internalType": "uint256", "name": "_resultResolverFee", "type": "uint256" }, { "internalType": "uint256", "name": "_closingFee", "type": "uint256" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "liquidityFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oracleFactoryAddress", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oracleFixedFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "platformAddress", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "platformFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "proxiableUUID", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "rainToken", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "resolverAI", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "resultResolverFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newBaseToken", "type": "address" }], "name": "setBaseToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newClosingFee", "type": "uint256" }], "name": "setClosingFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newCreatorFee", "type": "uint256" }], "name": "setCreatorFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondFactory", "type": "address" }], "name": "setDiamondFactory", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDisputeResolverAI", "type": "address" }], "name": "setDisputeResolverAI", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newLiquidityFee", "type": "uint256" }], "name": "setLiquidityFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondCancelOrderFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondCancelOrderFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondClaimFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondClaimFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondCutFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondCutFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondDisputeFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondDisputeFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondGetterFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondGetterFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondInfoFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondInfoFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondLoupeFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondLoupeFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondResolutionFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondResolutionFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondTradingFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondTradingFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondOracleFeeFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewOracleFeeFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondSplitMergeFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewSplitMergeFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOracleFactoryAddress", "type": "address" }], "name": "setOracleFactoryAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newOracleFixedFee", "type": "uint256" }], "name": "setOracleFixedFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newPlatformAddress", "type": "address" }], "name": "setPlatformAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newPlatformFee", "type": "uint256" }], "name": "setPlatformFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newResolverAI", "type": "address" }], "name": "setResolverAI", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newResultResolverFee", "type": "uint256" }], "name": "setResultResolverFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "tokenAddress", "type": "address" }], "name": "tokenData", "outputs": [{ "internalType": "enum IRainDeployer.TokenPool", "name": "tokenPool", "type": "uint8" }, { "internalType": "bool", "name": "isAllowed", "type": "bool" }, { "internalType": "address", "name": "routerAddress", "type": "address" }, { "internalType": "address", "name": "routerHelper", "type": "address" }, { "internalType": "bytes", "name": "pathUSDTToToken", "type": "bytes" }, { "internalType": "bytes", "name": "pathTokenToUSDT", "type": "bytes" }, { "internalType": "bytes", "name": "pathTokenWETH", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newImplementation", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }], "name": "upgradeToAndCall", "outputs": [], "stateMutability": "payable", "type": "function" }];
1
+ // export const CreateMarketAbi = [{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [{ "internalType": "address", "name": "target", "type": "address" }], "name": "AddressEmptyCode", "type": "error" }, { "inputs": [], "name": "BalanceMismatch", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }], "name": "ERC1967InvalidImplementation", "type": "error" }, { "inputs": [], "name": "ERC1967NonPayable", "type": "error" }, { "inputs": [], "name": "FailedCall", "type": "error" }, { "inputs": [], "name": "InsufficientPoolLiquidity", "type": "error" }, { "inputs": [], "name": "InvalidAddress", "type": "error" }, { "inputs": [], "name": "InvalidBytes", "type": "error" }, { "inputs": [], "name": "InvalidInitialLiquidity", "type": "error" }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, { "inputs": [], "name": "InvalidPath", "type": "error" }, { "inputs": [], "name": "InvalidValue", "type": "error" }, { "inputs": [], "name": "LengthMismatch", "type": "error" }, { "inputs": [], "name": "NotInitializing", "type": "error" }, { "inputs": [], "name": "OnlyCreatedPool", "type": "error" }, { "inputs": [], "name": "OrderBookNotAllowedForPrivatePool", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "OwnableInvalidOwner", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "OwnableUnauthorizedAccount", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }], "name": "SafeERC20FailedOperation", "type": "error" }, { "inputs": [], "name": "TokenNotAllowed", "type": "error" }, { "inputs": [], "name": "UUPSUnauthorizedCallContext", "type": "error" }, { "inputs": [{ "internalType": "bytes32", "name": "slot", "type": "bytes32" }], "name": "UUPSUnsupportedProxiableUUID", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "tokenAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "tokenDecimals", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "tokenName", "type": "string" }, { "indexed": false, "internalType": "string", "name": "tokenSymbol", "type": "string" }], "name": "ExistingTokenDisallowed", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" }], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "tokenAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "tokenDecimals", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "tokenName", "type": "string" }, { "indexed": false, "internalType": "string", "name": "tokenSymbol", "type": "string" }], "name": "NewTokenAllowed", "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": "poolAddress", "type": "address" }, { "indexed": true, "internalType": "address", "name": "poolCreator", "type": "address" }, { "indexed": false, "internalType": "string", "name": "uri", "type": "string" }, { "indexed": false, "internalType": "enum Types.TradingModel", "name": "tradingModel", "type": "uint8" }], "name": "PoolCreated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "poolAddress", "type": "address" }, { "indexed": true, "internalType": "address", "name": "tokenAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "tokenDecimals", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "tokenName", "type": "string" }, { "indexed": false, "internalType": "string", "name": "tokenSymbol", "type": "string" }], "name": "PoolTokenSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }], "name": "Upgraded", "type": "event" }, { "inputs": [], "name": "UPGRADE_INTERFACE_VERSION", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newTokenAddress", "type": "address" }, { "components": [{ "internalType": "enum IRainDeployer.TokenPool", "name": "tokenPool", "type": "uint8" }, { "internalType": "bool", "name": "isAllowed", "type": "bool" }, { "internalType": "address", "name": "routerAddress", "type": "address" }, { "internalType": "address", "name": "routerHelper", "type": "address" }, { "internalType": "bytes", "name": "pathUSDTToToken", "type": "bytes" }, { "internalType": "bytes", "name": "pathTokenToUSDT", "type": "bytes" }, { "internalType": "bytes", "name": "pathTokenWETH", "type": "bytes" }], "internalType": "struct IRainDeployer.TokenData", "name": "tokenData_", "type": "tuple" }], "name": "allowNewToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "baseToken", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "closingFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "numberOfOracles", "type": "uint256" }, { "internalType": "uint256", "name": "oracleReward", "type": "uint256" }, { "internalType": "uint256", "name": "fixedFee", "type": "uint256" }, { "internalType": "address", "name": "creator", "type": "address" }, { "internalType": "uint256", "name": "endTime", "type": "uint256" }, { "internalType": "uint256", "name": "totalNumberOfOptions", "type": "uint256" }, { "internalType": "string", "name": "questionUri", "type": "string" }], "name": "createOracle", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "bool", "name": "isPublic", "type": "bool" }, { "internalType": "bool", "name": "resolverIsAI", "type": "bool" }, { "internalType": "address", "name": "poolOwner", "type": "address" }, { "internalType": "address", "name": "referrer", "type": "address" }, { "internalType": "uint256", "name": "startTime", "type": "uint256" }, { "internalType": "uint256", "name": "endTime", "type": "uint256" }, { "internalType": "uint256", "name": "numberOfOptions", "type": "uint256" }, { "internalType": "uint256", "name": "oracleEndTime", "type": "uint256" }, { "internalType": "string", "name": "ipfsUri", "type": "string" }, { "internalType": "uint256", "name": "initialLiquidity", "type": "uint256" }, { "internalType": "uint256[]", "name": "liquidityPercentages", "type": "uint256[]" }, { "internalType": "address", "name": "baseToken", "type": "address" }, { "internalType": "enum Types.TradingModel", "name": "tradingModel", "type": "uint8" }], "internalType": "struct IRainDeployer.Params", "name": "params", "type": "tuple" }], "name": "createPool", "outputs": [{ "internalType": "address", "name": "poolInstance", "type": "address" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "createdPools", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "creatorFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondCancelOrderFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondClaimFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondCutFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondDisputeFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondFactory", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondGetterFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondInfoFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondLoupeFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondOracleFeeFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondResolutionFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondSplitMergeFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondTradingFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "tokenAddress", "type": "address" }], "name": "disallowExistingToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "disputeResolverAI", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "name": "facetFunctionSelectors", "outputs": [{ "internalType": "bytes4", "name": "", "type": "bytes4" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_oracleFactoryAddress", "type": "address" }, { "internalType": "address", "name": "_baseToken", "type": "address" }, { "internalType": "address", "name": "_platformAddress", "type": "address" }, { "internalType": "address", "name": "_resolverAI", "type": "address" }, { "internalType": "address", "name": "_disputeResolverAI", "type": "address" }, { "internalType": "address", "name": "_rainToken", "type": "address" }, { "internalType": "address", "name": "_diamondFactory", "type": "address" }, { "internalType": "uint256", "name": "_baseTokenDecimals", "type": "uint256" }, { "internalType": "uint256", "name": "_liquidityFee", "type": "uint256" }, { "internalType": "uint256", "name": "_platformFee", "type": "uint256" }, { "internalType": "uint256", "name": "_oracleFixedFee", "type": "uint256" }, { "internalType": "uint256", "name": "_creatorFee", "type": "uint256" }, { "internalType": "uint256", "name": "_resultResolverFee", "type": "uint256" }, { "internalType": "uint256", "name": "_closingFee", "type": "uint256" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "liquidityFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oracleFactoryAddress", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oracleFixedFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "platformAddress", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "platformFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "proxiableUUID", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "rainToken", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "resolverAI", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "resultResolverFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newBaseToken", "type": "address" }], "name": "setBaseToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newClosingFee", "type": "uint256" }], "name": "setClosingFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newCreatorFee", "type": "uint256" }], "name": "setCreatorFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondFactory", "type": "address" }], "name": "setDiamondFactory", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDisputeResolverAI", "type": "address" }], "name": "setDisputeResolverAI", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newLiquidityFee", "type": "uint256" }], "name": "setLiquidityFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondCancelOrderFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondCancelOrderFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondClaimFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondClaimFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondCutFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondCutFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondDisputeFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondDisputeFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondGetterFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondGetterFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondInfoFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondInfoFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondLoupeFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondLoupeFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondResolutionFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondResolutionFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondTradingFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondTradingFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondOracleFeeFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewOracleFeeFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondSplitMergeFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewSplitMergeFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOracleFactoryAddress", "type": "address" }], "name": "setOracleFactoryAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newOracleFixedFee", "type": "uint256" }], "name": "setOracleFixedFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newPlatformAddress", "type": "address" }], "name": "setPlatformAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newPlatformFee", "type": "uint256" }], "name": "setPlatformFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newResolverAI", "type": "address" }], "name": "setResolverAI", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newResultResolverFee", "type": "uint256" }], "name": "setResultResolverFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "tokenAddress", "type": "address" }], "name": "tokenData", "outputs": [{ "internalType": "enum IRainDeployer.TokenPool", "name": "tokenPool", "type": "uint8" }, { "internalType": "bool", "name": "isAllowed", "type": "bool" }, { "internalType": "address", "name": "routerAddress", "type": "address" }, { "internalType": "address", "name": "routerHelper", "type": "address" }, { "internalType": "bytes", "name": "pathUSDTToToken", "type": "bytes" }, { "internalType": "bytes", "name": "pathTokenToUSDT", "type": "bytes" }, { "internalType": "bytes", "name": "pathTokenWETH", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newImplementation", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }], "name": "upgradeToAndCall", "outputs": [], "stateMutability": "payable", "type": "function" }]
2
+ export const CreateMarketAbi = [{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [{ "internalType": "address", "name": "target", "type": "address" }], "name": "AddressEmptyCode", "type": "error" }, { "inputs": [], "name": "BalanceMismatch", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }], "name": "ERC1967InvalidImplementation", "type": "error" }, { "inputs": [], "name": "ERC1967NonPayable", "type": "error" }, { "inputs": [], "name": "FailedCall", "type": "error" }, { "inputs": [], "name": "InsufficientPoolLiquidity", "type": "error" }, { "inputs": [], "name": "InvalidAddress", "type": "error" }, { "inputs": [], "name": "InvalidBytes", "type": "error" }, { "inputs": [], "name": "InvalidFeeConfiguration", "type": "error" }, { "inputs": [], "name": "InvalidInitialLiquidity", "type": "error" }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, { "inputs": [], "name": "InvalidPath", "type": "error" }, { "inputs": [], "name": "InvalidValue", "type": "error" }, { "inputs": [], "name": "LengthMismatch", "type": "error" }, { "inputs": [], "name": "NotInitializing", "type": "error" }, { "inputs": [], "name": "OnlyCreatedPool", "type": "error" }, { "inputs": [], "name": "OrderBookNotAllowedForPrivatePool", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "OwnableInvalidOwner", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "OwnableUnauthorizedAccount", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }], "name": "SafeERC20FailedOperation", "type": "error" }, { "inputs": [], "name": "TokenNotAllowed", "type": "error" }, { "inputs": [], "name": "UUPSUnauthorizedCallContext", "type": "error" }, { "inputs": [{ "internalType": "bytes32", "name": "slot", "type": "bytes32" }], "name": "UUPSUnsupportedProxiableUUID", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "string", "name": "parameter", "type": "string" }, { "indexed": true, "internalType": "address", "name": "oldAddress", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newAddress", "type": "address" }], "name": "AddressUpdated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "tokenAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "tokenDecimals", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "tokenName", "type": "string" }, { "indexed": false, "internalType": "string", "name": "tokenSymbol", "type": "string" }], "name": "ExistingTokenDisallowed", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "string", "name": "facet", "type": "string" }, { "indexed": true, "internalType": "address", "name": "oldFacet", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newFacet", "type": "address" }, { "indexed": false, "internalType": "bytes4[]", "name": "selectors", "type": "bytes4[]" }], "name": "FacetUpdated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "string", "name": "parameter", "type": "string" }, { "indexed": false, "internalType": "uint256", "name": "oldValue", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newValue", "type": "uint256" }], "name": "FeeUpdated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" }], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "tokenAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "tokenDecimals", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "tokenName", "type": "string" }, { "indexed": false, "internalType": "string", "name": "tokenSymbol", "type": "string" }], "name": "NewTokenAllowed", "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": "poolAddress", "type": "address" }, { "indexed": true, "internalType": "address", "name": "poolCreator", "type": "address" }, { "indexed": false, "internalType": "string", "name": "uri", "type": "string" }, { "indexed": false, "internalType": "enum Types.TradingModel", "name": "tradingModel", "type": "uint8" }], "name": "PoolCreated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "poolAddress", "type": "address" }, { "indexed": true, "internalType": "address", "name": "tokenAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "tokenDecimals", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "tokenName", "type": "string" }, { "indexed": false, "internalType": "string", "name": "tokenSymbol", "type": "string" }], "name": "PoolTokenSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }], "name": "Upgraded", "type": "event" }, { "inputs": [], "name": "UPGRADE_INTERFACE_VERSION", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newTokenAddress", "type": "address" }, { "components": [{ "internalType": "enum IRainDeployer.TokenPool", "name": "tokenPool", "type": "uint8" }, { "internalType": "bool", "name": "isAllowed", "type": "bool" }, { "internalType": "address", "name": "routerAddress", "type": "address" }, { "internalType": "address", "name": "routerHelper", "type": "address" }, { "internalType": "bytes", "name": "pathUSDTToToken", "type": "bytes" }, { "internalType": "bytes", "name": "pathTokenToUSDT", "type": "bytes" }, { "internalType": "bytes", "name": "pathTokenWETH", "type": "bytes" }], "internalType": "struct IRainDeployer.TokenData", "name": "tokenData_", "type": "tuple" }], "name": "allowNewToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "baseToken", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "closingFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "numberOfOracles", "type": "uint256" }, { "internalType": "uint256", "name": "oracleReward", "type": "uint256" }, { "internalType": "uint256", "name": "fixedFee", "type": "uint256" }, { "internalType": "address", "name": "creator", "type": "address" }, { "internalType": "uint256", "name": "endTime", "type": "uint256" }, { "internalType": "uint256", "name": "totalNumberOfOptions", "type": "uint256" }, { "internalType": "string", "name": "questionUri", "type": "string" }], "name": "createOracle", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "bool", "name": "isPublic", "type": "bool" }, { "internalType": "bool", "name": "resolverIsAI", "type": "bool" }, { "internalType": "address", "name": "poolOwner", "type": "address" }, { "internalType": "address", "name": "referrer", "type": "address" }, { "internalType": "uint256", "name": "startTime", "type": "uint256" }, { "internalType": "uint256", "name": "endTime", "type": "uint256" }, { "internalType": "uint256", "name": "numberOfOptions", "type": "uint256" }, { "internalType": "uint256", "name": "oracleEndTime", "type": "uint256" }, { "internalType": "string", "name": "ipfsUri", "type": "string" }, { "internalType": "uint256", "name": "initialLiquidity", "type": "uint256" }, { "internalType": "uint256[]", "name": "liquidityPercentages", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "initialYesPrices", "type": "uint256[]" }, { "internalType": "address", "name": "baseToken", "type": "address" }, { "internalType": "enum Types.TradingModel", "name": "tradingModel", "type": "uint8" }], "internalType": "struct IRainDeployer.Params", "name": "params", "type": "tuple" }], "name": "createPool", "outputs": [{ "internalType": "address", "name": "poolInstance", "type": "address" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "createdPools", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "creatorFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondCancelOrderFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondClaimFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondCutFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondDisputeFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondFactory", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondGetterFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondInfoFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondLoupeFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondOracleFeeFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondResolutionFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondSplitMergeFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "diamondTradingFacet", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "tokenAddress", "type": "address" }], "name": "disallowExistingToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "disputeResolverAI", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "name": "facetFunctionSelectors", "outputs": [{ "internalType": "bytes4", "name": "", "type": "bytes4" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_oracleFactoryAddress", "type": "address" }, { "internalType": "address", "name": "_baseToken", "type": "address" }, { "internalType": "address", "name": "_platformAddress", "type": "address" }, { "internalType": "address", "name": "_resolverAI", "type": "address" }, { "internalType": "address", "name": "_disputeResolverAI", "type": "address" }, { "internalType": "address", "name": "_rainToken", "type": "address" }, { "internalType": "address", "name": "_diamondFactory", "type": "address" }, { "internalType": "uint256", "name": "_liquidityFee", "type": "uint256" }, { "internalType": "uint256", "name": "_platformFee", "type": "uint256" }, { "internalType": "uint256", "name": "_oracleFixedFee", "type": "uint256" }, { "internalType": "uint256", "name": "_creatorFee", "type": "uint256" }, { "internalType": "uint256", "name": "_resultResolverFee", "type": "uint256" }, { "internalType": "uint256", "name": "_closingFee", "type": "uint256" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "liquidityFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oracleFactoryAddress", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oracleFixedFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "platformAddress", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "platformFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "proxiableUUID", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "rainToken", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "resolverAI", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "resultResolverFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newBaseToken", "type": "address" }], "name": "setBaseToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newClosingFee", "type": "uint256" }], "name": "setClosingFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newCreatorFee", "type": "uint256" }], "name": "setCreatorFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondFactory", "type": "address" }], "name": "setDiamondFactory", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDisputeResolverAI", "type": "address" }], "name": "setDisputeResolverAI", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newLiquidityFee", "type": "uint256" }], "name": "setLiquidityFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondCancelOrderFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondCancelOrderFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondClaimFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondClaimFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondCutFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondCutFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondDisputeFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondDisputeFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondGetterFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondGetterFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondInfoFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondInfoFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondLoupeFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondLoupeFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondResolutionFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondResolutionFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondTradingFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewDiamondTradingFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondOracleFeeFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewOracleFeeFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newDiamondSplitMergeFacet", "type": "address" }, { "internalType": "bytes4[]", "name": "newFacetFunctionSelectors", "type": "bytes4[]" }], "name": "setNewSplitMergeFacet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOracleFactoryAddress", "type": "address" }], "name": "setOracleFactoryAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newOracleFixedFee", "type": "uint256" }], "name": "setOracleFixedFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newPlatformAddress", "type": "address" }], "name": "setPlatformAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newPlatformFee", "type": "uint256" }], "name": "setPlatformFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newResolverAI", "type": "address" }], "name": "setResolverAI", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newResultResolverFee", "type": "uint256" }], "name": "setResultResolverFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "tokenAddress", "type": "address" }], "name": "tokenData", "outputs": [{ "internalType": "enum IRainDeployer.TokenPool", "name": "tokenPool", "type": "uint8" }, { "internalType": "bool", "name": "isAllowed", "type": "bool" }, { "internalType": "address", "name": "routerAddress", "type": "address" }, { "internalType": "address", "name": "routerHelper", "type": "address" }, { "internalType": "bytes", "name": "pathUSDTToToken", "type": "bytes" }, { "internalType": "bytes", "name": "pathTokenToUSDT", "type": "bytes" }, { "internalType": "bytes", "name": "pathTokenWETH", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newImplementation", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }], "name": "upgradeToAndCall", "outputs": [], "stateMutability": "payable", "type": "function" }];
@@ -380,6 +380,18 @@ export declare const MarketsAbi: readonly [{
380
380
  readonly name: "totalAmount";
381
381
  readonly type: "uint256";
382
382
  readonly internalType: "uint256";
383
+ }, {
384
+ readonly name: "minYesToDeposit";
385
+ readonly type: "uint256";
386
+ readonly internalType: "uint256";
387
+ }, {
388
+ readonly name: "minNoToDeposit";
389
+ readonly type: "uint256";
390
+ readonly internalType: "uint256";
391
+ }, {
392
+ readonly name: "deadline";
393
+ readonly type: "uint256";
394
+ readonly internalType: "uint256";
383
395
  }];
384
396
  readonly outputs: readonly [];
385
397
  readonly stateMutability: "nonpayable";
@@ -394,6 +406,18 @@ export declare const MarketsAbi: readonly [{
394
406
  readonly name: "percentages";
395
407
  readonly type: "uint256[]";
396
408
  readonly internalType: "uint256[]";
409
+ }, {
410
+ readonly name: "minYesToDeposit";
411
+ readonly type: "uint256[]";
412
+ readonly internalType: "uint256[]";
413
+ }, {
414
+ readonly name: "minNoToDeposit";
415
+ readonly type: "uint256[]";
416
+ readonly internalType: "uint256[]";
417
+ }, {
418
+ readonly name: "deadline";
419
+ readonly type: "uint256";
420
+ readonly internalType: "uint256";
397
421
  }];
398
422
  readonly outputs: readonly [];
399
423
  readonly stateMutability: "nonpayable";
@@ -412,6 +436,14 @@ export declare const MarketsAbi: readonly [{
412
436
  readonly name: "amount";
413
437
  readonly type: "uint256";
414
438
  readonly internalType: "uint256";
439
+ }, {
440
+ readonly name: "minSharesOut";
441
+ readonly type: "uint256";
442
+ readonly internalType: "uint256";
443
+ }, {
444
+ readonly name: "deadline";
445
+ readonly type: "uint256";
446
+ readonly internalType: "uint256";
415
447
  }];
416
448
  readonly outputs: readonly [];
417
449
  readonly stateMutability: "nonpayable";
@@ -617,6 +649,28 @@ export declare const MarketsAbi: readonly [{
617
649
  readonly internalType: "uint256";
618
650
  }];
619
651
  readonly stateMutability: "view";
652
+ }, {
653
+ readonly type: "function";
654
+ readonly name: "getRemovedLiquidity";
655
+ readonly inputs: readonly [{
656
+ readonly name: "option";
657
+ readonly type: "uint256";
658
+ readonly internalType: "uint256";
659
+ }, {
660
+ readonly name: "lpShares";
661
+ readonly type: "uint256";
662
+ readonly internalType: "uint256";
663
+ }];
664
+ readonly outputs: readonly [{
665
+ readonly name: "yesBack";
666
+ readonly type: "uint256";
667
+ readonly internalType: "uint256";
668
+ }, {
669
+ readonly name: "noBack";
670
+ readonly type: "uint256";
671
+ readonly internalType: "uint256";
672
+ }];
673
+ readonly stateMutability: "view";
620
674
  }, {
621
675
  readonly type: "function";
622
676
  readonly name: "getResolverBondAmount";
@@ -1354,6 +1408,18 @@ export declare const MarketsAbi: readonly [{
1354
1408
  readonly name: "lpShares";
1355
1409
  readonly type: "uint256";
1356
1410
  readonly internalType: "uint256";
1411
+ }, {
1412
+ readonly name: "minYesOut";
1413
+ readonly type: "uint256";
1414
+ readonly internalType: "uint256";
1415
+ }, {
1416
+ readonly name: "minNoOut";
1417
+ readonly type: "uint256";
1418
+ readonly internalType: "uint256";
1419
+ }, {
1420
+ readonly name: "deadline";
1421
+ readonly type: "uint256";
1422
+ readonly internalType: "uint256";
1357
1423
  }];
1358
1424
  readonly outputs: readonly [];
1359
1425
  readonly stateMutability: "nonpayable";
@@ -2289,7 +2355,7 @@ export declare const MarketsAbi: readonly [{
2289
2355
  readonly indexed: false;
2290
2356
  readonly internalType: "uint256";
2291
2357
  }, {
2292
- readonly name: "sharesAmount";
2358
+ readonly name: "baseAmount";
2293
2359
  readonly type: "uint256";
2294
2360
  readonly indexed: false;
2295
2361
  readonly internalType: "uint256";
@@ -2603,6 +2669,10 @@ export declare const MarketsAbi: readonly [{
2603
2669
  readonly type: "error";
2604
2670
  readonly name: "AlreadyInitialized";
2605
2671
  readonly inputs: readonly [];
2672
+ }, {
2673
+ readonly type: "error";
2674
+ readonly name: "AmountTooSmall";
2675
+ readonly inputs: readonly [];
2606
2676
  }, {
2607
2677
  readonly type: "error";
2608
2678
  readonly name: "ArrayLengthMismatch";
@@ -2611,6 +2681,10 @@ export declare const MarketsAbi: readonly [{
2611
2681
  readonly type: "error";
2612
2682
  readonly name: "CallerNotOrderPlacer";
2613
2683
  readonly inputs: readonly [];
2684
+ }, {
2685
+ readonly type: "error";
2686
+ readonly name: "DeadlineExpired";
2687
+ readonly inputs: readonly [];
2614
2688
  }, {
2615
2689
  readonly type: "error";
2616
2690
  readonly name: "DisputeAlreadyOpened";
@@ -2679,6 +2753,10 @@ export declare const MarketsAbi: readonly [{
2679
2753
  readonly type: "error";
2680
2754
  readonly name: "InvalidOptions";
2681
2755
  readonly inputs: readonly [];
2756
+ }, {
2757
+ readonly type: "error";
2758
+ readonly name: "InvalidOracleEndTime";
2759
+ readonly inputs: readonly [];
2682
2760
  }, {
2683
2761
  readonly type: "error";
2684
2762
  readonly name: "InvalidOracleFixedFee";
@@ -2695,6 +2773,10 @@ export declare const MarketsAbi: readonly [{
2695
2773
  readonly type: "error";
2696
2774
  readonly name: "InvalidSide";
2697
2775
  readonly inputs: readonly [];
2776
+ }, {
2777
+ readonly type: "error";
2778
+ readonly name: "LPSharesZero";
2779
+ readonly inputs: readonly [];
2698
2780
  }, {
2699
2781
  readonly type: "error";
2700
2782
  readonly name: "LinkedListNotInitalized";
@@ -2747,6 +2829,10 @@ export declare const MarketsAbi: readonly [{
2747
2829
  readonly type: "error";
2748
2830
  readonly name: "OrderAlreadyExists";
2749
2831
  readonly inputs: readonly [];
2832
+ }, {
2833
+ readonly type: "error";
2834
+ readonly name: "OrderBookPhaseNotOpen";
2835
+ readonly inputs: readonly [];
2750
2836
  }, {
2751
2837
  readonly type: "error";
2752
2838
  readonly name: "OrderDoesNotExist";
@@ -2771,6 +2857,10 @@ export declare const MarketsAbi: readonly [{
2771
2857
  readonly type: "error";
2772
2858
  readonly name: "SaleStillLive";
2773
2859
  readonly inputs: readonly [];
2860
+ }, {
2861
+ readonly type: "error";
2862
+ readonly name: "SlippageExceeded";
2863
+ readonly inputs: readonly [];
2774
2864
  }, {
2775
2865
  readonly type: "error";
2776
2866
  readonly name: "StartTimeEnded";