Skip to content

Commit

Permalink
Merge branch 'bsr'
Browse files Browse the repository at this point in the history
  • Loading branch information
yornaath committed Jan 10, 2024
2 parents 343dbfe + b72a63f commit e961ad1
Show file tree
Hide file tree
Showing 33 changed files with 2,915 additions and 1,049 deletions.
52 changes: 52 additions & 0 deletions packages/augment-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,57 @@
# @zeitgeistpm/augment-api

## 2.26.0

### Minor Changes

- f91b1b1: Release mainnet

## 2.25.2

### Patch Changes

- cf074b1: Fix market create proxy type

## 2.25.1

### Patch Changes

- 25dc9b8: Bump

## 2.25.0

### Minor Changes

- e365fde: GQL schema changes

## 2.24.0

### Minor Changes

- 24f3fa1: GQL changes: added assetPrice query to indexer, added dispute to market schema, added volume to neoPool

## 2.23.1

### Patch Changes

- c200603: Added .assets to FullMarketFragment

## 2.23.0

### Minor Changes

- 5784119: Added NeoSwaps NeoPool schema to indexer.

## 2.22.0

### Minor Changes

- 711f114: Stronger typing of ScoringRule.

### Patch Changes

- 6b9e853: Stronger typing of ScoringRule

## 2.21.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/augment-api/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zeitgeistpm/augment-api",
"description": "Generated types for the Zeitgeist network.",
"version": "2.21.0",
"version": "2.26.0",
"publishConfig": {
"access": "public"
},
Expand Down
38 changes: 38 additions & 0 deletions packages/augment-api/src/interfaces/augment-api-consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,14 @@ declare module '@polkadot/api-base/types/consts' {
**/
rewardPaymentDelay: u32 & AugmentedConst<ApiType>;
};
parimutuel: {
/**
* The minimum amount each bet must be. Must be larger than or equal to the existential
* deposit of parimutuel shares.
**/
minBetSize: u128 & AugmentedConst<ApiType>;
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
};
predictionMarkets: {
/**
* The base amount of currency that must be bonded for a market approved by the
Expand All @@ -481,6 +489,36 @@ declare module '@polkadot/api-base/types/consts' {
* The percentage of the advisory bond that gets slashed when a market is rejected.
**/
advisoryBondSlashPercentage: Percent & AugmentedConst<ApiType>;
/**
* The block time to wait for the market creator
* before the early market close actually happens.
**/
closeEarlyBlockPeriod: u64 & AugmentedConst<ApiType>;
/**
* The base amount of currency that must be bonded
* by the disputant in order to dispute an early market closure of the market creator.
**/
closeEarlyDisputeBond: u128 & AugmentedConst<ApiType>;
/**
* The block time to wait for the `CloseMarketsEarlyOrigin`
* before the early market close actually happens (fat-finger protection).
**/
closeEarlyProtectionBlockPeriod: u64 & AugmentedConst<ApiType>;
/**
* The milliseconds to wait for the `CloseMarketsEarlyOrigin`
* before the early market close actually happens (fat-finger protection).
**/
closeEarlyProtectionTimeFramePeriod: u64 & AugmentedConst<ApiType>;
/**
* The base amount of currency that must be bonded
* by the market creator in order to schedule an early market closure.
**/
closeEarlyRequestBond: u128 & AugmentedConst<ApiType>;
/**
* The milliseconds to wait for the market creator
* before the early market close actually happens.
**/
closeEarlyTimeFramePeriod: u64 & AugmentedConst<ApiType>;
/**
* The base amount of currency that must be bonded in order to create a dispute.
**/
Expand Down
101 changes: 101 additions & 0 deletions packages/augment-api/src/interfaces/augment-api-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1192,6 +1192,76 @@ declare module '@polkadot/api-base/types/errors' {
**/
ValidationDataNotAvailable: AugmentedError<ApiType>;
};
parimutuel: {
/**
* The specified amount is below the minimum bet size.
**/
AmountTooSmall: AugmentedError<ApiType>;
/**
* Action cannot be completed because an unexpected error has occurred. This should be
* reported to protocol maintainers.
**/
InconsistentState: AugmentedError<ApiType>;
/**
* The specified amount can not be transferred.
**/
InsufficientBalance: AugmentedError<ApiType>;
/**
* The specified asset was not found in the market assets.
**/
InvalidOutcomeAsset: AugmentedError<ApiType>;
/**
* The scoring rule is not parimutuel.
**/
InvalidScoringRule: AugmentedError<ApiType>;
/**
* The market is not active.
**/
MarketIsNotActive: AugmentedError<ApiType>;
/**
* The market is not resolved yet.
**/
MarketIsNotResolvedYet: AugmentedError<ApiType>;
/**
* There is no resolved outcome present for the market.
**/
NoResolvedOutcome: AugmentedError<ApiType>;
/**
* There was no buyer for the winning outcome or all winners already claimed their rewards.
* Use the `refund` extrinsic to get the initial bet back,
* in case there was no buyer for the winning outcome.
**/
NoRewardShareOutstanding: AugmentedError<ApiType>;
/**
* There is no reward to distribute.
**/
NoRewardToDistribute: AugmentedError<ApiType>;
/**
* Only categorical markets are allowed for parimutuels.
**/
NotCategorical: AugmentedError<ApiType>;
/**
* The specified asset is not a parimutuel share.
**/
NotParimutuelOutcome: AugmentedError<ApiType>;
/**
* There is no reward, because there are no winning shares.
**/
NoWinningShares: AugmentedError<ApiType>;
/**
* There is no balance to refund.
**/
RefundableBalanceIsZero: AugmentedError<ApiType>;
/**
* The refund is not allowed.
**/
RefundNotAllowed: AugmentedError<ApiType>;
/**
* An unexpected error occured. This should never happen!
* There was an internal coding mistake.
**/
Unexpected: AugmentedError<ApiType>;
};
polkadotXcm: {
/**
* The given account is not an identifiable sovereign account for any location.
Expand Down Expand Up @@ -1291,6 +1361,10 @@ declare module '@polkadot/api-base/types/errors' {
* Specified dispute_duration is smaller than MinDisputeDuration.
**/
DisputeDurationSmallerThanMinDisputeDuration: AugmentedError<ApiType>;
/**
* The early close would be scheduled after the original market period end.
**/
EarlyCloseRequestTooLate: AugmentedError<ApiType>;
/**
* Only creator is able to edit the market.
**/
Expand Down Expand Up @@ -1327,6 +1401,10 @@ declare module '@polkadot/api-base/types/errors' {
* The action requires another market dispute mechanism.
**/
InvalidDisputeMechanism: AugmentedError<ApiType>;
/**
* This early close state is not valid.
**/
InvalidEarlyCloseState: AugmentedError<ApiType>;
/**
* Market period is faulty (too short, outside of limits)
**/
Expand All @@ -1347,6 +1425,10 @@ declare module '@polkadot/api-base/types/errors' {
* The outcome range of the scalar market is invalid.
**/
InvalidOutcomeRange: AugmentedError<ApiType>;
/**
* The resolution mechanism resulting from the scoring rule is not supported.
**/
InvalidResolutionMechanism: AugmentedError<ApiType>;
/**
* An operation is requested that is unsupported for the given scoring rule.
**/
Expand Down Expand Up @@ -1415,6 +1497,10 @@ declare module '@polkadot/api-base/types/errors' {
* The market has no dispute mechanism.
**/
NoDisputeMechanism: AugmentedError<ApiType>;
/**
* There is no early close scheduled.
**/
NoEarlyCloseScheduled: AugmentedError<ApiType>;
/**
* The dispute duration is positive but the market has dispute period.
**/
Expand All @@ -1435,6 +1521,11 @@ declare module '@polkadot/api-base/types/errors' {
* The user has no winning balance.
**/
NoWinningBalance: AugmentedError<ApiType>;
/**
* After there was an early close already scheduled,
* only the `CloseMarketsEarlyOrigin` can schedule another one.
**/
OnlyAuthorizedCanScheduleEarlyClose: AugmentedError<ApiType>;
/**
* Specified oracle_duration is greater than MaxOracleDuration.
**/
Expand All @@ -1455,6 +1546,10 @@ declare module '@polkadot/api-base/types/errors' {
* The report is not coming from designated oracle.
**/
ReporterNotOracle: AugmentedError<ApiType>;
/**
* The early market close operation was not requested by the market creator.
**/
RequesterNotCreator: AugmentedError<ApiType>;
/**
* It was tried to append an item to storage beyond the boundaries.
**/
Expand Down Expand Up @@ -1605,6 +1700,12 @@ declare module '@polkadot/api-base/types/errors' {
**/
HasAlreadyCrossed: AugmentedError<ApiType>;
};
sudo: {
/**
* Sender must be the Sudo account
**/
RequireSudo: AugmentedError<ApiType>;
};
swaps: {
/**
* The weight of an asset in a CPMM swap pool is greather than the upper weight cap.
Expand Down
Loading

0 comments on commit e961ad1

Please sign in to comment.