@oddmaki-protocol/sdk 0.5.0 → 0.6.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/LICENSE +1 -1
- package/README.md +7 -1
- package/dist/index.d.mts +300 -43
- package/dist/index.d.ts +300 -43
- package/dist/index.js +350 -75
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +350 -76
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -3
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: "
|
|
8
|
+
diamond: "0x31a4126aec35b36d46dd371eb0f0d5b71e1c2292",
|
|
9
9
|
conditionalTokens: "0x7364747372Ac4a175B5326f5B2C9CB1C271d32e8",
|
|
10
|
-
usdc: "
|
|
10
|
+
usdc: "0x1d3caa0156e8e573814b78766ba7958d7e11488b",
|
|
11
11
|
subgraph: "https://api.studio.thegraph.com/query/1716020/oddmaki/version/latest"
|
|
12
12
|
}
|
|
13
13
|
};
|
|
@@ -38,6 +38,19 @@ var BaseModule = class {
|
|
|
38
38
|
}
|
|
39
39
|
return this.config.walletClient;
|
|
40
40
|
}
|
|
41
|
+
// Returns the hoisted LocalAccount when the wallet was created with a private
|
|
42
|
+
// key, so viem signs locally (eth_sendRawTransaction). Falls back to the
|
|
43
|
+
// address string for injected/JSON-RPC providers (wagmi, RainbowKit, etc).
|
|
44
|
+
async getSignerAccount() {
|
|
45
|
+
const wallet = this.walletClient;
|
|
46
|
+
if (wallet.account) return wallet.account;
|
|
47
|
+
const [address] = await wallet.getAddresses();
|
|
48
|
+
return address;
|
|
49
|
+
}
|
|
50
|
+
async getSignerAddress() {
|
|
51
|
+
const signer = await this.getSignerAccount();
|
|
52
|
+
return typeof signer === "string" ? signer : signer.address;
|
|
53
|
+
}
|
|
41
54
|
};
|
|
42
55
|
|
|
43
56
|
// src/contracts/abis/VenueFacet.json
|
|
@@ -6809,6 +6822,260 @@ var ERC20_default = [
|
|
|
6809
6822
|
}
|
|
6810
6823
|
];
|
|
6811
6824
|
|
|
6825
|
+
// src/contracts/abis/UmaOracle.json
|
|
6826
|
+
var UmaOracle_default = [
|
|
6827
|
+
{
|
|
6828
|
+
type: "function",
|
|
6829
|
+
name: "assertTruth",
|
|
6830
|
+
inputs: [
|
|
6831
|
+
{
|
|
6832
|
+
name: "claim",
|
|
6833
|
+
type: "bytes",
|
|
6834
|
+
internalType: "bytes"
|
|
6835
|
+
},
|
|
6836
|
+
{
|
|
6837
|
+
name: "asserter",
|
|
6838
|
+
type: "address",
|
|
6839
|
+
internalType: "address"
|
|
6840
|
+
},
|
|
6841
|
+
{
|
|
6842
|
+
name: "callbackRecipient",
|
|
6843
|
+
type: "address",
|
|
6844
|
+
internalType: "address"
|
|
6845
|
+
},
|
|
6846
|
+
{
|
|
6847
|
+
name: "escalationManager",
|
|
6848
|
+
type: "address",
|
|
6849
|
+
internalType: "address"
|
|
6850
|
+
},
|
|
6851
|
+
{
|
|
6852
|
+
name: "liveness",
|
|
6853
|
+
type: "uint64",
|
|
6854
|
+
internalType: "uint64"
|
|
6855
|
+
},
|
|
6856
|
+
{
|
|
6857
|
+
name: "currency",
|
|
6858
|
+
type: "address",
|
|
6859
|
+
internalType: "contract IERC20"
|
|
6860
|
+
},
|
|
6861
|
+
{
|
|
6862
|
+
name: "bond",
|
|
6863
|
+
type: "uint256",
|
|
6864
|
+
internalType: "uint256"
|
|
6865
|
+
},
|
|
6866
|
+
{
|
|
6867
|
+
name: "identifier",
|
|
6868
|
+
type: "bytes32",
|
|
6869
|
+
internalType: "bytes32"
|
|
6870
|
+
},
|
|
6871
|
+
{
|
|
6872
|
+
name: "domainId",
|
|
6873
|
+
type: "bytes32",
|
|
6874
|
+
internalType: "bytes32"
|
|
6875
|
+
}
|
|
6876
|
+
],
|
|
6877
|
+
outputs: [
|
|
6878
|
+
{
|
|
6879
|
+
name: "",
|
|
6880
|
+
type: "bytes32",
|
|
6881
|
+
internalType: "bytes32"
|
|
6882
|
+
}
|
|
6883
|
+
],
|
|
6884
|
+
stateMutability: "nonpayable"
|
|
6885
|
+
},
|
|
6886
|
+
{
|
|
6887
|
+
type: "function",
|
|
6888
|
+
name: "defaultIdentifier",
|
|
6889
|
+
inputs: [],
|
|
6890
|
+
outputs: [
|
|
6891
|
+
{
|
|
6892
|
+
name: "",
|
|
6893
|
+
type: "bytes32",
|
|
6894
|
+
internalType: "bytes32"
|
|
6895
|
+
}
|
|
6896
|
+
],
|
|
6897
|
+
stateMutability: "view"
|
|
6898
|
+
},
|
|
6899
|
+
{
|
|
6900
|
+
type: "function",
|
|
6901
|
+
name: "getAssertion",
|
|
6902
|
+
inputs: [
|
|
6903
|
+
{
|
|
6904
|
+
name: "assertionId",
|
|
6905
|
+
type: "bytes32",
|
|
6906
|
+
internalType: "bytes32"
|
|
6907
|
+
}
|
|
6908
|
+
],
|
|
6909
|
+
outputs: [
|
|
6910
|
+
{
|
|
6911
|
+
name: "",
|
|
6912
|
+
type: "tuple",
|
|
6913
|
+
internalType: "struct OptimisticOracleV3Interface.Assertion",
|
|
6914
|
+
components: [
|
|
6915
|
+
{
|
|
6916
|
+
name: "escalationManagerSettings",
|
|
6917
|
+
type: "tuple",
|
|
6918
|
+
internalType: "struct OptimisticOracleV3Interface.EscalationManagerSettings",
|
|
6919
|
+
components: [
|
|
6920
|
+
{
|
|
6921
|
+
name: "arbitrateViaEscalationManager",
|
|
6922
|
+
type: "bool",
|
|
6923
|
+
internalType: "bool"
|
|
6924
|
+
},
|
|
6925
|
+
{
|
|
6926
|
+
name: "discardOracle",
|
|
6927
|
+
type: "bool",
|
|
6928
|
+
internalType: "bool"
|
|
6929
|
+
},
|
|
6930
|
+
{
|
|
6931
|
+
name: "validateDisputers",
|
|
6932
|
+
type: "bool",
|
|
6933
|
+
internalType: "bool"
|
|
6934
|
+
},
|
|
6935
|
+
{
|
|
6936
|
+
name: "assertingCaller",
|
|
6937
|
+
type: "address",
|
|
6938
|
+
internalType: "address"
|
|
6939
|
+
},
|
|
6940
|
+
{
|
|
6941
|
+
name: "escalationManager",
|
|
6942
|
+
type: "address",
|
|
6943
|
+
internalType: "address"
|
|
6944
|
+
}
|
|
6945
|
+
]
|
|
6946
|
+
},
|
|
6947
|
+
{
|
|
6948
|
+
name: "asserter",
|
|
6949
|
+
type: "address",
|
|
6950
|
+
internalType: "address"
|
|
6951
|
+
},
|
|
6952
|
+
{
|
|
6953
|
+
name: "assertionTime",
|
|
6954
|
+
type: "uint64",
|
|
6955
|
+
internalType: "uint64"
|
|
6956
|
+
},
|
|
6957
|
+
{
|
|
6958
|
+
name: "settled",
|
|
6959
|
+
type: "bool",
|
|
6960
|
+
internalType: "bool"
|
|
6961
|
+
},
|
|
6962
|
+
{
|
|
6963
|
+
name: "currency",
|
|
6964
|
+
type: "address",
|
|
6965
|
+
internalType: "contract IERC20"
|
|
6966
|
+
},
|
|
6967
|
+
{
|
|
6968
|
+
name: "expirationTime",
|
|
6969
|
+
type: "uint64",
|
|
6970
|
+
internalType: "uint64"
|
|
6971
|
+
},
|
|
6972
|
+
{
|
|
6973
|
+
name: "settlementResolution",
|
|
6974
|
+
type: "bool",
|
|
6975
|
+
internalType: "bool"
|
|
6976
|
+
},
|
|
6977
|
+
{
|
|
6978
|
+
name: "domainId",
|
|
6979
|
+
type: "bytes32",
|
|
6980
|
+
internalType: "bytes32"
|
|
6981
|
+
},
|
|
6982
|
+
{
|
|
6983
|
+
name: "identifier",
|
|
6984
|
+
type: "bytes32",
|
|
6985
|
+
internalType: "bytes32"
|
|
6986
|
+
},
|
|
6987
|
+
{
|
|
6988
|
+
name: "bond",
|
|
6989
|
+
type: "uint256",
|
|
6990
|
+
internalType: "uint256"
|
|
6991
|
+
},
|
|
6992
|
+
{
|
|
6993
|
+
name: "callbackRecipient",
|
|
6994
|
+
type: "address",
|
|
6995
|
+
internalType: "address"
|
|
6996
|
+
},
|
|
6997
|
+
{
|
|
6998
|
+
name: "disputer",
|
|
6999
|
+
type: "address",
|
|
7000
|
+
internalType: "address"
|
|
7001
|
+
}
|
|
7002
|
+
]
|
|
7003
|
+
}
|
|
7004
|
+
],
|
|
7005
|
+
stateMutability: "view"
|
|
7006
|
+
},
|
|
7007
|
+
{
|
|
7008
|
+
type: "function",
|
|
7009
|
+
name: "getAssertionResult",
|
|
7010
|
+
inputs: [
|
|
7011
|
+
{
|
|
7012
|
+
name: "assertionId",
|
|
7013
|
+
type: "bytes32",
|
|
7014
|
+
internalType: "bytes32"
|
|
7015
|
+
}
|
|
7016
|
+
],
|
|
7017
|
+
outputs: [
|
|
7018
|
+
{
|
|
7019
|
+
name: "",
|
|
7020
|
+
type: "bool",
|
|
7021
|
+
internalType: "bool"
|
|
7022
|
+
}
|
|
7023
|
+
],
|
|
7024
|
+
stateMutability: "view"
|
|
7025
|
+
},
|
|
7026
|
+
{
|
|
7027
|
+
type: "function",
|
|
7028
|
+
name: "getMinimumBond",
|
|
7029
|
+
inputs: [
|
|
7030
|
+
{
|
|
7031
|
+
name: "currency",
|
|
7032
|
+
type: "address",
|
|
7033
|
+
internalType: "address"
|
|
7034
|
+
}
|
|
7035
|
+
],
|
|
7036
|
+
outputs: [
|
|
7037
|
+
{
|
|
7038
|
+
name: "",
|
|
7039
|
+
type: "uint256",
|
|
7040
|
+
internalType: "uint256"
|
|
7041
|
+
}
|
|
7042
|
+
],
|
|
7043
|
+
stateMutability: "view"
|
|
7044
|
+
},
|
|
7045
|
+
{
|
|
7046
|
+
type: "function",
|
|
7047
|
+
name: "isSettled",
|
|
7048
|
+
inputs: [
|
|
7049
|
+
{
|
|
7050
|
+
name: "assertionId",
|
|
7051
|
+
type: "bytes32",
|
|
7052
|
+
internalType: "bytes32"
|
|
7053
|
+
}
|
|
7054
|
+
],
|
|
7055
|
+
outputs: [
|
|
7056
|
+
{
|
|
7057
|
+
name: "settled",
|
|
7058
|
+
type: "bool",
|
|
7059
|
+
internalType: "bool"
|
|
7060
|
+
}
|
|
7061
|
+
],
|
|
7062
|
+
stateMutability: "view"
|
|
7063
|
+
},
|
|
7064
|
+
{
|
|
7065
|
+
type: "function",
|
|
7066
|
+
name: "settleAssertion",
|
|
7067
|
+
inputs: [
|
|
7068
|
+
{
|
|
7069
|
+
name: "assertionId",
|
|
7070
|
+
type: "bytes32",
|
|
7071
|
+
internalType: "bytes32"
|
|
7072
|
+
}
|
|
7073
|
+
],
|
|
7074
|
+
outputs: [],
|
|
7075
|
+
stateMutability: "nonpayable"
|
|
7076
|
+
}
|
|
7077
|
+
];
|
|
7078
|
+
|
|
6812
7079
|
// src/modules/venue.ts
|
|
6813
7080
|
var VenueModule = class extends BaseModule {
|
|
6814
7081
|
/**
|
|
@@ -6830,7 +7097,7 @@ var VenueModule = class extends BaseModule {
|
|
|
6830
7097
|
*/
|
|
6831
7098
|
async createVenue(params) {
|
|
6832
7099
|
const wallet = this.walletClient;
|
|
6833
|
-
const
|
|
7100
|
+
const account = await this.getSignerAccount();
|
|
6834
7101
|
const { request } = await this.publicClient.simulateContract({
|
|
6835
7102
|
address: this.config.diamondAddress,
|
|
6836
7103
|
abi: VenueFacet_default,
|
|
@@ -6857,7 +7124,7 @@ var VenueModule = class extends BaseModule {
|
|
|
6857
7124
|
*/
|
|
6858
7125
|
async updateFees(params) {
|
|
6859
7126
|
const wallet = this.walletClient;
|
|
6860
|
-
const
|
|
7127
|
+
const account = await this.getSignerAccount();
|
|
6861
7128
|
const { request } = await this.publicClient.simulateContract({
|
|
6862
7129
|
address: this.config.diamondAddress,
|
|
6863
7130
|
abi: VenueFacet_default,
|
|
@@ -6872,7 +7139,7 @@ var VenueModule = class extends BaseModule {
|
|
|
6872
7139
|
*/
|
|
6873
7140
|
async setPaused(venueId, paused) {
|
|
6874
7141
|
const wallet = this.walletClient;
|
|
6875
|
-
const
|
|
7142
|
+
const account = await this.getSignerAccount();
|
|
6876
7143
|
const functionName = paused ? "pauseVenue" : "unpauseVenue";
|
|
6877
7144
|
const { request } = await this.publicClient.simulateContract({
|
|
6878
7145
|
address: this.config.diamondAddress,
|
|
@@ -6899,7 +7166,7 @@ var VenueModule = class extends BaseModule {
|
|
|
6899
7166
|
*/
|
|
6900
7167
|
async updateVenue(params) {
|
|
6901
7168
|
const wallet = this.walletClient;
|
|
6902
|
-
const
|
|
7169
|
+
const account = await this.getSignerAccount();
|
|
6903
7170
|
const { request } = await this.publicClient.simulateContract({
|
|
6904
7171
|
address: this.config.diamondAddress,
|
|
6905
7172
|
abi: VenueFacet_default,
|
|
@@ -6921,7 +7188,7 @@ var VenueModule = class extends BaseModule {
|
|
|
6921
7188
|
*/
|
|
6922
7189
|
async updateOracleParams(params) {
|
|
6923
7190
|
const wallet = this.walletClient;
|
|
6924
|
-
const
|
|
7191
|
+
const account = await this.getSignerAccount();
|
|
6925
7192
|
const { request } = await this.publicClient.simulateContract({
|
|
6926
7193
|
address: this.config.diamondAddress,
|
|
6927
7194
|
abi: VenueFacet_default,
|
|
@@ -6970,7 +7237,7 @@ var VenueModule = class extends BaseModule {
|
|
|
6970
7237
|
*/
|
|
6971
7238
|
async setProtocolFeeBps(bps) {
|
|
6972
7239
|
const wallet = this.walletClient;
|
|
6973
|
-
const
|
|
7240
|
+
const account = await this.getSignerAccount();
|
|
6974
7241
|
const { request } = await this.publicClient.simulateContract({
|
|
6975
7242
|
address: this.config.diamondAddress,
|
|
6976
7243
|
abi: ProtocolFacet_default,
|
|
@@ -7206,6 +7473,18 @@ function clearDecimalsCache() {
|
|
|
7206
7473
|
}
|
|
7207
7474
|
|
|
7208
7475
|
// src/modules/market.ts
|
|
7476
|
+
var CTF_IS_APPROVED_FOR_ALL_ABI = [
|
|
7477
|
+
{
|
|
7478
|
+
name: "isApprovedForAll",
|
|
7479
|
+
type: "function",
|
|
7480
|
+
stateMutability: "view",
|
|
7481
|
+
inputs: [
|
|
7482
|
+
{ name: "account", type: "address" },
|
|
7483
|
+
{ name: "operator", type: "address" }
|
|
7484
|
+
],
|
|
7485
|
+
outputs: [{ name: "", type: "bool" }]
|
|
7486
|
+
}
|
|
7487
|
+
];
|
|
7209
7488
|
var MarketModule = class extends BaseModule {
|
|
7210
7489
|
/**
|
|
7211
7490
|
* Format market question into UMA-compliant ancillary data
|
|
@@ -7231,7 +7510,8 @@ var MarketModule = class extends BaseModule {
|
|
|
7231
7510
|
*/
|
|
7232
7511
|
async createMarket(params) {
|
|
7233
7512
|
const wallet = this.walletClient;
|
|
7234
|
-
const
|
|
7513
|
+
const account = await this.getSignerAccount();
|
|
7514
|
+
const accountAddress = await this.getSignerAddress();
|
|
7235
7515
|
const venue = await this.publicClient.readContract({
|
|
7236
7516
|
address: this.config.diamondAddress,
|
|
7237
7517
|
abi: VenueFacet_default,
|
|
@@ -7246,7 +7526,7 @@ var MarketModule = class extends BaseModule {
|
|
|
7246
7526
|
address: params.collateralToken,
|
|
7247
7527
|
abi: erc20Abi,
|
|
7248
7528
|
functionName: "allowance",
|
|
7249
|
-
args: [
|
|
7529
|
+
args: [accountAddress, this.config.diamondAddress]
|
|
7250
7530
|
});
|
|
7251
7531
|
if (allowance < totalRequired) {
|
|
7252
7532
|
throw new Error(
|
|
@@ -7257,7 +7537,7 @@ var MarketModule = class extends BaseModule {
|
|
|
7257
7537
|
address: params.collateralToken,
|
|
7258
7538
|
abi: erc20Abi,
|
|
7259
7539
|
functionName: "balanceOf",
|
|
7260
|
-
args: [
|
|
7540
|
+
args: [accountAddress]
|
|
7261
7541
|
});
|
|
7262
7542
|
if (balance < totalRequired) {
|
|
7263
7543
|
throw new Error(
|
|
@@ -7500,7 +7780,8 @@ var MarketModule = class extends BaseModule {
|
|
|
7500
7780
|
*/
|
|
7501
7781
|
async createMarketGroup(params) {
|
|
7502
7782
|
const wallet = this.walletClient;
|
|
7503
|
-
const
|
|
7783
|
+
const account = await this.getSignerAccount();
|
|
7784
|
+
const accountAddress = await this.getSignerAddress();
|
|
7504
7785
|
const venue = await this.publicClient.readContract({
|
|
7505
7786
|
address: this.config.diamondAddress,
|
|
7506
7787
|
abi: VenueFacet_default,
|
|
@@ -7515,7 +7796,7 @@ var MarketModule = class extends BaseModule {
|
|
|
7515
7796
|
address: params.collateralToken,
|
|
7516
7797
|
abi: erc20Abi,
|
|
7517
7798
|
functionName: "allowance",
|
|
7518
|
-
args: [
|
|
7799
|
+
args: [accountAddress, this.config.diamondAddress]
|
|
7519
7800
|
});
|
|
7520
7801
|
if (allowance < totalRequired) {
|
|
7521
7802
|
throw new Error(
|
|
@@ -7526,7 +7807,7 @@ var MarketModule = class extends BaseModule {
|
|
|
7526
7807
|
address: params.collateralToken,
|
|
7527
7808
|
abi: erc20Abi,
|
|
7528
7809
|
functionName: "balanceOf",
|
|
7529
|
-
args: [
|
|
7810
|
+
args: [accountAddress]
|
|
7530
7811
|
});
|
|
7531
7812
|
if (balance < totalRequired) {
|
|
7532
7813
|
throw new Error(
|
|
@@ -7563,7 +7844,7 @@ var MarketModule = class extends BaseModule {
|
|
|
7563
7844
|
*/
|
|
7564
7845
|
async addMarketToGroup(params) {
|
|
7565
7846
|
const wallet = this.walletClient;
|
|
7566
|
-
const
|
|
7847
|
+
const account = await this.getSignerAccount();
|
|
7567
7848
|
const { request } = await this.publicClient.simulateContract({
|
|
7568
7849
|
address: this.config.diamondAddress,
|
|
7569
7850
|
abi: MarketsFacet_default,
|
|
@@ -7578,7 +7859,7 @@ var MarketModule = class extends BaseModule {
|
|
|
7578
7859
|
*/
|
|
7579
7860
|
async addPlaceholderMarkets(params) {
|
|
7580
7861
|
const wallet = this.walletClient;
|
|
7581
|
-
const
|
|
7862
|
+
const account = await this.getSignerAccount();
|
|
7582
7863
|
if (params.count < 1n || params.count > 50n) {
|
|
7583
7864
|
throw new Error("Count must be between 1 and 50");
|
|
7584
7865
|
}
|
|
@@ -7596,7 +7877,7 @@ var MarketModule = class extends BaseModule {
|
|
|
7596
7877
|
*/
|
|
7597
7878
|
async activatePlaceholder(params) {
|
|
7598
7879
|
const wallet = this.walletClient;
|
|
7599
|
-
const
|
|
7880
|
+
const account = await this.getSignerAccount();
|
|
7600
7881
|
const { request } = await this.publicClient.simulateContract({
|
|
7601
7882
|
address: this.config.diamondAddress,
|
|
7602
7883
|
abi: MarketsFacet_default,
|
|
@@ -7616,7 +7897,7 @@ var MarketModule = class extends BaseModule {
|
|
|
7616
7897
|
*/
|
|
7617
7898
|
async activateMarketGroup(params) {
|
|
7618
7899
|
const wallet = this.walletClient;
|
|
7619
|
-
const
|
|
7900
|
+
const account = await this.getSignerAccount();
|
|
7620
7901
|
const { request } = await this.publicClient.simulateContract({
|
|
7621
7902
|
address: this.config.diamondAddress,
|
|
7622
7903
|
abi: MarketGroupFacet_default,
|
|
@@ -7633,12 +7914,13 @@ var MarketModule = class extends BaseModule {
|
|
|
7633
7914
|
*/
|
|
7634
7915
|
async convertPositions(params) {
|
|
7635
7916
|
const wallet = this.walletClient;
|
|
7636
|
-
const
|
|
7917
|
+
const account = await this.getSignerAccount();
|
|
7918
|
+
const accountAddress = await this.getSignerAddress();
|
|
7637
7919
|
const isApproved = await this.publicClient.readContract({
|
|
7638
7920
|
address: this.config.conditionalTokensAddress,
|
|
7639
|
-
abi:
|
|
7921
|
+
abi: CTF_IS_APPROVED_FOR_ALL_ABI,
|
|
7640
7922
|
functionName: "isApprovedForAll",
|
|
7641
|
-
args: [
|
|
7923
|
+
args: [accountAddress, this.config.diamondAddress]
|
|
7642
7924
|
});
|
|
7643
7925
|
if (!isApproved) {
|
|
7644
7926
|
throw new Error(
|
|
@@ -7789,7 +8071,7 @@ var MarketModule = class extends BaseModule {
|
|
|
7789
8071
|
*/
|
|
7790
8072
|
async pauseMarket(marketId) {
|
|
7791
8073
|
const wallet = this.walletClient;
|
|
7792
|
-
const
|
|
8074
|
+
const account = await this.getSignerAccount();
|
|
7793
8075
|
const { request } = await this.publicClient.simulateContract({
|
|
7794
8076
|
address: this.config.diamondAddress,
|
|
7795
8077
|
abi: MarketsFacet_default,
|
|
@@ -7805,7 +8087,7 @@ var MarketModule = class extends BaseModule {
|
|
|
7805
8087
|
*/
|
|
7806
8088
|
async unpauseMarket(marketId) {
|
|
7807
8089
|
const wallet = this.walletClient;
|
|
7808
|
-
const
|
|
8090
|
+
const account = await this.getSignerAccount();
|
|
7809
8091
|
const { request } = await this.publicClient.simulateContract({
|
|
7810
8092
|
address: this.config.diamondAddress,
|
|
7811
8093
|
abi: MarketsFacet_default,
|
|
@@ -7824,7 +8106,7 @@ var MarketModule = class extends BaseModule {
|
|
|
7824
8106
|
*/
|
|
7825
8107
|
async updateMarketTags(params) {
|
|
7826
8108
|
const wallet = this.walletClient;
|
|
7827
|
-
const
|
|
8109
|
+
const account = await this.getSignerAccount();
|
|
7828
8110
|
const encodedTags = params.tags.map(
|
|
7829
8111
|
(t) => stringToHex(t, { size: 32 })
|
|
7830
8112
|
);
|
|
@@ -7843,7 +8125,7 @@ var MarketModule = class extends BaseModule {
|
|
|
7843
8125
|
*/
|
|
7844
8126
|
async updateMarketGroupTags(params) {
|
|
7845
8127
|
const wallet = this.walletClient;
|
|
7846
|
-
const
|
|
8128
|
+
const account = await this.getSignerAccount();
|
|
7847
8129
|
const encodedTags = params.tags.map(
|
|
7848
8130
|
(t) => stringToHex(t, { size: 32 })
|
|
7849
8131
|
);
|
|
@@ -7865,7 +8147,7 @@ var MarketModule = class extends BaseModule {
|
|
|
7865
8147
|
*/
|
|
7866
8148
|
async updateMarketMetadata(params) {
|
|
7867
8149
|
const wallet = this.walletClient;
|
|
7868
|
-
const
|
|
8150
|
+
const account = await this.getSignerAccount();
|
|
7869
8151
|
const { request } = await this.publicClient.simulateContract({
|
|
7870
8152
|
address: this.config.diamondAddress,
|
|
7871
8153
|
abi: MetadataFacet_default,
|
|
@@ -7881,7 +8163,7 @@ var MarketModule = class extends BaseModule {
|
|
|
7881
8163
|
*/
|
|
7882
8164
|
async updateMarketGroupMetadata(params) {
|
|
7883
8165
|
const wallet = this.walletClient;
|
|
7884
|
-
const
|
|
8166
|
+
const account = await this.getSignerAccount();
|
|
7885
8167
|
const { request } = await this.publicClient.simulateContract({
|
|
7886
8168
|
address: this.config.diamondAddress,
|
|
7887
8169
|
abi: MetadataFacet_default,
|
|
@@ -7901,7 +8183,7 @@ var TradeModule = class extends BaseModule {
|
|
|
7901
8183
|
*/
|
|
7902
8184
|
async placeOrder(params) {
|
|
7903
8185
|
const wallet = this.walletClient;
|
|
7904
|
-
const
|
|
8186
|
+
const account = await this.getSignerAccount();
|
|
7905
8187
|
const { request } = await this.publicClient.simulateContract({
|
|
7906
8188
|
address: this.config.diamondAddress,
|
|
7907
8189
|
abi: LimitOrdersFacet_default,
|
|
@@ -7953,7 +8235,7 @@ var TradeModule = class extends BaseModule {
|
|
|
7953
8235
|
*/
|
|
7954
8236
|
async cancelOrder(orderId) {
|
|
7955
8237
|
const wallet = this.walletClient;
|
|
7956
|
-
const
|
|
8238
|
+
const account = await this.getSignerAccount();
|
|
7957
8239
|
const { request } = await this.publicClient.simulateContract({
|
|
7958
8240
|
address: this.config.diamondAddress,
|
|
7959
8241
|
abi: LimitOrdersFacet_default,
|
|
@@ -7972,7 +8254,7 @@ var TradeModule = class extends BaseModule {
|
|
|
7972
8254
|
*/
|
|
7973
8255
|
async cancelOrdersOnResolvedMarket(marketId, orderIds) {
|
|
7974
8256
|
const wallet = this.walletClient;
|
|
7975
|
-
const
|
|
8257
|
+
const account = await this.getSignerAccount();
|
|
7976
8258
|
const { request } = await this.publicClient.simulateContract({
|
|
7977
8259
|
address: this.config.diamondAddress,
|
|
7978
8260
|
abi: LimitOrdersFacet_default,
|
|
@@ -7993,7 +8275,7 @@ var TradeModule = class extends BaseModule {
|
|
|
7993
8275
|
*/
|
|
7994
8276
|
async placeMarketOrder(params) {
|
|
7995
8277
|
const wallet = this.walletClient;
|
|
7996
|
-
const
|
|
8278
|
+
const account = await this.getSignerAccount();
|
|
7997
8279
|
const { request } = await this.publicClient.simulateContract({
|
|
7998
8280
|
address: this.config.diamondAddress,
|
|
7999
8281
|
abi: MarketOrdersFacet_default,
|
|
@@ -8039,8 +8321,8 @@ var TradeModule = class extends BaseModule {
|
|
|
8039
8321
|
* Preview a market order (simulate transaction)
|
|
8040
8322
|
*/
|
|
8041
8323
|
async previewMarketOrder(params) {
|
|
8042
|
-
|
|
8043
|
-
const
|
|
8324
|
+
this.walletClient;
|
|
8325
|
+
const account = await this.getSignerAccount();
|
|
8044
8326
|
const { result } = await this.publicClient.simulateContract({
|
|
8045
8327
|
address: this.config.diamondAddress,
|
|
8046
8328
|
abi: MarketOrdersFacet_default,
|
|
@@ -8060,8 +8342,8 @@ var TradeModule = class extends BaseModule {
|
|
|
8060
8342
|
* Preview placing an order (simulate transaction to check for reverts)
|
|
8061
8343
|
*/
|
|
8062
8344
|
async previewPlaceOrder(params) {
|
|
8063
|
-
|
|
8064
|
-
const
|
|
8345
|
+
this.walletClient;
|
|
8346
|
+
const account = await this.getSignerAccount();
|
|
8065
8347
|
const { result } = await this.publicClient.simulateContract({
|
|
8066
8348
|
address: this.config.diamondAddress,
|
|
8067
8349
|
abi: LimitOrdersFacet_default,
|
|
@@ -8089,7 +8371,7 @@ var TradeModule = class extends BaseModule {
|
|
|
8089
8371
|
*/
|
|
8090
8372
|
async placeMarketSell(params) {
|
|
8091
8373
|
const wallet = this.walletClient;
|
|
8092
|
-
const
|
|
8374
|
+
const account = await this.getSignerAccount();
|
|
8093
8375
|
const { request } = await this.publicClient.simulateContract({
|
|
8094
8376
|
address: this.config.diamondAddress,
|
|
8095
8377
|
abi: MarketOrdersFacet_default,
|
|
@@ -8135,8 +8417,8 @@ var TradeModule = class extends BaseModule {
|
|
|
8135
8417
|
* Preview a market sell order (simulate transaction)
|
|
8136
8418
|
*/
|
|
8137
8419
|
async previewMarketSell(params) {
|
|
8138
|
-
|
|
8139
|
-
const
|
|
8420
|
+
this.walletClient;
|
|
8421
|
+
const account = await this.getSignerAccount();
|
|
8140
8422
|
const { result } = await this.publicClient.simulateContract({
|
|
8141
8423
|
address: this.config.diamondAddress,
|
|
8142
8424
|
abi: MarketOrdersFacet_default,
|
|
@@ -8195,7 +8477,7 @@ var TradeModule = class extends BaseModule {
|
|
|
8195
8477
|
*/
|
|
8196
8478
|
async matchOrders(params) {
|
|
8197
8479
|
const wallet = this.walletClient;
|
|
8198
|
-
const
|
|
8480
|
+
const account = await this.getSignerAccount();
|
|
8199
8481
|
const maxSteps = params.maxSteps || 10n;
|
|
8200
8482
|
const { request } = await this.publicClient.simulateContract({
|
|
8201
8483
|
address: this.config.diamondAddress,
|
|
@@ -8295,7 +8577,7 @@ var TradeModule = class extends BaseModule {
|
|
|
8295
8577
|
*/
|
|
8296
8578
|
async splitPosition(marketId, amount) {
|
|
8297
8579
|
const wallet = this.walletClient;
|
|
8298
|
-
const
|
|
8580
|
+
const account = await this.getSignerAccount();
|
|
8299
8581
|
const { request } = await this.publicClient.simulateContract({
|
|
8300
8582
|
address: this.config.diamondAddress,
|
|
8301
8583
|
abi: VaultFacet_default,
|
|
@@ -8313,7 +8595,7 @@ var TradeModule = class extends BaseModule {
|
|
|
8313
8595
|
*/
|
|
8314
8596
|
async mergePositions(marketId, amount) {
|
|
8315
8597
|
const wallet = this.walletClient;
|
|
8316
|
-
const
|
|
8598
|
+
const account = await this.getSignerAccount();
|
|
8317
8599
|
const { request } = await this.publicClient.simulateContract({
|
|
8318
8600
|
address: this.config.diamondAddress,
|
|
8319
8601
|
abi: VaultFacet_default,
|
|
@@ -8334,7 +8616,7 @@ var TradeModule = class extends BaseModule {
|
|
|
8334
8616
|
*/
|
|
8335
8617
|
async batchPlaceOrders(params) {
|
|
8336
8618
|
const wallet = this.walletClient;
|
|
8337
|
-
const
|
|
8619
|
+
const account = await this.getSignerAccount();
|
|
8338
8620
|
const { request } = await this.publicClient.simulateContract({
|
|
8339
8621
|
address: this.config.diamondAddress,
|
|
8340
8622
|
abi: BatchOrdersFacet_default,
|
|
@@ -8375,7 +8657,7 @@ var TradeModule = class extends BaseModule {
|
|
|
8375
8657
|
*/
|
|
8376
8658
|
async batchCancelOrders(orderIds) {
|
|
8377
8659
|
const wallet = this.walletClient;
|
|
8378
|
-
const
|
|
8660
|
+
const account = await this.getSignerAccount();
|
|
8379
8661
|
const { request } = await this.publicClient.simulateContract({
|
|
8380
8662
|
address: this.config.diamondAddress,
|
|
8381
8663
|
abi: BatchOrdersFacet_default,
|
|
@@ -8394,7 +8676,7 @@ var TradeModule = class extends BaseModule {
|
|
|
8394
8676
|
*/
|
|
8395
8677
|
async cancelAndReplace(params) {
|
|
8396
8678
|
const wallet = this.walletClient;
|
|
8397
|
-
const
|
|
8679
|
+
const account = await this.getSignerAccount();
|
|
8398
8680
|
const { request } = await this.publicClient.simulateContract({
|
|
8399
8681
|
address: this.config.diamondAddress,
|
|
8400
8682
|
abi: BatchOrdersFacet_default,
|
|
@@ -9919,7 +10201,7 @@ var TokenModule = class extends BaseModule {
|
|
|
9919
10201
|
*/
|
|
9920
10202
|
async mint(token, to, amount) {
|
|
9921
10203
|
const wallet = this.walletClient;
|
|
9922
|
-
const
|
|
10204
|
+
const account = await this.getSignerAccount();
|
|
9923
10205
|
const { request } = await this.publicClient.simulateContract({
|
|
9924
10206
|
address: token,
|
|
9925
10207
|
abi: ERC20_default,
|
|
@@ -9934,7 +10216,7 @@ var TokenModule = class extends BaseModule {
|
|
|
9934
10216
|
*/
|
|
9935
10217
|
async approve(token, spender, amount) {
|
|
9936
10218
|
const wallet = this.walletClient;
|
|
9937
|
-
const
|
|
10219
|
+
const account = await this.getSignerAccount();
|
|
9938
10220
|
const { request } = await this.publicClient.simulateContract({
|
|
9939
10221
|
address: token,
|
|
9940
10222
|
abi: ERC20_default,
|
|
@@ -9997,15 +10279,6 @@ var TokenModule = class extends BaseModule {
|
|
|
9997
10279
|
});
|
|
9998
10280
|
}
|
|
9999
10281
|
};
|
|
10000
|
-
var optimisticOracleV3Abi = [
|
|
10001
|
-
{
|
|
10002
|
-
inputs: [{ name: "currency", type: "address" }],
|
|
10003
|
-
name: "getMinimumBond",
|
|
10004
|
-
outputs: [{ name: "", type: "uint256" }],
|
|
10005
|
-
stateMutability: "view",
|
|
10006
|
-
type: "function"
|
|
10007
|
-
}
|
|
10008
|
-
];
|
|
10009
10282
|
var UmaModule = class extends BaseModule {
|
|
10010
10283
|
/**
|
|
10011
10284
|
* Assert an outcome for a market question
|
|
@@ -10018,7 +10291,8 @@ var UmaModule = class extends BaseModule {
|
|
|
10018
10291
|
*/
|
|
10019
10292
|
async assertMarketOutcome(params) {
|
|
10020
10293
|
const wallet = this.walletClient;
|
|
10021
|
-
const
|
|
10294
|
+
const account = await this.getSignerAccount();
|
|
10295
|
+
const accountAddress = await this.getSignerAddress();
|
|
10022
10296
|
const autoApprove = params.autoApprove ?? true;
|
|
10023
10297
|
const registryData = await this.publicClient.readContract({
|
|
10024
10298
|
address: this.config.diamondAddress,
|
|
@@ -10033,7 +10307,7 @@ var UmaModule = class extends BaseModule {
|
|
|
10033
10307
|
address: currency,
|
|
10034
10308
|
abi: erc20Abi,
|
|
10035
10309
|
functionName: "allowance",
|
|
10036
|
-
args: [
|
|
10310
|
+
args: [accountAddress, this.config.diamondAddress]
|
|
10037
10311
|
});
|
|
10038
10312
|
if (currentAllowance < bondAmount && autoApprove) {
|
|
10039
10313
|
const approveHash = await wallet.writeContract({
|
|
@@ -10053,7 +10327,7 @@ var UmaModule = class extends BaseModule {
|
|
|
10053
10327
|
address: currency,
|
|
10054
10328
|
abi: erc20Abi,
|
|
10055
10329
|
functionName: "allowance",
|
|
10056
|
-
args: [
|
|
10330
|
+
args: [accountAddress, this.config.diamondAddress]
|
|
10057
10331
|
});
|
|
10058
10332
|
if (newAllowance < bondAmount) {
|
|
10059
10333
|
throw new Error(
|
|
@@ -10069,7 +10343,7 @@ var UmaModule = class extends BaseModule {
|
|
|
10069
10343
|
address: currency,
|
|
10070
10344
|
abi: erc20Abi,
|
|
10071
10345
|
functionName: "balanceOf",
|
|
10072
|
-
args: [
|
|
10346
|
+
args: [accountAddress]
|
|
10073
10347
|
});
|
|
10074
10348
|
if (balance < bondAmount) {
|
|
10075
10349
|
throw new Error(
|
|
@@ -10105,7 +10379,7 @@ var UmaModule = class extends BaseModule {
|
|
|
10105
10379
|
});
|
|
10106
10380
|
const minimumBond = await this.publicClient.readContract({
|
|
10107
10381
|
address: umaOracle,
|
|
10108
|
-
abi:
|
|
10382
|
+
abi: UmaOracle_default,
|
|
10109
10383
|
functionName: "getMinimumBond",
|
|
10110
10384
|
args: [currency]
|
|
10111
10385
|
});
|
|
@@ -10117,7 +10391,7 @@ var UmaModule = class extends BaseModule {
|
|
|
10117
10391
|
*/
|
|
10118
10392
|
async settleAssertion(assertionId) {
|
|
10119
10393
|
const wallet = this.walletClient;
|
|
10120
|
-
const
|
|
10394
|
+
const account = await this.getSignerAccount();
|
|
10121
10395
|
const { request } = await this.publicClient.simulateContract({
|
|
10122
10396
|
address: this.config.diamondAddress,
|
|
10123
10397
|
abi: ResolutionFacet_default,
|
|
@@ -10132,7 +10406,7 @@ var UmaModule = class extends BaseModule {
|
|
|
10132
10406
|
*/
|
|
10133
10407
|
async reportResolution(params) {
|
|
10134
10408
|
const wallet = this.walletClient;
|
|
10135
|
-
const
|
|
10409
|
+
const account = await this.getSignerAccount();
|
|
10136
10410
|
const { request } = await this.publicClient.simulateContract({
|
|
10137
10411
|
address: this.config.diamondAddress,
|
|
10138
10412
|
abi: ResolutionFacet_default,
|
|
@@ -10199,7 +10473,7 @@ var UmaModule = class extends BaseModule {
|
|
|
10199
10473
|
*/
|
|
10200
10474
|
async redeemWinnings(marketId) {
|
|
10201
10475
|
const wallet = this.walletClient;
|
|
10202
|
-
const
|
|
10476
|
+
const account = await this.getSignerAccount();
|
|
10203
10477
|
const oracleData = await this.publicClient.readContract({
|
|
10204
10478
|
address: this.config.diamondAddress,
|
|
10205
10479
|
abi: MarketsFacet_default,
|
|
@@ -10446,7 +10720,7 @@ var AccessControlModule = class extends BaseModule {
|
|
|
10446
10720
|
*/
|
|
10447
10721
|
async deployWhitelist() {
|
|
10448
10722
|
const wallet = this.walletClient;
|
|
10449
|
-
const
|
|
10723
|
+
const account = await this.getSignerAccount();
|
|
10450
10724
|
const { request } = await this.publicClient.simulateContract({
|
|
10451
10725
|
address: this.config.diamondAddress,
|
|
10452
10726
|
abi: AccessControlFacet_default,
|
|
@@ -10464,7 +10738,7 @@ var AccessControlModule = class extends BaseModule {
|
|
|
10464
10738
|
*/
|
|
10465
10739
|
async deployNFTGated(params) {
|
|
10466
10740
|
const wallet = this.walletClient;
|
|
10467
|
-
const
|
|
10741
|
+
const account = await this.getSignerAccount();
|
|
10468
10742
|
const { request } = await this.publicClient.simulateContract({
|
|
10469
10743
|
address: this.config.diamondAddress,
|
|
10470
10744
|
abi: AccessControlFacet_default,
|
|
@@ -10481,7 +10755,7 @@ var AccessControlModule = class extends BaseModule {
|
|
|
10481
10755
|
*/
|
|
10482
10756
|
async deployTokenGated(params) {
|
|
10483
10757
|
const wallet = this.walletClient;
|
|
10484
|
-
const
|
|
10758
|
+
const account = await this.getSignerAccount();
|
|
10485
10759
|
const { request } = await this.publicClient.simulateContract({
|
|
10486
10760
|
address: this.config.diamondAddress,
|
|
10487
10761
|
abi: AccessControlFacet_default,
|
|
@@ -10497,7 +10771,7 @@ var AccessControlModule = class extends BaseModule {
|
|
|
10497
10771
|
*/
|
|
10498
10772
|
async setMarketTradingAC(params) {
|
|
10499
10773
|
const wallet = this.walletClient;
|
|
10500
|
-
const
|
|
10774
|
+
const account = await this.getSignerAccount();
|
|
10501
10775
|
const { request } = await this.publicClient.simulateContract({
|
|
10502
10776
|
address: this.config.diamondAddress,
|
|
10503
10777
|
abi: AccessControlFacet_default,
|
|
@@ -10512,7 +10786,7 @@ var AccessControlModule = class extends BaseModule {
|
|
|
10512
10786
|
*/
|
|
10513
10787
|
async removeMarketTradingAC(params) {
|
|
10514
10788
|
const wallet = this.walletClient;
|
|
10515
|
-
const
|
|
10789
|
+
const account = await this.getSignerAccount();
|
|
10516
10790
|
const { request } = await this.publicClient.simulateContract({
|
|
10517
10791
|
address: this.config.diamondAddress,
|
|
10518
10792
|
abi: AccessControlFacet_default,
|
|
@@ -10551,7 +10825,7 @@ var AccessControlModule = class extends BaseModule {
|
|
|
10551
10825
|
*/
|
|
10552
10826
|
async addToWhitelist(params) {
|
|
10553
10827
|
const wallet = this.walletClient;
|
|
10554
|
-
const
|
|
10828
|
+
const account = await this.getSignerAccount();
|
|
10555
10829
|
const { request } = await this.publicClient.simulateContract({
|
|
10556
10830
|
address: params.acContract,
|
|
10557
10831
|
abi: WhitelistAccessControl_default,
|
|
@@ -10566,7 +10840,7 @@ var AccessControlModule = class extends BaseModule {
|
|
|
10566
10840
|
*/
|
|
10567
10841
|
async removeFromWhitelist(params) {
|
|
10568
10842
|
const wallet = this.walletClient;
|
|
10569
|
-
const
|
|
10843
|
+
const account = await this.getSignerAccount();
|
|
10570
10844
|
const { request } = await this.publicClient.simulateContract({
|
|
10571
10845
|
address: params.acContract,
|
|
10572
10846
|
abi: WhitelistAccessControl_default,
|
|
@@ -10628,10 +10902,10 @@ var PriceMarketModule = class extends BaseModule {
|
|
|
10628
10902
|
*/
|
|
10629
10903
|
async createPyth(params) {
|
|
10630
10904
|
const wallet = this.walletClient;
|
|
10631
|
-
const
|
|
10905
|
+
const account = await this.getSignerAccount();
|
|
10632
10906
|
const outcomes = params.outcomes ?? ["Up", "Down"];
|
|
10633
10907
|
const isStrikeMarket = params.strikePrice && params.strikePrice > BigInt(0);
|
|
10634
|
-
const { encodedTags, ancillaryData } = await this._prepareCreationCommon(params,
|
|
10908
|
+
const { encodedTags, ancillaryData } = await this._prepareCreationCommon(params, await this.getSignerAddress());
|
|
10635
10909
|
if (!isValidTickSize(params.tickSize)) {
|
|
10636
10910
|
throw new Error("Invalid tickSize: must be 1e15 (0.1%) or 1e16 (1%)");
|
|
10637
10911
|
}
|
|
@@ -10674,7 +10948,7 @@ var PriceMarketModule = class extends BaseModule {
|
|
|
10674
10948
|
*/
|
|
10675
10949
|
async resolvePyth(marketId) {
|
|
10676
10950
|
const wallet = this.walletClient;
|
|
10677
|
-
const
|
|
10951
|
+
const account = await this.getSignerAccount();
|
|
10678
10952
|
const pm = await this.get(marketId);
|
|
10679
10953
|
if (pm.resolved) {
|
|
10680
10954
|
throw new Error("Price market already resolved");
|
|
@@ -10767,7 +11041,7 @@ var PriceMarketModule = class extends BaseModule {
|
|
|
10767
11041
|
*/
|
|
10768
11042
|
async setPythContract(pythContract) {
|
|
10769
11043
|
const wallet = this.walletClient;
|
|
10770
|
-
const
|
|
11044
|
+
const account = await this.getSignerAccount();
|
|
10771
11045
|
const { request } = await this.publicClient.simulateContract({
|
|
10772
11046
|
address: this.config.diamondAddress,
|
|
10773
11047
|
abi: PythResolutionFacet_default,
|
|
@@ -10797,7 +11071,7 @@ var PriceMarketModule = class extends BaseModule {
|
|
|
10797
11071
|
*/
|
|
10798
11072
|
async setOpenMaxStaleness(openMaxStaleness) {
|
|
10799
11073
|
const wallet = this.walletClient;
|
|
10800
|
-
const
|
|
11074
|
+
const account = await this.getSignerAccount();
|
|
10801
11075
|
const { request } = await this.publicClient.simulateContract({
|
|
10802
11076
|
address: this.config.diamondAddress,
|
|
10803
11077
|
abi: PythResolutionFacet_default,
|
|
@@ -11040,6 +11314,6 @@ function parseMetadata(json) {
|
|
|
11040
11314
|
// src/index.ts
|
|
11041
11315
|
var version = "0.1.0";
|
|
11042
11316
|
|
|
11043
|
-
export { AccessControlFacet_default as AccessControlFacetABI, AccessControlModule, BatchOrdersFacet_default as BatchOrdersFacetABI, CONTRACT_ADDRESSES, ConditionalTokens_default as ConditionalTokensABI, DEFAULT_CHAIN, ERC20_default as ERC20ABI, FeedProvider, GET_ALL_MARKETS_FEED, GET_ALL_MARKETS_FEED_BY_VOLUME, GET_CHART_TRADES, GET_CHART_TRADES_ALL, GET_GROUP_MARKETS, GET_LEADERBOARD, GET_MARKET, GET_MARKETS, GET_MARKETS_WITH_PRICING, GET_MARKET_GROUP, GET_MARKET_GROUPS, GET_MARKET_GROUP_ITEM, GET_MARKET_TOP_HOLDERS, GET_ORDERS, GET_PROTOCOL_STATS, GET_QUESTION, GET_QUESTIONS, GET_RECENT_MARKETS, GET_RECENT_TRADES, GET_TOP_OF_BOOK, GET_TRADER_CLOSED_POSITIONS, GET_TRADER_FILLS, GET_TRADER_POSITIONS, GET_TRADER_PROFILE, GET_TRADES, GET_UNIFIED_MARKET_FEED, GET_UNIFIED_MARKET_FEED_BY_VOLUME, GET_USER, GET_VENUES, LimitOrdersFacet_default as LimitOrdersFacetABI, MarketGroupFacet_default as MarketGroupFacetABI, MarketModule, MarketOrdersFacet_default as MarketOrdersFacetABI, MarketsFacet_default as MarketsFacetABI, MatchingFacet_default as MatchingFacetABI, MetadataFacet_default as MetadataFacetABI, NegRiskFacet_default as NegRiskFacetABI, OddMakiClient, OrderBookFacet_default as OrderBookFacetABI, PROTOCOL_FEES, PriceMarketFacet_default as PriceMarketFacetABI, PriceMarketModule, ProtocolFacet_default as ProtocolFacetABI, PublicModule, PythResolutionFacet_default as PythResolutionFacetABI, ResolutionFacet_default as ResolutionFacetABI, SubgraphClient, TICK_SIZE_FINE, TICK_SIZE_STANDARD, TagsFacet_default as TagsFacetABI, TokenModule, TradeModule, UMA_DEFAULTS, UmaModule, VALID_TICK_SIZES, VaultFacet_default as VaultFacetABI, VenueFacet_default as VenueFacetABI, VenueModule, WhitelistAccessControl_default as WhitelistAccessControlABI, calculateChancePercent, clearDecimalsCache, createExpiry, createOddMakiClient, formatAmount, formatAncillaryData, formatTimestamp, getCachedTokenDecimals, getOutcomePrice, getTokenDecimals, isValidTickSize, parseAmount, parseAncillaryData, parseMetadata, parseTokenAmount, priceToTick, resolveIPFSUri, tickToPercentage, tickToPrice, version };
|
|
11317
|
+
export { AccessControlFacet_default as AccessControlFacetABI, AccessControlModule, BatchOrdersFacet_default as BatchOrdersFacetABI, CONTRACT_ADDRESSES, ConditionalTokens_default as ConditionalTokensABI, DEFAULT_CHAIN, ERC20_default as ERC20ABI, FeedProvider, GET_ALL_MARKETS_FEED, GET_ALL_MARKETS_FEED_BY_VOLUME, GET_CHART_TRADES, GET_CHART_TRADES_ALL, GET_GROUP_MARKETS, GET_LEADERBOARD, GET_MARKET, GET_MARKETS, GET_MARKETS_WITH_PRICING, GET_MARKET_GROUP, GET_MARKET_GROUPS, GET_MARKET_GROUP_ITEM, GET_MARKET_TOP_HOLDERS, GET_ORDERS, GET_PROTOCOL_STATS, GET_QUESTION, GET_QUESTIONS, GET_RECENT_MARKETS, GET_RECENT_TRADES, GET_TOP_OF_BOOK, GET_TRADER_CLOSED_POSITIONS, GET_TRADER_FILLS, GET_TRADER_POSITIONS, GET_TRADER_PROFILE, GET_TRADES, GET_UNIFIED_MARKET_FEED, GET_UNIFIED_MARKET_FEED_BY_VOLUME, GET_USER, GET_VENUES, LimitOrdersFacet_default as LimitOrdersFacetABI, MarketGroupFacet_default as MarketGroupFacetABI, MarketModule, MarketOrdersFacet_default as MarketOrdersFacetABI, MarketsFacet_default as MarketsFacetABI, MatchingFacet_default as MatchingFacetABI, MetadataFacet_default as MetadataFacetABI, NegRiskFacet_default as NegRiskFacetABI, OddMakiClient, OrderBookFacet_default as OrderBookFacetABI, PROTOCOL_FEES, PriceMarketFacet_default as PriceMarketFacetABI, PriceMarketModule, ProtocolFacet_default as ProtocolFacetABI, PublicModule, PythResolutionFacet_default as PythResolutionFacetABI, ResolutionFacet_default as ResolutionFacetABI, SubgraphClient, TICK_SIZE_FINE, TICK_SIZE_STANDARD, TagsFacet_default as TagsFacetABI, TokenModule, TradeModule, UMA_DEFAULTS, UmaModule, UmaOracle_default as UmaOracleABI, VALID_TICK_SIZES, VaultFacet_default as VaultFacetABI, VenueFacet_default as VenueFacetABI, VenueModule, WhitelistAccessControl_default as WhitelistAccessControlABI, calculateChancePercent, clearDecimalsCache, createExpiry, createOddMakiClient, formatAmount, formatAncillaryData, formatTimestamp, getCachedTokenDecimals, getOutcomePrice, getTokenDecimals, isValidTickSize, parseAmount, parseAncillaryData, parseMetadata, parseTokenAmount, priceToTick, resolveIPFSUri, tickToPercentage, tickToPrice, version };
|
|
11044
11318
|
//# sourceMappingURL=index.mjs.map
|
|
11045
11319
|
//# sourceMappingURL=index.mjs.map
|