diff --git a/components/outcomes/CategoricalDisputeBox.tsx b/components/outcomes/CategoricalDisputeBox.tsx index cebedd68e..ffe8be906 100644 --- a/components/outcomes/CategoricalDisputeBox.tsx +++ b/components/outcomes/CategoricalDisputeBox.tsx @@ -58,7 +58,10 @@ const CategoricalDisputeBox = ({ } = useExtrinsic( () => { if (isRpcSdk(sdk)) { - return sdk.api.tx.predictionMarkets.dispute(market.marketId); + return sdk.api.tx.predictionMarkets.dispute(market.marketId, { + //todo: revert + Categorical: [1, 1], + }); } }, { diff --git a/components/outcomes/ScalarDisputeBox.tsx b/components/outcomes/ScalarDisputeBox.tsx index f090cda76..50e3f37fe 100644 --- a/components/outcomes/ScalarDisputeBox.tsx +++ b/components/outcomes/ScalarDisputeBox.tsx @@ -50,7 +50,11 @@ const ScalarDisputeBox = ({ const { send, isLoading, isBroadcasting } = useExtrinsic( () => { if (!isRpcSdk(sdk) || !signer) return; - return sdk.api.tx.predictionMarkets.dispute(market.marketId); + return sdk.api.tx.predictionMarkets.dispute( + market.marketId, + //todo: revert + { Categorical: [1, 1] }, + ); }, { onBroadcast: () => {}, diff --git a/components/portfolio/WithdrawButton.tsx b/components/portfolio/WithdrawButton.tsx index c34f0b0bb..228059cb6 100644 --- a/components/portfolio/WithdrawButton.tsx +++ b/components/portfolio/WithdrawButton.tsx @@ -78,7 +78,8 @@ const createWithdrawExtrinsic = ( return api.tx.xTokens.transfer( { ForeignAsset: foreignAssetId }, amount, - { V3: account }, + //todo: revert + { V3: account } as any, // { Limited: "100000000000" }, destWeightLimit, ); diff --git a/lib/state/market-creation/types/form.ts b/lib/state/market-creation/types/form.ts index 2fb3d8356..d6cde4fba 100644 --- a/lib/state/market-creation/types/form.ts +++ b/lib/state/market-creation/types/form.ts @@ -133,7 +133,8 @@ export const marketFormDataToExtrinsicParams = ( signer, proxy, disputeMechanism: "Authorized", - creatorFee: 0, + // todo: revert + // creatorFee: 0, oracle: form.oracle, period: { Timestamp: [Date.now(), new Date(form.endDate).getTime()], diff --git a/package.json b/package.json index 6d3d6a35d..c6489e8a4 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "@zeitgeistpm/avatara-react": "^1.3.2", "@zeitgeistpm/avatara-util": "^1.2.0", "@zeitgeistpm/sdk": "^1.0.3", - "@zeitgeistpm/sdk-next": "npm:@zeitgeistpm/sdk@2.37.0", + "@zeitgeistpm/sdk-next": "npm:@zeitgeistpm/sdk@2.36.1", "@zeitgeistpm/utility": "^2.20.0", "axios": "^0.21.4", "boring-avatars": "^1.6.1", diff --git a/yarn.lock b/yarn.lock index 5c4585d2d..5e63c4da4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2966,17 +2966,6 @@ __metadata: languageName: node linkType: hard -"@zeitgeistpm/augment-api@npm:^2.15.0": - version: 2.15.0 - resolution: "@zeitgeistpm/augment-api@npm:2.15.0" - peerDependencies: - "@polkadot/api-base": "*" - "@polkadot/rpc-core": "*" - "@polkadot/types": "*" - checksum: e8c7a56875064e45878aff32bd9d9e541e1c369620a23b123d78438d459db00159f59d326c3e8f1e9b41f30b3b8bd0031b60cc3499ce8d7ea25cfd7ff9b21020 - languageName: node - linkType: hard - "@zeitgeistpm/augment-api@npm:^2.8.1": version: 2.8.1 resolution: "@zeitgeistpm/augment-api@npm:2.8.1" @@ -3080,7 +3069,7 @@ __metadata: languageName: node linkType: hard -"@zeitgeistpm/indexer@npm:^3.8.0": +"@zeitgeistpm/indexer@npm:^3.7.1": version: 3.8.0 resolution: "@zeitgeistpm/indexer@npm:3.8.0" dependencies: @@ -3105,12 +3094,12 @@ __metadata: languageName: node linkType: hard -"@zeitgeistpm/sdk-next@npm:@zeitgeistpm/sdk@2.37.0": - version: 2.37.0 - resolution: "@zeitgeistpm/sdk@npm:2.37.0" +"@zeitgeistpm/sdk-next@npm:@zeitgeistpm/sdk@2.36.1": + version: 2.36.1 + resolution: "@zeitgeistpm/sdk@npm:2.36.1" dependencies: - "@zeitgeistpm/augment-api": ^2.15.0 - "@zeitgeistpm/indexer": ^3.8.0 + "@zeitgeistpm/augment-api": ^2.14.0 + "@zeitgeistpm/indexer": ^3.7.1 "@zeitgeistpm/rpc": ^2.10.1 "@zeitgeistpm/utility": ^2.20.0 "@zeitgeistpm/web3.storage": ^2.11.0 @@ -3126,7 +3115,7 @@ __metadata: "@polkadot/api": "*" "@polkadot/types": "*" "@polkadot/util": "*" - checksum: 87303f6882226b18efe85f1438d4a42e857bbe0ced3119ab02ee49b0b44605c1d8cf7f97b6bfccc135fe2d1c85b85f0d28bdef9fb24d150b614046a333031df1 + checksum: a02da5598a1fd5ada743fad7690388fed1ce7c2fce05b59852d396961afc76f5f8013f4b815b792ffa7e875a8cd6aa6feab1f5afa8340f9601ca74f464406fd4 languageName: node linkType: hard @@ -3225,7 +3214,7 @@ __metadata: "@zeitgeistpm/avatara-react": ^1.3.2 "@zeitgeistpm/avatara-util": ^1.2.0 "@zeitgeistpm/sdk": ^1.0.3 - "@zeitgeistpm/sdk-next": "npm:@zeitgeistpm/sdk@2.37.0" + "@zeitgeistpm/sdk-next": "npm:@zeitgeistpm/sdk@2.36.1" "@zeitgeistpm/utility": ^2.20.0 autoprefixer: 10.2.5 axios: ^0.21.4