@oddmaki-protocol/sdk 0.4.1 → 0.5.0

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.
package/dist/index.mjs CHANGED
@@ -5,9 +5,9 @@ import { gql, GraphQLClient } from 'graphql-request';
5
5
  // src/client.ts
6
6
  var CONTRACT_ADDRESSES = {
7
7
  [baseSepolia.id]: {
8
- diamond: "0x188563069e0ae7247f0e2f0fce0382f0ed28d31a",
8
+ diamond: "0xd6b87a68de56ddef64b270feb74fd3c684e91b20",
9
9
  conditionalTokens: "0x7364747372Ac4a175B5326f5B2C9CB1C271d32e8",
10
- usdc: "0xb7e73d2848dd908a90a50ba679719eb9375c3fdf",
10
+ usdc: "0x9a537902b0456ce532ee58859a0e9db47c647668",
11
11
  subgraph: "https://api.studio.thegraph.com/query/1716020/oddmaki/version/latest"
12
12
  }
13
13
  };
@@ -917,6 +917,16 @@ var MarketsFacet_default = [
917
917
  name: "protocolFeeBps",
918
918
  type: "uint256",
919
919
  internalType: "uint256"
920
+ },
921
+ {
922
+ name: "protocolFeeRecipient",
923
+ type: "address",
924
+ internalType: "address"
925
+ },
926
+ {
927
+ name: "venueFeeRecipient",
928
+ type: "address",
929
+ internalType: "address"
920
930
  }
921
931
  ]
922
932
  }
@@ -1784,6 +1794,16 @@ var LimitOrdersFacet_default = [
1784
1794
  name: "InvalidTick",
1785
1795
  inputs: []
1786
1796
  },
1797
+ {
1798
+ type: "error",
1799
+ name: "MakerErc165CallFailed",
1800
+ inputs: []
1801
+ },
1802
+ {
1803
+ type: "error",
1804
+ name: "MakerNotErc1155Receiver",
1805
+ inputs: []
1806
+ },
1787
1807
  {
1788
1808
  type: "error",
1789
1809
  name: "MarketNotActive",
@@ -3371,6 +3391,16 @@ var MarketOrdersFacet_default = [
3371
3391
  name: "InvalidOutcome",
3372
3392
  inputs: []
3373
3393
  },
3394
+ {
3395
+ type: "error",
3396
+ name: "MakerErc165CallFailed",
3397
+ inputs: []
3398
+ },
3399
+ {
3400
+ type: "error",
3401
+ name: "MakerNotErc1155Receiver",
3402
+ inputs: []
3403
+ },
3374
3404
  {
3375
3405
  type: "error",
3376
3406
  name: "MarketNotActive",
@@ -4091,6 +4121,33 @@ var NegRiskFacet_default = [
4091
4121
  type: "error",
4092
4122
  name: "ApproveFailed",
4093
4123
  inputs: []
4124
+ },
4125
+ {
4126
+ type: "error",
4127
+ name: "DuplicateConditionId",
4128
+ inputs: [
4129
+ {
4130
+ name: "conditionId",
4131
+ type: "bytes32",
4132
+ internalType: "bytes32"
4133
+ }
4134
+ ]
4135
+ },
4136
+ {
4137
+ type: "error",
4138
+ name: "InvalidIndexSet",
4139
+ inputs: []
4140
+ },
4141
+ {
4142
+ type: "error",
4143
+ name: "UnregisteredConditionId",
4144
+ inputs: [
4145
+ {
4146
+ name: "conditionId",
4147
+ type: "bytes32",
4148
+ internalType: "bytes32"
4149
+ }
4150
+ ]
4094
4151
  }
4095
4152
  ];
4096
4153
 
@@ -5151,6 +5208,19 @@ var PythResolutionFacet_default = [
5151
5208
  ],
5152
5209
  stateMutability: "payable"
5153
5210
  },
5211
+ {
5212
+ type: "function",
5213
+ name: "getOpenMaxStaleness",
5214
+ inputs: [],
5215
+ outputs: [
5216
+ {
5217
+ name: "",
5218
+ type: "uint256",
5219
+ internalType: "uint256"
5220
+ }
5221
+ ],
5222
+ stateMutability: "view"
5223
+ },
5154
5224
  {
5155
5225
  type: "function",
5156
5226
  name: "getPythContract",
@@ -5182,19 +5252,6 @@ var PythResolutionFacet_default = [
5182
5252
  outputs: [],
5183
5253
  stateMutability: "payable"
5184
5254
  },
5185
- {
5186
- type: "function",
5187
- name: "setPythContract",
5188
- inputs: [
5189
- {
5190
- name: "pythContract",
5191
- type: "address",
5192
- internalType: "address"
5193
- }
5194
- ],
5195
- outputs: [],
5196
- stateMutability: "nonpayable"
5197
- },
5198
5255
  {
5199
5256
  type: "function",
5200
5257
  name: "setOpenMaxStaleness",
@@ -5210,16 +5267,16 @@ var PythResolutionFacet_default = [
5210
5267
  },
5211
5268
  {
5212
5269
  type: "function",
5213
- name: "getOpenMaxStaleness",
5214
- inputs: [],
5215
- outputs: [
5270
+ name: "setPythContract",
5271
+ inputs: [
5216
5272
  {
5217
- name: "",
5218
- type: "uint256",
5219
- internalType: "uint256"
5273
+ name: "pythContract",
5274
+ type: "address",
5275
+ internalType: "address"
5220
5276
  }
5221
5277
  ],
5222
- stateMutability: "view"
5278
+ outputs: [],
5279
+ stateMutability: "nonpayable"
5223
5280
  },
5224
5281
  {
5225
5282
  type: "event",
@@ -5344,6 +5401,19 @@ var PythResolutionFacet_default = [
5344
5401
  ],
5345
5402
  anonymous: false
5346
5403
  },
5404
+ {
5405
+ type: "event",
5406
+ name: "OpenMaxStalenessUpdated",
5407
+ inputs: [
5408
+ {
5409
+ name: "openMaxStaleness",
5410
+ type: "uint256",
5411
+ indexed: false,
5412
+ internalType: "uint256"
5413
+ }
5414
+ ],
5415
+ anonymous: false
5416
+ },
5347
5417
  {
5348
5418
  type: "event",
5349
5419
  name: "PriceMarketCreatedPyth",
@@ -5443,19 +5513,6 @@ var PythResolutionFacet_default = [
5443
5513
  ],
5444
5514
  anonymous: false
5445
5515
  },
5446
- {
5447
- type: "event",
5448
- name: "OpenMaxStalenessUpdated",
5449
- inputs: [
5450
- {
5451
- name: "openMaxStaleness",
5452
- type: "uint256",
5453
- indexed: false,
5454
- internalType: "uint256"
5455
- }
5456
- ],
5457
- anonymous: false
5458
- },
5459
5516
  {
5460
5517
  type: "event",
5461
5518
  name: "WrappedCollateralRegistered",
@@ -5561,6 +5618,11 @@ var PythResolutionFacet_default = [
5561
5618
  name: "MarketNotActive",
5562
5619
  inputs: []
5563
5620
  },
5621
+ {
5622
+ type: "error",
5623
+ name: "NoValidPriceUpdate",
5624
+ inputs: []
5625
+ },
5564
5626
  {
5565
5627
  type: "error",
5566
5628
  name: "NotContractOwner",
@@ -5612,6 +5674,11 @@ var PythResolutionFacet_default = [
5612
5674
  name: "RegistryAlreadyExists",
5613
5675
  inputs: []
5614
5676
  },
5677
+ {
5678
+ type: "error",
5679
+ name: "ResolutionWindowTooLarge",
5680
+ inputs: []
5681
+ },
5615
5682
  {
5616
5683
  type: "error",
5617
5684
  name: "TooManyTags",
@@ -5943,6 +6010,16 @@ var BatchOrdersFacet_default = [
5943
6010
  name: "InvalidTick",
5944
6011
  inputs: []
5945
6012
  },
6013
+ {
6014
+ type: "error",
6015
+ name: "MakerErc165CallFailed",
6016
+ inputs: []
6017
+ },
6018
+ {
6019
+ type: "error",
6020
+ name: "MakerNotErc1155Receiver",
6021
+ inputs: []
6022
+ },
5946
6023
  {
5947
6024
  type: "error",
5948
6025
  name: "MarketNotActive",