@triadxyz/triad-protocol 4.1.4 → 4.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2430,6 +2430,10 @@
2430
2430
  "name": "MarketFeeEvent",
2431
2431
  "discriminator": [191, 148, 93, 112, 63, 139, 16, 186]
2432
2432
  },
2433
+ {
2434
+ "name": "MarketOrderEvent",
2435
+ "discriminator": [223, 150, 100, 181, 180, 170, 93, 91]
2436
+ },
2433
2437
  {
2434
2438
  "name": "PoolEvent",
2435
2439
  "discriminator": [76, 227, 205, 183, 1, 218, 164, 244]
@@ -3408,6 +3412,50 @@
3408
3412
  ]
3409
3413
  }
3410
3414
  },
3415
+ {
3416
+ "name": "MarketOrderEvent",
3417
+ "type": {
3418
+ "kind": "struct",
3419
+ "fields": [
3420
+ {
3421
+ "name": "market_id",
3422
+ "type": "u64"
3423
+ },
3424
+ {
3425
+ "name": "hype_price",
3426
+ "type": "u64"
3427
+ },
3428
+ {
3429
+ "name": "flop_price",
3430
+ "type": "u64"
3431
+ },
3432
+ {
3433
+ "name": "hype_liquidity",
3434
+ "type": "u64"
3435
+ },
3436
+ {
3437
+ "name": "flop_liquidity",
3438
+ "type": "u64"
3439
+ },
3440
+ {
3441
+ "name": "hype_shares",
3442
+ "type": "u64"
3443
+ },
3444
+ {
3445
+ "name": "flop_shares",
3446
+ "type": "u64"
3447
+ },
3448
+ {
3449
+ "name": "volume",
3450
+ "type": "u64"
3451
+ },
3452
+ {
3453
+ "name": "timestamp",
3454
+ "type": "i64"
3455
+ }
3456
+ ]
3457
+ }
3458
+ },
3411
3459
  {
3412
3460
  "name": "MarketV2",
3413
3461
  "type": {
@@ -182,7 +182,7 @@ export type CreatePoolArgs = {
182
182
  export type UpdateMarketWinningDirectionArgs = {
183
183
  marketId: number;
184
184
  winningDirection: WinningDirectionEncoded;
185
- poolId: number;
185
+ poolId?: number;
186
186
  };
187
187
  export type UpdateMarketPayoutArgs = {
188
188
  marketId: number;
@@ -3376,6 +3376,10 @@ export type TriadProtocol = {
3376
3376
  name: 'marketFeeEvent';
3377
3377
  discriminator: [191, 148, 93, 112, 63, 139, 16, 186];
3378
3378
  },
3379
+ {
3380
+ name: 'marketOrderEvent';
3381
+ discriminator: [223, 150, 100, 181, 180, 170, 93, 91];
3382
+ },
3379
3383
  {
3380
3384
  name: 'poolEvent';
3381
3385
  discriminator: [76, 227, 205, 183, 1, 218, 164, 244];
@@ -4354,6 +4358,50 @@ export type TriadProtocol = {
4354
4358
  ];
4355
4359
  };
4356
4360
  },
4361
+ {
4362
+ name: 'marketOrderEvent';
4363
+ type: {
4364
+ kind: 'struct';
4365
+ fields: [
4366
+ {
4367
+ name: 'marketId';
4368
+ type: 'u64';
4369
+ },
4370
+ {
4371
+ name: 'hypePrice';
4372
+ type: 'u64';
4373
+ },
4374
+ {
4375
+ name: 'flopPrice';
4376
+ type: 'u64';
4377
+ },
4378
+ {
4379
+ name: 'hypeLiquidity';
4380
+ type: 'u64';
4381
+ },
4382
+ {
4383
+ name: 'flopLiquidity';
4384
+ type: 'u64';
4385
+ },
4386
+ {
4387
+ name: 'hypeShares';
4388
+ type: 'u64';
4389
+ },
4390
+ {
4391
+ name: 'flopShares';
4392
+ type: 'u64';
4393
+ },
4394
+ {
4395
+ name: 'volume';
4396
+ type: 'u64';
4397
+ },
4398
+ {
4399
+ name: 'timestamp';
4400
+ type: 'i64';
4401
+ }
4402
+ ];
4403
+ };
4404
+ },
4357
4405
  {
4358
4406
  name: 'marketV2';
4359
4407
  type: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "4.1.4",
3
+ "version": "4.1.6",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",