generated from subsquid/hydra-template
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Process & map MarketDestroyedEvent (#204)
* Generate types for MarketDestroyedEvent * Init PredictionMarketsMarketDestroyedEvent * Create handler marketDestroyed * Connect handler to processor
- Loading branch information
1 parent
4c87c65
commit fcf1f26
Showing
7 changed files
with
206 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import type {Result} from './support' | ||
|
||
export interface PoolAssetsEvent { | ||
assets: Asset[] | ||
bounds: bigint[] | ||
cpep: CommonPoolEventParams | ||
transferred: bigint[] | ||
} | ||
|
||
export interface SwapEvent { | ||
assetAmountIn: bigint | ||
assetAmountOut: bigint | ||
assetBound: bigint | ||
assetIn: Asset | ||
assetOut: Asset | ||
cpep: CommonPoolEventParams | ||
maxPrice: bigint | ||
} | ||
|
||
export type Asset = Asset_CategoricalOutcome | Asset_ScalarOutcome | Asset_CombinatorialOutcome | Asset_PoolShare | Asset_Ztg | ||
|
||
export interface Asset_CategoricalOutcome { | ||
__kind: 'CategoricalOutcome' | ||
value: [bigint, number] | ||
} | ||
|
||
export interface Asset_ScalarOutcome { | ||
__kind: 'ScalarOutcome' | ||
value: [bigint, ScalarPosition] | ||
} | ||
|
||
export interface Asset_CombinatorialOutcome { | ||
__kind: 'CombinatorialOutcome' | ||
} | ||
|
||
export interface Asset_PoolShare { | ||
__kind: 'PoolShare' | ||
value: bigint | ||
} | ||
|
||
export interface Asset_Ztg { | ||
__kind: 'Ztg' | ||
} | ||
|
||
export interface CommonPoolEventParams { | ||
poolId: bigint | ||
who: Uint8Array | ||
} | ||
|
||
export type ScalarPosition = ScalarPosition_Long | ScalarPosition_Short | ||
|
||
export interface ScalarPosition_Long { | ||
__kind: 'Long' | ||
} | ||
|
||
export interface ScalarPosition_Short { | ||
__kind: 'Short' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters