Skip to content

Commit

Permalink
dump chopsticks
Browse files Browse the repository at this point in the history
  • Loading branch information
Chralt98 committed Dec 18, 2023
1 parent e4f2fb1 commit c71a142
Show file tree
Hide file tree
Showing 6 changed files with 411 additions and 165 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ jobs:
cd integration-tests
pnpm exec moonwall test chopsticks_battery_station_upgrade
- name: Display Chopsticks logs
run: |
cat integration-tests/tmp/*.log
chopsticks_zeitgeist_upgrade:
name: Chopsticks Runtime Upgrade Zeitgeist
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -252,4 +256,8 @@ jobs:
- name: Test zeitgeist runtime upgrade using Chopsticks
run: |
cd integration-tests
pnpm exec moonwall test chopsticks_zeitgeist_upgrade
pnpm exec moonwall test chopsticks_zeitgeist_upgrade
- name: Display Chopsticks logs
run: |
cat integration-tests/tmp/*.log
1 change: 1 addition & 0 deletions integration-tests/metadata/metadata_zeitgeist.json

Large diffs are not rendered by default.

350 changes: 350 additions & 0 deletions integration-tests/metadata/types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,350 @@
{
"AccountData": {
"free": "Balance",
"reserved": "Balance",
"miscFrozen": "Balance",
"feeFrozen": "Balance"
},
"Address": "MultiAddress",
"Amount": "i128",
"AmountOf": "i128",
"Asset": {
"_enum": {
"CategoricalOutcome": "(MarketId, CategoryIndex)",
"ScalarOutcome": "(MarketId, ScalarPosition)",
"CombinatorialOutcome": null,
"PoolShare": "u128",
"Ztg": null,
"ForeignAsset": "(u32)"
}
},
"AuthorId": "AccountId",
"BlockNumber": "u64",
"Bond": {
"owner": "AccountId",
"amount": "Balance"
},
"CategoryIndex": "u16",
"Collator2": {
"id": "AccountId",
"bond": "Balance",
"nominators": "Vec<AccountId>",
"topNominators": "Vec<Bond>",
"bottomNominators": "Vec<Bond>",
"totalCounted": "Balance",
"totalBacking": "Balance",
"state": "CollatorStatus"
},
"CollatorSnapshot": {
"bond": "Balance",
"delegations": "Vec<Bond>",
"total": "Balance"
},
"CollatorStatus": {
"_enum": {
"Active": null,
"Idle": null,
"Leaving": "RoundIndex"
}
},
"CommonPoolEventParams": {
"poolId": "u128",
"who": "AccountId"
},
"Currency": "Asset",
"CurrencyId": "Asset",
"CurrencyIdOf": "Asset",
"Deadlines": {
"gracePeriod": "BlockNumber",
"oracleDuration": "BlockNumber",
"disputeDuration": "BlockNumber"
},
"DelegatorStatus": {
"_enum": {
"Active": null,
"Leaving": "RoundIndex"
}
},
"EmaConfig": {
"emaPeriod": "Timespan",
"emaPeriodEstimateAfter": "Option<Timespan>",
"smoothing": "u128"
},
"EmaMarketVolume": {
"config": "EmaConfig",
"ema": "u128",
"multiplier": "u128",
"lastTime": "UnixTimestamp",
"state": "MarketVolumeState",
"startTime": "UnixTimestamp",
"volumesPerPeriod": "u128"
},
"ExitQ": {
"candidates": "Vec<AccountId>",
"nominatorsLeaving": "Vec<AccountId>",
"candidateSchedule": "Vec<(AccountId, RoundIndex)>",
"nominatorSchedule": "Vec<(AccountId, Option<AccountId>, RoundIndex)>"
},
"FeeSigmoid": {
"config": "FeeSigmoidConfig"
},
"FeeSigmoidConfig": {
"m": "i128",
"p": "i128",
"n": "i128",
"initialFee": "i128",
"minRevenue": "i128"
},
"Index": "u64",
"InflationInfo": {
"expect": "RangeBalance",
"annual": "RangePerbill",
"round": "RangePerbill"
},
"Juror": {
"status": "JurorStatus"
},
"JurorStatus": {
"_enum": [
"Ok",
"Tardy"
]
},
"Lookup": "MultiAddress",
"Market": {
"baseAsset": "Asset",
"creator": "AccountId",
"creation": "MarketCreation",
"creatorFee": "u8",
"oracle": "AccountId",
"metadata": "Vec<u8>",
"marketType": "MarketType",
"period": "MarketPeriod",
"scoringRule": "ScoringRule",
"status": "MarketStatus",
"report": "Option<Report>",
"resolvedOutcome": "Option<OutcomeReport>",
"mdm": "Option<MarketDisputeMechanism>"
},
"MarketCreation": {
"_enum": [
"Permissionless",
"Advised"
]
},
"MarketDispute": {
"at": "BlockNumber",
"by": "AccountId",
"outcome": "OutcomeReport"
},
"MarketDisputeMechanism": {
"_enum": {
"Authorized": "AccountId",
"Court": null,
"SimpleDisputes": null
}
},
"MarketId": "u128",
"MarketIdOf": "u128",
"MarketPeriod": {
"_enum": {
"Block": "Range<BlockNumber>",
"Timestamp": "Range<Moment>"
}
},
"MarketStatus": {
"_enum": [
"Proposed",
"Active",
"Suspended",
"Closed",
"CollectingSubsidy",
"InsufficientSubsidy",
"Reported",
"Disputed",
"Resolved"
]
},
"MarketType": {
"_enum": {
"Categorical": "u16",
"Scalar": "RangeInclusive<u128>"
}
},
"MarketVolumeState": {
"_enum": [
"Uninitialized",
"DataCollectionStarted",
"DataCollected"
]
},
"MaxRuntimeUsize": "u64",
"Moment": "u64",
"MultiHash": {
"_enum": {
"Sha3_384": "[u8; 50]"
}
},
"Nominator2": {
"delegations": "Vec<Bond>",
"revocations": "Vec<AccountId>",
"total": "Balance",
"scheduledRevocationsCount": "u32",
"scheduledRevocationsTotal": "Balance",
"status": "DelegatorStatus"
},
"NominatorAdded": {
"_enum": {
"AddedToTop": "Balance",
"AddedToBottom": null
}
},
"Order": {
"side": "OrderSide",
"maker": "AccountId",
"taker": "Option<AccountId>",
"asset": "Asset",
"total": "Balance",
"price": "Balance",
"filled": "Balance"
},
"OrderSide": {
"_enum": [
"Bid",
"Ask"
]
},
"OrderedSet": "Vec<Bond>",
"OwnedValuesParams": {
"participatedBlocks": "BlockNumber",
"perpetualIncentives": "Balance",
"totalIncentives": "Balance",
"totalShares": "Balance"
},
"RangeBalance": {
"min": "Balance",
"ideal": "Balance",
"max": "Balance"
},
"RangePerbill": {
"min": "Perbill",
"ideal": "Perbill",
"max": "Perbill"
},
"RelayChainAccountId": "AccountId32",
"RewardInfo": {
"totalReward": "Balance",
"claimedReward": "Balance"
},
"Rikiddo": {
"config": "RikiddoConfig",
"fees": "FeeSigmoid",
"maShort": "EmaMarketVolume",
"maLong": "EmaMarketVolume"
},
"RikiddoConfig": {
"initialFee": "i128",
"log2E": "i128"
},
"ScoringRule": {
"_enum": [
"CPMM",
"RikiddoSigmoidFeeMarketEma",
"Lmsr",
"Orderbook",
"Parimutuel"
]
},
"OutcomeReport": {
"_enum": {
"Categorical": "u16",
"Scalar": "u128"
}
},
"ParachainBondConfig": {
"account": "AccountId",
"percent": "Percent"
},
"Pool": {
"assets": "Vec<Asset>",
"baseAsset": "Option<Asset>",
"marketId": "MarketId",
"poolStatus": "PoolStatus",
"scoringRule": "ScoringRule",
"swapFee": "Option<Balance>",
"totalSubsidy": "Option<Balance>",
"totalWeight": "Option<u128>",
"weights": "Option<BTreeMap<Asset, u128>>"
},
"PoolAssetEvent": {
"asset": "Asset",
"bound": "Balance",
"cpep": "CommonPoolEventParams<AccountId>",
"transferred": "Balance"
},
"PoolAssetsEvent": {
"assets": "Vec<Asset>",
"bounds": "Vec<Balance>",
"cpep": "CommonPoolEventParams<AccountId>",
"transferred": "Vec<Balance>"
},
"PoolId": "u128",
"PoolStatus": {
"_enum": [
"Active",
"CollectingSubsidy",
"Stale"
]
},
"RegistrationInfo": {
"account": "AccountId",
"deposit": "Balance"
},
"Report": {
"at": "BlockNumber",
"by": "AccountId",
"outcome": "OutcomeReport"
},
"RoundInfo": {
"current": "RoundIndex",
"first": "BlockNumber",
"length": "u32"
},
"RoundIndex": "u32",
"ScalarPosition": {
"_enum": [
"Long",
"Short"
]
},
"SerdeWrapper": "Balance",
"SubsidyUntil": {
"marketId": "MarketId",
"period": "MarketPeriod"
},
"SwapEvent": {
"assetAmountIn": "Balance",
"assetAmountOut": "Balance",
"assetBound": "Balance",
"assetIn": "Asset",
"assetOut": "Asset",
"cpep": "CommonPoolEventParams<AccountId>",
"maxPrice": "Balance"
},
"Timespan": {
"_enum": {
"Seconds": "u32",
"Minutes": "u32",
"Hours": "u32",
"Days": "u16",
"Weeks": "u16"
}
},
"TokensAccountData": {
"free": "Balance",
"reserved": "Balance",
"frozen": "Balance"
},
"UnixTimestamp": "u64",
"VestingBlockNumber": "u32"
}
Loading

0 comments on commit c71a142

Please sign in to comment.