@optimex-xyz/market-maker-sdk 0.9.0 → 0.9.1
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.d.mts +856 -1
- package/dist/index.d.ts +856 -1
- package/dist/index.js +157 -8
- package/dist/index.mjs +148 -7
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -6913,6 +6913,843 @@ declare const TokenSchema: z.ZodObject<{
|
|
|
6913
6913
|
}>;
|
|
6914
6914
|
type Token = z.infer<typeof TokenSchema>;
|
|
6915
6915
|
|
|
6916
|
+
declare enum TradeStatus {
|
|
6917
|
+
INIT = "INIT",
|
|
6918
|
+
PRE_SUBMIT = "PRE_SUBMIT",
|
|
6919
|
+
DEPOSITED = "DEPOSITED",
|
|
6920
|
+
SUBMITTED_TO_BE = "SUBMITTED_TO_BE",
|
|
6921
|
+
SUBMITTED_TO_SOLVER = "SUBMITTED_TO_SOLVER",
|
|
6922
|
+
SUBMITTED = "SUBMITTED",
|
|
6923
|
+
DEPOSIT_CONFIRMED = "DEPOSIT_CONFIRMED",
|
|
6924
|
+
PMM_SELECTED = "PMM_SELECTED",
|
|
6925
|
+
PAYMENT_MADE = "PAYMENT_MADE",
|
|
6926
|
+
PAYMENT_CONFIRMED = "PAYMENT_CONFIRMED",
|
|
6927
|
+
SETTLEMENT_CONFIRMED = "SETTLEMENT_CONFIRMED",
|
|
6928
|
+
TRADE_TIMEOUT = "TRADE_TIMEOUT",
|
|
6929
|
+
TIMEOUT = "TIMEOUT",
|
|
6930
|
+
TIMEOUT_NO_DEPOSIT = "TIMEOUT_NO_DEPOSIT",
|
|
6931
|
+
PRE_REFUND = "PRE_REFUND",
|
|
6932
|
+
REFUNDED = "REFUNDED",
|
|
6933
|
+
RENEW_QUOTE = "RENEW_QUOTE",
|
|
6934
|
+
BRIDGE_FAILED = "BRIDGE_FAILED",
|
|
6935
|
+
BRIDGE_SUCCESS = "BRIDGE_SUCCESS",
|
|
6936
|
+
UNKNOWN = "UNKNOWN"
|
|
6937
|
+
}
|
|
6938
|
+
declare enum TradeType {
|
|
6939
|
+
OPTIMISTIC = "OPTIMISTIC",
|
|
6940
|
+
BASIC = "BASIC"
|
|
6941
|
+
}
|
|
6942
|
+
declare const TradeTokenSchema: z.ZodObject<{
|
|
6943
|
+
id: z.ZodNumber;
|
|
6944
|
+
chainId: z.ZodString;
|
|
6945
|
+
tokenId: z.ZodString;
|
|
6946
|
+
swapType: z.ZodString;
|
|
6947
|
+
networkId: z.ZodString;
|
|
6948
|
+
tokenName: z.ZodString;
|
|
6949
|
+
networkName: z.ZodString;
|
|
6950
|
+
networkType: z.ZodString;
|
|
6951
|
+
tokenSymbol: z.ZodString;
|
|
6952
|
+
tokenAddress: z.ZodString;
|
|
6953
|
+
tokenLogoUri: z.ZodString;
|
|
6954
|
+
networkSymbol: z.ZodString;
|
|
6955
|
+
tokenDecimals: z.ZodNumber;
|
|
6956
|
+
networkLogoUri: z.ZodString;
|
|
6957
|
+
canonicalTokenId: z.ZodString;
|
|
6958
|
+
acrossTokenAddress: z.ZodString;
|
|
6959
|
+
}, "strip", z.ZodTypeAny, {
|
|
6960
|
+
chainId: string;
|
|
6961
|
+
tokenName: string;
|
|
6962
|
+
tokenSymbol: string;
|
|
6963
|
+
tokenDecimals: number;
|
|
6964
|
+
networkId: string;
|
|
6965
|
+
tokenId: string;
|
|
6966
|
+
swapType: string;
|
|
6967
|
+
networkName: string;
|
|
6968
|
+
networkSymbol: string;
|
|
6969
|
+
networkType: string;
|
|
6970
|
+
tokenAddress: string;
|
|
6971
|
+
tokenLogoUri: string;
|
|
6972
|
+
networkLogoUri: string;
|
|
6973
|
+
id: number;
|
|
6974
|
+
canonicalTokenId: string;
|
|
6975
|
+
acrossTokenAddress: string;
|
|
6976
|
+
}, {
|
|
6977
|
+
chainId: string;
|
|
6978
|
+
tokenName: string;
|
|
6979
|
+
tokenSymbol: string;
|
|
6980
|
+
tokenDecimals: number;
|
|
6981
|
+
networkId: string;
|
|
6982
|
+
tokenId: string;
|
|
6983
|
+
swapType: string;
|
|
6984
|
+
networkName: string;
|
|
6985
|
+
networkSymbol: string;
|
|
6986
|
+
networkType: string;
|
|
6987
|
+
tokenAddress: string;
|
|
6988
|
+
tokenLogoUri: string;
|
|
6989
|
+
networkLogoUri: string;
|
|
6990
|
+
id: number;
|
|
6991
|
+
canonicalTokenId: string;
|
|
6992
|
+
acrossTokenAddress: string;
|
|
6993
|
+
}>;
|
|
6994
|
+
type TradeToken = z.infer<typeof TradeTokenSchema>;
|
|
6995
|
+
declare const TradeEventSchema: z.ZodObject<{
|
|
6996
|
+
id: z.ZodNumber;
|
|
6997
|
+
tradeId: z.ZodString;
|
|
6998
|
+
action: z.ZodString;
|
|
6999
|
+
txId: z.ZodNullable<z.ZodString>;
|
|
7000
|
+
blockNumber: z.ZodNumber;
|
|
7001
|
+
timestamp: z.ZodNumber;
|
|
7002
|
+
inputData: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
7003
|
+
createdAt: z.ZodString;
|
|
7004
|
+
updatedAt: z.ZodString;
|
|
7005
|
+
}, "strip", z.ZodTypeAny, {
|
|
7006
|
+
blockNumber: number;
|
|
7007
|
+
tradeId: string;
|
|
7008
|
+
id: number;
|
|
7009
|
+
action: string;
|
|
7010
|
+
txId: string | null;
|
|
7011
|
+
timestamp: number;
|
|
7012
|
+
inputData: Record<string, any>;
|
|
7013
|
+
createdAt: string;
|
|
7014
|
+
updatedAt: string;
|
|
7015
|
+
}, {
|
|
7016
|
+
blockNumber: number;
|
|
7017
|
+
tradeId: string;
|
|
7018
|
+
id: number;
|
|
7019
|
+
action: string;
|
|
7020
|
+
txId: string | null;
|
|
7021
|
+
timestamp: number;
|
|
7022
|
+
inputData: Record<string, any>;
|
|
7023
|
+
createdAt: string;
|
|
7024
|
+
updatedAt: string;
|
|
7025
|
+
}>;
|
|
7026
|
+
type TradeEvent = z.infer<typeof TradeEventSchema>;
|
|
7027
|
+
declare const TradeSchema: z.ZodObject<{
|
|
7028
|
+
id: z.ZodNumber;
|
|
7029
|
+
tradeId: z.ZodString;
|
|
7030
|
+
status: z.ZodNativeEnum<typeof TradeStatus>;
|
|
7031
|
+
tradeTimeout: z.ZodNullable<z.ZodNumber>;
|
|
7032
|
+
scriptTimeout: z.ZodNullable<z.ZodNumber>;
|
|
7033
|
+
timestamp: z.ZodNullable<z.ZodNumber>;
|
|
7034
|
+
fromUserAddress: z.ZodNullable<z.ZodString>;
|
|
7035
|
+
toUserAddress: z.ZodNullable<z.ZodString>;
|
|
7036
|
+
orgId: z.ZodNullable<z.ZodNumber>;
|
|
7037
|
+
processedAuto: z.ZodNullable<z.ZodBoolean>;
|
|
7038
|
+
processedAt: z.ZodNullable<z.ZodString>;
|
|
7039
|
+
depositTxId: z.ZodNullable<z.ZodString>;
|
|
7040
|
+
settlementTxId: z.ZodNullable<z.ZodString>;
|
|
7041
|
+
toBridgeTxId: z.ZodNullable<z.ZodString>;
|
|
7042
|
+
fromBridgeTxId: z.ZodNullable<z.ZodString>;
|
|
7043
|
+
swapType: z.ZodNullable<z.ZodNativeEnum<typeof TradeType>>;
|
|
7044
|
+
amountIn: z.ZodNullable<z.ZodString>;
|
|
7045
|
+
fromToken: z.ZodNullable<z.ZodObject<{
|
|
7046
|
+
id: z.ZodNumber;
|
|
7047
|
+
chainId: z.ZodString;
|
|
7048
|
+
tokenId: z.ZodString;
|
|
7049
|
+
swapType: z.ZodString;
|
|
7050
|
+
networkId: z.ZodString;
|
|
7051
|
+
tokenName: z.ZodString;
|
|
7052
|
+
networkName: z.ZodString;
|
|
7053
|
+
networkType: z.ZodString;
|
|
7054
|
+
tokenSymbol: z.ZodString;
|
|
7055
|
+
tokenAddress: z.ZodString;
|
|
7056
|
+
tokenLogoUri: z.ZodString;
|
|
7057
|
+
networkSymbol: z.ZodString;
|
|
7058
|
+
tokenDecimals: z.ZodNumber;
|
|
7059
|
+
networkLogoUri: z.ZodString;
|
|
7060
|
+
canonicalTokenId: z.ZodString;
|
|
7061
|
+
acrossTokenAddress: z.ZodString;
|
|
7062
|
+
}, "strip", z.ZodTypeAny, {
|
|
7063
|
+
chainId: string;
|
|
7064
|
+
tokenName: string;
|
|
7065
|
+
tokenSymbol: string;
|
|
7066
|
+
tokenDecimals: number;
|
|
7067
|
+
networkId: string;
|
|
7068
|
+
tokenId: string;
|
|
7069
|
+
swapType: string;
|
|
7070
|
+
networkName: string;
|
|
7071
|
+
networkSymbol: string;
|
|
7072
|
+
networkType: string;
|
|
7073
|
+
tokenAddress: string;
|
|
7074
|
+
tokenLogoUri: string;
|
|
7075
|
+
networkLogoUri: string;
|
|
7076
|
+
id: number;
|
|
7077
|
+
canonicalTokenId: string;
|
|
7078
|
+
acrossTokenAddress: string;
|
|
7079
|
+
}, {
|
|
7080
|
+
chainId: string;
|
|
7081
|
+
tokenName: string;
|
|
7082
|
+
tokenSymbol: string;
|
|
7083
|
+
tokenDecimals: number;
|
|
7084
|
+
networkId: string;
|
|
7085
|
+
tokenId: string;
|
|
7086
|
+
swapType: string;
|
|
7087
|
+
networkName: string;
|
|
7088
|
+
networkSymbol: string;
|
|
7089
|
+
networkType: string;
|
|
7090
|
+
tokenAddress: string;
|
|
7091
|
+
tokenLogoUri: string;
|
|
7092
|
+
networkLogoUri: string;
|
|
7093
|
+
id: number;
|
|
7094
|
+
canonicalTokenId: string;
|
|
7095
|
+
acrossTokenAddress: string;
|
|
7096
|
+
}>>;
|
|
7097
|
+
toToken: z.ZodNullable<z.ZodObject<{
|
|
7098
|
+
id: z.ZodNumber;
|
|
7099
|
+
chainId: z.ZodString;
|
|
7100
|
+
tokenId: z.ZodString;
|
|
7101
|
+
swapType: z.ZodString;
|
|
7102
|
+
networkId: z.ZodString;
|
|
7103
|
+
tokenName: z.ZodString;
|
|
7104
|
+
networkName: z.ZodString;
|
|
7105
|
+
networkType: z.ZodString;
|
|
7106
|
+
tokenSymbol: z.ZodString;
|
|
7107
|
+
tokenAddress: z.ZodString;
|
|
7108
|
+
tokenLogoUri: z.ZodString;
|
|
7109
|
+
networkSymbol: z.ZodString;
|
|
7110
|
+
tokenDecimals: z.ZodNumber;
|
|
7111
|
+
networkLogoUri: z.ZodString;
|
|
7112
|
+
canonicalTokenId: z.ZodString;
|
|
7113
|
+
acrossTokenAddress: z.ZodString;
|
|
7114
|
+
}, "strip", z.ZodTypeAny, {
|
|
7115
|
+
chainId: string;
|
|
7116
|
+
tokenName: string;
|
|
7117
|
+
tokenSymbol: string;
|
|
7118
|
+
tokenDecimals: number;
|
|
7119
|
+
networkId: string;
|
|
7120
|
+
tokenId: string;
|
|
7121
|
+
swapType: string;
|
|
7122
|
+
networkName: string;
|
|
7123
|
+
networkSymbol: string;
|
|
7124
|
+
networkType: string;
|
|
7125
|
+
tokenAddress: string;
|
|
7126
|
+
tokenLogoUri: string;
|
|
7127
|
+
networkLogoUri: string;
|
|
7128
|
+
id: number;
|
|
7129
|
+
canonicalTokenId: string;
|
|
7130
|
+
acrossTokenAddress: string;
|
|
7131
|
+
}, {
|
|
7132
|
+
chainId: string;
|
|
7133
|
+
tokenName: string;
|
|
7134
|
+
tokenSymbol: string;
|
|
7135
|
+
tokenDecimals: number;
|
|
7136
|
+
networkId: string;
|
|
7137
|
+
tokenId: string;
|
|
7138
|
+
swapType: string;
|
|
7139
|
+
networkName: string;
|
|
7140
|
+
networkSymbol: string;
|
|
7141
|
+
networkType: string;
|
|
7142
|
+
tokenAddress: string;
|
|
7143
|
+
tokenLogoUri: string;
|
|
7144
|
+
networkLogoUri: string;
|
|
7145
|
+
id: number;
|
|
7146
|
+
canonicalTokenId: string;
|
|
7147
|
+
acrossTokenAddress: string;
|
|
7148
|
+
}>>;
|
|
7149
|
+
createdAt: z.ZodString;
|
|
7150
|
+
updatedAt: z.ZodString;
|
|
7151
|
+
events: z.ZodArray<z.ZodObject<{
|
|
7152
|
+
id: z.ZodNumber;
|
|
7153
|
+
tradeId: z.ZodString;
|
|
7154
|
+
action: z.ZodString;
|
|
7155
|
+
txId: z.ZodNullable<z.ZodString>;
|
|
7156
|
+
blockNumber: z.ZodNumber;
|
|
7157
|
+
timestamp: z.ZodNumber;
|
|
7158
|
+
inputData: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
7159
|
+
createdAt: z.ZodString;
|
|
7160
|
+
updatedAt: z.ZodString;
|
|
7161
|
+
}, "strip", z.ZodTypeAny, {
|
|
7162
|
+
blockNumber: number;
|
|
7163
|
+
tradeId: string;
|
|
7164
|
+
id: number;
|
|
7165
|
+
action: string;
|
|
7166
|
+
txId: string | null;
|
|
7167
|
+
timestamp: number;
|
|
7168
|
+
inputData: Record<string, any>;
|
|
7169
|
+
createdAt: string;
|
|
7170
|
+
updatedAt: string;
|
|
7171
|
+
}, {
|
|
7172
|
+
blockNumber: number;
|
|
7173
|
+
tradeId: string;
|
|
7174
|
+
id: number;
|
|
7175
|
+
action: string;
|
|
7176
|
+
txId: string | null;
|
|
7177
|
+
timestamp: number;
|
|
7178
|
+
inputData: Record<string, any>;
|
|
7179
|
+
createdAt: string;
|
|
7180
|
+
updatedAt: string;
|
|
7181
|
+
}>, "many">;
|
|
7182
|
+
}, "strip", z.ZodTypeAny, {
|
|
7183
|
+
tradeId: string;
|
|
7184
|
+
tradeTimeout: number | null;
|
|
7185
|
+
swapType: TradeType | null;
|
|
7186
|
+
amountIn: string | null;
|
|
7187
|
+
scriptTimeout: number | null;
|
|
7188
|
+
status: TradeStatus;
|
|
7189
|
+
fromToken: {
|
|
7190
|
+
chainId: string;
|
|
7191
|
+
tokenName: string;
|
|
7192
|
+
tokenSymbol: string;
|
|
7193
|
+
tokenDecimals: number;
|
|
7194
|
+
networkId: string;
|
|
7195
|
+
tokenId: string;
|
|
7196
|
+
swapType: string;
|
|
7197
|
+
networkName: string;
|
|
7198
|
+
networkSymbol: string;
|
|
7199
|
+
networkType: string;
|
|
7200
|
+
tokenAddress: string;
|
|
7201
|
+
tokenLogoUri: string;
|
|
7202
|
+
networkLogoUri: string;
|
|
7203
|
+
id: number;
|
|
7204
|
+
canonicalTokenId: string;
|
|
7205
|
+
acrossTokenAddress: string;
|
|
7206
|
+
} | null;
|
|
7207
|
+
toToken: {
|
|
7208
|
+
chainId: string;
|
|
7209
|
+
tokenName: string;
|
|
7210
|
+
tokenSymbol: string;
|
|
7211
|
+
tokenDecimals: number;
|
|
7212
|
+
networkId: string;
|
|
7213
|
+
tokenId: string;
|
|
7214
|
+
swapType: string;
|
|
7215
|
+
networkName: string;
|
|
7216
|
+
networkSymbol: string;
|
|
7217
|
+
networkType: string;
|
|
7218
|
+
tokenAddress: string;
|
|
7219
|
+
tokenLogoUri: string;
|
|
7220
|
+
networkLogoUri: string;
|
|
7221
|
+
id: number;
|
|
7222
|
+
canonicalTokenId: string;
|
|
7223
|
+
acrossTokenAddress: string;
|
|
7224
|
+
} | null;
|
|
7225
|
+
fromUserAddress: string | null;
|
|
7226
|
+
id: number;
|
|
7227
|
+
timestamp: number | null;
|
|
7228
|
+
createdAt: string;
|
|
7229
|
+
updatedAt: string;
|
|
7230
|
+
toUserAddress: string | null;
|
|
7231
|
+
orgId: number | null;
|
|
7232
|
+
processedAuto: boolean | null;
|
|
7233
|
+
processedAt: string | null;
|
|
7234
|
+
depositTxId: string | null;
|
|
7235
|
+
settlementTxId: string | null;
|
|
7236
|
+
toBridgeTxId: string | null;
|
|
7237
|
+
fromBridgeTxId: string | null;
|
|
7238
|
+
events: {
|
|
7239
|
+
blockNumber: number;
|
|
7240
|
+
tradeId: string;
|
|
7241
|
+
id: number;
|
|
7242
|
+
action: string;
|
|
7243
|
+
txId: string | null;
|
|
7244
|
+
timestamp: number;
|
|
7245
|
+
inputData: Record<string, any>;
|
|
7246
|
+
createdAt: string;
|
|
7247
|
+
updatedAt: string;
|
|
7248
|
+
}[];
|
|
7249
|
+
}, {
|
|
7250
|
+
tradeId: string;
|
|
7251
|
+
tradeTimeout: number | null;
|
|
7252
|
+
swapType: TradeType | null;
|
|
7253
|
+
amountIn: string | null;
|
|
7254
|
+
scriptTimeout: number | null;
|
|
7255
|
+
status: TradeStatus;
|
|
7256
|
+
fromToken: {
|
|
7257
|
+
chainId: string;
|
|
7258
|
+
tokenName: string;
|
|
7259
|
+
tokenSymbol: string;
|
|
7260
|
+
tokenDecimals: number;
|
|
7261
|
+
networkId: string;
|
|
7262
|
+
tokenId: string;
|
|
7263
|
+
swapType: string;
|
|
7264
|
+
networkName: string;
|
|
7265
|
+
networkSymbol: string;
|
|
7266
|
+
networkType: string;
|
|
7267
|
+
tokenAddress: string;
|
|
7268
|
+
tokenLogoUri: string;
|
|
7269
|
+
networkLogoUri: string;
|
|
7270
|
+
id: number;
|
|
7271
|
+
canonicalTokenId: string;
|
|
7272
|
+
acrossTokenAddress: string;
|
|
7273
|
+
} | null;
|
|
7274
|
+
toToken: {
|
|
7275
|
+
chainId: string;
|
|
7276
|
+
tokenName: string;
|
|
7277
|
+
tokenSymbol: string;
|
|
7278
|
+
tokenDecimals: number;
|
|
7279
|
+
networkId: string;
|
|
7280
|
+
tokenId: string;
|
|
7281
|
+
swapType: string;
|
|
7282
|
+
networkName: string;
|
|
7283
|
+
networkSymbol: string;
|
|
7284
|
+
networkType: string;
|
|
7285
|
+
tokenAddress: string;
|
|
7286
|
+
tokenLogoUri: string;
|
|
7287
|
+
networkLogoUri: string;
|
|
7288
|
+
id: number;
|
|
7289
|
+
canonicalTokenId: string;
|
|
7290
|
+
acrossTokenAddress: string;
|
|
7291
|
+
} | null;
|
|
7292
|
+
fromUserAddress: string | null;
|
|
7293
|
+
id: number;
|
|
7294
|
+
timestamp: number | null;
|
|
7295
|
+
createdAt: string;
|
|
7296
|
+
updatedAt: string;
|
|
7297
|
+
toUserAddress: string | null;
|
|
7298
|
+
orgId: number | null;
|
|
7299
|
+
processedAuto: boolean | null;
|
|
7300
|
+
processedAt: string | null;
|
|
7301
|
+
depositTxId: string | null;
|
|
7302
|
+
settlementTxId: string | null;
|
|
7303
|
+
toBridgeTxId: string | null;
|
|
7304
|
+
fromBridgeTxId: string | null;
|
|
7305
|
+
events: {
|
|
7306
|
+
blockNumber: number;
|
|
7307
|
+
tradeId: string;
|
|
7308
|
+
id: number;
|
|
7309
|
+
action: string;
|
|
7310
|
+
txId: string | null;
|
|
7311
|
+
timestamp: number;
|
|
7312
|
+
inputData: Record<string, any>;
|
|
7313
|
+
createdAt: string;
|
|
7314
|
+
updatedAt: string;
|
|
7315
|
+
}[];
|
|
7316
|
+
}>;
|
|
7317
|
+
type Trade = z.infer<typeof TradeSchema>;
|
|
7318
|
+
declare const TradeResponseSchema: z.ZodObject<{
|
|
7319
|
+
data: z.ZodObject<{
|
|
7320
|
+
id: z.ZodNumber;
|
|
7321
|
+
tradeId: z.ZodString;
|
|
7322
|
+
status: z.ZodNativeEnum<typeof TradeStatus>;
|
|
7323
|
+
tradeTimeout: z.ZodNullable<z.ZodNumber>;
|
|
7324
|
+
scriptTimeout: z.ZodNullable<z.ZodNumber>;
|
|
7325
|
+
timestamp: z.ZodNullable<z.ZodNumber>;
|
|
7326
|
+
fromUserAddress: z.ZodNullable<z.ZodString>;
|
|
7327
|
+
toUserAddress: z.ZodNullable<z.ZodString>;
|
|
7328
|
+
orgId: z.ZodNullable<z.ZodNumber>;
|
|
7329
|
+
processedAuto: z.ZodNullable<z.ZodBoolean>;
|
|
7330
|
+
processedAt: z.ZodNullable<z.ZodString>;
|
|
7331
|
+
depositTxId: z.ZodNullable<z.ZodString>;
|
|
7332
|
+
settlementTxId: z.ZodNullable<z.ZodString>;
|
|
7333
|
+
toBridgeTxId: z.ZodNullable<z.ZodString>;
|
|
7334
|
+
fromBridgeTxId: z.ZodNullable<z.ZodString>;
|
|
7335
|
+
swapType: z.ZodNullable<z.ZodNativeEnum<typeof TradeType>>;
|
|
7336
|
+
amountIn: z.ZodNullable<z.ZodString>;
|
|
7337
|
+
fromToken: z.ZodNullable<z.ZodObject<{
|
|
7338
|
+
id: z.ZodNumber;
|
|
7339
|
+
chainId: z.ZodString;
|
|
7340
|
+
tokenId: z.ZodString;
|
|
7341
|
+
swapType: z.ZodString;
|
|
7342
|
+
networkId: z.ZodString;
|
|
7343
|
+
tokenName: z.ZodString;
|
|
7344
|
+
networkName: z.ZodString;
|
|
7345
|
+
networkType: z.ZodString;
|
|
7346
|
+
tokenSymbol: z.ZodString;
|
|
7347
|
+
tokenAddress: z.ZodString;
|
|
7348
|
+
tokenLogoUri: z.ZodString;
|
|
7349
|
+
networkSymbol: z.ZodString;
|
|
7350
|
+
tokenDecimals: z.ZodNumber;
|
|
7351
|
+
networkLogoUri: z.ZodString;
|
|
7352
|
+
canonicalTokenId: z.ZodString;
|
|
7353
|
+
acrossTokenAddress: z.ZodString;
|
|
7354
|
+
}, "strip", z.ZodTypeAny, {
|
|
7355
|
+
chainId: string;
|
|
7356
|
+
tokenName: string;
|
|
7357
|
+
tokenSymbol: string;
|
|
7358
|
+
tokenDecimals: number;
|
|
7359
|
+
networkId: string;
|
|
7360
|
+
tokenId: string;
|
|
7361
|
+
swapType: string;
|
|
7362
|
+
networkName: string;
|
|
7363
|
+
networkSymbol: string;
|
|
7364
|
+
networkType: string;
|
|
7365
|
+
tokenAddress: string;
|
|
7366
|
+
tokenLogoUri: string;
|
|
7367
|
+
networkLogoUri: string;
|
|
7368
|
+
id: number;
|
|
7369
|
+
canonicalTokenId: string;
|
|
7370
|
+
acrossTokenAddress: string;
|
|
7371
|
+
}, {
|
|
7372
|
+
chainId: string;
|
|
7373
|
+
tokenName: string;
|
|
7374
|
+
tokenSymbol: string;
|
|
7375
|
+
tokenDecimals: number;
|
|
7376
|
+
networkId: string;
|
|
7377
|
+
tokenId: string;
|
|
7378
|
+
swapType: string;
|
|
7379
|
+
networkName: string;
|
|
7380
|
+
networkSymbol: string;
|
|
7381
|
+
networkType: string;
|
|
7382
|
+
tokenAddress: string;
|
|
7383
|
+
tokenLogoUri: string;
|
|
7384
|
+
networkLogoUri: string;
|
|
7385
|
+
id: number;
|
|
7386
|
+
canonicalTokenId: string;
|
|
7387
|
+
acrossTokenAddress: string;
|
|
7388
|
+
}>>;
|
|
7389
|
+
toToken: z.ZodNullable<z.ZodObject<{
|
|
7390
|
+
id: z.ZodNumber;
|
|
7391
|
+
chainId: z.ZodString;
|
|
7392
|
+
tokenId: z.ZodString;
|
|
7393
|
+
swapType: z.ZodString;
|
|
7394
|
+
networkId: z.ZodString;
|
|
7395
|
+
tokenName: z.ZodString;
|
|
7396
|
+
networkName: z.ZodString;
|
|
7397
|
+
networkType: z.ZodString;
|
|
7398
|
+
tokenSymbol: z.ZodString;
|
|
7399
|
+
tokenAddress: z.ZodString;
|
|
7400
|
+
tokenLogoUri: z.ZodString;
|
|
7401
|
+
networkSymbol: z.ZodString;
|
|
7402
|
+
tokenDecimals: z.ZodNumber;
|
|
7403
|
+
networkLogoUri: z.ZodString;
|
|
7404
|
+
canonicalTokenId: z.ZodString;
|
|
7405
|
+
acrossTokenAddress: z.ZodString;
|
|
7406
|
+
}, "strip", z.ZodTypeAny, {
|
|
7407
|
+
chainId: string;
|
|
7408
|
+
tokenName: string;
|
|
7409
|
+
tokenSymbol: string;
|
|
7410
|
+
tokenDecimals: number;
|
|
7411
|
+
networkId: string;
|
|
7412
|
+
tokenId: string;
|
|
7413
|
+
swapType: string;
|
|
7414
|
+
networkName: string;
|
|
7415
|
+
networkSymbol: string;
|
|
7416
|
+
networkType: string;
|
|
7417
|
+
tokenAddress: string;
|
|
7418
|
+
tokenLogoUri: string;
|
|
7419
|
+
networkLogoUri: string;
|
|
7420
|
+
id: number;
|
|
7421
|
+
canonicalTokenId: string;
|
|
7422
|
+
acrossTokenAddress: string;
|
|
7423
|
+
}, {
|
|
7424
|
+
chainId: string;
|
|
7425
|
+
tokenName: string;
|
|
7426
|
+
tokenSymbol: string;
|
|
7427
|
+
tokenDecimals: number;
|
|
7428
|
+
networkId: string;
|
|
7429
|
+
tokenId: string;
|
|
7430
|
+
swapType: string;
|
|
7431
|
+
networkName: string;
|
|
7432
|
+
networkSymbol: string;
|
|
7433
|
+
networkType: string;
|
|
7434
|
+
tokenAddress: string;
|
|
7435
|
+
tokenLogoUri: string;
|
|
7436
|
+
networkLogoUri: string;
|
|
7437
|
+
id: number;
|
|
7438
|
+
canonicalTokenId: string;
|
|
7439
|
+
acrossTokenAddress: string;
|
|
7440
|
+
}>>;
|
|
7441
|
+
createdAt: z.ZodString;
|
|
7442
|
+
updatedAt: z.ZodString;
|
|
7443
|
+
events: z.ZodArray<z.ZodObject<{
|
|
7444
|
+
id: z.ZodNumber;
|
|
7445
|
+
tradeId: z.ZodString;
|
|
7446
|
+
action: z.ZodString;
|
|
7447
|
+
txId: z.ZodNullable<z.ZodString>;
|
|
7448
|
+
blockNumber: z.ZodNumber;
|
|
7449
|
+
timestamp: z.ZodNumber;
|
|
7450
|
+
inputData: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
7451
|
+
createdAt: z.ZodString;
|
|
7452
|
+
updatedAt: z.ZodString;
|
|
7453
|
+
}, "strip", z.ZodTypeAny, {
|
|
7454
|
+
blockNumber: number;
|
|
7455
|
+
tradeId: string;
|
|
7456
|
+
id: number;
|
|
7457
|
+
action: string;
|
|
7458
|
+
txId: string | null;
|
|
7459
|
+
timestamp: number;
|
|
7460
|
+
inputData: Record<string, any>;
|
|
7461
|
+
createdAt: string;
|
|
7462
|
+
updatedAt: string;
|
|
7463
|
+
}, {
|
|
7464
|
+
blockNumber: number;
|
|
7465
|
+
tradeId: string;
|
|
7466
|
+
id: number;
|
|
7467
|
+
action: string;
|
|
7468
|
+
txId: string | null;
|
|
7469
|
+
timestamp: number;
|
|
7470
|
+
inputData: Record<string, any>;
|
|
7471
|
+
createdAt: string;
|
|
7472
|
+
updatedAt: string;
|
|
7473
|
+
}>, "many">;
|
|
7474
|
+
}, "strip", z.ZodTypeAny, {
|
|
7475
|
+
tradeId: string;
|
|
7476
|
+
tradeTimeout: number | null;
|
|
7477
|
+
swapType: TradeType | null;
|
|
7478
|
+
amountIn: string | null;
|
|
7479
|
+
scriptTimeout: number | null;
|
|
7480
|
+
status: TradeStatus;
|
|
7481
|
+
fromToken: {
|
|
7482
|
+
chainId: string;
|
|
7483
|
+
tokenName: string;
|
|
7484
|
+
tokenSymbol: string;
|
|
7485
|
+
tokenDecimals: number;
|
|
7486
|
+
networkId: string;
|
|
7487
|
+
tokenId: string;
|
|
7488
|
+
swapType: string;
|
|
7489
|
+
networkName: string;
|
|
7490
|
+
networkSymbol: string;
|
|
7491
|
+
networkType: string;
|
|
7492
|
+
tokenAddress: string;
|
|
7493
|
+
tokenLogoUri: string;
|
|
7494
|
+
networkLogoUri: string;
|
|
7495
|
+
id: number;
|
|
7496
|
+
canonicalTokenId: string;
|
|
7497
|
+
acrossTokenAddress: string;
|
|
7498
|
+
} | null;
|
|
7499
|
+
toToken: {
|
|
7500
|
+
chainId: string;
|
|
7501
|
+
tokenName: string;
|
|
7502
|
+
tokenSymbol: string;
|
|
7503
|
+
tokenDecimals: number;
|
|
7504
|
+
networkId: string;
|
|
7505
|
+
tokenId: string;
|
|
7506
|
+
swapType: string;
|
|
7507
|
+
networkName: string;
|
|
7508
|
+
networkSymbol: string;
|
|
7509
|
+
networkType: string;
|
|
7510
|
+
tokenAddress: string;
|
|
7511
|
+
tokenLogoUri: string;
|
|
7512
|
+
networkLogoUri: string;
|
|
7513
|
+
id: number;
|
|
7514
|
+
canonicalTokenId: string;
|
|
7515
|
+
acrossTokenAddress: string;
|
|
7516
|
+
} | null;
|
|
7517
|
+
fromUserAddress: string | null;
|
|
7518
|
+
id: number;
|
|
7519
|
+
timestamp: number | null;
|
|
7520
|
+
createdAt: string;
|
|
7521
|
+
updatedAt: string;
|
|
7522
|
+
toUserAddress: string | null;
|
|
7523
|
+
orgId: number | null;
|
|
7524
|
+
processedAuto: boolean | null;
|
|
7525
|
+
processedAt: string | null;
|
|
7526
|
+
depositTxId: string | null;
|
|
7527
|
+
settlementTxId: string | null;
|
|
7528
|
+
toBridgeTxId: string | null;
|
|
7529
|
+
fromBridgeTxId: string | null;
|
|
7530
|
+
events: {
|
|
7531
|
+
blockNumber: number;
|
|
7532
|
+
tradeId: string;
|
|
7533
|
+
id: number;
|
|
7534
|
+
action: string;
|
|
7535
|
+
txId: string | null;
|
|
7536
|
+
timestamp: number;
|
|
7537
|
+
inputData: Record<string, any>;
|
|
7538
|
+
createdAt: string;
|
|
7539
|
+
updatedAt: string;
|
|
7540
|
+
}[];
|
|
7541
|
+
}, {
|
|
7542
|
+
tradeId: string;
|
|
7543
|
+
tradeTimeout: number | null;
|
|
7544
|
+
swapType: TradeType | null;
|
|
7545
|
+
amountIn: string | null;
|
|
7546
|
+
scriptTimeout: number | null;
|
|
7547
|
+
status: TradeStatus;
|
|
7548
|
+
fromToken: {
|
|
7549
|
+
chainId: string;
|
|
7550
|
+
tokenName: string;
|
|
7551
|
+
tokenSymbol: string;
|
|
7552
|
+
tokenDecimals: number;
|
|
7553
|
+
networkId: string;
|
|
7554
|
+
tokenId: string;
|
|
7555
|
+
swapType: string;
|
|
7556
|
+
networkName: string;
|
|
7557
|
+
networkSymbol: string;
|
|
7558
|
+
networkType: string;
|
|
7559
|
+
tokenAddress: string;
|
|
7560
|
+
tokenLogoUri: string;
|
|
7561
|
+
networkLogoUri: string;
|
|
7562
|
+
id: number;
|
|
7563
|
+
canonicalTokenId: string;
|
|
7564
|
+
acrossTokenAddress: string;
|
|
7565
|
+
} | null;
|
|
7566
|
+
toToken: {
|
|
7567
|
+
chainId: string;
|
|
7568
|
+
tokenName: string;
|
|
7569
|
+
tokenSymbol: string;
|
|
7570
|
+
tokenDecimals: number;
|
|
7571
|
+
networkId: string;
|
|
7572
|
+
tokenId: string;
|
|
7573
|
+
swapType: string;
|
|
7574
|
+
networkName: string;
|
|
7575
|
+
networkSymbol: string;
|
|
7576
|
+
networkType: string;
|
|
7577
|
+
tokenAddress: string;
|
|
7578
|
+
tokenLogoUri: string;
|
|
7579
|
+
networkLogoUri: string;
|
|
7580
|
+
id: number;
|
|
7581
|
+
canonicalTokenId: string;
|
|
7582
|
+
acrossTokenAddress: string;
|
|
7583
|
+
} | null;
|
|
7584
|
+
fromUserAddress: string | null;
|
|
7585
|
+
id: number;
|
|
7586
|
+
timestamp: number | null;
|
|
7587
|
+
createdAt: string;
|
|
7588
|
+
updatedAt: string;
|
|
7589
|
+
toUserAddress: string | null;
|
|
7590
|
+
orgId: number | null;
|
|
7591
|
+
processedAuto: boolean | null;
|
|
7592
|
+
processedAt: string | null;
|
|
7593
|
+
depositTxId: string | null;
|
|
7594
|
+
settlementTxId: string | null;
|
|
7595
|
+
toBridgeTxId: string | null;
|
|
7596
|
+
fromBridgeTxId: string | null;
|
|
7597
|
+
events: {
|
|
7598
|
+
blockNumber: number;
|
|
7599
|
+
tradeId: string;
|
|
7600
|
+
id: number;
|
|
7601
|
+
action: string;
|
|
7602
|
+
txId: string | null;
|
|
7603
|
+
timestamp: number;
|
|
7604
|
+
inputData: Record<string, any>;
|
|
7605
|
+
createdAt: string;
|
|
7606
|
+
updatedAt: string;
|
|
7607
|
+
}[];
|
|
7608
|
+
}>;
|
|
7609
|
+
traceId: z.ZodString;
|
|
7610
|
+
}, "strip", z.ZodTypeAny, {
|
|
7611
|
+
data: {
|
|
7612
|
+
tradeId: string;
|
|
7613
|
+
tradeTimeout: number | null;
|
|
7614
|
+
swapType: TradeType | null;
|
|
7615
|
+
amountIn: string | null;
|
|
7616
|
+
scriptTimeout: number | null;
|
|
7617
|
+
status: TradeStatus;
|
|
7618
|
+
fromToken: {
|
|
7619
|
+
chainId: string;
|
|
7620
|
+
tokenName: string;
|
|
7621
|
+
tokenSymbol: string;
|
|
7622
|
+
tokenDecimals: number;
|
|
7623
|
+
networkId: string;
|
|
7624
|
+
tokenId: string;
|
|
7625
|
+
swapType: string;
|
|
7626
|
+
networkName: string;
|
|
7627
|
+
networkSymbol: string;
|
|
7628
|
+
networkType: string;
|
|
7629
|
+
tokenAddress: string;
|
|
7630
|
+
tokenLogoUri: string;
|
|
7631
|
+
networkLogoUri: string;
|
|
7632
|
+
id: number;
|
|
7633
|
+
canonicalTokenId: string;
|
|
7634
|
+
acrossTokenAddress: string;
|
|
7635
|
+
} | null;
|
|
7636
|
+
toToken: {
|
|
7637
|
+
chainId: string;
|
|
7638
|
+
tokenName: string;
|
|
7639
|
+
tokenSymbol: string;
|
|
7640
|
+
tokenDecimals: number;
|
|
7641
|
+
networkId: string;
|
|
7642
|
+
tokenId: string;
|
|
7643
|
+
swapType: string;
|
|
7644
|
+
networkName: string;
|
|
7645
|
+
networkSymbol: string;
|
|
7646
|
+
networkType: string;
|
|
7647
|
+
tokenAddress: string;
|
|
7648
|
+
tokenLogoUri: string;
|
|
7649
|
+
networkLogoUri: string;
|
|
7650
|
+
id: number;
|
|
7651
|
+
canonicalTokenId: string;
|
|
7652
|
+
acrossTokenAddress: string;
|
|
7653
|
+
} | null;
|
|
7654
|
+
fromUserAddress: string | null;
|
|
7655
|
+
id: number;
|
|
7656
|
+
timestamp: number | null;
|
|
7657
|
+
createdAt: string;
|
|
7658
|
+
updatedAt: string;
|
|
7659
|
+
toUserAddress: string | null;
|
|
7660
|
+
orgId: number | null;
|
|
7661
|
+
processedAuto: boolean | null;
|
|
7662
|
+
processedAt: string | null;
|
|
7663
|
+
depositTxId: string | null;
|
|
7664
|
+
settlementTxId: string | null;
|
|
7665
|
+
toBridgeTxId: string | null;
|
|
7666
|
+
fromBridgeTxId: string | null;
|
|
7667
|
+
events: {
|
|
7668
|
+
blockNumber: number;
|
|
7669
|
+
tradeId: string;
|
|
7670
|
+
id: number;
|
|
7671
|
+
action: string;
|
|
7672
|
+
txId: string | null;
|
|
7673
|
+
timestamp: number;
|
|
7674
|
+
inputData: Record<string, any>;
|
|
7675
|
+
createdAt: string;
|
|
7676
|
+
updatedAt: string;
|
|
7677
|
+
}[];
|
|
7678
|
+
};
|
|
7679
|
+
traceId: string;
|
|
7680
|
+
}, {
|
|
7681
|
+
data: {
|
|
7682
|
+
tradeId: string;
|
|
7683
|
+
tradeTimeout: number | null;
|
|
7684
|
+
swapType: TradeType | null;
|
|
7685
|
+
amountIn: string | null;
|
|
7686
|
+
scriptTimeout: number | null;
|
|
7687
|
+
status: TradeStatus;
|
|
7688
|
+
fromToken: {
|
|
7689
|
+
chainId: string;
|
|
7690
|
+
tokenName: string;
|
|
7691
|
+
tokenSymbol: string;
|
|
7692
|
+
tokenDecimals: number;
|
|
7693
|
+
networkId: string;
|
|
7694
|
+
tokenId: string;
|
|
7695
|
+
swapType: string;
|
|
7696
|
+
networkName: string;
|
|
7697
|
+
networkSymbol: string;
|
|
7698
|
+
networkType: string;
|
|
7699
|
+
tokenAddress: string;
|
|
7700
|
+
tokenLogoUri: string;
|
|
7701
|
+
networkLogoUri: string;
|
|
7702
|
+
id: number;
|
|
7703
|
+
canonicalTokenId: string;
|
|
7704
|
+
acrossTokenAddress: string;
|
|
7705
|
+
} | null;
|
|
7706
|
+
toToken: {
|
|
7707
|
+
chainId: string;
|
|
7708
|
+
tokenName: string;
|
|
7709
|
+
tokenSymbol: string;
|
|
7710
|
+
tokenDecimals: number;
|
|
7711
|
+
networkId: string;
|
|
7712
|
+
tokenId: string;
|
|
7713
|
+
swapType: string;
|
|
7714
|
+
networkName: string;
|
|
7715
|
+
networkSymbol: string;
|
|
7716
|
+
networkType: string;
|
|
7717
|
+
tokenAddress: string;
|
|
7718
|
+
tokenLogoUri: string;
|
|
7719
|
+
networkLogoUri: string;
|
|
7720
|
+
id: number;
|
|
7721
|
+
canonicalTokenId: string;
|
|
7722
|
+
acrossTokenAddress: string;
|
|
7723
|
+
} | null;
|
|
7724
|
+
fromUserAddress: string | null;
|
|
7725
|
+
id: number;
|
|
7726
|
+
timestamp: number | null;
|
|
7727
|
+
createdAt: string;
|
|
7728
|
+
updatedAt: string;
|
|
7729
|
+
toUserAddress: string | null;
|
|
7730
|
+
orgId: number | null;
|
|
7731
|
+
processedAuto: boolean | null;
|
|
7732
|
+
processedAt: string | null;
|
|
7733
|
+
depositTxId: string | null;
|
|
7734
|
+
settlementTxId: string | null;
|
|
7735
|
+
toBridgeTxId: string | null;
|
|
7736
|
+
fromBridgeTxId: string | null;
|
|
7737
|
+
events: {
|
|
7738
|
+
blockNumber: number;
|
|
7739
|
+
tradeId: string;
|
|
7740
|
+
id: number;
|
|
7741
|
+
action: string;
|
|
7742
|
+
txId: string | null;
|
|
7743
|
+
timestamp: number;
|
|
7744
|
+
inputData: Record<string, any>;
|
|
7745
|
+
createdAt: string;
|
|
7746
|
+
updatedAt: string;
|
|
7747
|
+
}[];
|
|
7748
|
+
};
|
|
7749
|
+
traceId: string;
|
|
7750
|
+
}>;
|
|
7751
|
+
type TradeResponse = z.infer<typeof TradeResponseSchema>;
|
|
7752
|
+
|
|
6916
7753
|
declare class TokenService implements ConfigObserver {
|
|
6917
7754
|
private baseURL;
|
|
6918
7755
|
constructor();
|
|
@@ -6950,6 +7787,24 @@ declare class TokenService implements ConfigObserver {
|
|
|
6950
7787
|
}
|
|
6951
7788
|
declare const tokenService: TokenService;
|
|
6952
7789
|
|
|
7790
|
+
declare class TradeService implements ConfigObserver {
|
|
7791
|
+
private baseURL;
|
|
7792
|
+
constructor();
|
|
7793
|
+
/**
|
|
7794
|
+
* Implementation of ConfigObserver interface
|
|
7795
|
+
* Updates service when config changes
|
|
7796
|
+
*/
|
|
7797
|
+
onConfigUpdate(newConfig: AppConfig): void;
|
|
7798
|
+
/**
|
|
7799
|
+
* Fetches a trade by its trade ID
|
|
7800
|
+
* @param tradeId The unique trade ID (hash)
|
|
7801
|
+
* @returns Promise<Trade> The trade details
|
|
7802
|
+
* @throws Error if the API request fails or response validation fails
|
|
7803
|
+
*/
|
|
7804
|
+
getTradeById(tradeId: string): Promise<Trade>;
|
|
7805
|
+
}
|
|
7806
|
+
declare const tradeService: TradeService;
|
|
7807
|
+
|
|
6953
7808
|
declare function getTradeIdsHash(tradeIds: BytesLike[]): string;
|
|
6954
7809
|
declare function getMakePaymentHash(tradeIds: BytesLike[], signedAt: bigint, startIdx: bigint, paymentTxId: BytesLike): string;
|
|
6955
7810
|
declare function getCommitInfoHash(pmmId: BytesLike, pmmRecvAddr: BytesLike, toChain: BytesLike, toToken: BytesLike, amountOut: bigint, expiry: bigint): string;
|
|
@@ -7017,4 +7872,4 @@ declare function camelToSnakeCase(str: string): string;
|
|
|
7017
7872
|
declare const ensureHexPrefix: (value: string) => string;
|
|
7018
7873
|
declare const removeHexPrefix: (value: string) => string;
|
|
7019
7874
|
|
|
7020
|
-
export { type AppConfig, AssetChainContractRole, type ConfigObserver, type ERC20, ERC20__factory, type Environment, type EnvironmentConfig, ITypes, L2ContractRole, type MorphoLiquidationGateway, MorphoLiquidationGateway__factory, OptimexBtcNetwork, OptimexEvmNetwork, OptimexL2Network, OptimexLendingNetwork, type OptimexNetwork, OptimexSolanaNetwork, type Payment, Payment__factory, type ProtocolFetcherProxy, ProtocolFetcherProxy__factory, ProtocolService, type Router, RouterService, Router__factory, SDK, SignatureType, type Signer, SignerService, Signer__factory, SolverService, type Token, TokenSchema, TokenService, type UnknownNetwork, camelToSnakeCase, config, confirmDepositType, confirmPaymentType, confirmSettlementType, convertToCamelCase, convertToSnakeCase, ensureHexPrefix, index as factories, getCommitInfoHash, getMakePaymentHash, getSignature, getSigner, getTradeIdsHash, isBtcNetwork, isEvmNetwork, isL2Network, isSolanaNetwork, makePaymentType, presignType, protocolService, removeHexPrefix, rfqAuthenticationTypes, routerService, sdk, selectionType, signerService, snakeToCamelCase, solverService, tokenService };
|
|
7875
|
+
export { type AppConfig, AssetChainContractRole, type ConfigObserver, type ERC20, ERC20__factory, type Environment, type EnvironmentConfig, ITypes, L2ContractRole, type MorphoLiquidationGateway, MorphoLiquidationGateway__factory, OptimexBtcNetwork, OptimexEvmNetwork, OptimexL2Network, OptimexLendingNetwork, type OptimexNetwork, OptimexSolanaNetwork, type Payment, Payment__factory, type ProtocolFetcherProxy, ProtocolFetcherProxy__factory, ProtocolService, type Router, RouterService, Router__factory, SDK, SignatureType, type Signer, SignerService, Signer__factory, SolverService, type Token, TokenSchema, TokenService, type Trade, type TradeEvent, TradeEventSchema, type TradeResponse, TradeResponseSchema, TradeSchema, TradeService, TradeStatus, type TradeToken, TradeTokenSchema, TradeType, type UnknownNetwork, camelToSnakeCase, config, confirmDepositType, confirmPaymentType, confirmSettlementType, convertToCamelCase, convertToSnakeCase, ensureHexPrefix, index as factories, getCommitInfoHash, getMakePaymentHash, getSignature, getSigner, getTradeIdsHash, isBtcNetwork, isEvmNetwork, isL2Network, isSolanaNetwork, makePaymentType, presignType, protocolService, removeHexPrefix, rfqAuthenticationTypes, routerService, sdk, selectionType, signerService, snakeToCamelCase, solverService, tokenService, tradeService };
|