rain-sdk-v2 1.0.8 → 1.0.9

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 @@
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": "poolResolver", "type": "address" }, { "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" }];
@@ -12,7 +12,7 @@ export const USDT_SYMBOL_DEV = "USDTm";
12
12
  export const ENV_CONFIG = {
13
13
  development: {
14
14
  apiUrl: "https://dev2-api.rain.one",
15
- market_factory_address: "0xBD99441C4116b85dFecA2d6521EC0e2Eb62F0adE",
15
+ market_factory_address: "0x0A35D88482dC2F3B1FBa65755EF3A4ef1AB15961",
16
16
  dispute_initial_timer: 1 * 60,
17
17
  tokens: {
18
18
  usdt: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rain-sdk-v2",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "type": "module",
5
5
  "description": "Rain SDK V2 — TypeScript SDK for Rain prediction markets on Arbitrum. Market creation, trading, liquidity, order book, split/merge, dispute, and smart account support.",
6
6
  "main": "dist/index.js",