Skip to content

Commit

Permalink
Merge pull request #1855 from zeitgeistpm/tr-revert-new-runtime
Browse files Browse the repository at this point in the history
Revert changes related to latest runtime upgrade
  • Loading branch information
Robiquet authored Oct 4, 2023
2 parents d22dcc5 + fbf8693 commit ec29ef5
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 24 deletions.
5 changes: 4 additions & 1 deletion components/outcomes/CategoricalDisputeBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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],
});
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion components/outcomes/ScalarDisputeBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: () => {},
Expand Down
3 changes: 2 additions & 1 deletion components/portfolio/WithdrawButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down
3 changes: 2 additions & 1 deletion lib/state/market-creation/types/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
27 changes: 8 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -3126,7 +3115,7 @@ __metadata:
"@polkadot/api": "*"
"@polkadot/types": "*"
"@polkadot/util": "*"
checksum: 87303f6882226b18efe85f1438d4a42e857bbe0ced3119ab02ee49b0b44605c1d8cf7f97b6bfccc135fe2d1c85b85f0d28bdef9fb24d150b614046a333031df1
checksum: a02da5598a1fd5ada743fad7690388fed1ce7c2fce05b59852d396961afc76f5f8013f4b815b792ffa7e875a8cd6aa6feab1f5afa8340f9601ca74f464406fd4
languageName: node
linkType: hard

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ec29ef5

Please sign in to comment.