@illalabs/interfaces 0.26.0-canary-beta-2618f29a → 0.26.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/interfaces/hyperliquid/exchange.d.ts +3248 -0
- package/dist/interfaces/hyperliquid/exchange.d.ts.map +1 -0
- package/dist/interfaces/hyperliquid/exchange.js +61 -0
- package/dist/interfaces/hyperliquid/exchange.js.map +1 -0
- package/dist/interfaces/hyperliquid/index.d.ts +2 -0
- package/dist/interfaces/hyperliquid/index.d.ts.map +1 -0
- package/dist/interfaces/hyperliquid/index.js +2 -0
- package/dist/interfaces/hyperliquid/index.js.map +1 -0
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/interfaces/index.js +1 -0
- package/dist/interfaces/index.js.map +1 -1
- package/dist/schemas/chatContext.d.ts +112 -68
- package/dist/schemas/chatContext.d.ts.map +1 -1
- package/dist/schemas/chatRequestBody.d.ts +140 -84
- package/dist/schemas/chatRequestBody.d.ts.map +1 -1
- package/dist/schemas/messages.d.ts +3536 -28
- package/dist/schemas/messages.d.ts.map +1 -1
- package/dist/schemas/messages.js +91 -0
- package/dist/schemas/messages.js.map +1 -1
- package/dist/schemas/telemetryEvents.d.ts +8328 -72
- package/dist/schemas/telemetryEvents.d.ts.map +1 -1
- package/dist/schemas/toolAutorouter.d.ts +106 -66
- package/dist/schemas/toolAutorouter.d.ts.map +1 -1
- package/dist/schemas/toolAutorouter.js +11 -1
- package/dist/schemas/toolAutorouter.js.map +1 -1
- package/dist/types/actions/inputs.d.ts +9 -2
- package/dist/types/actions/inputs.d.ts.map +1 -1
- package/dist/types/actions/outputs.d.ts +15 -0
- package/dist/types/actions/outputs.d.ts.map +1 -1
- package/dist/types/actions/outputs.js.map +1 -1
- package/dist/types/actions/tools/defiFetchListingsAction.d.ts +1 -1
- package/dist/types/actions/tools/defiFetchListingsAction.d.ts.map +1 -1
- package/dist/types/actions/tools/defiPositionsAction.d.ts +1 -30
- package/dist/types/actions/tools/defiPositionsAction.d.ts.map +1 -1
- package/dist/types/actions/tools/hyperliquidDepositAction.d.ts +24 -0
- package/dist/types/actions/tools/hyperliquidDepositAction.d.ts.map +1 -0
- package/dist/types/actions/tools/hyperliquidDepositAction.js +2 -0
- package/dist/types/actions/tools/hyperliquidDepositAction.js.map +1 -0
- package/dist/types/actions/tools/hyperliquidWithdrawAction.d.ts +35 -0
- package/dist/types/actions/tools/hyperliquidWithdrawAction.d.ts.map +1 -0
- package/dist/types/actions/tools/hyperliquidWithdrawAction.js +2 -0
- package/dist/types/actions/tools/hyperliquidWithdrawAction.js.map +1 -0
- package/dist/types/actions/tools/index.d.ts +21 -0
- package/dist/types/actions/tools/index.d.ts.map +1 -1
- package/dist/types/actions/tools/perpetualsClosePositionAction.d.ts +27 -0
- package/dist/types/actions/tools/perpetualsClosePositionAction.d.ts.map +1 -0
- package/dist/types/actions/tools/perpetualsClosePositionAction.js +2 -0
- package/dist/types/actions/tools/perpetualsClosePositionAction.js.map +1 -0
- package/dist/types/actions/tools/perpetualsGetAccountSummaryAction.d.ts +20 -0
- package/dist/types/actions/tools/perpetualsGetAccountSummaryAction.d.ts.map +1 -0
- package/dist/types/actions/tools/perpetualsGetAccountSummaryAction.js +2 -0
- package/dist/types/actions/tools/perpetualsGetAccountSummaryAction.js.map +1 -0
- package/dist/types/actions/tools/perpetualsGetPositionsAction.d.ts +20 -0
- package/dist/types/actions/tools/perpetualsGetPositionsAction.d.ts.map +1 -0
- package/dist/types/actions/tools/perpetualsGetPositionsAction.js +2 -0
- package/dist/types/actions/tools/perpetualsGetPositionsAction.js.map +1 -0
- package/dist/types/actions/tools/perpetualsPlaceOrderAction.d.ts +36 -0
- package/dist/types/actions/tools/perpetualsPlaceOrderAction.d.ts.map +1 -0
- package/dist/types/actions/tools/perpetualsPlaceOrderAction.js +2 -0
- package/dist/types/actions/tools/perpetualsPlaceOrderAction.js.map +1 -0
- package/dist/types/actions/tools/perpetualsUpdateLeverageAction.d.ts +30 -0
- package/dist/types/actions/tools/perpetualsUpdateLeverageAction.d.ts.map +1 -0
- package/dist/types/actions/tools/perpetualsUpdateLeverageAction.js +2 -0
- package/dist/types/actions/tools/perpetualsUpdateLeverageAction.js.map +1 -0
- package/dist/types/toolAutorouter.d.ts +2 -1
- package/dist/types/toolAutorouter.d.ts.map +1 -1
- package/dist/types/toolAutorouter.js +1 -1
- package/dist/types/toolAutorouter.js.map +1 -1
- package/dist/utils/constants.d.ts +4 -2
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/constants.js +9 -1
- package/dist/utils/constants.js.map +1 -1
- package/package.json +1 -1
|
@@ -1806,6 +1806,198 @@ export declare const TransactionActionMetadataSchema: z.ZodDiscriminatedUnion<"a
|
|
|
1806
1806
|
amount: string;
|
|
1807
1807
|
fromAddress: string;
|
|
1808
1808
|
amountUSDValue?: string | undefined;
|
|
1809
|
+
}>, z.ZodObject<{
|
|
1810
|
+
action: z.ZodLiteral<"perpetualsOrder">;
|
|
1811
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
1812
|
+
endpoint: z.ZodString;
|
|
1813
|
+
unsignedAction: z.ZodUnknown;
|
|
1814
|
+
nonce: z.ZodNumber;
|
|
1815
|
+
coin: z.ZodString;
|
|
1816
|
+
side: z.ZodEnum<["buy", "sell"]>;
|
|
1817
|
+
size: z.ZodString;
|
|
1818
|
+
notionalUsd: z.ZodOptional<z.ZodString>;
|
|
1819
|
+
markPx: z.ZodString;
|
|
1820
|
+
leverage: z.ZodOptional<z.ZodObject<{
|
|
1821
|
+
type: z.ZodEnum<["cross", "isolated"]>;
|
|
1822
|
+
value: z.ZodNumber;
|
|
1823
|
+
}, "strip", z.ZodTypeAny, {
|
|
1824
|
+
type: "cross" | "isolated";
|
|
1825
|
+
value: number;
|
|
1826
|
+
}, {
|
|
1827
|
+
type: "cross" | "isolated";
|
|
1828
|
+
value: number;
|
|
1829
|
+
}>>;
|
|
1830
|
+
reduceOnly: z.ZodBoolean;
|
|
1831
|
+
}, "strip", z.ZodTypeAny, {
|
|
1832
|
+
nonce: number;
|
|
1833
|
+
action: "perpetualsOrder";
|
|
1834
|
+
size: string;
|
|
1835
|
+
side: "buy" | "sell";
|
|
1836
|
+
network: "testnet" | "mainnet";
|
|
1837
|
+
endpoint: string;
|
|
1838
|
+
coin: string;
|
|
1839
|
+
markPx: string;
|
|
1840
|
+
reduceOnly: boolean;
|
|
1841
|
+
unsignedAction?: unknown;
|
|
1842
|
+
notionalUsd?: string | undefined;
|
|
1843
|
+
leverage?: {
|
|
1844
|
+
type: "cross" | "isolated";
|
|
1845
|
+
value: number;
|
|
1846
|
+
} | undefined;
|
|
1847
|
+
}, {
|
|
1848
|
+
nonce: number;
|
|
1849
|
+
action: "perpetualsOrder";
|
|
1850
|
+
size: string;
|
|
1851
|
+
side: "buy" | "sell";
|
|
1852
|
+
network: "testnet" | "mainnet";
|
|
1853
|
+
endpoint: string;
|
|
1854
|
+
coin: string;
|
|
1855
|
+
markPx: string;
|
|
1856
|
+
reduceOnly: boolean;
|
|
1857
|
+
unsignedAction?: unknown;
|
|
1858
|
+
notionalUsd?: string | undefined;
|
|
1859
|
+
leverage?: {
|
|
1860
|
+
type: "cross" | "isolated";
|
|
1861
|
+
value: number;
|
|
1862
|
+
} | undefined;
|
|
1863
|
+
}>, z.ZodObject<{
|
|
1864
|
+
action: z.ZodLiteral<"perpetualsUpdateLeverage">;
|
|
1865
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
1866
|
+
endpoint: z.ZodString;
|
|
1867
|
+
unsignedAction: z.ZodUnknown;
|
|
1868
|
+
nonce: z.ZodNumber;
|
|
1869
|
+
coin: z.ZodString;
|
|
1870
|
+
leverage: z.ZodObject<{
|
|
1871
|
+
type: z.ZodEnum<["cross", "isolated"]>;
|
|
1872
|
+
value: z.ZodNumber;
|
|
1873
|
+
}, "strip", z.ZodTypeAny, {
|
|
1874
|
+
type: "cross" | "isolated";
|
|
1875
|
+
value: number;
|
|
1876
|
+
}, {
|
|
1877
|
+
type: "cross" | "isolated";
|
|
1878
|
+
value: number;
|
|
1879
|
+
}>;
|
|
1880
|
+
}, "strip", z.ZodTypeAny, {
|
|
1881
|
+
nonce: number;
|
|
1882
|
+
action: "perpetualsUpdateLeverage";
|
|
1883
|
+
network: "testnet" | "mainnet";
|
|
1884
|
+
endpoint: string;
|
|
1885
|
+
coin: string;
|
|
1886
|
+
leverage: {
|
|
1887
|
+
type: "cross" | "isolated";
|
|
1888
|
+
value: number;
|
|
1889
|
+
};
|
|
1890
|
+
unsignedAction?: unknown;
|
|
1891
|
+
}, {
|
|
1892
|
+
nonce: number;
|
|
1893
|
+
action: "perpetualsUpdateLeverage";
|
|
1894
|
+
network: "testnet" | "mainnet";
|
|
1895
|
+
endpoint: string;
|
|
1896
|
+
coin: string;
|
|
1897
|
+
leverage: {
|
|
1898
|
+
type: "cross" | "isolated";
|
|
1899
|
+
value: number;
|
|
1900
|
+
};
|
|
1901
|
+
unsignedAction?: unknown;
|
|
1902
|
+
}>, z.ZodObject<{
|
|
1903
|
+
action: z.ZodLiteral<"perpetualsClosePosition">;
|
|
1904
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
1905
|
+
endpoint: z.ZodString;
|
|
1906
|
+
unsignedAction: z.ZodUnknown;
|
|
1907
|
+
nonce: z.ZodNumber;
|
|
1908
|
+
coin: z.ZodString;
|
|
1909
|
+
size: z.ZodString;
|
|
1910
|
+
side: z.ZodEnum<["buy", "sell"]>;
|
|
1911
|
+
markPx: z.ZodString;
|
|
1912
|
+
reduceOnly: z.ZodLiteral<true>;
|
|
1913
|
+
}, "strip", z.ZodTypeAny, {
|
|
1914
|
+
nonce: number;
|
|
1915
|
+
action: "perpetualsClosePosition";
|
|
1916
|
+
size: string;
|
|
1917
|
+
side: "buy" | "sell";
|
|
1918
|
+
network: "testnet" | "mainnet";
|
|
1919
|
+
endpoint: string;
|
|
1920
|
+
coin: string;
|
|
1921
|
+
markPx: string;
|
|
1922
|
+
reduceOnly: true;
|
|
1923
|
+
unsignedAction?: unknown;
|
|
1924
|
+
}, {
|
|
1925
|
+
nonce: number;
|
|
1926
|
+
action: "perpetualsClosePosition";
|
|
1927
|
+
size: string;
|
|
1928
|
+
side: "buy" | "sell";
|
|
1929
|
+
network: "testnet" | "mainnet";
|
|
1930
|
+
endpoint: string;
|
|
1931
|
+
coin: string;
|
|
1932
|
+
markPx: string;
|
|
1933
|
+
reduceOnly: true;
|
|
1934
|
+
unsignedAction?: unknown;
|
|
1935
|
+
}>, z.ZodObject<{
|
|
1936
|
+
action: z.ZodLiteral<"hyperliquidDeposit">;
|
|
1937
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
1938
|
+
token: z.ZodObject<{
|
|
1939
|
+
symbol: z.ZodString;
|
|
1940
|
+
address: z.ZodString;
|
|
1941
|
+
}, "strip", z.ZodTypeAny, {
|
|
1942
|
+
symbol: string;
|
|
1943
|
+
address: string;
|
|
1944
|
+
}, {
|
|
1945
|
+
symbol: string;
|
|
1946
|
+
address: string;
|
|
1947
|
+
}>;
|
|
1948
|
+
amount: z.ZodString;
|
|
1949
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
1950
|
+
chainId: z.ZodNumber;
|
|
1951
|
+
fromAddress: z.ZodString;
|
|
1952
|
+
toAddress: z.ZodString;
|
|
1953
|
+
}, "strip", z.ZodTypeAny, {
|
|
1954
|
+
toAddress: string;
|
|
1955
|
+
chainId: number;
|
|
1956
|
+
action: "hyperliquidDeposit";
|
|
1957
|
+
token: {
|
|
1958
|
+
symbol: string;
|
|
1959
|
+
address: string;
|
|
1960
|
+
};
|
|
1961
|
+
amount: string;
|
|
1962
|
+
fromAddress: string;
|
|
1963
|
+
network: "testnet" | "mainnet";
|
|
1964
|
+
amountUSDValue?: string | undefined;
|
|
1965
|
+
}, {
|
|
1966
|
+
toAddress: string;
|
|
1967
|
+
chainId: number;
|
|
1968
|
+
action: "hyperliquidDeposit";
|
|
1969
|
+
token: {
|
|
1970
|
+
symbol: string;
|
|
1971
|
+
address: string;
|
|
1972
|
+
};
|
|
1973
|
+
amount: string;
|
|
1974
|
+
fromAddress: string;
|
|
1975
|
+
network: "testnet" | "mainnet";
|
|
1976
|
+
amountUSDValue?: string | undefined;
|
|
1977
|
+
}>, z.ZodObject<{
|
|
1978
|
+
action: z.ZodLiteral<"hyperliquidWithdraw">;
|
|
1979
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
1980
|
+
endpoint: z.ZodString;
|
|
1981
|
+
unsignedAction: z.ZodUnknown;
|
|
1982
|
+
nonce: z.ZodNumber;
|
|
1983
|
+
amount: z.ZodString;
|
|
1984
|
+
destination: z.ZodString;
|
|
1985
|
+
}, "strip", z.ZodTypeAny, {
|
|
1986
|
+
nonce: number;
|
|
1987
|
+
action: "hyperliquidWithdraw";
|
|
1988
|
+
amount: string;
|
|
1989
|
+
network: "testnet" | "mainnet";
|
|
1990
|
+
endpoint: string;
|
|
1991
|
+
destination: string;
|
|
1992
|
+
unsignedAction?: unknown;
|
|
1993
|
+
}, {
|
|
1994
|
+
nonce: number;
|
|
1995
|
+
action: "hyperliquidWithdraw";
|
|
1996
|
+
amount: string;
|
|
1997
|
+
network: "testnet" | "mainnet";
|
|
1998
|
+
endpoint: string;
|
|
1999
|
+
destination: string;
|
|
2000
|
+
unsignedAction?: unknown;
|
|
1809
2001
|
}>]>;
|
|
1810
2002
|
export type TransactionActionMetadata = z.infer<typeof TransactionActionMetadataSchema>;
|
|
1811
2003
|
/**
|
|
@@ -3070,6 +3262,198 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
3070
3262
|
amount: string;
|
|
3071
3263
|
fromAddress: string;
|
|
3072
3264
|
amountUSDValue?: string | undefined;
|
|
3265
|
+
}>, z.ZodObject<{
|
|
3266
|
+
action: z.ZodLiteral<"perpetualsOrder">;
|
|
3267
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
3268
|
+
endpoint: z.ZodString;
|
|
3269
|
+
unsignedAction: z.ZodUnknown;
|
|
3270
|
+
nonce: z.ZodNumber;
|
|
3271
|
+
coin: z.ZodString;
|
|
3272
|
+
side: z.ZodEnum<["buy", "sell"]>;
|
|
3273
|
+
size: z.ZodString;
|
|
3274
|
+
notionalUsd: z.ZodOptional<z.ZodString>;
|
|
3275
|
+
markPx: z.ZodString;
|
|
3276
|
+
leverage: z.ZodOptional<z.ZodObject<{
|
|
3277
|
+
type: z.ZodEnum<["cross", "isolated"]>;
|
|
3278
|
+
value: z.ZodNumber;
|
|
3279
|
+
}, "strip", z.ZodTypeAny, {
|
|
3280
|
+
type: "cross" | "isolated";
|
|
3281
|
+
value: number;
|
|
3282
|
+
}, {
|
|
3283
|
+
type: "cross" | "isolated";
|
|
3284
|
+
value: number;
|
|
3285
|
+
}>>;
|
|
3286
|
+
reduceOnly: z.ZodBoolean;
|
|
3287
|
+
}, "strip", z.ZodTypeAny, {
|
|
3288
|
+
nonce: number;
|
|
3289
|
+
action: "perpetualsOrder";
|
|
3290
|
+
size: string;
|
|
3291
|
+
side: "buy" | "sell";
|
|
3292
|
+
network: "testnet" | "mainnet";
|
|
3293
|
+
endpoint: string;
|
|
3294
|
+
coin: string;
|
|
3295
|
+
markPx: string;
|
|
3296
|
+
reduceOnly: boolean;
|
|
3297
|
+
unsignedAction?: unknown;
|
|
3298
|
+
notionalUsd?: string | undefined;
|
|
3299
|
+
leverage?: {
|
|
3300
|
+
type: "cross" | "isolated";
|
|
3301
|
+
value: number;
|
|
3302
|
+
} | undefined;
|
|
3303
|
+
}, {
|
|
3304
|
+
nonce: number;
|
|
3305
|
+
action: "perpetualsOrder";
|
|
3306
|
+
size: string;
|
|
3307
|
+
side: "buy" | "sell";
|
|
3308
|
+
network: "testnet" | "mainnet";
|
|
3309
|
+
endpoint: string;
|
|
3310
|
+
coin: string;
|
|
3311
|
+
markPx: string;
|
|
3312
|
+
reduceOnly: boolean;
|
|
3313
|
+
unsignedAction?: unknown;
|
|
3314
|
+
notionalUsd?: string | undefined;
|
|
3315
|
+
leverage?: {
|
|
3316
|
+
type: "cross" | "isolated";
|
|
3317
|
+
value: number;
|
|
3318
|
+
} | undefined;
|
|
3319
|
+
}>, z.ZodObject<{
|
|
3320
|
+
action: z.ZodLiteral<"perpetualsUpdateLeverage">;
|
|
3321
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
3322
|
+
endpoint: z.ZodString;
|
|
3323
|
+
unsignedAction: z.ZodUnknown;
|
|
3324
|
+
nonce: z.ZodNumber;
|
|
3325
|
+
coin: z.ZodString;
|
|
3326
|
+
leverage: z.ZodObject<{
|
|
3327
|
+
type: z.ZodEnum<["cross", "isolated"]>;
|
|
3328
|
+
value: z.ZodNumber;
|
|
3329
|
+
}, "strip", z.ZodTypeAny, {
|
|
3330
|
+
type: "cross" | "isolated";
|
|
3331
|
+
value: number;
|
|
3332
|
+
}, {
|
|
3333
|
+
type: "cross" | "isolated";
|
|
3334
|
+
value: number;
|
|
3335
|
+
}>;
|
|
3336
|
+
}, "strip", z.ZodTypeAny, {
|
|
3337
|
+
nonce: number;
|
|
3338
|
+
action: "perpetualsUpdateLeverage";
|
|
3339
|
+
network: "testnet" | "mainnet";
|
|
3340
|
+
endpoint: string;
|
|
3341
|
+
coin: string;
|
|
3342
|
+
leverage: {
|
|
3343
|
+
type: "cross" | "isolated";
|
|
3344
|
+
value: number;
|
|
3345
|
+
};
|
|
3346
|
+
unsignedAction?: unknown;
|
|
3347
|
+
}, {
|
|
3348
|
+
nonce: number;
|
|
3349
|
+
action: "perpetualsUpdateLeverage";
|
|
3350
|
+
network: "testnet" | "mainnet";
|
|
3351
|
+
endpoint: string;
|
|
3352
|
+
coin: string;
|
|
3353
|
+
leverage: {
|
|
3354
|
+
type: "cross" | "isolated";
|
|
3355
|
+
value: number;
|
|
3356
|
+
};
|
|
3357
|
+
unsignedAction?: unknown;
|
|
3358
|
+
}>, z.ZodObject<{
|
|
3359
|
+
action: z.ZodLiteral<"perpetualsClosePosition">;
|
|
3360
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
3361
|
+
endpoint: z.ZodString;
|
|
3362
|
+
unsignedAction: z.ZodUnknown;
|
|
3363
|
+
nonce: z.ZodNumber;
|
|
3364
|
+
coin: z.ZodString;
|
|
3365
|
+
size: z.ZodString;
|
|
3366
|
+
side: z.ZodEnum<["buy", "sell"]>;
|
|
3367
|
+
markPx: z.ZodString;
|
|
3368
|
+
reduceOnly: z.ZodLiteral<true>;
|
|
3369
|
+
}, "strip", z.ZodTypeAny, {
|
|
3370
|
+
nonce: number;
|
|
3371
|
+
action: "perpetualsClosePosition";
|
|
3372
|
+
size: string;
|
|
3373
|
+
side: "buy" | "sell";
|
|
3374
|
+
network: "testnet" | "mainnet";
|
|
3375
|
+
endpoint: string;
|
|
3376
|
+
coin: string;
|
|
3377
|
+
markPx: string;
|
|
3378
|
+
reduceOnly: true;
|
|
3379
|
+
unsignedAction?: unknown;
|
|
3380
|
+
}, {
|
|
3381
|
+
nonce: number;
|
|
3382
|
+
action: "perpetualsClosePosition";
|
|
3383
|
+
size: string;
|
|
3384
|
+
side: "buy" | "sell";
|
|
3385
|
+
network: "testnet" | "mainnet";
|
|
3386
|
+
endpoint: string;
|
|
3387
|
+
coin: string;
|
|
3388
|
+
markPx: string;
|
|
3389
|
+
reduceOnly: true;
|
|
3390
|
+
unsignedAction?: unknown;
|
|
3391
|
+
}>, z.ZodObject<{
|
|
3392
|
+
action: z.ZodLiteral<"hyperliquidDeposit">;
|
|
3393
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
3394
|
+
token: z.ZodObject<{
|
|
3395
|
+
symbol: z.ZodString;
|
|
3396
|
+
address: z.ZodString;
|
|
3397
|
+
}, "strip", z.ZodTypeAny, {
|
|
3398
|
+
symbol: string;
|
|
3399
|
+
address: string;
|
|
3400
|
+
}, {
|
|
3401
|
+
symbol: string;
|
|
3402
|
+
address: string;
|
|
3403
|
+
}>;
|
|
3404
|
+
amount: z.ZodString;
|
|
3405
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
3406
|
+
chainId: z.ZodNumber;
|
|
3407
|
+
fromAddress: z.ZodString;
|
|
3408
|
+
toAddress: z.ZodString;
|
|
3409
|
+
}, "strip", z.ZodTypeAny, {
|
|
3410
|
+
toAddress: string;
|
|
3411
|
+
chainId: number;
|
|
3412
|
+
action: "hyperliquidDeposit";
|
|
3413
|
+
token: {
|
|
3414
|
+
symbol: string;
|
|
3415
|
+
address: string;
|
|
3416
|
+
};
|
|
3417
|
+
amount: string;
|
|
3418
|
+
fromAddress: string;
|
|
3419
|
+
network: "testnet" | "mainnet";
|
|
3420
|
+
amountUSDValue?: string | undefined;
|
|
3421
|
+
}, {
|
|
3422
|
+
toAddress: string;
|
|
3423
|
+
chainId: number;
|
|
3424
|
+
action: "hyperliquidDeposit";
|
|
3425
|
+
token: {
|
|
3426
|
+
symbol: string;
|
|
3427
|
+
address: string;
|
|
3428
|
+
};
|
|
3429
|
+
amount: string;
|
|
3430
|
+
fromAddress: string;
|
|
3431
|
+
network: "testnet" | "mainnet";
|
|
3432
|
+
amountUSDValue?: string | undefined;
|
|
3433
|
+
}>, z.ZodObject<{
|
|
3434
|
+
action: z.ZodLiteral<"hyperliquidWithdraw">;
|
|
3435
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
3436
|
+
endpoint: z.ZodString;
|
|
3437
|
+
unsignedAction: z.ZodUnknown;
|
|
3438
|
+
nonce: z.ZodNumber;
|
|
3439
|
+
amount: z.ZodString;
|
|
3440
|
+
destination: z.ZodString;
|
|
3441
|
+
}, "strip", z.ZodTypeAny, {
|
|
3442
|
+
nonce: number;
|
|
3443
|
+
action: "hyperliquidWithdraw";
|
|
3444
|
+
amount: string;
|
|
3445
|
+
network: "testnet" | "mainnet";
|
|
3446
|
+
endpoint: string;
|
|
3447
|
+
destination: string;
|
|
3448
|
+
unsignedAction?: unknown;
|
|
3449
|
+
}, {
|
|
3450
|
+
nonce: number;
|
|
3451
|
+
action: "hyperliquidWithdraw";
|
|
3452
|
+
amount: string;
|
|
3453
|
+
network: "testnet" | "mainnet";
|
|
3454
|
+
endpoint: string;
|
|
3455
|
+
destination: string;
|
|
3456
|
+
unsignedAction?: unknown;
|
|
3073
3457
|
}>]>>;
|
|
3074
3458
|
}, "strip", z.ZodTypeAny, {
|
|
3075
3459
|
type: "BatchTransactions";
|
|
@@ -3191,6 +3575,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
3191
3575
|
amount: string;
|
|
3192
3576
|
fromAddress: string;
|
|
3193
3577
|
amountUSDValue?: string | undefined;
|
|
3578
|
+
} | {
|
|
3579
|
+
nonce: number;
|
|
3580
|
+
action: "perpetualsOrder";
|
|
3581
|
+
size: string;
|
|
3582
|
+
side: "buy" | "sell";
|
|
3583
|
+
network: "testnet" | "mainnet";
|
|
3584
|
+
endpoint: string;
|
|
3585
|
+
coin: string;
|
|
3586
|
+
markPx: string;
|
|
3587
|
+
reduceOnly: boolean;
|
|
3588
|
+
unsignedAction?: unknown;
|
|
3589
|
+
notionalUsd?: string | undefined;
|
|
3590
|
+
leverage?: {
|
|
3591
|
+
type: "cross" | "isolated";
|
|
3592
|
+
value: number;
|
|
3593
|
+
} | undefined;
|
|
3594
|
+
} | {
|
|
3595
|
+
nonce: number;
|
|
3596
|
+
action: "perpetualsUpdateLeverage";
|
|
3597
|
+
network: "testnet" | "mainnet";
|
|
3598
|
+
endpoint: string;
|
|
3599
|
+
coin: string;
|
|
3600
|
+
leverage: {
|
|
3601
|
+
type: "cross" | "isolated";
|
|
3602
|
+
value: number;
|
|
3603
|
+
};
|
|
3604
|
+
unsignedAction?: unknown;
|
|
3605
|
+
} | {
|
|
3606
|
+
nonce: number;
|
|
3607
|
+
action: "perpetualsClosePosition";
|
|
3608
|
+
size: string;
|
|
3609
|
+
side: "buy" | "sell";
|
|
3610
|
+
network: "testnet" | "mainnet";
|
|
3611
|
+
endpoint: string;
|
|
3612
|
+
coin: string;
|
|
3613
|
+
markPx: string;
|
|
3614
|
+
reduceOnly: true;
|
|
3615
|
+
unsignedAction?: unknown;
|
|
3616
|
+
} | {
|
|
3617
|
+
toAddress: string;
|
|
3618
|
+
chainId: number;
|
|
3619
|
+
action: "hyperliquidDeposit";
|
|
3620
|
+
token: {
|
|
3621
|
+
symbol: string;
|
|
3622
|
+
address: string;
|
|
3623
|
+
};
|
|
3624
|
+
amount: string;
|
|
3625
|
+
fromAddress: string;
|
|
3626
|
+
network: "testnet" | "mainnet";
|
|
3627
|
+
amountUSDValue?: string | undefined;
|
|
3628
|
+
} | {
|
|
3629
|
+
nonce: number;
|
|
3630
|
+
action: "hyperliquidWithdraw";
|
|
3631
|
+
amount: string;
|
|
3632
|
+
network: "testnet" | "mainnet";
|
|
3633
|
+
endpoint: string;
|
|
3634
|
+
destination: string;
|
|
3635
|
+
unsignedAction?: unknown;
|
|
3194
3636
|
} | undefined;
|
|
3195
3637
|
}, {
|
|
3196
3638
|
type: "BatchTransactions";
|
|
@@ -3312,6 +3754,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
3312
3754
|
amount: string;
|
|
3313
3755
|
fromAddress: string;
|
|
3314
3756
|
amountUSDValue?: string | undefined;
|
|
3757
|
+
} | {
|
|
3758
|
+
nonce: number;
|
|
3759
|
+
action: "perpetualsOrder";
|
|
3760
|
+
size: string;
|
|
3761
|
+
side: "buy" | "sell";
|
|
3762
|
+
network: "testnet" | "mainnet";
|
|
3763
|
+
endpoint: string;
|
|
3764
|
+
coin: string;
|
|
3765
|
+
markPx: string;
|
|
3766
|
+
reduceOnly: boolean;
|
|
3767
|
+
unsignedAction?: unknown;
|
|
3768
|
+
notionalUsd?: string | undefined;
|
|
3769
|
+
leverage?: {
|
|
3770
|
+
type: "cross" | "isolated";
|
|
3771
|
+
value: number;
|
|
3772
|
+
} | undefined;
|
|
3773
|
+
} | {
|
|
3774
|
+
nonce: number;
|
|
3775
|
+
action: "perpetualsUpdateLeverage";
|
|
3776
|
+
network: "testnet" | "mainnet";
|
|
3777
|
+
endpoint: string;
|
|
3778
|
+
coin: string;
|
|
3779
|
+
leverage: {
|
|
3780
|
+
type: "cross" | "isolated";
|
|
3781
|
+
value: number;
|
|
3782
|
+
};
|
|
3783
|
+
unsignedAction?: unknown;
|
|
3784
|
+
} | {
|
|
3785
|
+
nonce: number;
|
|
3786
|
+
action: "perpetualsClosePosition";
|
|
3787
|
+
size: string;
|
|
3788
|
+
side: "buy" | "sell";
|
|
3789
|
+
network: "testnet" | "mainnet";
|
|
3790
|
+
endpoint: string;
|
|
3791
|
+
coin: string;
|
|
3792
|
+
markPx: string;
|
|
3793
|
+
reduceOnly: true;
|
|
3794
|
+
unsignedAction?: unknown;
|
|
3795
|
+
} | {
|
|
3796
|
+
toAddress: string;
|
|
3797
|
+
chainId: number;
|
|
3798
|
+
action: "hyperliquidDeposit";
|
|
3799
|
+
token: {
|
|
3800
|
+
symbol: string;
|
|
3801
|
+
address: string;
|
|
3802
|
+
};
|
|
3803
|
+
amount: string;
|
|
3804
|
+
fromAddress: string;
|
|
3805
|
+
network: "testnet" | "mainnet";
|
|
3806
|
+
amountUSDValue?: string | undefined;
|
|
3807
|
+
} | {
|
|
3808
|
+
nonce: number;
|
|
3809
|
+
action: "hyperliquidWithdraw";
|
|
3810
|
+
amount: string;
|
|
3811
|
+
network: "testnet" | "mainnet";
|
|
3812
|
+
endpoint: string;
|
|
3813
|
+
destination: string;
|
|
3814
|
+
unsignedAction?: unknown;
|
|
3315
3815
|
} | undefined;
|
|
3316
3816
|
}>, z.ZodObject<{
|
|
3317
3817
|
type: z.ZodLiteral<"SingleTransaction">;
|
|
@@ -3755,6 +4255,198 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
3755
4255
|
amount: string;
|
|
3756
4256
|
fromAddress: string;
|
|
3757
4257
|
amountUSDValue?: string | undefined;
|
|
4258
|
+
}>, z.ZodObject<{
|
|
4259
|
+
action: z.ZodLiteral<"perpetualsOrder">;
|
|
4260
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
4261
|
+
endpoint: z.ZodString;
|
|
4262
|
+
unsignedAction: z.ZodUnknown;
|
|
4263
|
+
nonce: z.ZodNumber;
|
|
4264
|
+
coin: z.ZodString;
|
|
4265
|
+
side: z.ZodEnum<["buy", "sell"]>;
|
|
4266
|
+
size: z.ZodString;
|
|
4267
|
+
notionalUsd: z.ZodOptional<z.ZodString>;
|
|
4268
|
+
markPx: z.ZodString;
|
|
4269
|
+
leverage: z.ZodOptional<z.ZodObject<{
|
|
4270
|
+
type: z.ZodEnum<["cross", "isolated"]>;
|
|
4271
|
+
value: z.ZodNumber;
|
|
4272
|
+
}, "strip", z.ZodTypeAny, {
|
|
4273
|
+
type: "cross" | "isolated";
|
|
4274
|
+
value: number;
|
|
4275
|
+
}, {
|
|
4276
|
+
type: "cross" | "isolated";
|
|
4277
|
+
value: number;
|
|
4278
|
+
}>>;
|
|
4279
|
+
reduceOnly: z.ZodBoolean;
|
|
4280
|
+
}, "strip", z.ZodTypeAny, {
|
|
4281
|
+
nonce: number;
|
|
4282
|
+
action: "perpetualsOrder";
|
|
4283
|
+
size: string;
|
|
4284
|
+
side: "buy" | "sell";
|
|
4285
|
+
network: "testnet" | "mainnet";
|
|
4286
|
+
endpoint: string;
|
|
4287
|
+
coin: string;
|
|
4288
|
+
markPx: string;
|
|
4289
|
+
reduceOnly: boolean;
|
|
4290
|
+
unsignedAction?: unknown;
|
|
4291
|
+
notionalUsd?: string | undefined;
|
|
4292
|
+
leverage?: {
|
|
4293
|
+
type: "cross" | "isolated";
|
|
4294
|
+
value: number;
|
|
4295
|
+
} | undefined;
|
|
4296
|
+
}, {
|
|
4297
|
+
nonce: number;
|
|
4298
|
+
action: "perpetualsOrder";
|
|
4299
|
+
size: string;
|
|
4300
|
+
side: "buy" | "sell";
|
|
4301
|
+
network: "testnet" | "mainnet";
|
|
4302
|
+
endpoint: string;
|
|
4303
|
+
coin: string;
|
|
4304
|
+
markPx: string;
|
|
4305
|
+
reduceOnly: boolean;
|
|
4306
|
+
unsignedAction?: unknown;
|
|
4307
|
+
notionalUsd?: string | undefined;
|
|
4308
|
+
leverage?: {
|
|
4309
|
+
type: "cross" | "isolated";
|
|
4310
|
+
value: number;
|
|
4311
|
+
} | undefined;
|
|
4312
|
+
}>, z.ZodObject<{
|
|
4313
|
+
action: z.ZodLiteral<"perpetualsUpdateLeverage">;
|
|
4314
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
4315
|
+
endpoint: z.ZodString;
|
|
4316
|
+
unsignedAction: z.ZodUnknown;
|
|
4317
|
+
nonce: z.ZodNumber;
|
|
4318
|
+
coin: z.ZodString;
|
|
4319
|
+
leverage: z.ZodObject<{
|
|
4320
|
+
type: z.ZodEnum<["cross", "isolated"]>;
|
|
4321
|
+
value: z.ZodNumber;
|
|
4322
|
+
}, "strip", z.ZodTypeAny, {
|
|
4323
|
+
type: "cross" | "isolated";
|
|
4324
|
+
value: number;
|
|
4325
|
+
}, {
|
|
4326
|
+
type: "cross" | "isolated";
|
|
4327
|
+
value: number;
|
|
4328
|
+
}>;
|
|
4329
|
+
}, "strip", z.ZodTypeAny, {
|
|
4330
|
+
nonce: number;
|
|
4331
|
+
action: "perpetualsUpdateLeverage";
|
|
4332
|
+
network: "testnet" | "mainnet";
|
|
4333
|
+
endpoint: string;
|
|
4334
|
+
coin: string;
|
|
4335
|
+
leverage: {
|
|
4336
|
+
type: "cross" | "isolated";
|
|
4337
|
+
value: number;
|
|
4338
|
+
};
|
|
4339
|
+
unsignedAction?: unknown;
|
|
4340
|
+
}, {
|
|
4341
|
+
nonce: number;
|
|
4342
|
+
action: "perpetualsUpdateLeverage";
|
|
4343
|
+
network: "testnet" | "mainnet";
|
|
4344
|
+
endpoint: string;
|
|
4345
|
+
coin: string;
|
|
4346
|
+
leverage: {
|
|
4347
|
+
type: "cross" | "isolated";
|
|
4348
|
+
value: number;
|
|
4349
|
+
};
|
|
4350
|
+
unsignedAction?: unknown;
|
|
4351
|
+
}>, z.ZodObject<{
|
|
4352
|
+
action: z.ZodLiteral<"perpetualsClosePosition">;
|
|
4353
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
4354
|
+
endpoint: z.ZodString;
|
|
4355
|
+
unsignedAction: z.ZodUnknown;
|
|
4356
|
+
nonce: z.ZodNumber;
|
|
4357
|
+
coin: z.ZodString;
|
|
4358
|
+
size: z.ZodString;
|
|
4359
|
+
side: z.ZodEnum<["buy", "sell"]>;
|
|
4360
|
+
markPx: z.ZodString;
|
|
4361
|
+
reduceOnly: z.ZodLiteral<true>;
|
|
4362
|
+
}, "strip", z.ZodTypeAny, {
|
|
4363
|
+
nonce: number;
|
|
4364
|
+
action: "perpetualsClosePosition";
|
|
4365
|
+
size: string;
|
|
4366
|
+
side: "buy" | "sell";
|
|
4367
|
+
network: "testnet" | "mainnet";
|
|
4368
|
+
endpoint: string;
|
|
4369
|
+
coin: string;
|
|
4370
|
+
markPx: string;
|
|
4371
|
+
reduceOnly: true;
|
|
4372
|
+
unsignedAction?: unknown;
|
|
4373
|
+
}, {
|
|
4374
|
+
nonce: number;
|
|
4375
|
+
action: "perpetualsClosePosition";
|
|
4376
|
+
size: string;
|
|
4377
|
+
side: "buy" | "sell";
|
|
4378
|
+
network: "testnet" | "mainnet";
|
|
4379
|
+
endpoint: string;
|
|
4380
|
+
coin: string;
|
|
4381
|
+
markPx: string;
|
|
4382
|
+
reduceOnly: true;
|
|
4383
|
+
unsignedAction?: unknown;
|
|
4384
|
+
}>, z.ZodObject<{
|
|
4385
|
+
action: z.ZodLiteral<"hyperliquidDeposit">;
|
|
4386
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
4387
|
+
token: z.ZodObject<{
|
|
4388
|
+
symbol: z.ZodString;
|
|
4389
|
+
address: z.ZodString;
|
|
4390
|
+
}, "strip", z.ZodTypeAny, {
|
|
4391
|
+
symbol: string;
|
|
4392
|
+
address: string;
|
|
4393
|
+
}, {
|
|
4394
|
+
symbol: string;
|
|
4395
|
+
address: string;
|
|
4396
|
+
}>;
|
|
4397
|
+
amount: z.ZodString;
|
|
4398
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
4399
|
+
chainId: z.ZodNumber;
|
|
4400
|
+
fromAddress: z.ZodString;
|
|
4401
|
+
toAddress: z.ZodString;
|
|
4402
|
+
}, "strip", z.ZodTypeAny, {
|
|
4403
|
+
toAddress: string;
|
|
4404
|
+
chainId: number;
|
|
4405
|
+
action: "hyperliquidDeposit";
|
|
4406
|
+
token: {
|
|
4407
|
+
symbol: string;
|
|
4408
|
+
address: string;
|
|
4409
|
+
};
|
|
4410
|
+
amount: string;
|
|
4411
|
+
fromAddress: string;
|
|
4412
|
+
network: "testnet" | "mainnet";
|
|
4413
|
+
amountUSDValue?: string | undefined;
|
|
4414
|
+
}, {
|
|
4415
|
+
toAddress: string;
|
|
4416
|
+
chainId: number;
|
|
4417
|
+
action: "hyperliquidDeposit";
|
|
4418
|
+
token: {
|
|
4419
|
+
symbol: string;
|
|
4420
|
+
address: string;
|
|
4421
|
+
};
|
|
4422
|
+
amount: string;
|
|
4423
|
+
fromAddress: string;
|
|
4424
|
+
network: "testnet" | "mainnet";
|
|
4425
|
+
amountUSDValue?: string | undefined;
|
|
4426
|
+
}>, z.ZodObject<{
|
|
4427
|
+
action: z.ZodLiteral<"hyperliquidWithdraw">;
|
|
4428
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
4429
|
+
endpoint: z.ZodString;
|
|
4430
|
+
unsignedAction: z.ZodUnknown;
|
|
4431
|
+
nonce: z.ZodNumber;
|
|
4432
|
+
amount: z.ZodString;
|
|
4433
|
+
destination: z.ZodString;
|
|
4434
|
+
}, "strip", z.ZodTypeAny, {
|
|
4435
|
+
nonce: number;
|
|
4436
|
+
action: "hyperliquidWithdraw";
|
|
4437
|
+
amount: string;
|
|
4438
|
+
network: "testnet" | "mainnet";
|
|
4439
|
+
endpoint: string;
|
|
4440
|
+
destination: string;
|
|
4441
|
+
unsignedAction?: unknown;
|
|
4442
|
+
}, {
|
|
4443
|
+
nonce: number;
|
|
4444
|
+
action: "hyperliquidWithdraw";
|
|
4445
|
+
amount: string;
|
|
4446
|
+
network: "testnet" | "mainnet";
|
|
4447
|
+
endpoint: string;
|
|
4448
|
+
destination: string;
|
|
4449
|
+
unsignedAction?: unknown;
|
|
3758
4450
|
}>]>>;
|
|
3759
4451
|
}, "strip", z.ZodTypeAny, {
|
|
3760
4452
|
type: "SingleTransaction";
|
|
@@ -3876,6 +4568,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
3876
4568
|
amount: string;
|
|
3877
4569
|
fromAddress: string;
|
|
3878
4570
|
amountUSDValue?: string | undefined;
|
|
4571
|
+
} | {
|
|
4572
|
+
nonce: number;
|
|
4573
|
+
action: "perpetualsOrder";
|
|
4574
|
+
size: string;
|
|
4575
|
+
side: "buy" | "sell";
|
|
4576
|
+
network: "testnet" | "mainnet";
|
|
4577
|
+
endpoint: string;
|
|
4578
|
+
coin: string;
|
|
4579
|
+
markPx: string;
|
|
4580
|
+
reduceOnly: boolean;
|
|
4581
|
+
unsignedAction?: unknown;
|
|
4582
|
+
notionalUsd?: string | undefined;
|
|
4583
|
+
leverage?: {
|
|
4584
|
+
type: "cross" | "isolated";
|
|
4585
|
+
value: number;
|
|
4586
|
+
} | undefined;
|
|
4587
|
+
} | {
|
|
4588
|
+
nonce: number;
|
|
4589
|
+
action: "perpetualsUpdateLeverage";
|
|
4590
|
+
network: "testnet" | "mainnet";
|
|
4591
|
+
endpoint: string;
|
|
4592
|
+
coin: string;
|
|
4593
|
+
leverage: {
|
|
4594
|
+
type: "cross" | "isolated";
|
|
4595
|
+
value: number;
|
|
4596
|
+
};
|
|
4597
|
+
unsignedAction?: unknown;
|
|
4598
|
+
} | {
|
|
4599
|
+
nonce: number;
|
|
4600
|
+
action: "perpetualsClosePosition";
|
|
4601
|
+
size: string;
|
|
4602
|
+
side: "buy" | "sell";
|
|
4603
|
+
network: "testnet" | "mainnet";
|
|
4604
|
+
endpoint: string;
|
|
4605
|
+
coin: string;
|
|
4606
|
+
markPx: string;
|
|
4607
|
+
reduceOnly: true;
|
|
4608
|
+
unsignedAction?: unknown;
|
|
4609
|
+
} | {
|
|
4610
|
+
toAddress: string;
|
|
4611
|
+
chainId: number;
|
|
4612
|
+
action: "hyperliquidDeposit";
|
|
4613
|
+
token: {
|
|
4614
|
+
symbol: string;
|
|
4615
|
+
address: string;
|
|
4616
|
+
};
|
|
4617
|
+
amount: string;
|
|
4618
|
+
fromAddress: string;
|
|
4619
|
+
network: "testnet" | "mainnet";
|
|
4620
|
+
amountUSDValue?: string | undefined;
|
|
4621
|
+
} | {
|
|
4622
|
+
nonce: number;
|
|
4623
|
+
action: "hyperliquidWithdraw";
|
|
4624
|
+
amount: string;
|
|
4625
|
+
network: "testnet" | "mainnet";
|
|
4626
|
+
endpoint: string;
|
|
4627
|
+
destination: string;
|
|
4628
|
+
unsignedAction?: unknown;
|
|
3879
4629
|
} | undefined;
|
|
3880
4630
|
}, {
|
|
3881
4631
|
type: "SingleTransaction";
|
|
@@ -3997,6 +4747,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
3997
4747
|
amount: string;
|
|
3998
4748
|
fromAddress: string;
|
|
3999
4749
|
amountUSDValue?: string | undefined;
|
|
4750
|
+
} | {
|
|
4751
|
+
nonce: number;
|
|
4752
|
+
action: "perpetualsOrder";
|
|
4753
|
+
size: string;
|
|
4754
|
+
side: "buy" | "sell";
|
|
4755
|
+
network: "testnet" | "mainnet";
|
|
4756
|
+
endpoint: string;
|
|
4757
|
+
coin: string;
|
|
4758
|
+
markPx: string;
|
|
4759
|
+
reduceOnly: boolean;
|
|
4760
|
+
unsignedAction?: unknown;
|
|
4761
|
+
notionalUsd?: string | undefined;
|
|
4762
|
+
leverage?: {
|
|
4763
|
+
type: "cross" | "isolated";
|
|
4764
|
+
value: number;
|
|
4765
|
+
} | undefined;
|
|
4766
|
+
} | {
|
|
4767
|
+
nonce: number;
|
|
4768
|
+
action: "perpetualsUpdateLeverage";
|
|
4769
|
+
network: "testnet" | "mainnet";
|
|
4770
|
+
endpoint: string;
|
|
4771
|
+
coin: string;
|
|
4772
|
+
leverage: {
|
|
4773
|
+
type: "cross" | "isolated";
|
|
4774
|
+
value: number;
|
|
4775
|
+
};
|
|
4776
|
+
unsignedAction?: unknown;
|
|
4777
|
+
} | {
|
|
4778
|
+
nonce: number;
|
|
4779
|
+
action: "perpetualsClosePosition";
|
|
4780
|
+
size: string;
|
|
4781
|
+
side: "buy" | "sell";
|
|
4782
|
+
network: "testnet" | "mainnet";
|
|
4783
|
+
endpoint: string;
|
|
4784
|
+
coin: string;
|
|
4785
|
+
markPx: string;
|
|
4786
|
+
reduceOnly: true;
|
|
4787
|
+
unsignedAction?: unknown;
|
|
4788
|
+
} | {
|
|
4789
|
+
toAddress: string;
|
|
4790
|
+
chainId: number;
|
|
4791
|
+
action: "hyperliquidDeposit";
|
|
4792
|
+
token: {
|
|
4793
|
+
symbol: string;
|
|
4794
|
+
address: string;
|
|
4795
|
+
};
|
|
4796
|
+
amount: string;
|
|
4797
|
+
fromAddress: string;
|
|
4798
|
+
network: "testnet" | "mainnet";
|
|
4799
|
+
amountUSDValue?: string | undefined;
|
|
4800
|
+
} | {
|
|
4801
|
+
nonce: number;
|
|
4802
|
+
action: "hyperliquidWithdraw";
|
|
4803
|
+
amount: string;
|
|
4804
|
+
network: "testnet" | "mainnet";
|
|
4805
|
+
endpoint: string;
|
|
4806
|
+
destination: string;
|
|
4807
|
+
unsignedAction?: unknown;
|
|
4000
4808
|
} | undefined;
|
|
4001
4809
|
}>, z.ZodObject<{
|
|
4002
4810
|
type: z.ZodLiteral<"SignatureRequests">;
|
|
@@ -5785,11 +6593,203 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
5785
6593
|
amount: string;
|
|
5786
6594
|
fromAddress: string;
|
|
5787
6595
|
amountUSDValue?: string | undefined;
|
|
5788
|
-
}
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
6596
|
+
}>, z.ZodObject<{
|
|
6597
|
+
action: z.ZodLiteral<"perpetualsOrder">;
|
|
6598
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
6599
|
+
endpoint: z.ZodString;
|
|
6600
|
+
unsignedAction: z.ZodUnknown;
|
|
6601
|
+
nonce: z.ZodNumber;
|
|
6602
|
+
coin: z.ZodString;
|
|
6603
|
+
side: z.ZodEnum<["buy", "sell"]>;
|
|
6604
|
+
size: z.ZodString;
|
|
6605
|
+
notionalUsd: z.ZodOptional<z.ZodString>;
|
|
6606
|
+
markPx: z.ZodString;
|
|
6607
|
+
leverage: z.ZodOptional<z.ZodObject<{
|
|
6608
|
+
type: z.ZodEnum<["cross", "isolated"]>;
|
|
6609
|
+
value: z.ZodNumber;
|
|
6610
|
+
}, "strip", z.ZodTypeAny, {
|
|
6611
|
+
type: "cross" | "isolated";
|
|
6612
|
+
value: number;
|
|
6613
|
+
}, {
|
|
6614
|
+
type: "cross" | "isolated";
|
|
6615
|
+
value: number;
|
|
6616
|
+
}>>;
|
|
6617
|
+
reduceOnly: z.ZodBoolean;
|
|
6618
|
+
}, "strip", z.ZodTypeAny, {
|
|
6619
|
+
nonce: number;
|
|
6620
|
+
action: "perpetualsOrder";
|
|
6621
|
+
size: string;
|
|
6622
|
+
side: "buy" | "sell";
|
|
6623
|
+
network: "testnet" | "mainnet";
|
|
6624
|
+
endpoint: string;
|
|
6625
|
+
coin: string;
|
|
6626
|
+
markPx: string;
|
|
6627
|
+
reduceOnly: boolean;
|
|
6628
|
+
unsignedAction?: unknown;
|
|
6629
|
+
notionalUsd?: string | undefined;
|
|
6630
|
+
leverage?: {
|
|
6631
|
+
type: "cross" | "isolated";
|
|
6632
|
+
value: number;
|
|
6633
|
+
} | undefined;
|
|
6634
|
+
}, {
|
|
6635
|
+
nonce: number;
|
|
6636
|
+
action: "perpetualsOrder";
|
|
6637
|
+
size: string;
|
|
6638
|
+
side: "buy" | "sell";
|
|
6639
|
+
network: "testnet" | "mainnet";
|
|
6640
|
+
endpoint: string;
|
|
6641
|
+
coin: string;
|
|
6642
|
+
markPx: string;
|
|
6643
|
+
reduceOnly: boolean;
|
|
6644
|
+
unsignedAction?: unknown;
|
|
6645
|
+
notionalUsd?: string | undefined;
|
|
6646
|
+
leverage?: {
|
|
6647
|
+
type: "cross" | "isolated";
|
|
6648
|
+
value: number;
|
|
6649
|
+
} | undefined;
|
|
6650
|
+
}>, z.ZodObject<{
|
|
6651
|
+
action: z.ZodLiteral<"perpetualsUpdateLeverage">;
|
|
6652
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
6653
|
+
endpoint: z.ZodString;
|
|
6654
|
+
unsignedAction: z.ZodUnknown;
|
|
6655
|
+
nonce: z.ZodNumber;
|
|
6656
|
+
coin: z.ZodString;
|
|
6657
|
+
leverage: z.ZodObject<{
|
|
6658
|
+
type: z.ZodEnum<["cross", "isolated"]>;
|
|
6659
|
+
value: z.ZodNumber;
|
|
6660
|
+
}, "strip", z.ZodTypeAny, {
|
|
6661
|
+
type: "cross" | "isolated";
|
|
6662
|
+
value: number;
|
|
6663
|
+
}, {
|
|
6664
|
+
type: "cross" | "isolated";
|
|
6665
|
+
value: number;
|
|
6666
|
+
}>;
|
|
6667
|
+
}, "strip", z.ZodTypeAny, {
|
|
6668
|
+
nonce: number;
|
|
6669
|
+
action: "perpetualsUpdateLeverage";
|
|
6670
|
+
network: "testnet" | "mainnet";
|
|
6671
|
+
endpoint: string;
|
|
6672
|
+
coin: string;
|
|
6673
|
+
leverage: {
|
|
6674
|
+
type: "cross" | "isolated";
|
|
6675
|
+
value: number;
|
|
6676
|
+
};
|
|
6677
|
+
unsignedAction?: unknown;
|
|
6678
|
+
}, {
|
|
6679
|
+
nonce: number;
|
|
6680
|
+
action: "perpetualsUpdateLeverage";
|
|
6681
|
+
network: "testnet" | "mainnet";
|
|
6682
|
+
endpoint: string;
|
|
6683
|
+
coin: string;
|
|
6684
|
+
leverage: {
|
|
6685
|
+
type: "cross" | "isolated";
|
|
6686
|
+
value: number;
|
|
6687
|
+
};
|
|
6688
|
+
unsignedAction?: unknown;
|
|
6689
|
+
}>, z.ZodObject<{
|
|
6690
|
+
action: z.ZodLiteral<"perpetualsClosePosition">;
|
|
6691
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
6692
|
+
endpoint: z.ZodString;
|
|
6693
|
+
unsignedAction: z.ZodUnknown;
|
|
6694
|
+
nonce: z.ZodNumber;
|
|
6695
|
+
coin: z.ZodString;
|
|
6696
|
+
size: z.ZodString;
|
|
6697
|
+
side: z.ZodEnum<["buy", "sell"]>;
|
|
6698
|
+
markPx: z.ZodString;
|
|
6699
|
+
reduceOnly: z.ZodLiteral<true>;
|
|
6700
|
+
}, "strip", z.ZodTypeAny, {
|
|
6701
|
+
nonce: number;
|
|
6702
|
+
action: "perpetualsClosePosition";
|
|
6703
|
+
size: string;
|
|
6704
|
+
side: "buy" | "sell";
|
|
6705
|
+
network: "testnet" | "mainnet";
|
|
6706
|
+
endpoint: string;
|
|
6707
|
+
coin: string;
|
|
6708
|
+
markPx: string;
|
|
6709
|
+
reduceOnly: true;
|
|
6710
|
+
unsignedAction?: unknown;
|
|
6711
|
+
}, {
|
|
6712
|
+
nonce: number;
|
|
6713
|
+
action: "perpetualsClosePosition";
|
|
6714
|
+
size: string;
|
|
6715
|
+
side: "buy" | "sell";
|
|
6716
|
+
network: "testnet" | "mainnet";
|
|
6717
|
+
endpoint: string;
|
|
6718
|
+
coin: string;
|
|
6719
|
+
markPx: string;
|
|
6720
|
+
reduceOnly: true;
|
|
6721
|
+
unsignedAction?: unknown;
|
|
6722
|
+
}>, z.ZodObject<{
|
|
6723
|
+
action: z.ZodLiteral<"hyperliquidDeposit">;
|
|
6724
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
6725
|
+
token: z.ZodObject<{
|
|
6726
|
+
symbol: z.ZodString;
|
|
6727
|
+
address: z.ZodString;
|
|
6728
|
+
}, "strip", z.ZodTypeAny, {
|
|
6729
|
+
symbol: string;
|
|
6730
|
+
address: string;
|
|
6731
|
+
}, {
|
|
6732
|
+
symbol: string;
|
|
6733
|
+
address: string;
|
|
6734
|
+
}>;
|
|
6735
|
+
amount: z.ZodString;
|
|
6736
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
6737
|
+
chainId: z.ZodNumber;
|
|
6738
|
+
fromAddress: z.ZodString;
|
|
6739
|
+
toAddress: z.ZodString;
|
|
6740
|
+
}, "strip", z.ZodTypeAny, {
|
|
6741
|
+
toAddress: string;
|
|
6742
|
+
chainId: number;
|
|
6743
|
+
action: "hyperliquidDeposit";
|
|
6744
|
+
token: {
|
|
6745
|
+
symbol: string;
|
|
6746
|
+
address: string;
|
|
6747
|
+
};
|
|
6748
|
+
amount: string;
|
|
6749
|
+
fromAddress: string;
|
|
6750
|
+
network: "testnet" | "mainnet";
|
|
6751
|
+
amountUSDValue?: string | undefined;
|
|
6752
|
+
}, {
|
|
6753
|
+
toAddress: string;
|
|
6754
|
+
chainId: number;
|
|
6755
|
+
action: "hyperliquidDeposit";
|
|
6756
|
+
token: {
|
|
6757
|
+
symbol: string;
|
|
6758
|
+
address: string;
|
|
6759
|
+
};
|
|
6760
|
+
amount: string;
|
|
6761
|
+
fromAddress: string;
|
|
6762
|
+
network: "testnet" | "mainnet";
|
|
6763
|
+
amountUSDValue?: string | undefined;
|
|
6764
|
+
}>, z.ZodObject<{
|
|
6765
|
+
action: z.ZodLiteral<"hyperliquidWithdraw">;
|
|
6766
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
6767
|
+
endpoint: z.ZodString;
|
|
6768
|
+
unsignedAction: z.ZodUnknown;
|
|
6769
|
+
nonce: z.ZodNumber;
|
|
6770
|
+
amount: z.ZodString;
|
|
6771
|
+
destination: z.ZodString;
|
|
6772
|
+
}, "strip", z.ZodTypeAny, {
|
|
6773
|
+
nonce: number;
|
|
6774
|
+
action: "hyperliquidWithdraw";
|
|
6775
|
+
amount: string;
|
|
6776
|
+
network: "testnet" | "mainnet";
|
|
6777
|
+
endpoint: string;
|
|
6778
|
+
destination: string;
|
|
6779
|
+
unsignedAction?: unknown;
|
|
6780
|
+
}, {
|
|
6781
|
+
nonce: number;
|
|
6782
|
+
action: "hyperliquidWithdraw";
|
|
6783
|
+
amount: string;
|
|
6784
|
+
network: "testnet" | "mainnet";
|
|
6785
|
+
endpoint: string;
|
|
6786
|
+
destination: string;
|
|
6787
|
+
unsignedAction?: unknown;
|
|
6788
|
+
}>]>>;
|
|
6789
|
+
}, "strip", z.ZodTypeAny, {
|
|
6790
|
+
type: "SignatureRequests";
|
|
6791
|
+
value: {
|
|
6792
|
+
signatureRequests: ({
|
|
5793
6793
|
id: string;
|
|
5794
6794
|
signerAddress: string;
|
|
5795
6795
|
signMethod: "typedData";
|
|
@@ -6097,6 +7097,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
6097
7097
|
amount: string;
|
|
6098
7098
|
fromAddress: string;
|
|
6099
7099
|
amountUSDValue?: string | undefined;
|
|
7100
|
+
} | {
|
|
7101
|
+
nonce: number;
|
|
7102
|
+
action: "perpetualsOrder";
|
|
7103
|
+
size: string;
|
|
7104
|
+
side: "buy" | "sell";
|
|
7105
|
+
network: "testnet" | "mainnet";
|
|
7106
|
+
endpoint: string;
|
|
7107
|
+
coin: string;
|
|
7108
|
+
markPx: string;
|
|
7109
|
+
reduceOnly: boolean;
|
|
7110
|
+
unsignedAction?: unknown;
|
|
7111
|
+
notionalUsd?: string | undefined;
|
|
7112
|
+
leverage?: {
|
|
7113
|
+
type: "cross" | "isolated";
|
|
7114
|
+
value: number;
|
|
7115
|
+
} | undefined;
|
|
7116
|
+
} | {
|
|
7117
|
+
nonce: number;
|
|
7118
|
+
action: "perpetualsUpdateLeverage";
|
|
7119
|
+
network: "testnet" | "mainnet";
|
|
7120
|
+
endpoint: string;
|
|
7121
|
+
coin: string;
|
|
7122
|
+
leverage: {
|
|
7123
|
+
type: "cross" | "isolated";
|
|
7124
|
+
value: number;
|
|
7125
|
+
};
|
|
7126
|
+
unsignedAction?: unknown;
|
|
7127
|
+
} | {
|
|
7128
|
+
nonce: number;
|
|
7129
|
+
action: "perpetualsClosePosition";
|
|
7130
|
+
size: string;
|
|
7131
|
+
side: "buy" | "sell";
|
|
7132
|
+
network: "testnet" | "mainnet";
|
|
7133
|
+
endpoint: string;
|
|
7134
|
+
coin: string;
|
|
7135
|
+
markPx: string;
|
|
7136
|
+
reduceOnly: true;
|
|
7137
|
+
unsignedAction?: unknown;
|
|
7138
|
+
} | {
|
|
7139
|
+
toAddress: string;
|
|
7140
|
+
chainId: number;
|
|
7141
|
+
action: "hyperliquidDeposit";
|
|
7142
|
+
token: {
|
|
7143
|
+
symbol: string;
|
|
7144
|
+
address: string;
|
|
7145
|
+
};
|
|
7146
|
+
amount: string;
|
|
7147
|
+
fromAddress: string;
|
|
7148
|
+
network: "testnet" | "mainnet";
|
|
7149
|
+
amountUSDValue?: string | undefined;
|
|
7150
|
+
} | {
|
|
7151
|
+
nonce: number;
|
|
7152
|
+
action: "hyperliquidWithdraw";
|
|
7153
|
+
amount: string;
|
|
7154
|
+
network: "testnet" | "mainnet";
|
|
7155
|
+
endpoint: string;
|
|
7156
|
+
destination: string;
|
|
7157
|
+
unsignedAction?: unknown;
|
|
6100
7158
|
} | undefined;
|
|
6101
7159
|
}, {
|
|
6102
7160
|
type: "SignatureRequests";
|
|
@@ -6409,6 +7467,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
6409
7467
|
amount: string;
|
|
6410
7468
|
fromAddress: string;
|
|
6411
7469
|
amountUSDValue?: string | undefined;
|
|
7470
|
+
} | {
|
|
7471
|
+
nonce: number;
|
|
7472
|
+
action: "perpetualsOrder";
|
|
7473
|
+
size: string;
|
|
7474
|
+
side: "buy" | "sell";
|
|
7475
|
+
network: "testnet" | "mainnet";
|
|
7476
|
+
endpoint: string;
|
|
7477
|
+
coin: string;
|
|
7478
|
+
markPx: string;
|
|
7479
|
+
reduceOnly: boolean;
|
|
7480
|
+
unsignedAction?: unknown;
|
|
7481
|
+
notionalUsd?: string | undefined;
|
|
7482
|
+
leverage?: {
|
|
7483
|
+
type: "cross" | "isolated";
|
|
7484
|
+
value: number;
|
|
7485
|
+
} | undefined;
|
|
7486
|
+
} | {
|
|
7487
|
+
nonce: number;
|
|
7488
|
+
action: "perpetualsUpdateLeverage";
|
|
7489
|
+
network: "testnet" | "mainnet";
|
|
7490
|
+
endpoint: string;
|
|
7491
|
+
coin: string;
|
|
7492
|
+
leverage: {
|
|
7493
|
+
type: "cross" | "isolated";
|
|
7494
|
+
value: number;
|
|
7495
|
+
};
|
|
7496
|
+
unsignedAction?: unknown;
|
|
7497
|
+
} | {
|
|
7498
|
+
nonce: number;
|
|
7499
|
+
action: "perpetualsClosePosition";
|
|
7500
|
+
size: string;
|
|
7501
|
+
side: "buy" | "sell";
|
|
7502
|
+
network: "testnet" | "mainnet";
|
|
7503
|
+
endpoint: string;
|
|
7504
|
+
coin: string;
|
|
7505
|
+
markPx: string;
|
|
7506
|
+
reduceOnly: true;
|
|
7507
|
+
unsignedAction?: unknown;
|
|
7508
|
+
} | {
|
|
7509
|
+
toAddress: string;
|
|
7510
|
+
chainId: number;
|
|
7511
|
+
action: "hyperliquidDeposit";
|
|
7512
|
+
token: {
|
|
7513
|
+
symbol: string;
|
|
7514
|
+
address: string;
|
|
7515
|
+
};
|
|
7516
|
+
amount: string;
|
|
7517
|
+
fromAddress: string;
|
|
7518
|
+
network: "testnet" | "mainnet";
|
|
7519
|
+
amountUSDValue?: string | undefined;
|
|
7520
|
+
} | {
|
|
7521
|
+
nonce: number;
|
|
7522
|
+
action: "hyperliquidWithdraw";
|
|
7523
|
+
amount: string;
|
|
7524
|
+
network: "testnet" | "mainnet";
|
|
7525
|
+
endpoint: string;
|
|
7526
|
+
destination: string;
|
|
7527
|
+
unsignedAction?: unknown;
|
|
6412
7528
|
} | undefined;
|
|
6413
7529
|
}>, z.ZodObject<{
|
|
6414
7530
|
type: z.ZodLiteral<"ActionSequence">;
|
|
@@ -6854,6 +7970,198 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
6854
7970
|
amount: string;
|
|
6855
7971
|
fromAddress: string;
|
|
6856
7972
|
amountUSDValue?: string | undefined;
|
|
7973
|
+
}>, z.ZodObject<{
|
|
7974
|
+
action: z.ZodLiteral<"perpetualsOrder">;
|
|
7975
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
7976
|
+
endpoint: z.ZodString;
|
|
7977
|
+
unsignedAction: z.ZodUnknown;
|
|
7978
|
+
nonce: z.ZodNumber;
|
|
7979
|
+
coin: z.ZodString;
|
|
7980
|
+
side: z.ZodEnum<["buy", "sell"]>;
|
|
7981
|
+
size: z.ZodString;
|
|
7982
|
+
notionalUsd: z.ZodOptional<z.ZodString>;
|
|
7983
|
+
markPx: z.ZodString;
|
|
7984
|
+
leverage: z.ZodOptional<z.ZodObject<{
|
|
7985
|
+
type: z.ZodEnum<["cross", "isolated"]>;
|
|
7986
|
+
value: z.ZodNumber;
|
|
7987
|
+
}, "strip", z.ZodTypeAny, {
|
|
7988
|
+
type: "cross" | "isolated";
|
|
7989
|
+
value: number;
|
|
7990
|
+
}, {
|
|
7991
|
+
type: "cross" | "isolated";
|
|
7992
|
+
value: number;
|
|
7993
|
+
}>>;
|
|
7994
|
+
reduceOnly: z.ZodBoolean;
|
|
7995
|
+
}, "strip", z.ZodTypeAny, {
|
|
7996
|
+
nonce: number;
|
|
7997
|
+
action: "perpetualsOrder";
|
|
7998
|
+
size: string;
|
|
7999
|
+
side: "buy" | "sell";
|
|
8000
|
+
network: "testnet" | "mainnet";
|
|
8001
|
+
endpoint: string;
|
|
8002
|
+
coin: string;
|
|
8003
|
+
markPx: string;
|
|
8004
|
+
reduceOnly: boolean;
|
|
8005
|
+
unsignedAction?: unknown;
|
|
8006
|
+
notionalUsd?: string | undefined;
|
|
8007
|
+
leverage?: {
|
|
8008
|
+
type: "cross" | "isolated";
|
|
8009
|
+
value: number;
|
|
8010
|
+
} | undefined;
|
|
8011
|
+
}, {
|
|
8012
|
+
nonce: number;
|
|
8013
|
+
action: "perpetualsOrder";
|
|
8014
|
+
size: string;
|
|
8015
|
+
side: "buy" | "sell";
|
|
8016
|
+
network: "testnet" | "mainnet";
|
|
8017
|
+
endpoint: string;
|
|
8018
|
+
coin: string;
|
|
8019
|
+
markPx: string;
|
|
8020
|
+
reduceOnly: boolean;
|
|
8021
|
+
unsignedAction?: unknown;
|
|
8022
|
+
notionalUsd?: string | undefined;
|
|
8023
|
+
leverage?: {
|
|
8024
|
+
type: "cross" | "isolated";
|
|
8025
|
+
value: number;
|
|
8026
|
+
} | undefined;
|
|
8027
|
+
}>, z.ZodObject<{
|
|
8028
|
+
action: z.ZodLiteral<"perpetualsUpdateLeverage">;
|
|
8029
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
8030
|
+
endpoint: z.ZodString;
|
|
8031
|
+
unsignedAction: z.ZodUnknown;
|
|
8032
|
+
nonce: z.ZodNumber;
|
|
8033
|
+
coin: z.ZodString;
|
|
8034
|
+
leverage: z.ZodObject<{
|
|
8035
|
+
type: z.ZodEnum<["cross", "isolated"]>;
|
|
8036
|
+
value: z.ZodNumber;
|
|
8037
|
+
}, "strip", z.ZodTypeAny, {
|
|
8038
|
+
type: "cross" | "isolated";
|
|
8039
|
+
value: number;
|
|
8040
|
+
}, {
|
|
8041
|
+
type: "cross" | "isolated";
|
|
8042
|
+
value: number;
|
|
8043
|
+
}>;
|
|
8044
|
+
}, "strip", z.ZodTypeAny, {
|
|
8045
|
+
nonce: number;
|
|
8046
|
+
action: "perpetualsUpdateLeverage";
|
|
8047
|
+
network: "testnet" | "mainnet";
|
|
8048
|
+
endpoint: string;
|
|
8049
|
+
coin: string;
|
|
8050
|
+
leverage: {
|
|
8051
|
+
type: "cross" | "isolated";
|
|
8052
|
+
value: number;
|
|
8053
|
+
};
|
|
8054
|
+
unsignedAction?: unknown;
|
|
8055
|
+
}, {
|
|
8056
|
+
nonce: number;
|
|
8057
|
+
action: "perpetualsUpdateLeverage";
|
|
8058
|
+
network: "testnet" | "mainnet";
|
|
8059
|
+
endpoint: string;
|
|
8060
|
+
coin: string;
|
|
8061
|
+
leverage: {
|
|
8062
|
+
type: "cross" | "isolated";
|
|
8063
|
+
value: number;
|
|
8064
|
+
};
|
|
8065
|
+
unsignedAction?: unknown;
|
|
8066
|
+
}>, z.ZodObject<{
|
|
8067
|
+
action: z.ZodLiteral<"perpetualsClosePosition">;
|
|
8068
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
8069
|
+
endpoint: z.ZodString;
|
|
8070
|
+
unsignedAction: z.ZodUnknown;
|
|
8071
|
+
nonce: z.ZodNumber;
|
|
8072
|
+
coin: z.ZodString;
|
|
8073
|
+
size: z.ZodString;
|
|
8074
|
+
side: z.ZodEnum<["buy", "sell"]>;
|
|
8075
|
+
markPx: z.ZodString;
|
|
8076
|
+
reduceOnly: z.ZodLiteral<true>;
|
|
8077
|
+
}, "strip", z.ZodTypeAny, {
|
|
8078
|
+
nonce: number;
|
|
8079
|
+
action: "perpetualsClosePosition";
|
|
8080
|
+
size: string;
|
|
8081
|
+
side: "buy" | "sell";
|
|
8082
|
+
network: "testnet" | "mainnet";
|
|
8083
|
+
endpoint: string;
|
|
8084
|
+
coin: string;
|
|
8085
|
+
markPx: string;
|
|
8086
|
+
reduceOnly: true;
|
|
8087
|
+
unsignedAction?: unknown;
|
|
8088
|
+
}, {
|
|
8089
|
+
nonce: number;
|
|
8090
|
+
action: "perpetualsClosePosition";
|
|
8091
|
+
size: string;
|
|
8092
|
+
side: "buy" | "sell";
|
|
8093
|
+
network: "testnet" | "mainnet";
|
|
8094
|
+
endpoint: string;
|
|
8095
|
+
coin: string;
|
|
8096
|
+
markPx: string;
|
|
8097
|
+
reduceOnly: true;
|
|
8098
|
+
unsignedAction?: unknown;
|
|
8099
|
+
}>, z.ZodObject<{
|
|
8100
|
+
action: z.ZodLiteral<"hyperliquidDeposit">;
|
|
8101
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
8102
|
+
token: z.ZodObject<{
|
|
8103
|
+
symbol: z.ZodString;
|
|
8104
|
+
address: z.ZodString;
|
|
8105
|
+
}, "strip", z.ZodTypeAny, {
|
|
8106
|
+
symbol: string;
|
|
8107
|
+
address: string;
|
|
8108
|
+
}, {
|
|
8109
|
+
symbol: string;
|
|
8110
|
+
address: string;
|
|
8111
|
+
}>;
|
|
8112
|
+
amount: z.ZodString;
|
|
8113
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
8114
|
+
chainId: z.ZodNumber;
|
|
8115
|
+
fromAddress: z.ZodString;
|
|
8116
|
+
toAddress: z.ZodString;
|
|
8117
|
+
}, "strip", z.ZodTypeAny, {
|
|
8118
|
+
toAddress: string;
|
|
8119
|
+
chainId: number;
|
|
8120
|
+
action: "hyperliquidDeposit";
|
|
8121
|
+
token: {
|
|
8122
|
+
symbol: string;
|
|
8123
|
+
address: string;
|
|
8124
|
+
};
|
|
8125
|
+
amount: string;
|
|
8126
|
+
fromAddress: string;
|
|
8127
|
+
network: "testnet" | "mainnet";
|
|
8128
|
+
amountUSDValue?: string | undefined;
|
|
8129
|
+
}, {
|
|
8130
|
+
toAddress: string;
|
|
8131
|
+
chainId: number;
|
|
8132
|
+
action: "hyperliquidDeposit";
|
|
8133
|
+
token: {
|
|
8134
|
+
symbol: string;
|
|
8135
|
+
address: string;
|
|
8136
|
+
};
|
|
8137
|
+
amount: string;
|
|
8138
|
+
fromAddress: string;
|
|
8139
|
+
network: "testnet" | "mainnet";
|
|
8140
|
+
amountUSDValue?: string | undefined;
|
|
8141
|
+
}>, z.ZodObject<{
|
|
8142
|
+
action: z.ZodLiteral<"hyperliquidWithdraw">;
|
|
8143
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
8144
|
+
endpoint: z.ZodString;
|
|
8145
|
+
unsignedAction: z.ZodUnknown;
|
|
8146
|
+
nonce: z.ZodNumber;
|
|
8147
|
+
amount: z.ZodString;
|
|
8148
|
+
destination: z.ZodString;
|
|
8149
|
+
}, "strip", z.ZodTypeAny, {
|
|
8150
|
+
nonce: number;
|
|
8151
|
+
action: "hyperliquidWithdraw";
|
|
8152
|
+
amount: string;
|
|
8153
|
+
network: "testnet" | "mainnet";
|
|
8154
|
+
endpoint: string;
|
|
8155
|
+
destination: string;
|
|
8156
|
+
unsignedAction?: unknown;
|
|
8157
|
+
}, {
|
|
8158
|
+
nonce: number;
|
|
8159
|
+
action: "hyperliquidWithdraw";
|
|
8160
|
+
amount: string;
|
|
8161
|
+
network: "testnet" | "mainnet";
|
|
8162
|
+
endpoint: string;
|
|
8163
|
+
destination: string;
|
|
8164
|
+
unsignedAction?: unknown;
|
|
6857
8165
|
}>]>>;
|
|
6858
8166
|
}, "strip", z.ZodTypeAny, {
|
|
6859
8167
|
type: "SingleTransaction";
|
|
@@ -6975,6 +8283,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
6975
8283
|
amount: string;
|
|
6976
8284
|
fromAddress: string;
|
|
6977
8285
|
amountUSDValue?: string | undefined;
|
|
8286
|
+
} | {
|
|
8287
|
+
nonce: number;
|
|
8288
|
+
action: "perpetualsOrder";
|
|
8289
|
+
size: string;
|
|
8290
|
+
side: "buy" | "sell";
|
|
8291
|
+
network: "testnet" | "mainnet";
|
|
8292
|
+
endpoint: string;
|
|
8293
|
+
coin: string;
|
|
8294
|
+
markPx: string;
|
|
8295
|
+
reduceOnly: boolean;
|
|
8296
|
+
unsignedAction?: unknown;
|
|
8297
|
+
notionalUsd?: string | undefined;
|
|
8298
|
+
leverage?: {
|
|
8299
|
+
type: "cross" | "isolated";
|
|
8300
|
+
value: number;
|
|
8301
|
+
} | undefined;
|
|
8302
|
+
} | {
|
|
8303
|
+
nonce: number;
|
|
8304
|
+
action: "perpetualsUpdateLeverage";
|
|
8305
|
+
network: "testnet" | "mainnet";
|
|
8306
|
+
endpoint: string;
|
|
8307
|
+
coin: string;
|
|
8308
|
+
leverage: {
|
|
8309
|
+
type: "cross" | "isolated";
|
|
8310
|
+
value: number;
|
|
8311
|
+
};
|
|
8312
|
+
unsignedAction?: unknown;
|
|
8313
|
+
} | {
|
|
8314
|
+
nonce: number;
|
|
8315
|
+
action: "perpetualsClosePosition";
|
|
8316
|
+
size: string;
|
|
8317
|
+
side: "buy" | "sell";
|
|
8318
|
+
network: "testnet" | "mainnet";
|
|
8319
|
+
endpoint: string;
|
|
8320
|
+
coin: string;
|
|
8321
|
+
markPx: string;
|
|
8322
|
+
reduceOnly: true;
|
|
8323
|
+
unsignedAction?: unknown;
|
|
8324
|
+
} | {
|
|
8325
|
+
toAddress: string;
|
|
8326
|
+
chainId: number;
|
|
8327
|
+
action: "hyperliquidDeposit";
|
|
8328
|
+
token: {
|
|
8329
|
+
symbol: string;
|
|
8330
|
+
address: string;
|
|
8331
|
+
};
|
|
8332
|
+
amount: string;
|
|
8333
|
+
fromAddress: string;
|
|
8334
|
+
network: "testnet" | "mainnet";
|
|
8335
|
+
amountUSDValue?: string | undefined;
|
|
8336
|
+
} | {
|
|
8337
|
+
nonce: number;
|
|
8338
|
+
action: "hyperliquidWithdraw";
|
|
8339
|
+
amount: string;
|
|
8340
|
+
network: "testnet" | "mainnet";
|
|
8341
|
+
endpoint: string;
|
|
8342
|
+
destination: string;
|
|
8343
|
+
unsignedAction?: unknown;
|
|
6978
8344
|
} | undefined;
|
|
6979
8345
|
}, {
|
|
6980
8346
|
type: "SingleTransaction";
|
|
@@ -7096,6 +8462,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
7096
8462
|
amount: string;
|
|
7097
8463
|
fromAddress: string;
|
|
7098
8464
|
amountUSDValue?: string | undefined;
|
|
8465
|
+
} | {
|
|
8466
|
+
nonce: number;
|
|
8467
|
+
action: "perpetualsOrder";
|
|
8468
|
+
size: string;
|
|
8469
|
+
side: "buy" | "sell";
|
|
8470
|
+
network: "testnet" | "mainnet";
|
|
8471
|
+
endpoint: string;
|
|
8472
|
+
coin: string;
|
|
8473
|
+
markPx: string;
|
|
8474
|
+
reduceOnly: boolean;
|
|
8475
|
+
unsignedAction?: unknown;
|
|
8476
|
+
notionalUsd?: string | undefined;
|
|
8477
|
+
leverage?: {
|
|
8478
|
+
type: "cross" | "isolated";
|
|
8479
|
+
value: number;
|
|
8480
|
+
} | undefined;
|
|
8481
|
+
} | {
|
|
8482
|
+
nonce: number;
|
|
8483
|
+
action: "perpetualsUpdateLeverage";
|
|
8484
|
+
network: "testnet" | "mainnet";
|
|
8485
|
+
endpoint: string;
|
|
8486
|
+
coin: string;
|
|
8487
|
+
leverage: {
|
|
8488
|
+
type: "cross" | "isolated";
|
|
8489
|
+
value: number;
|
|
8490
|
+
};
|
|
8491
|
+
unsignedAction?: unknown;
|
|
8492
|
+
} | {
|
|
8493
|
+
nonce: number;
|
|
8494
|
+
action: "perpetualsClosePosition";
|
|
8495
|
+
size: string;
|
|
8496
|
+
side: "buy" | "sell";
|
|
8497
|
+
network: "testnet" | "mainnet";
|
|
8498
|
+
endpoint: string;
|
|
8499
|
+
coin: string;
|
|
8500
|
+
markPx: string;
|
|
8501
|
+
reduceOnly: true;
|
|
8502
|
+
unsignedAction?: unknown;
|
|
8503
|
+
} | {
|
|
8504
|
+
toAddress: string;
|
|
8505
|
+
chainId: number;
|
|
8506
|
+
action: "hyperliquidDeposit";
|
|
8507
|
+
token: {
|
|
8508
|
+
symbol: string;
|
|
8509
|
+
address: string;
|
|
8510
|
+
};
|
|
8511
|
+
amount: string;
|
|
8512
|
+
fromAddress: string;
|
|
8513
|
+
network: "testnet" | "mainnet";
|
|
8514
|
+
amountUSDValue?: string | undefined;
|
|
8515
|
+
} | {
|
|
8516
|
+
nonce: number;
|
|
8517
|
+
action: "hyperliquidWithdraw";
|
|
8518
|
+
amount: string;
|
|
8519
|
+
network: "testnet" | "mainnet";
|
|
8520
|
+
endpoint: string;
|
|
8521
|
+
destination: string;
|
|
8522
|
+
unsignedAction?: unknown;
|
|
7099
8523
|
} | undefined;
|
|
7100
8524
|
}>, z.ZodObject<{
|
|
7101
8525
|
type: z.ZodLiteral<"BatchTransactions">;
|
|
@@ -7539,6 +8963,198 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
7539
8963
|
amount: string;
|
|
7540
8964
|
fromAddress: string;
|
|
7541
8965
|
amountUSDValue?: string | undefined;
|
|
8966
|
+
}>, z.ZodObject<{
|
|
8967
|
+
action: z.ZodLiteral<"perpetualsOrder">;
|
|
8968
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
8969
|
+
endpoint: z.ZodString;
|
|
8970
|
+
unsignedAction: z.ZodUnknown;
|
|
8971
|
+
nonce: z.ZodNumber;
|
|
8972
|
+
coin: z.ZodString;
|
|
8973
|
+
side: z.ZodEnum<["buy", "sell"]>;
|
|
8974
|
+
size: z.ZodString;
|
|
8975
|
+
notionalUsd: z.ZodOptional<z.ZodString>;
|
|
8976
|
+
markPx: z.ZodString;
|
|
8977
|
+
leverage: z.ZodOptional<z.ZodObject<{
|
|
8978
|
+
type: z.ZodEnum<["cross", "isolated"]>;
|
|
8979
|
+
value: z.ZodNumber;
|
|
8980
|
+
}, "strip", z.ZodTypeAny, {
|
|
8981
|
+
type: "cross" | "isolated";
|
|
8982
|
+
value: number;
|
|
8983
|
+
}, {
|
|
8984
|
+
type: "cross" | "isolated";
|
|
8985
|
+
value: number;
|
|
8986
|
+
}>>;
|
|
8987
|
+
reduceOnly: z.ZodBoolean;
|
|
8988
|
+
}, "strip", z.ZodTypeAny, {
|
|
8989
|
+
nonce: number;
|
|
8990
|
+
action: "perpetualsOrder";
|
|
8991
|
+
size: string;
|
|
8992
|
+
side: "buy" | "sell";
|
|
8993
|
+
network: "testnet" | "mainnet";
|
|
8994
|
+
endpoint: string;
|
|
8995
|
+
coin: string;
|
|
8996
|
+
markPx: string;
|
|
8997
|
+
reduceOnly: boolean;
|
|
8998
|
+
unsignedAction?: unknown;
|
|
8999
|
+
notionalUsd?: string | undefined;
|
|
9000
|
+
leverage?: {
|
|
9001
|
+
type: "cross" | "isolated";
|
|
9002
|
+
value: number;
|
|
9003
|
+
} | undefined;
|
|
9004
|
+
}, {
|
|
9005
|
+
nonce: number;
|
|
9006
|
+
action: "perpetualsOrder";
|
|
9007
|
+
size: string;
|
|
9008
|
+
side: "buy" | "sell";
|
|
9009
|
+
network: "testnet" | "mainnet";
|
|
9010
|
+
endpoint: string;
|
|
9011
|
+
coin: string;
|
|
9012
|
+
markPx: string;
|
|
9013
|
+
reduceOnly: boolean;
|
|
9014
|
+
unsignedAction?: unknown;
|
|
9015
|
+
notionalUsd?: string | undefined;
|
|
9016
|
+
leverage?: {
|
|
9017
|
+
type: "cross" | "isolated";
|
|
9018
|
+
value: number;
|
|
9019
|
+
} | undefined;
|
|
9020
|
+
}>, z.ZodObject<{
|
|
9021
|
+
action: z.ZodLiteral<"perpetualsUpdateLeverage">;
|
|
9022
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
9023
|
+
endpoint: z.ZodString;
|
|
9024
|
+
unsignedAction: z.ZodUnknown;
|
|
9025
|
+
nonce: z.ZodNumber;
|
|
9026
|
+
coin: z.ZodString;
|
|
9027
|
+
leverage: z.ZodObject<{
|
|
9028
|
+
type: z.ZodEnum<["cross", "isolated"]>;
|
|
9029
|
+
value: z.ZodNumber;
|
|
9030
|
+
}, "strip", z.ZodTypeAny, {
|
|
9031
|
+
type: "cross" | "isolated";
|
|
9032
|
+
value: number;
|
|
9033
|
+
}, {
|
|
9034
|
+
type: "cross" | "isolated";
|
|
9035
|
+
value: number;
|
|
9036
|
+
}>;
|
|
9037
|
+
}, "strip", z.ZodTypeAny, {
|
|
9038
|
+
nonce: number;
|
|
9039
|
+
action: "perpetualsUpdateLeverage";
|
|
9040
|
+
network: "testnet" | "mainnet";
|
|
9041
|
+
endpoint: string;
|
|
9042
|
+
coin: string;
|
|
9043
|
+
leverage: {
|
|
9044
|
+
type: "cross" | "isolated";
|
|
9045
|
+
value: number;
|
|
9046
|
+
};
|
|
9047
|
+
unsignedAction?: unknown;
|
|
9048
|
+
}, {
|
|
9049
|
+
nonce: number;
|
|
9050
|
+
action: "perpetualsUpdateLeverage";
|
|
9051
|
+
network: "testnet" | "mainnet";
|
|
9052
|
+
endpoint: string;
|
|
9053
|
+
coin: string;
|
|
9054
|
+
leverage: {
|
|
9055
|
+
type: "cross" | "isolated";
|
|
9056
|
+
value: number;
|
|
9057
|
+
};
|
|
9058
|
+
unsignedAction?: unknown;
|
|
9059
|
+
}>, z.ZodObject<{
|
|
9060
|
+
action: z.ZodLiteral<"perpetualsClosePosition">;
|
|
9061
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
9062
|
+
endpoint: z.ZodString;
|
|
9063
|
+
unsignedAction: z.ZodUnknown;
|
|
9064
|
+
nonce: z.ZodNumber;
|
|
9065
|
+
coin: z.ZodString;
|
|
9066
|
+
size: z.ZodString;
|
|
9067
|
+
side: z.ZodEnum<["buy", "sell"]>;
|
|
9068
|
+
markPx: z.ZodString;
|
|
9069
|
+
reduceOnly: z.ZodLiteral<true>;
|
|
9070
|
+
}, "strip", z.ZodTypeAny, {
|
|
9071
|
+
nonce: number;
|
|
9072
|
+
action: "perpetualsClosePosition";
|
|
9073
|
+
size: string;
|
|
9074
|
+
side: "buy" | "sell";
|
|
9075
|
+
network: "testnet" | "mainnet";
|
|
9076
|
+
endpoint: string;
|
|
9077
|
+
coin: string;
|
|
9078
|
+
markPx: string;
|
|
9079
|
+
reduceOnly: true;
|
|
9080
|
+
unsignedAction?: unknown;
|
|
9081
|
+
}, {
|
|
9082
|
+
nonce: number;
|
|
9083
|
+
action: "perpetualsClosePosition";
|
|
9084
|
+
size: string;
|
|
9085
|
+
side: "buy" | "sell";
|
|
9086
|
+
network: "testnet" | "mainnet";
|
|
9087
|
+
endpoint: string;
|
|
9088
|
+
coin: string;
|
|
9089
|
+
markPx: string;
|
|
9090
|
+
reduceOnly: true;
|
|
9091
|
+
unsignedAction?: unknown;
|
|
9092
|
+
}>, z.ZodObject<{
|
|
9093
|
+
action: z.ZodLiteral<"hyperliquidDeposit">;
|
|
9094
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
9095
|
+
token: z.ZodObject<{
|
|
9096
|
+
symbol: z.ZodString;
|
|
9097
|
+
address: z.ZodString;
|
|
9098
|
+
}, "strip", z.ZodTypeAny, {
|
|
9099
|
+
symbol: string;
|
|
9100
|
+
address: string;
|
|
9101
|
+
}, {
|
|
9102
|
+
symbol: string;
|
|
9103
|
+
address: string;
|
|
9104
|
+
}>;
|
|
9105
|
+
amount: z.ZodString;
|
|
9106
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
9107
|
+
chainId: z.ZodNumber;
|
|
9108
|
+
fromAddress: z.ZodString;
|
|
9109
|
+
toAddress: z.ZodString;
|
|
9110
|
+
}, "strip", z.ZodTypeAny, {
|
|
9111
|
+
toAddress: string;
|
|
9112
|
+
chainId: number;
|
|
9113
|
+
action: "hyperliquidDeposit";
|
|
9114
|
+
token: {
|
|
9115
|
+
symbol: string;
|
|
9116
|
+
address: string;
|
|
9117
|
+
};
|
|
9118
|
+
amount: string;
|
|
9119
|
+
fromAddress: string;
|
|
9120
|
+
network: "testnet" | "mainnet";
|
|
9121
|
+
amountUSDValue?: string | undefined;
|
|
9122
|
+
}, {
|
|
9123
|
+
toAddress: string;
|
|
9124
|
+
chainId: number;
|
|
9125
|
+
action: "hyperliquidDeposit";
|
|
9126
|
+
token: {
|
|
9127
|
+
symbol: string;
|
|
9128
|
+
address: string;
|
|
9129
|
+
};
|
|
9130
|
+
amount: string;
|
|
9131
|
+
fromAddress: string;
|
|
9132
|
+
network: "testnet" | "mainnet";
|
|
9133
|
+
amountUSDValue?: string | undefined;
|
|
9134
|
+
}>, z.ZodObject<{
|
|
9135
|
+
action: z.ZodLiteral<"hyperliquidWithdraw">;
|
|
9136
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
9137
|
+
endpoint: z.ZodString;
|
|
9138
|
+
unsignedAction: z.ZodUnknown;
|
|
9139
|
+
nonce: z.ZodNumber;
|
|
9140
|
+
amount: z.ZodString;
|
|
9141
|
+
destination: z.ZodString;
|
|
9142
|
+
}, "strip", z.ZodTypeAny, {
|
|
9143
|
+
nonce: number;
|
|
9144
|
+
action: "hyperliquidWithdraw";
|
|
9145
|
+
amount: string;
|
|
9146
|
+
network: "testnet" | "mainnet";
|
|
9147
|
+
endpoint: string;
|
|
9148
|
+
destination: string;
|
|
9149
|
+
unsignedAction?: unknown;
|
|
9150
|
+
}, {
|
|
9151
|
+
nonce: number;
|
|
9152
|
+
action: "hyperliquidWithdraw";
|
|
9153
|
+
amount: string;
|
|
9154
|
+
network: "testnet" | "mainnet";
|
|
9155
|
+
endpoint: string;
|
|
9156
|
+
destination: string;
|
|
9157
|
+
unsignedAction?: unknown;
|
|
7542
9158
|
}>]>>;
|
|
7543
9159
|
}, "strip", z.ZodTypeAny, {
|
|
7544
9160
|
type: "BatchTransactions";
|
|
@@ -7660,6 +9276,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
7660
9276
|
amount: string;
|
|
7661
9277
|
fromAddress: string;
|
|
7662
9278
|
amountUSDValue?: string | undefined;
|
|
9279
|
+
} | {
|
|
9280
|
+
nonce: number;
|
|
9281
|
+
action: "perpetualsOrder";
|
|
9282
|
+
size: string;
|
|
9283
|
+
side: "buy" | "sell";
|
|
9284
|
+
network: "testnet" | "mainnet";
|
|
9285
|
+
endpoint: string;
|
|
9286
|
+
coin: string;
|
|
9287
|
+
markPx: string;
|
|
9288
|
+
reduceOnly: boolean;
|
|
9289
|
+
unsignedAction?: unknown;
|
|
9290
|
+
notionalUsd?: string | undefined;
|
|
9291
|
+
leverage?: {
|
|
9292
|
+
type: "cross" | "isolated";
|
|
9293
|
+
value: number;
|
|
9294
|
+
} | undefined;
|
|
9295
|
+
} | {
|
|
9296
|
+
nonce: number;
|
|
9297
|
+
action: "perpetualsUpdateLeverage";
|
|
9298
|
+
network: "testnet" | "mainnet";
|
|
9299
|
+
endpoint: string;
|
|
9300
|
+
coin: string;
|
|
9301
|
+
leverage: {
|
|
9302
|
+
type: "cross" | "isolated";
|
|
9303
|
+
value: number;
|
|
9304
|
+
};
|
|
9305
|
+
unsignedAction?: unknown;
|
|
9306
|
+
} | {
|
|
9307
|
+
nonce: number;
|
|
9308
|
+
action: "perpetualsClosePosition";
|
|
9309
|
+
size: string;
|
|
9310
|
+
side: "buy" | "sell";
|
|
9311
|
+
network: "testnet" | "mainnet";
|
|
9312
|
+
endpoint: string;
|
|
9313
|
+
coin: string;
|
|
9314
|
+
markPx: string;
|
|
9315
|
+
reduceOnly: true;
|
|
9316
|
+
unsignedAction?: unknown;
|
|
9317
|
+
} | {
|
|
9318
|
+
toAddress: string;
|
|
9319
|
+
chainId: number;
|
|
9320
|
+
action: "hyperliquidDeposit";
|
|
9321
|
+
token: {
|
|
9322
|
+
symbol: string;
|
|
9323
|
+
address: string;
|
|
9324
|
+
};
|
|
9325
|
+
amount: string;
|
|
9326
|
+
fromAddress: string;
|
|
9327
|
+
network: "testnet" | "mainnet";
|
|
9328
|
+
amountUSDValue?: string | undefined;
|
|
9329
|
+
} | {
|
|
9330
|
+
nonce: number;
|
|
9331
|
+
action: "hyperliquidWithdraw";
|
|
9332
|
+
amount: string;
|
|
9333
|
+
network: "testnet" | "mainnet";
|
|
9334
|
+
endpoint: string;
|
|
9335
|
+
destination: string;
|
|
9336
|
+
unsignedAction?: unknown;
|
|
7663
9337
|
} | undefined;
|
|
7664
9338
|
}, {
|
|
7665
9339
|
type: "BatchTransactions";
|
|
@@ -7781,6 +9455,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
7781
9455
|
amount: string;
|
|
7782
9456
|
fromAddress: string;
|
|
7783
9457
|
amountUSDValue?: string | undefined;
|
|
9458
|
+
} | {
|
|
9459
|
+
nonce: number;
|
|
9460
|
+
action: "perpetualsOrder";
|
|
9461
|
+
size: string;
|
|
9462
|
+
side: "buy" | "sell";
|
|
9463
|
+
network: "testnet" | "mainnet";
|
|
9464
|
+
endpoint: string;
|
|
9465
|
+
coin: string;
|
|
9466
|
+
markPx: string;
|
|
9467
|
+
reduceOnly: boolean;
|
|
9468
|
+
unsignedAction?: unknown;
|
|
9469
|
+
notionalUsd?: string | undefined;
|
|
9470
|
+
leverage?: {
|
|
9471
|
+
type: "cross" | "isolated";
|
|
9472
|
+
value: number;
|
|
9473
|
+
} | undefined;
|
|
9474
|
+
} | {
|
|
9475
|
+
nonce: number;
|
|
9476
|
+
action: "perpetualsUpdateLeverage";
|
|
9477
|
+
network: "testnet" | "mainnet";
|
|
9478
|
+
endpoint: string;
|
|
9479
|
+
coin: string;
|
|
9480
|
+
leverage: {
|
|
9481
|
+
type: "cross" | "isolated";
|
|
9482
|
+
value: number;
|
|
9483
|
+
};
|
|
9484
|
+
unsignedAction?: unknown;
|
|
9485
|
+
} | {
|
|
9486
|
+
nonce: number;
|
|
9487
|
+
action: "perpetualsClosePosition";
|
|
9488
|
+
size: string;
|
|
9489
|
+
side: "buy" | "sell";
|
|
9490
|
+
network: "testnet" | "mainnet";
|
|
9491
|
+
endpoint: string;
|
|
9492
|
+
coin: string;
|
|
9493
|
+
markPx: string;
|
|
9494
|
+
reduceOnly: true;
|
|
9495
|
+
unsignedAction?: unknown;
|
|
9496
|
+
} | {
|
|
9497
|
+
toAddress: string;
|
|
9498
|
+
chainId: number;
|
|
9499
|
+
action: "hyperliquidDeposit";
|
|
9500
|
+
token: {
|
|
9501
|
+
symbol: string;
|
|
9502
|
+
address: string;
|
|
9503
|
+
};
|
|
9504
|
+
amount: string;
|
|
9505
|
+
fromAddress: string;
|
|
9506
|
+
network: "testnet" | "mainnet";
|
|
9507
|
+
amountUSDValue?: string | undefined;
|
|
9508
|
+
} | {
|
|
9509
|
+
nonce: number;
|
|
9510
|
+
action: "hyperliquidWithdraw";
|
|
9511
|
+
amount: string;
|
|
9512
|
+
network: "testnet" | "mainnet";
|
|
9513
|
+
endpoint: string;
|
|
9514
|
+
destination: string;
|
|
9515
|
+
unsignedAction?: unknown;
|
|
7784
9516
|
} | undefined;
|
|
7785
9517
|
}>, z.ZodObject<{
|
|
7786
9518
|
type: z.ZodLiteral<"SignatureRequests">;
|
|
@@ -9511,25 +11243,193 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
9511
11243
|
url?: string | undefined;
|
|
9512
11244
|
}[];
|
|
9513
11245
|
}, {
|
|
9514
|
-
chainId: number;
|
|
9515
|
-
action: "predictionMarketRedeem";
|
|
9516
|
-
protocol: string;
|
|
9517
|
-
positions: {
|
|
9518
|
-
title?: string | undefined;
|
|
9519
|
-
outcome?: string | undefined;
|
|
9520
|
-
currentValue?: string | undefined;
|
|
9521
|
-
size?: string | undefined;
|
|
9522
|
-
curPrice?: string | undefined;
|
|
9523
|
-
cashPnl?: string | undefined;
|
|
9524
|
-
realizedPnl?: string | undefined;
|
|
9525
|
-
icon?: string | undefined;
|
|
9526
|
-
eventSlug?: string | undefined;
|
|
9527
|
-
slug?: string | undefined;
|
|
9528
|
-
url?: string | undefined;
|
|
9529
|
-
}[];
|
|
11246
|
+
chainId: number;
|
|
11247
|
+
action: "predictionMarketRedeem";
|
|
11248
|
+
protocol: string;
|
|
11249
|
+
positions: {
|
|
11250
|
+
title?: string | undefined;
|
|
11251
|
+
outcome?: string | undefined;
|
|
11252
|
+
currentValue?: string | undefined;
|
|
11253
|
+
size?: string | undefined;
|
|
11254
|
+
curPrice?: string | undefined;
|
|
11255
|
+
cashPnl?: string | undefined;
|
|
11256
|
+
realizedPnl?: string | undefined;
|
|
11257
|
+
icon?: string | undefined;
|
|
11258
|
+
eventSlug?: string | undefined;
|
|
11259
|
+
slug?: string | undefined;
|
|
11260
|
+
url?: string | undefined;
|
|
11261
|
+
}[];
|
|
11262
|
+
}>, z.ZodObject<{
|
|
11263
|
+
action: z.ZodLiteral<"predictionMarketWithdraw">;
|
|
11264
|
+
protocol: z.ZodString;
|
|
11265
|
+
token: z.ZodObject<{
|
|
11266
|
+
symbol: z.ZodString;
|
|
11267
|
+
address: z.ZodString;
|
|
11268
|
+
}, "strip", z.ZodTypeAny, {
|
|
11269
|
+
symbol: string;
|
|
11270
|
+
address: string;
|
|
11271
|
+
}, {
|
|
11272
|
+
symbol: string;
|
|
11273
|
+
address: string;
|
|
11274
|
+
}>;
|
|
11275
|
+
amount: z.ZodString;
|
|
11276
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
11277
|
+
fromAddress: z.ZodString;
|
|
11278
|
+
toAddress: z.ZodString;
|
|
11279
|
+
chainId: z.ZodNumber;
|
|
11280
|
+
}, "strip", z.ZodTypeAny, {
|
|
11281
|
+
toAddress: string;
|
|
11282
|
+
chainId: number;
|
|
11283
|
+
action: "predictionMarketWithdraw";
|
|
11284
|
+
protocol: string;
|
|
11285
|
+
token: {
|
|
11286
|
+
symbol: string;
|
|
11287
|
+
address: string;
|
|
11288
|
+
};
|
|
11289
|
+
amount: string;
|
|
11290
|
+
fromAddress: string;
|
|
11291
|
+
amountUSDValue?: string | undefined;
|
|
11292
|
+
}, {
|
|
11293
|
+
toAddress: string;
|
|
11294
|
+
chainId: number;
|
|
11295
|
+
action: "predictionMarketWithdraw";
|
|
11296
|
+
protocol: string;
|
|
11297
|
+
token: {
|
|
11298
|
+
symbol: string;
|
|
11299
|
+
address: string;
|
|
11300
|
+
};
|
|
11301
|
+
amount: string;
|
|
11302
|
+
fromAddress: string;
|
|
11303
|
+
amountUSDValue?: string | undefined;
|
|
11304
|
+
}>, z.ZodObject<{
|
|
11305
|
+
action: z.ZodLiteral<"perpetualsOrder">;
|
|
11306
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
11307
|
+
endpoint: z.ZodString;
|
|
11308
|
+
unsignedAction: z.ZodUnknown;
|
|
11309
|
+
nonce: z.ZodNumber;
|
|
11310
|
+
coin: z.ZodString;
|
|
11311
|
+
side: z.ZodEnum<["buy", "sell"]>;
|
|
11312
|
+
size: z.ZodString;
|
|
11313
|
+
notionalUsd: z.ZodOptional<z.ZodString>;
|
|
11314
|
+
markPx: z.ZodString;
|
|
11315
|
+
leverage: z.ZodOptional<z.ZodObject<{
|
|
11316
|
+
type: z.ZodEnum<["cross", "isolated"]>;
|
|
11317
|
+
value: z.ZodNumber;
|
|
11318
|
+
}, "strip", z.ZodTypeAny, {
|
|
11319
|
+
type: "cross" | "isolated";
|
|
11320
|
+
value: number;
|
|
11321
|
+
}, {
|
|
11322
|
+
type: "cross" | "isolated";
|
|
11323
|
+
value: number;
|
|
11324
|
+
}>>;
|
|
11325
|
+
reduceOnly: z.ZodBoolean;
|
|
11326
|
+
}, "strip", z.ZodTypeAny, {
|
|
11327
|
+
nonce: number;
|
|
11328
|
+
action: "perpetualsOrder";
|
|
11329
|
+
size: string;
|
|
11330
|
+
side: "buy" | "sell";
|
|
11331
|
+
network: "testnet" | "mainnet";
|
|
11332
|
+
endpoint: string;
|
|
11333
|
+
coin: string;
|
|
11334
|
+
markPx: string;
|
|
11335
|
+
reduceOnly: boolean;
|
|
11336
|
+
unsignedAction?: unknown;
|
|
11337
|
+
notionalUsd?: string | undefined;
|
|
11338
|
+
leverage?: {
|
|
11339
|
+
type: "cross" | "isolated";
|
|
11340
|
+
value: number;
|
|
11341
|
+
} | undefined;
|
|
11342
|
+
}, {
|
|
11343
|
+
nonce: number;
|
|
11344
|
+
action: "perpetualsOrder";
|
|
11345
|
+
size: string;
|
|
11346
|
+
side: "buy" | "sell";
|
|
11347
|
+
network: "testnet" | "mainnet";
|
|
11348
|
+
endpoint: string;
|
|
11349
|
+
coin: string;
|
|
11350
|
+
markPx: string;
|
|
11351
|
+
reduceOnly: boolean;
|
|
11352
|
+
unsignedAction?: unknown;
|
|
11353
|
+
notionalUsd?: string | undefined;
|
|
11354
|
+
leverage?: {
|
|
11355
|
+
type: "cross" | "isolated";
|
|
11356
|
+
value: number;
|
|
11357
|
+
} | undefined;
|
|
9530
11358
|
}>, z.ZodObject<{
|
|
9531
|
-
action: z.ZodLiteral<"
|
|
9532
|
-
|
|
11359
|
+
action: z.ZodLiteral<"perpetualsUpdateLeverage">;
|
|
11360
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
11361
|
+
endpoint: z.ZodString;
|
|
11362
|
+
unsignedAction: z.ZodUnknown;
|
|
11363
|
+
nonce: z.ZodNumber;
|
|
11364
|
+
coin: z.ZodString;
|
|
11365
|
+
leverage: z.ZodObject<{
|
|
11366
|
+
type: z.ZodEnum<["cross", "isolated"]>;
|
|
11367
|
+
value: z.ZodNumber;
|
|
11368
|
+
}, "strip", z.ZodTypeAny, {
|
|
11369
|
+
type: "cross" | "isolated";
|
|
11370
|
+
value: number;
|
|
11371
|
+
}, {
|
|
11372
|
+
type: "cross" | "isolated";
|
|
11373
|
+
value: number;
|
|
11374
|
+
}>;
|
|
11375
|
+
}, "strip", z.ZodTypeAny, {
|
|
11376
|
+
nonce: number;
|
|
11377
|
+
action: "perpetualsUpdateLeverage";
|
|
11378
|
+
network: "testnet" | "mainnet";
|
|
11379
|
+
endpoint: string;
|
|
11380
|
+
coin: string;
|
|
11381
|
+
leverage: {
|
|
11382
|
+
type: "cross" | "isolated";
|
|
11383
|
+
value: number;
|
|
11384
|
+
};
|
|
11385
|
+
unsignedAction?: unknown;
|
|
11386
|
+
}, {
|
|
11387
|
+
nonce: number;
|
|
11388
|
+
action: "perpetualsUpdateLeverage";
|
|
11389
|
+
network: "testnet" | "mainnet";
|
|
11390
|
+
endpoint: string;
|
|
11391
|
+
coin: string;
|
|
11392
|
+
leverage: {
|
|
11393
|
+
type: "cross" | "isolated";
|
|
11394
|
+
value: number;
|
|
11395
|
+
};
|
|
11396
|
+
unsignedAction?: unknown;
|
|
11397
|
+
}>, z.ZodObject<{
|
|
11398
|
+
action: z.ZodLiteral<"perpetualsClosePosition">;
|
|
11399
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
11400
|
+
endpoint: z.ZodString;
|
|
11401
|
+
unsignedAction: z.ZodUnknown;
|
|
11402
|
+
nonce: z.ZodNumber;
|
|
11403
|
+
coin: z.ZodString;
|
|
11404
|
+
size: z.ZodString;
|
|
11405
|
+
side: z.ZodEnum<["buy", "sell"]>;
|
|
11406
|
+
markPx: z.ZodString;
|
|
11407
|
+
reduceOnly: z.ZodLiteral<true>;
|
|
11408
|
+
}, "strip", z.ZodTypeAny, {
|
|
11409
|
+
nonce: number;
|
|
11410
|
+
action: "perpetualsClosePosition";
|
|
11411
|
+
size: string;
|
|
11412
|
+
side: "buy" | "sell";
|
|
11413
|
+
network: "testnet" | "mainnet";
|
|
11414
|
+
endpoint: string;
|
|
11415
|
+
coin: string;
|
|
11416
|
+
markPx: string;
|
|
11417
|
+
reduceOnly: true;
|
|
11418
|
+
unsignedAction?: unknown;
|
|
11419
|
+
}, {
|
|
11420
|
+
nonce: number;
|
|
11421
|
+
action: "perpetualsClosePosition";
|
|
11422
|
+
size: string;
|
|
11423
|
+
side: "buy" | "sell";
|
|
11424
|
+
network: "testnet" | "mainnet";
|
|
11425
|
+
endpoint: string;
|
|
11426
|
+
coin: string;
|
|
11427
|
+
markPx: string;
|
|
11428
|
+
reduceOnly: true;
|
|
11429
|
+
unsignedAction?: unknown;
|
|
11430
|
+
}>, z.ZodObject<{
|
|
11431
|
+
action: z.ZodLiteral<"hyperliquidDeposit">;
|
|
11432
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
9533
11433
|
token: z.ZodObject<{
|
|
9534
11434
|
symbol: z.ZodString;
|
|
9535
11435
|
address: z.ZodString;
|
|
@@ -9542,33 +11442,57 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
9542
11442
|
}>;
|
|
9543
11443
|
amount: z.ZodString;
|
|
9544
11444
|
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
11445
|
+
chainId: z.ZodNumber;
|
|
9545
11446
|
fromAddress: z.ZodString;
|
|
9546
11447
|
toAddress: z.ZodString;
|
|
9547
|
-
chainId: z.ZodNumber;
|
|
9548
11448
|
}, "strip", z.ZodTypeAny, {
|
|
9549
11449
|
toAddress: string;
|
|
9550
11450
|
chainId: number;
|
|
9551
|
-
action: "
|
|
9552
|
-
protocol: string;
|
|
11451
|
+
action: "hyperliquidDeposit";
|
|
9553
11452
|
token: {
|
|
9554
11453
|
symbol: string;
|
|
9555
11454
|
address: string;
|
|
9556
11455
|
};
|
|
9557
11456
|
amount: string;
|
|
9558
11457
|
fromAddress: string;
|
|
11458
|
+
network: "testnet" | "mainnet";
|
|
9559
11459
|
amountUSDValue?: string | undefined;
|
|
9560
11460
|
}, {
|
|
9561
11461
|
toAddress: string;
|
|
9562
11462
|
chainId: number;
|
|
9563
|
-
action: "
|
|
9564
|
-
protocol: string;
|
|
11463
|
+
action: "hyperliquidDeposit";
|
|
9565
11464
|
token: {
|
|
9566
11465
|
symbol: string;
|
|
9567
11466
|
address: string;
|
|
9568
11467
|
};
|
|
9569
11468
|
amount: string;
|
|
9570
11469
|
fromAddress: string;
|
|
11470
|
+
network: "testnet" | "mainnet";
|
|
9571
11471
|
amountUSDValue?: string | undefined;
|
|
11472
|
+
}>, z.ZodObject<{
|
|
11473
|
+
action: z.ZodLiteral<"hyperliquidWithdraw">;
|
|
11474
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
11475
|
+
endpoint: z.ZodString;
|
|
11476
|
+
unsignedAction: z.ZodUnknown;
|
|
11477
|
+
nonce: z.ZodNumber;
|
|
11478
|
+
amount: z.ZodString;
|
|
11479
|
+
destination: z.ZodString;
|
|
11480
|
+
}, "strip", z.ZodTypeAny, {
|
|
11481
|
+
nonce: number;
|
|
11482
|
+
action: "hyperliquidWithdraw";
|
|
11483
|
+
amount: string;
|
|
11484
|
+
network: "testnet" | "mainnet";
|
|
11485
|
+
endpoint: string;
|
|
11486
|
+
destination: string;
|
|
11487
|
+
unsignedAction?: unknown;
|
|
11488
|
+
}, {
|
|
11489
|
+
nonce: number;
|
|
11490
|
+
action: "hyperliquidWithdraw";
|
|
11491
|
+
amount: string;
|
|
11492
|
+
network: "testnet" | "mainnet";
|
|
11493
|
+
endpoint: string;
|
|
11494
|
+
destination: string;
|
|
11495
|
+
unsignedAction?: unknown;
|
|
9572
11496
|
}>]>>;
|
|
9573
11497
|
}, "strip", z.ZodTypeAny, {
|
|
9574
11498
|
type: "SignatureRequests";
|
|
@@ -9881,6 +11805,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
9881
11805
|
amount: string;
|
|
9882
11806
|
fromAddress: string;
|
|
9883
11807
|
amountUSDValue?: string | undefined;
|
|
11808
|
+
} | {
|
|
11809
|
+
nonce: number;
|
|
11810
|
+
action: "perpetualsOrder";
|
|
11811
|
+
size: string;
|
|
11812
|
+
side: "buy" | "sell";
|
|
11813
|
+
network: "testnet" | "mainnet";
|
|
11814
|
+
endpoint: string;
|
|
11815
|
+
coin: string;
|
|
11816
|
+
markPx: string;
|
|
11817
|
+
reduceOnly: boolean;
|
|
11818
|
+
unsignedAction?: unknown;
|
|
11819
|
+
notionalUsd?: string | undefined;
|
|
11820
|
+
leverage?: {
|
|
11821
|
+
type: "cross" | "isolated";
|
|
11822
|
+
value: number;
|
|
11823
|
+
} | undefined;
|
|
11824
|
+
} | {
|
|
11825
|
+
nonce: number;
|
|
11826
|
+
action: "perpetualsUpdateLeverage";
|
|
11827
|
+
network: "testnet" | "mainnet";
|
|
11828
|
+
endpoint: string;
|
|
11829
|
+
coin: string;
|
|
11830
|
+
leverage: {
|
|
11831
|
+
type: "cross" | "isolated";
|
|
11832
|
+
value: number;
|
|
11833
|
+
};
|
|
11834
|
+
unsignedAction?: unknown;
|
|
11835
|
+
} | {
|
|
11836
|
+
nonce: number;
|
|
11837
|
+
action: "perpetualsClosePosition";
|
|
11838
|
+
size: string;
|
|
11839
|
+
side: "buy" | "sell";
|
|
11840
|
+
network: "testnet" | "mainnet";
|
|
11841
|
+
endpoint: string;
|
|
11842
|
+
coin: string;
|
|
11843
|
+
markPx: string;
|
|
11844
|
+
reduceOnly: true;
|
|
11845
|
+
unsignedAction?: unknown;
|
|
11846
|
+
} | {
|
|
11847
|
+
toAddress: string;
|
|
11848
|
+
chainId: number;
|
|
11849
|
+
action: "hyperliquidDeposit";
|
|
11850
|
+
token: {
|
|
11851
|
+
symbol: string;
|
|
11852
|
+
address: string;
|
|
11853
|
+
};
|
|
11854
|
+
amount: string;
|
|
11855
|
+
fromAddress: string;
|
|
11856
|
+
network: "testnet" | "mainnet";
|
|
11857
|
+
amountUSDValue?: string | undefined;
|
|
11858
|
+
} | {
|
|
11859
|
+
nonce: number;
|
|
11860
|
+
action: "hyperliquidWithdraw";
|
|
11861
|
+
amount: string;
|
|
11862
|
+
network: "testnet" | "mainnet";
|
|
11863
|
+
endpoint: string;
|
|
11864
|
+
destination: string;
|
|
11865
|
+
unsignedAction?: unknown;
|
|
9884
11866
|
} | undefined;
|
|
9885
11867
|
}, {
|
|
9886
11868
|
type: "SignatureRequests";
|
|
@@ -10193,6 +12175,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
10193
12175
|
amount: string;
|
|
10194
12176
|
fromAddress: string;
|
|
10195
12177
|
amountUSDValue?: string | undefined;
|
|
12178
|
+
} | {
|
|
12179
|
+
nonce: number;
|
|
12180
|
+
action: "perpetualsOrder";
|
|
12181
|
+
size: string;
|
|
12182
|
+
side: "buy" | "sell";
|
|
12183
|
+
network: "testnet" | "mainnet";
|
|
12184
|
+
endpoint: string;
|
|
12185
|
+
coin: string;
|
|
12186
|
+
markPx: string;
|
|
12187
|
+
reduceOnly: boolean;
|
|
12188
|
+
unsignedAction?: unknown;
|
|
12189
|
+
notionalUsd?: string | undefined;
|
|
12190
|
+
leverage?: {
|
|
12191
|
+
type: "cross" | "isolated";
|
|
12192
|
+
value: number;
|
|
12193
|
+
} | undefined;
|
|
12194
|
+
} | {
|
|
12195
|
+
nonce: number;
|
|
12196
|
+
action: "perpetualsUpdateLeverage";
|
|
12197
|
+
network: "testnet" | "mainnet";
|
|
12198
|
+
endpoint: string;
|
|
12199
|
+
coin: string;
|
|
12200
|
+
leverage: {
|
|
12201
|
+
type: "cross" | "isolated";
|
|
12202
|
+
value: number;
|
|
12203
|
+
};
|
|
12204
|
+
unsignedAction?: unknown;
|
|
12205
|
+
} | {
|
|
12206
|
+
nonce: number;
|
|
12207
|
+
action: "perpetualsClosePosition";
|
|
12208
|
+
size: string;
|
|
12209
|
+
side: "buy" | "sell";
|
|
12210
|
+
network: "testnet" | "mainnet";
|
|
12211
|
+
endpoint: string;
|
|
12212
|
+
coin: string;
|
|
12213
|
+
markPx: string;
|
|
12214
|
+
reduceOnly: true;
|
|
12215
|
+
unsignedAction?: unknown;
|
|
12216
|
+
} | {
|
|
12217
|
+
toAddress: string;
|
|
12218
|
+
chainId: number;
|
|
12219
|
+
action: "hyperliquidDeposit";
|
|
12220
|
+
token: {
|
|
12221
|
+
symbol: string;
|
|
12222
|
+
address: string;
|
|
12223
|
+
};
|
|
12224
|
+
amount: string;
|
|
12225
|
+
fromAddress: string;
|
|
12226
|
+
network: "testnet" | "mainnet";
|
|
12227
|
+
amountUSDValue?: string | undefined;
|
|
12228
|
+
} | {
|
|
12229
|
+
nonce: number;
|
|
12230
|
+
action: "hyperliquidWithdraw";
|
|
12231
|
+
amount: string;
|
|
12232
|
+
network: "testnet" | "mainnet";
|
|
12233
|
+
endpoint: string;
|
|
12234
|
+
destination: string;
|
|
12235
|
+
unsignedAction?: unknown;
|
|
10196
12236
|
} | undefined;
|
|
10197
12237
|
}>]>, "many">;
|
|
10198
12238
|
actionMetadata: z.ZodOptional<z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
@@ -10599,6 +12639,198 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
10599
12639
|
amount: string;
|
|
10600
12640
|
fromAddress: string;
|
|
10601
12641
|
amountUSDValue?: string | undefined;
|
|
12642
|
+
}>, z.ZodObject<{
|
|
12643
|
+
action: z.ZodLiteral<"perpetualsOrder">;
|
|
12644
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
12645
|
+
endpoint: z.ZodString;
|
|
12646
|
+
unsignedAction: z.ZodUnknown;
|
|
12647
|
+
nonce: z.ZodNumber;
|
|
12648
|
+
coin: z.ZodString;
|
|
12649
|
+
side: z.ZodEnum<["buy", "sell"]>;
|
|
12650
|
+
size: z.ZodString;
|
|
12651
|
+
notionalUsd: z.ZodOptional<z.ZodString>;
|
|
12652
|
+
markPx: z.ZodString;
|
|
12653
|
+
leverage: z.ZodOptional<z.ZodObject<{
|
|
12654
|
+
type: z.ZodEnum<["cross", "isolated"]>;
|
|
12655
|
+
value: z.ZodNumber;
|
|
12656
|
+
}, "strip", z.ZodTypeAny, {
|
|
12657
|
+
type: "cross" | "isolated";
|
|
12658
|
+
value: number;
|
|
12659
|
+
}, {
|
|
12660
|
+
type: "cross" | "isolated";
|
|
12661
|
+
value: number;
|
|
12662
|
+
}>>;
|
|
12663
|
+
reduceOnly: z.ZodBoolean;
|
|
12664
|
+
}, "strip", z.ZodTypeAny, {
|
|
12665
|
+
nonce: number;
|
|
12666
|
+
action: "perpetualsOrder";
|
|
12667
|
+
size: string;
|
|
12668
|
+
side: "buy" | "sell";
|
|
12669
|
+
network: "testnet" | "mainnet";
|
|
12670
|
+
endpoint: string;
|
|
12671
|
+
coin: string;
|
|
12672
|
+
markPx: string;
|
|
12673
|
+
reduceOnly: boolean;
|
|
12674
|
+
unsignedAction?: unknown;
|
|
12675
|
+
notionalUsd?: string | undefined;
|
|
12676
|
+
leverage?: {
|
|
12677
|
+
type: "cross" | "isolated";
|
|
12678
|
+
value: number;
|
|
12679
|
+
} | undefined;
|
|
12680
|
+
}, {
|
|
12681
|
+
nonce: number;
|
|
12682
|
+
action: "perpetualsOrder";
|
|
12683
|
+
size: string;
|
|
12684
|
+
side: "buy" | "sell";
|
|
12685
|
+
network: "testnet" | "mainnet";
|
|
12686
|
+
endpoint: string;
|
|
12687
|
+
coin: string;
|
|
12688
|
+
markPx: string;
|
|
12689
|
+
reduceOnly: boolean;
|
|
12690
|
+
unsignedAction?: unknown;
|
|
12691
|
+
notionalUsd?: string | undefined;
|
|
12692
|
+
leverage?: {
|
|
12693
|
+
type: "cross" | "isolated";
|
|
12694
|
+
value: number;
|
|
12695
|
+
} | undefined;
|
|
12696
|
+
}>, z.ZodObject<{
|
|
12697
|
+
action: z.ZodLiteral<"perpetualsUpdateLeverage">;
|
|
12698
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
12699
|
+
endpoint: z.ZodString;
|
|
12700
|
+
unsignedAction: z.ZodUnknown;
|
|
12701
|
+
nonce: z.ZodNumber;
|
|
12702
|
+
coin: z.ZodString;
|
|
12703
|
+
leverage: z.ZodObject<{
|
|
12704
|
+
type: z.ZodEnum<["cross", "isolated"]>;
|
|
12705
|
+
value: z.ZodNumber;
|
|
12706
|
+
}, "strip", z.ZodTypeAny, {
|
|
12707
|
+
type: "cross" | "isolated";
|
|
12708
|
+
value: number;
|
|
12709
|
+
}, {
|
|
12710
|
+
type: "cross" | "isolated";
|
|
12711
|
+
value: number;
|
|
12712
|
+
}>;
|
|
12713
|
+
}, "strip", z.ZodTypeAny, {
|
|
12714
|
+
nonce: number;
|
|
12715
|
+
action: "perpetualsUpdateLeverage";
|
|
12716
|
+
network: "testnet" | "mainnet";
|
|
12717
|
+
endpoint: string;
|
|
12718
|
+
coin: string;
|
|
12719
|
+
leverage: {
|
|
12720
|
+
type: "cross" | "isolated";
|
|
12721
|
+
value: number;
|
|
12722
|
+
};
|
|
12723
|
+
unsignedAction?: unknown;
|
|
12724
|
+
}, {
|
|
12725
|
+
nonce: number;
|
|
12726
|
+
action: "perpetualsUpdateLeverage";
|
|
12727
|
+
network: "testnet" | "mainnet";
|
|
12728
|
+
endpoint: string;
|
|
12729
|
+
coin: string;
|
|
12730
|
+
leverage: {
|
|
12731
|
+
type: "cross" | "isolated";
|
|
12732
|
+
value: number;
|
|
12733
|
+
};
|
|
12734
|
+
unsignedAction?: unknown;
|
|
12735
|
+
}>, z.ZodObject<{
|
|
12736
|
+
action: z.ZodLiteral<"perpetualsClosePosition">;
|
|
12737
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
12738
|
+
endpoint: z.ZodString;
|
|
12739
|
+
unsignedAction: z.ZodUnknown;
|
|
12740
|
+
nonce: z.ZodNumber;
|
|
12741
|
+
coin: z.ZodString;
|
|
12742
|
+
size: z.ZodString;
|
|
12743
|
+
side: z.ZodEnum<["buy", "sell"]>;
|
|
12744
|
+
markPx: z.ZodString;
|
|
12745
|
+
reduceOnly: z.ZodLiteral<true>;
|
|
12746
|
+
}, "strip", z.ZodTypeAny, {
|
|
12747
|
+
nonce: number;
|
|
12748
|
+
action: "perpetualsClosePosition";
|
|
12749
|
+
size: string;
|
|
12750
|
+
side: "buy" | "sell";
|
|
12751
|
+
network: "testnet" | "mainnet";
|
|
12752
|
+
endpoint: string;
|
|
12753
|
+
coin: string;
|
|
12754
|
+
markPx: string;
|
|
12755
|
+
reduceOnly: true;
|
|
12756
|
+
unsignedAction?: unknown;
|
|
12757
|
+
}, {
|
|
12758
|
+
nonce: number;
|
|
12759
|
+
action: "perpetualsClosePosition";
|
|
12760
|
+
size: string;
|
|
12761
|
+
side: "buy" | "sell";
|
|
12762
|
+
network: "testnet" | "mainnet";
|
|
12763
|
+
endpoint: string;
|
|
12764
|
+
coin: string;
|
|
12765
|
+
markPx: string;
|
|
12766
|
+
reduceOnly: true;
|
|
12767
|
+
unsignedAction?: unknown;
|
|
12768
|
+
}>, z.ZodObject<{
|
|
12769
|
+
action: z.ZodLiteral<"hyperliquidDeposit">;
|
|
12770
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
12771
|
+
token: z.ZodObject<{
|
|
12772
|
+
symbol: z.ZodString;
|
|
12773
|
+
address: z.ZodString;
|
|
12774
|
+
}, "strip", z.ZodTypeAny, {
|
|
12775
|
+
symbol: string;
|
|
12776
|
+
address: string;
|
|
12777
|
+
}, {
|
|
12778
|
+
symbol: string;
|
|
12779
|
+
address: string;
|
|
12780
|
+
}>;
|
|
12781
|
+
amount: z.ZodString;
|
|
12782
|
+
amountUSDValue: z.ZodOptional<z.ZodString>;
|
|
12783
|
+
chainId: z.ZodNumber;
|
|
12784
|
+
fromAddress: z.ZodString;
|
|
12785
|
+
toAddress: z.ZodString;
|
|
12786
|
+
}, "strip", z.ZodTypeAny, {
|
|
12787
|
+
toAddress: string;
|
|
12788
|
+
chainId: number;
|
|
12789
|
+
action: "hyperliquidDeposit";
|
|
12790
|
+
token: {
|
|
12791
|
+
symbol: string;
|
|
12792
|
+
address: string;
|
|
12793
|
+
};
|
|
12794
|
+
amount: string;
|
|
12795
|
+
fromAddress: string;
|
|
12796
|
+
network: "testnet" | "mainnet";
|
|
12797
|
+
amountUSDValue?: string | undefined;
|
|
12798
|
+
}, {
|
|
12799
|
+
toAddress: string;
|
|
12800
|
+
chainId: number;
|
|
12801
|
+
action: "hyperliquidDeposit";
|
|
12802
|
+
token: {
|
|
12803
|
+
symbol: string;
|
|
12804
|
+
address: string;
|
|
12805
|
+
};
|
|
12806
|
+
amount: string;
|
|
12807
|
+
fromAddress: string;
|
|
12808
|
+
network: "testnet" | "mainnet";
|
|
12809
|
+
amountUSDValue?: string | undefined;
|
|
12810
|
+
}>, z.ZodObject<{
|
|
12811
|
+
action: z.ZodLiteral<"hyperliquidWithdraw">;
|
|
12812
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
12813
|
+
endpoint: z.ZodString;
|
|
12814
|
+
unsignedAction: z.ZodUnknown;
|
|
12815
|
+
nonce: z.ZodNumber;
|
|
12816
|
+
amount: z.ZodString;
|
|
12817
|
+
destination: z.ZodString;
|
|
12818
|
+
}, "strip", z.ZodTypeAny, {
|
|
12819
|
+
nonce: number;
|
|
12820
|
+
action: "hyperliquidWithdraw";
|
|
12821
|
+
amount: string;
|
|
12822
|
+
network: "testnet" | "mainnet";
|
|
12823
|
+
endpoint: string;
|
|
12824
|
+
destination: string;
|
|
12825
|
+
unsignedAction?: unknown;
|
|
12826
|
+
}, {
|
|
12827
|
+
nonce: number;
|
|
12828
|
+
action: "hyperliquidWithdraw";
|
|
12829
|
+
amount: string;
|
|
12830
|
+
network: "testnet" | "mainnet";
|
|
12831
|
+
endpoint: string;
|
|
12832
|
+
destination: string;
|
|
12833
|
+
unsignedAction?: unknown;
|
|
10602
12834
|
}>]>>;
|
|
10603
12835
|
}, "strip", z.ZodTypeAny, {
|
|
10604
12836
|
type: "ActionSequence";
|
|
@@ -10722,6 +12954,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
10722
12954
|
amount: string;
|
|
10723
12955
|
fromAddress: string;
|
|
10724
12956
|
amountUSDValue?: string | undefined;
|
|
12957
|
+
} | {
|
|
12958
|
+
nonce: number;
|
|
12959
|
+
action: "perpetualsOrder";
|
|
12960
|
+
size: string;
|
|
12961
|
+
side: "buy" | "sell";
|
|
12962
|
+
network: "testnet" | "mainnet";
|
|
12963
|
+
endpoint: string;
|
|
12964
|
+
coin: string;
|
|
12965
|
+
markPx: string;
|
|
12966
|
+
reduceOnly: boolean;
|
|
12967
|
+
unsignedAction?: unknown;
|
|
12968
|
+
notionalUsd?: string | undefined;
|
|
12969
|
+
leverage?: {
|
|
12970
|
+
type: "cross" | "isolated";
|
|
12971
|
+
value: number;
|
|
12972
|
+
} | undefined;
|
|
12973
|
+
} | {
|
|
12974
|
+
nonce: number;
|
|
12975
|
+
action: "perpetualsUpdateLeverage";
|
|
12976
|
+
network: "testnet" | "mainnet";
|
|
12977
|
+
endpoint: string;
|
|
12978
|
+
coin: string;
|
|
12979
|
+
leverage: {
|
|
12980
|
+
type: "cross" | "isolated";
|
|
12981
|
+
value: number;
|
|
12982
|
+
};
|
|
12983
|
+
unsignedAction?: unknown;
|
|
12984
|
+
} | {
|
|
12985
|
+
nonce: number;
|
|
12986
|
+
action: "perpetualsClosePosition";
|
|
12987
|
+
size: string;
|
|
12988
|
+
side: "buy" | "sell";
|
|
12989
|
+
network: "testnet" | "mainnet";
|
|
12990
|
+
endpoint: string;
|
|
12991
|
+
coin: string;
|
|
12992
|
+
markPx: string;
|
|
12993
|
+
reduceOnly: true;
|
|
12994
|
+
unsignedAction?: unknown;
|
|
12995
|
+
} | {
|
|
12996
|
+
toAddress: string;
|
|
12997
|
+
chainId: number;
|
|
12998
|
+
action: "hyperliquidDeposit";
|
|
12999
|
+
token: {
|
|
13000
|
+
symbol: string;
|
|
13001
|
+
address: string;
|
|
13002
|
+
};
|
|
13003
|
+
amount: string;
|
|
13004
|
+
fromAddress: string;
|
|
13005
|
+
network: "testnet" | "mainnet";
|
|
13006
|
+
amountUSDValue?: string | undefined;
|
|
13007
|
+
} | {
|
|
13008
|
+
nonce: number;
|
|
13009
|
+
action: "hyperliquidWithdraw";
|
|
13010
|
+
amount: string;
|
|
13011
|
+
network: "testnet" | "mainnet";
|
|
13012
|
+
endpoint: string;
|
|
13013
|
+
destination: string;
|
|
13014
|
+
unsignedAction?: unknown;
|
|
10725
13015
|
} | undefined;
|
|
10726
13016
|
} | {
|
|
10727
13017
|
type: "SingleTransaction";
|
|
@@ -10843,6 +13133,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
10843
13133
|
amount: string;
|
|
10844
13134
|
fromAddress: string;
|
|
10845
13135
|
amountUSDValue?: string | undefined;
|
|
13136
|
+
} | {
|
|
13137
|
+
nonce: number;
|
|
13138
|
+
action: "perpetualsOrder";
|
|
13139
|
+
size: string;
|
|
13140
|
+
side: "buy" | "sell";
|
|
13141
|
+
network: "testnet" | "mainnet";
|
|
13142
|
+
endpoint: string;
|
|
13143
|
+
coin: string;
|
|
13144
|
+
markPx: string;
|
|
13145
|
+
reduceOnly: boolean;
|
|
13146
|
+
unsignedAction?: unknown;
|
|
13147
|
+
notionalUsd?: string | undefined;
|
|
13148
|
+
leverage?: {
|
|
13149
|
+
type: "cross" | "isolated";
|
|
13150
|
+
value: number;
|
|
13151
|
+
} | undefined;
|
|
13152
|
+
} | {
|
|
13153
|
+
nonce: number;
|
|
13154
|
+
action: "perpetualsUpdateLeverage";
|
|
13155
|
+
network: "testnet" | "mainnet";
|
|
13156
|
+
endpoint: string;
|
|
13157
|
+
coin: string;
|
|
13158
|
+
leverage: {
|
|
13159
|
+
type: "cross" | "isolated";
|
|
13160
|
+
value: number;
|
|
13161
|
+
};
|
|
13162
|
+
unsignedAction?: unknown;
|
|
13163
|
+
} | {
|
|
13164
|
+
nonce: number;
|
|
13165
|
+
action: "perpetualsClosePosition";
|
|
13166
|
+
size: string;
|
|
13167
|
+
side: "buy" | "sell";
|
|
13168
|
+
network: "testnet" | "mainnet";
|
|
13169
|
+
endpoint: string;
|
|
13170
|
+
coin: string;
|
|
13171
|
+
markPx: string;
|
|
13172
|
+
reduceOnly: true;
|
|
13173
|
+
unsignedAction?: unknown;
|
|
13174
|
+
} | {
|
|
13175
|
+
toAddress: string;
|
|
13176
|
+
chainId: number;
|
|
13177
|
+
action: "hyperliquidDeposit";
|
|
13178
|
+
token: {
|
|
13179
|
+
symbol: string;
|
|
13180
|
+
address: string;
|
|
13181
|
+
};
|
|
13182
|
+
amount: string;
|
|
13183
|
+
fromAddress: string;
|
|
13184
|
+
network: "testnet" | "mainnet";
|
|
13185
|
+
amountUSDValue?: string | undefined;
|
|
13186
|
+
} | {
|
|
13187
|
+
nonce: number;
|
|
13188
|
+
action: "hyperliquidWithdraw";
|
|
13189
|
+
amount: string;
|
|
13190
|
+
network: "testnet" | "mainnet";
|
|
13191
|
+
endpoint: string;
|
|
13192
|
+
destination: string;
|
|
13193
|
+
unsignedAction?: unknown;
|
|
10846
13194
|
} | undefined;
|
|
10847
13195
|
} | {
|
|
10848
13196
|
type: "SignatureRequests";
|
|
@@ -11155,6 +13503,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
11155
13503
|
amount: string;
|
|
11156
13504
|
fromAddress: string;
|
|
11157
13505
|
amountUSDValue?: string | undefined;
|
|
13506
|
+
} | {
|
|
13507
|
+
nonce: number;
|
|
13508
|
+
action: "perpetualsOrder";
|
|
13509
|
+
size: string;
|
|
13510
|
+
side: "buy" | "sell";
|
|
13511
|
+
network: "testnet" | "mainnet";
|
|
13512
|
+
endpoint: string;
|
|
13513
|
+
coin: string;
|
|
13514
|
+
markPx: string;
|
|
13515
|
+
reduceOnly: boolean;
|
|
13516
|
+
unsignedAction?: unknown;
|
|
13517
|
+
notionalUsd?: string | undefined;
|
|
13518
|
+
leverage?: {
|
|
13519
|
+
type: "cross" | "isolated";
|
|
13520
|
+
value: number;
|
|
13521
|
+
} | undefined;
|
|
13522
|
+
} | {
|
|
13523
|
+
nonce: number;
|
|
13524
|
+
action: "perpetualsUpdateLeverage";
|
|
13525
|
+
network: "testnet" | "mainnet";
|
|
13526
|
+
endpoint: string;
|
|
13527
|
+
coin: string;
|
|
13528
|
+
leverage: {
|
|
13529
|
+
type: "cross" | "isolated";
|
|
13530
|
+
value: number;
|
|
13531
|
+
};
|
|
13532
|
+
unsignedAction?: unknown;
|
|
13533
|
+
} | {
|
|
13534
|
+
nonce: number;
|
|
13535
|
+
action: "perpetualsClosePosition";
|
|
13536
|
+
size: string;
|
|
13537
|
+
side: "buy" | "sell";
|
|
13538
|
+
network: "testnet" | "mainnet";
|
|
13539
|
+
endpoint: string;
|
|
13540
|
+
coin: string;
|
|
13541
|
+
markPx: string;
|
|
13542
|
+
reduceOnly: true;
|
|
13543
|
+
unsignedAction?: unknown;
|
|
13544
|
+
} | {
|
|
13545
|
+
toAddress: string;
|
|
13546
|
+
chainId: number;
|
|
13547
|
+
action: "hyperliquidDeposit";
|
|
13548
|
+
token: {
|
|
13549
|
+
symbol: string;
|
|
13550
|
+
address: string;
|
|
13551
|
+
};
|
|
13552
|
+
amount: string;
|
|
13553
|
+
fromAddress: string;
|
|
13554
|
+
network: "testnet" | "mainnet";
|
|
13555
|
+
amountUSDValue?: string | undefined;
|
|
13556
|
+
} | {
|
|
13557
|
+
nonce: number;
|
|
13558
|
+
action: "hyperliquidWithdraw";
|
|
13559
|
+
amount: string;
|
|
13560
|
+
network: "testnet" | "mainnet";
|
|
13561
|
+
endpoint: string;
|
|
13562
|
+
destination: string;
|
|
13563
|
+
unsignedAction?: unknown;
|
|
11158
13564
|
} | undefined;
|
|
11159
13565
|
})[];
|
|
11160
13566
|
actionMetadata?: {
|
|
@@ -11267,6 +13673,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
11267
13673
|
amount: string;
|
|
11268
13674
|
fromAddress: string;
|
|
11269
13675
|
amountUSDValue?: string | undefined;
|
|
13676
|
+
} | {
|
|
13677
|
+
nonce: number;
|
|
13678
|
+
action: "perpetualsOrder";
|
|
13679
|
+
size: string;
|
|
13680
|
+
side: "buy" | "sell";
|
|
13681
|
+
network: "testnet" | "mainnet";
|
|
13682
|
+
endpoint: string;
|
|
13683
|
+
coin: string;
|
|
13684
|
+
markPx: string;
|
|
13685
|
+
reduceOnly: boolean;
|
|
13686
|
+
unsignedAction?: unknown;
|
|
13687
|
+
notionalUsd?: string | undefined;
|
|
13688
|
+
leverage?: {
|
|
13689
|
+
type: "cross" | "isolated";
|
|
13690
|
+
value: number;
|
|
13691
|
+
} | undefined;
|
|
13692
|
+
} | {
|
|
13693
|
+
nonce: number;
|
|
13694
|
+
action: "perpetualsUpdateLeverage";
|
|
13695
|
+
network: "testnet" | "mainnet";
|
|
13696
|
+
endpoint: string;
|
|
13697
|
+
coin: string;
|
|
13698
|
+
leverage: {
|
|
13699
|
+
type: "cross" | "isolated";
|
|
13700
|
+
value: number;
|
|
13701
|
+
};
|
|
13702
|
+
unsignedAction?: unknown;
|
|
13703
|
+
} | {
|
|
13704
|
+
nonce: number;
|
|
13705
|
+
action: "perpetualsClosePosition";
|
|
13706
|
+
size: string;
|
|
13707
|
+
side: "buy" | "sell";
|
|
13708
|
+
network: "testnet" | "mainnet";
|
|
13709
|
+
endpoint: string;
|
|
13710
|
+
coin: string;
|
|
13711
|
+
markPx: string;
|
|
13712
|
+
reduceOnly: true;
|
|
13713
|
+
unsignedAction?: unknown;
|
|
13714
|
+
} | {
|
|
13715
|
+
toAddress: string;
|
|
13716
|
+
chainId: number;
|
|
13717
|
+
action: "hyperliquidDeposit";
|
|
13718
|
+
token: {
|
|
13719
|
+
symbol: string;
|
|
13720
|
+
address: string;
|
|
13721
|
+
};
|
|
13722
|
+
amount: string;
|
|
13723
|
+
fromAddress: string;
|
|
13724
|
+
network: "testnet" | "mainnet";
|
|
13725
|
+
amountUSDValue?: string | undefined;
|
|
13726
|
+
} | {
|
|
13727
|
+
nonce: number;
|
|
13728
|
+
action: "hyperliquidWithdraw";
|
|
13729
|
+
amount: string;
|
|
13730
|
+
network: "testnet" | "mainnet";
|
|
13731
|
+
endpoint: string;
|
|
13732
|
+
destination: string;
|
|
13733
|
+
unsignedAction?: unknown;
|
|
11270
13734
|
} | undefined;
|
|
11271
13735
|
}, {
|
|
11272
13736
|
type: "ActionSequence";
|
|
@@ -11390,6 +13854,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
11390
13854
|
amount: string;
|
|
11391
13855
|
fromAddress: string;
|
|
11392
13856
|
amountUSDValue?: string | undefined;
|
|
13857
|
+
} | {
|
|
13858
|
+
nonce: number;
|
|
13859
|
+
action: "perpetualsOrder";
|
|
13860
|
+
size: string;
|
|
13861
|
+
side: "buy" | "sell";
|
|
13862
|
+
network: "testnet" | "mainnet";
|
|
13863
|
+
endpoint: string;
|
|
13864
|
+
coin: string;
|
|
13865
|
+
markPx: string;
|
|
13866
|
+
reduceOnly: boolean;
|
|
13867
|
+
unsignedAction?: unknown;
|
|
13868
|
+
notionalUsd?: string | undefined;
|
|
13869
|
+
leverage?: {
|
|
13870
|
+
type: "cross" | "isolated";
|
|
13871
|
+
value: number;
|
|
13872
|
+
} | undefined;
|
|
13873
|
+
} | {
|
|
13874
|
+
nonce: number;
|
|
13875
|
+
action: "perpetualsUpdateLeverage";
|
|
13876
|
+
network: "testnet" | "mainnet";
|
|
13877
|
+
endpoint: string;
|
|
13878
|
+
coin: string;
|
|
13879
|
+
leverage: {
|
|
13880
|
+
type: "cross" | "isolated";
|
|
13881
|
+
value: number;
|
|
13882
|
+
};
|
|
13883
|
+
unsignedAction?: unknown;
|
|
13884
|
+
} | {
|
|
13885
|
+
nonce: number;
|
|
13886
|
+
action: "perpetualsClosePosition";
|
|
13887
|
+
size: string;
|
|
13888
|
+
side: "buy" | "sell";
|
|
13889
|
+
network: "testnet" | "mainnet";
|
|
13890
|
+
endpoint: string;
|
|
13891
|
+
coin: string;
|
|
13892
|
+
markPx: string;
|
|
13893
|
+
reduceOnly: true;
|
|
13894
|
+
unsignedAction?: unknown;
|
|
13895
|
+
} | {
|
|
13896
|
+
toAddress: string;
|
|
13897
|
+
chainId: number;
|
|
13898
|
+
action: "hyperliquidDeposit";
|
|
13899
|
+
token: {
|
|
13900
|
+
symbol: string;
|
|
13901
|
+
address: string;
|
|
13902
|
+
};
|
|
13903
|
+
amount: string;
|
|
13904
|
+
fromAddress: string;
|
|
13905
|
+
network: "testnet" | "mainnet";
|
|
13906
|
+
amountUSDValue?: string | undefined;
|
|
13907
|
+
} | {
|
|
13908
|
+
nonce: number;
|
|
13909
|
+
action: "hyperliquidWithdraw";
|
|
13910
|
+
amount: string;
|
|
13911
|
+
network: "testnet" | "mainnet";
|
|
13912
|
+
endpoint: string;
|
|
13913
|
+
destination: string;
|
|
13914
|
+
unsignedAction?: unknown;
|
|
11393
13915
|
} | undefined;
|
|
11394
13916
|
} | {
|
|
11395
13917
|
type: "SingleTransaction";
|
|
@@ -11511,6 +14033,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
11511
14033
|
amount: string;
|
|
11512
14034
|
fromAddress: string;
|
|
11513
14035
|
amountUSDValue?: string | undefined;
|
|
14036
|
+
} | {
|
|
14037
|
+
nonce: number;
|
|
14038
|
+
action: "perpetualsOrder";
|
|
14039
|
+
size: string;
|
|
14040
|
+
side: "buy" | "sell";
|
|
14041
|
+
network: "testnet" | "mainnet";
|
|
14042
|
+
endpoint: string;
|
|
14043
|
+
coin: string;
|
|
14044
|
+
markPx: string;
|
|
14045
|
+
reduceOnly: boolean;
|
|
14046
|
+
unsignedAction?: unknown;
|
|
14047
|
+
notionalUsd?: string | undefined;
|
|
14048
|
+
leverage?: {
|
|
14049
|
+
type: "cross" | "isolated";
|
|
14050
|
+
value: number;
|
|
14051
|
+
} | undefined;
|
|
14052
|
+
} | {
|
|
14053
|
+
nonce: number;
|
|
14054
|
+
action: "perpetualsUpdateLeverage";
|
|
14055
|
+
network: "testnet" | "mainnet";
|
|
14056
|
+
endpoint: string;
|
|
14057
|
+
coin: string;
|
|
14058
|
+
leverage: {
|
|
14059
|
+
type: "cross" | "isolated";
|
|
14060
|
+
value: number;
|
|
14061
|
+
};
|
|
14062
|
+
unsignedAction?: unknown;
|
|
14063
|
+
} | {
|
|
14064
|
+
nonce: number;
|
|
14065
|
+
action: "perpetualsClosePosition";
|
|
14066
|
+
size: string;
|
|
14067
|
+
side: "buy" | "sell";
|
|
14068
|
+
network: "testnet" | "mainnet";
|
|
14069
|
+
endpoint: string;
|
|
14070
|
+
coin: string;
|
|
14071
|
+
markPx: string;
|
|
14072
|
+
reduceOnly: true;
|
|
14073
|
+
unsignedAction?: unknown;
|
|
14074
|
+
} | {
|
|
14075
|
+
toAddress: string;
|
|
14076
|
+
chainId: number;
|
|
14077
|
+
action: "hyperliquidDeposit";
|
|
14078
|
+
token: {
|
|
14079
|
+
symbol: string;
|
|
14080
|
+
address: string;
|
|
14081
|
+
};
|
|
14082
|
+
amount: string;
|
|
14083
|
+
fromAddress: string;
|
|
14084
|
+
network: "testnet" | "mainnet";
|
|
14085
|
+
amountUSDValue?: string | undefined;
|
|
14086
|
+
} | {
|
|
14087
|
+
nonce: number;
|
|
14088
|
+
action: "hyperliquidWithdraw";
|
|
14089
|
+
amount: string;
|
|
14090
|
+
network: "testnet" | "mainnet";
|
|
14091
|
+
endpoint: string;
|
|
14092
|
+
destination: string;
|
|
14093
|
+
unsignedAction?: unknown;
|
|
11514
14094
|
} | undefined;
|
|
11515
14095
|
} | {
|
|
11516
14096
|
type: "SignatureRequests";
|
|
@@ -11823,6 +14403,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
11823
14403
|
amount: string;
|
|
11824
14404
|
fromAddress: string;
|
|
11825
14405
|
amountUSDValue?: string | undefined;
|
|
14406
|
+
} | {
|
|
14407
|
+
nonce: number;
|
|
14408
|
+
action: "perpetualsOrder";
|
|
14409
|
+
size: string;
|
|
14410
|
+
side: "buy" | "sell";
|
|
14411
|
+
network: "testnet" | "mainnet";
|
|
14412
|
+
endpoint: string;
|
|
14413
|
+
coin: string;
|
|
14414
|
+
markPx: string;
|
|
14415
|
+
reduceOnly: boolean;
|
|
14416
|
+
unsignedAction?: unknown;
|
|
14417
|
+
notionalUsd?: string | undefined;
|
|
14418
|
+
leverage?: {
|
|
14419
|
+
type: "cross" | "isolated";
|
|
14420
|
+
value: number;
|
|
14421
|
+
} | undefined;
|
|
14422
|
+
} | {
|
|
14423
|
+
nonce: number;
|
|
14424
|
+
action: "perpetualsUpdateLeverage";
|
|
14425
|
+
network: "testnet" | "mainnet";
|
|
14426
|
+
endpoint: string;
|
|
14427
|
+
coin: string;
|
|
14428
|
+
leverage: {
|
|
14429
|
+
type: "cross" | "isolated";
|
|
14430
|
+
value: number;
|
|
14431
|
+
};
|
|
14432
|
+
unsignedAction?: unknown;
|
|
14433
|
+
} | {
|
|
14434
|
+
nonce: number;
|
|
14435
|
+
action: "perpetualsClosePosition";
|
|
14436
|
+
size: string;
|
|
14437
|
+
side: "buy" | "sell";
|
|
14438
|
+
network: "testnet" | "mainnet";
|
|
14439
|
+
endpoint: string;
|
|
14440
|
+
coin: string;
|
|
14441
|
+
markPx: string;
|
|
14442
|
+
reduceOnly: true;
|
|
14443
|
+
unsignedAction?: unknown;
|
|
14444
|
+
} | {
|
|
14445
|
+
toAddress: string;
|
|
14446
|
+
chainId: number;
|
|
14447
|
+
action: "hyperliquidDeposit";
|
|
14448
|
+
token: {
|
|
14449
|
+
symbol: string;
|
|
14450
|
+
address: string;
|
|
14451
|
+
};
|
|
14452
|
+
amount: string;
|
|
14453
|
+
fromAddress: string;
|
|
14454
|
+
network: "testnet" | "mainnet";
|
|
14455
|
+
amountUSDValue?: string | undefined;
|
|
14456
|
+
} | {
|
|
14457
|
+
nonce: number;
|
|
14458
|
+
action: "hyperliquidWithdraw";
|
|
14459
|
+
amount: string;
|
|
14460
|
+
network: "testnet" | "mainnet";
|
|
14461
|
+
endpoint: string;
|
|
14462
|
+
destination: string;
|
|
14463
|
+
unsignedAction?: unknown;
|
|
11826
14464
|
} | undefined;
|
|
11827
14465
|
})[];
|
|
11828
14466
|
actionMetadata?: {
|
|
@@ -11935,6 +14573,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
11935
14573
|
amount: string;
|
|
11936
14574
|
fromAddress: string;
|
|
11937
14575
|
amountUSDValue?: string | undefined;
|
|
14576
|
+
} | {
|
|
14577
|
+
nonce: number;
|
|
14578
|
+
action: "perpetualsOrder";
|
|
14579
|
+
size: string;
|
|
14580
|
+
side: "buy" | "sell";
|
|
14581
|
+
network: "testnet" | "mainnet";
|
|
14582
|
+
endpoint: string;
|
|
14583
|
+
coin: string;
|
|
14584
|
+
markPx: string;
|
|
14585
|
+
reduceOnly: boolean;
|
|
14586
|
+
unsignedAction?: unknown;
|
|
14587
|
+
notionalUsd?: string | undefined;
|
|
14588
|
+
leverage?: {
|
|
14589
|
+
type: "cross" | "isolated";
|
|
14590
|
+
value: number;
|
|
14591
|
+
} | undefined;
|
|
14592
|
+
} | {
|
|
14593
|
+
nonce: number;
|
|
14594
|
+
action: "perpetualsUpdateLeverage";
|
|
14595
|
+
network: "testnet" | "mainnet";
|
|
14596
|
+
endpoint: string;
|
|
14597
|
+
coin: string;
|
|
14598
|
+
leverage: {
|
|
14599
|
+
type: "cross" | "isolated";
|
|
14600
|
+
value: number;
|
|
14601
|
+
};
|
|
14602
|
+
unsignedAction?: unknown;
|
|
14603
|
+
} | {
|
|
14604
|
+
nonce: number;
|
|
14605
|
+
action: "perpetualsClosePosition";
|
|
14606
|
+
size: string;
|
|
14607
|
+
side: "buy" | "sell";
|
|
14608
|
+
network: "testnet" | "mainnet";
|
|
14609
|
+
endpoint: string;
|
|
14610
|
+
coin: string;
|
|
14611
|
+
markPx: string;
|
|
14612
|
+
reduceOnly: true;
|
|
14613
|
+
unsignedAction?: unknown;
|
|
14614
|
+
} | {
|
|
14615
|
+
toAddress: string;
|
|
14616
|
+
chainId: number;
|
|
14617
|
+
action: "hyperliquidDeposit";
|
|
14618
|
+
token: {
|
|
14619
|
+
symbol: string;
|
|
14620
|
+
address: string;
|
|
14621
|
+
};
|
|
14622
|
+
amount: string;
|
|
14623
|
+
fromAddress: string;
|
|
14624
|
+
network: "testnet" | "mainnet";
|
|
14625
|
+
amountUSDValue?: string | undefined;
|
|
14626
|
+
} | {
|
|
14627
|
+
nonce: number;
|
|
14628
|
+
action: "hyperliquidWithdraw";
|
|
14629
|
+
amount: string;
|
|
14630
|
+
network: "testnet" | "mainnet";
|
|
14631
|
+
endpoint: string;
|
|
14632
|
+
destination: string;
|
|
14633
|
+
unsignedAction?: unknown;
|
|
11938
14634
|
} | undefined;
|
|
11939
14635
|
}>]>;
|
|
11940
14636
|
} & {
|
|
@@ -12481,6 +15177,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
12481
15177
|
amount: string;
|
|
12482
15178
|
fromAddress: string;
|
|
12483
15179
|
amountUSDValue?: string | undefined;
|
|
15180
|
+
} | {
|
|
15181
|
+
nonce: number;
|
|
15182
|
+
action: "perpetualsOrder";
|
|
15183
|
+
size: string;
|
|
15184
|
+
side: "buy" | "sell";
|
|
15185
|
+
network: "testnet" | "mainnet";
|
|
15186
|
+
endpoint: string;
|
|
15187
|
+
coin: string;
|
|
15188
|
+
markPx: string;
|
|
15189
|
+
reduceOnly: boolean;
|
|
15190
|
+
unsignedAction?: unknown;
|
|
15191
|
+
notionalUsd?: string | undefined;
|
|
15192
|
+
leverage?: {
|
|
15193
|
+
type: "cross" | "isolated";
|
|
15194
|
+
value: number;
|
|
15195
|
+
} | undefined;
|
|
15196
|
+
} | {
|
|
15197
|
+
nonce: number;
|
|
15198
|
+
action: "perpetualsUpdateLeverage";
|
|
15199
|
+
network: "testnet" | "mainnet";
|
|
15200
|
+
endpoint: string;
|
|
15201
|
+
coin: string;
|
|
15202
|
+
leverage: {
|
|
15203
|
+
type: "cross" | "isolated";
|
|
15204
|
+
value: number;
|
|
15205
|
+
};
|
|
15206
|
+
unsignedAction?: unknown;
|
|
15207
|
+
} | {
|
|
15208
|
+
nonce: number;
|
|
15209
|
+
action: "perpetualsClosePosition";
|
|
15210
|
+
size: string;
|
|
15211
|
+
side: "buy" | "sell";
|
|
15212
|
+
network: "testnet" | "mainnet";
|
|
15213
|
+
endpoint: string;
|
|
15214
|
+
coin: string;
|
|
15215
|
+
markPx: string;
|
|
15216
|
+
reduceOnly: true;
|
|
15217
|
+
unsignedAction?: unknown;
|
|
15218
|
+
} | {
|
|
15219
|
+
toAddress: string;
|
|
15220
|
+
chainId: number;
|
|
15221
|
+
action: "hyperliquidDeposit";
|
|
15222
|
+
token: {
|
|
15223
|
+
symbol: string;
|
|
15224
|
+
address: string;
|
|
15225
|
+
};
|
|
15226
|
+
amount: string;
|
|
15227
|
+
fromAddress: string;
|
|
15228
|
+
network: "testnet" | "mainnet";
|
|
15229
|
+
amountUSDValue?: string | undefined;
|
|
15230
|
+
} | {
|
|
15231
|
+
nonce: number;
|
|
15232
|
+
action: "hyperliquidWithdraw";
|
|
15233
|
+
amount: string;
|
|
15234
|
+
network: "testnet" | "mainnet";
|
|
15235
|
+
endpoint: string;
|
|
15236
|
+
destination: string;
|
|
15237
|
+
unsignedAction?: unknown;
|
|
12484
15238
|
} | undefined;
|
|
12485
15239
|
} | {
|
|
12486
15240
|
type: "SingleTransaction";
|
|
@@ -12602,6 +15356,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
12602
15356
|
amount: string;
|
|
12603
15357
|
fromAddress: string;
|
|
12604
15358
|
amountUSDValue?: string | undefined;
|
|
15359
|
+
} | {
|
|
15360
|
+
nonce: number;
|
|
15361
|
+
action: "perpetualsOrder";
|
|
15362
|
+
size: string;
|
|
15363
|
+
side: "buy" | "sell";
|
|
15364
|
+
network: "testnet" | "mainnet";
|
|
15365
|
+
endpoint: string;
|
|
15366
|
+
coin: string;
|
|
15367
|
+
markPx: string;
|
|
15368
|
+
reduceOnly: boolean;
|
|
15369
|
+
unsignedAction?: unknown;
|
|
15370
|
+
notionalUsd?: string | undefined;
|
|
15371
|
+
leverage?: {
|
|
15372
|
+
type: "cross" | "isolated";
|
|
15373
|
+
value: number;
|
|
15374
|
+
} | undefined;
|
|
15375
|
+
} | {
|
|
15376
|
+
nonce: number;
|
|
15377
|
+
action: "perpetualsUpdateLeverage";
|
|
15378
|
+
network: "testnet" | "mainnet";
|
|
15379
|
+
endpoint: string;
|
|
15380
|
+
coin: string;
|
|
15381
|
+
leverage: {
|
|
15382
|
+
type: "cross" | "isolated";
|
|
15383
|
+
value: number;
|
|
15384
|
+
};
|
|
15385
|
+
unsignedAction?: unknown;
|
|
15386
|
+
} | {
|
|
15387
|
+
nonce: number;
|
|
15388
|
+
action: "perpetualsClosePosition";
|
|
15389
|
+
size: string;
|
|
15390
|
+
side: "buy" | "sell";
|
|
15391
|
+
network: "testnet" | "mainnet";
|
|
15392
|
+
endpoint: string;
|
|
15393
|
+
coin: string;
|
|
15394
|
+
markPx: string;
|
|
15395
|
+
reduceOnly: true;
|
|
15396
|
+
unsignedAction?: unknown;
|
|
15397
|
+
} | {
|
|
15398
|
+
toAddress: string;
|
|
15399
|
+
chainId: number;
|
|
15400
|
+
action: "hyperliquidDeposit";
|
|
15401
|
+
token: {
|
|
15402
|
+
symbol: string;
|
|
15403
|
+
address: string;
|
|
15404
|
+
};
|
|
15405
|
+
amount: string;
|
|
15406
|
+
fromAddress: string;
|
|
15407
|
+
network: "testnet" | "mainnet";
|
|
15408
|
+
amountUSDValue?: string | undefined;
|
|
15409
|
+
} | {
|
|
15410
|
+
nonce: number;
|
|
15411
|
+
action: "hyperliquidWithdraw";
|
|
15412
|
+
amount: string;
|
|
15413
|
+
network: "testnet" | "mainnet";
|
|
15414
|
+
endpoint: string;
|
|
15415
|
+
destination: string;
|
|
15416
|
+
unsignedAction?: unknown;
|
|
12605
15417
|
} | undefined;
|
|
12606
15418
|
} | {
|
|
12607
15419
|
type: "SignatureRequests";
|
|
@@ -12914,6 +15726,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
12914
15726
|
amount: string;
|
|
12915
15727
|
fromAddress: string;
|
|
12916
15728
|
amountUSDValue?: string | undefined;
|
|
15729
|
+
} | {
|
|
15730
|
+
nonce: number;
|
|
15731
|
+
action: "perpetualsOrder";
|
|
15732
|
+
size: string;
|
|
15733
|
+
side: "buy" | "sell";
|
|
15734
|
+
network: "testnet" | "mainnet";
|
|
15735
|
+
endpoint: string;
|
|
15736
|
+
coin: string;
|
|
15737
|
+
markPx: string;
|
|
15738
|
+
reduceOnly: boolean;
|
|
15739
|
+
unsignedAction?: unknown;
|
|
15740
|
+
notionalUsd?: string | undefined;
|
|
15741
|
+
leverage?: {
|
|
15742
|
+
type: "cross" | "isolated";
|
|
15743
|
+
value: number;
|
|
15744
|
+
} | undefined;
|
|
15745
|
+
} | {
|
|
15746
|
+
nonce: number;
|
|
15747
|
+
action: "perpetualsUpdateLeverage";
|
|
15748
|
+
network: "testnet" | "mainnet";
|
|
15749
|
+
endpoint: string;
|
|
15750
|
+
coin: string;
|
|
15751
|
+
leverage: {
|
|
15752
|
+
type: "cross" | "isolated";
|
|
15753
|
+
value: number;
|
|
15754
|
+
};
|
|
15755
|
+
unsignedAction?: unknown;
|
|
15756
|
+
} | {
|
|
15757
|
+
nonce: number;
|
|
15758
|
+
action: "perpetualsClosePosition";
|
|
15759
|
+
size: string;
|
|
15760
|
+
side: "buy" | "sell";
|
|
15761
|
+
network: "testnet" | "mainnet";
|
|
15762
|
+
endpoint: string;
|
|
15763
|
+
coin: string;
|
|
15764
|
+
markPx: string;
|
|
15765
|
+
reduceOnly: true;
|
|
15766
|
+
unsignedAction?: unknown;
|
|
15767
|
+
} | {
|
|
15768
|
+
toAddress: string;
|
|
15769
|
+
chainId: number;
|
|
15770
|
+
action: "hyperliquidDeposit";
|
|
15771
|
+
token: {
|
|
15772
|
+
symbol: string;
|
|
15773
|
+
address: string;
|
|
15774
|
+
};
|
|
15775
|
+
amount: string;
|
|
15776
|
+
fromAddress: string;
|
|
15777
|
+
network: "testnet" | "mainnet";
|
|
15778
|
+
amountUSDValue?: string | undefined;
|
|
15779
|
+
} | {
|
|
15780
|
+
nonce: number;
|
|
15781
|
+
action: "hyperliquidWithdraw";
|
|
15782
|
+
amount: string;
|
|
15783
|
+
network: "testnet" | "mainnet";
|
|
15784
|
+
endpoint: string;
|
|
15785
|
+
destination: string;
|
|
15786
|
+
unsignedAction?: unknown;
|
|
12917
15787
|
} | undefined;
|
|
12918
15788
|
} | {
|
|
12919
15789
|
type: "ActionSequence";
|
|
@@ -13037,6 +15907,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
13037
15907
|
amount: string;
|
|
13038
15908
|
fromAddress: string;
|
|
13039
15909
|
amountUSDValue?: string | undefined;
|
|
15910
|
+
} | {
|
|
15911
|
+
nonce: number;
|
|
15912
|
+
action: "perpetualsOrder";
|
|
15913
|
+
size: string;
|
|
15914
|
+
side: "buy" | "sell";
|
|
15915
|
+
network: "testnet" | "mainnet";
|
|
15916
|
+
endpoint: string;
|
|
15917
|
+
coin: string;
|
|
15918
|
+
markPx: string;
|
|
15919
|
+
reduceOnly: boolean;
|
|
15920
|
+
unsignedAction?: unknown;
|
|
15921
|
+
notionalUsd?: string | undefined;
|
|
15922
|
+
leverage?: {
|
|
15923
|
+
type: "cross" | "isolated";
|
|
15924
|
+
value: number;
|
|
15925
|
+
} | undefined;
|
|
15926
|
+
} | {
|
|
15927
|
+
nonce: number;
|
|
15928
|
+
action: "perpetualsUpdateLeverage";
|
|
15929
|
+
network: "testnet" | "mainnet";
|
|
15930
|
+
endpoint: string;
|
|
15931
|
+
coin: string;
|
|
15932
|
+
leverage: {
|
|
15933
|
+
type: "cross" | "isolated";
|
|
15934
|
+
value: number;
|
|
15935
|
+
};
|
|
15936
|
+
unsignedAction?: unknown;
|
|
15937
|
+
} | {
|
|
15938
|
+
nonce: number;
|
|
15939
|
+
action: "perpetualsClosePosition";
|
|
15940
|
+
size: string;
|
|
15941
|
+
side: "buy" | "sell";
|
|
15942
|
+
network: "testnet" | "mainnet";
|
|
15943
|
+
endpoint: string;
|
|
15944
|
+
coin: string;
|
|
15945
|
+
markPx: string;
|
|
15946
|
+
reduceOnly: true;
|
|
15947
|
+
unsignedAction?: unknown;
|
|
15948
|
+
} | {
|
|
15949
|
+
toAddress: string;
|
|
15950
|
+
chainId: number;
|
|
15951
|
+
action: "hyperliquidDeposit";
|
|
15952
|
+
token: {
|
|
15953
|
+
symbol: string;
|
|
15954
|
+
address: string;
|
|
15955
|
+
};
|
|
15956
|
+
amount: string;
|
|
15957
|
+
fromAddress: string;
|
|
15958
|
+
network: "testnet" | "mainnet";
|
|
15959
|
+
amountUSDValue?: string | undefined;
|
|
15960
|
+
} | {
|
|
15961
|
+
nonce: number;
|
|
15962
|
+
action: "hyperliquidWithdraw";
|
|
15963
|
+
amount: string;
|
|
15964
|
+
network: "testnet" | "mainnet";
|
|
15965
|
+
endpoint: string;
|
|
15966
|
+
destination: string;
|
|
15967
|
+
unsignedAction?: unknown;
|
|
13040
15968
|
} | undefined;
|
|
13041
15969
|
} | {
|
|
13042
15970
|
type: "SingleTransaction";
|
|
@@ -13158,6 +16086,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
13158
16086
|
amount: string;
|
|
13159
16087
|
fromAddress: string;
|
|
13160
16088
|
amountUSDValue?: string | undefined;
|
|
16089
|
+
} | {
|
|
16090
|
+
nonce: number;
|
|
16091
|
+
action: "perpetualsOrder";
|
|
16092
|
+
size: string;
|
|
16093
|
+
side: "buy" | "sell";
|
|
16094
|
+
network: "testnet" | "mainnet";
|
|
16095
|
+
endpoint: string;
|
|
16096
|
+
coin: string;
|
|
16097
|
+
markPx: string;
|
|
16098
|
+
reduceOnly: boolean;
|
|
16099
|
+
unsignedAction?: unknown;
|
|
16100
|
+
notionalUsd?: string | undefined;
|
|
16101
|
+
leverage?: {
|
|
16102
|
+
type: "cross" | "isolated";
|
|
16103
|
+
value: number;
|
|
16104
|
+
} | undefined;
|
|
16105
|
+
} | {
|
|
16106
|
+
nonce: number;
|
|
16107
|
+
action: "perpetualsUpdateLeverage";
|
|
16108
|
+
network: "testnet" | "mainnet";
|
|
16109
|
+
endpoint: string;
|
|
16110
|
+
coin: string;
|
|
16111
|
+
leverage: {
|
|
16112
|
+
type: "cross" | "isolated";
|
|
16113
|
+
value: number;
|
|
16114
|
+
};
|
|
16115
|
+
unsignedAction?: unknown;
|
|
16116
|
+
} | {
|
|
16117
|
+
nonce: number;
|
|
16118
|
+
action: "perpetualsClosePosition";
|
|
16119
|
+
size: string;
|
|
16120
|
+
side: "buy" | "sell";
|
|
16121
|
+
network: "testnet" | "mainnet";
|
|
16122
|
+
endpoint: string;
|
|
16123
|
+
coin: string;
|
|
16124
|
+
markPx: string;
|
|
16125
|
+
reduceOnly: true;
|
|
16126
|
+
unsignedAction?: unknown;
|
|
16127
|
+
} | {
|
|
16128
|
+
toAddress: string;
|
|
16129
|
+
chainId: number;
|
|
16130
|
+
action: "hyperliquidDeposit";
|
|
16131
|
+
token: {
|
|
16132
|
+
symbol: string;
|
|
16133
|
+
address: string;
|
|
16134
|
+
};
|
|
16135
|
+
amount: string;
|
|
16136
|
+
fromAddress: string;
|
|
16137
|
+
network: "testnet" | "mainnet";
|
|
16138
|
+
amountUSDValue?: string | undefined;
|
|
16139
|
+
} | {
|
|
16140
|
+
nonce: number;
|
|
16141
|
+
action: "hyperliquidWithdraw";
|
|
16142
|
+
amount: string;
|
|
16143
|
+
network: "testnet" | "mainnet";
|
|
16144
|
+
endpoint: string;
|
|
16145
|
+
destination: string;
|
|
16146
|
+
unsignedAction?: unknown;
|
|
13161
16147
|
} | undefined;
|
|
13162
16148
|
} | {
|
|
13163
16149
|
type: "SignatureRequests";
|
|
@@ -13470,6 +16456,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
13470
16456
|
amount: string;
|
|
13471
16457
|
fromAddress: string;
|
|
13472
16458
|
amountUSDValue?: string | undefined;
|
|
16459
|
+
} | {
|
|
16460
|
+
nonce: number;
|
|
16461
|
+
action: "perpetualsOrder";
|
|
16462
|
+
size: string;
|
|
16463
|
+
side: "buy" | "sell";
|
|
16464
|
+
network: "testnet" | "mainnet";
|
|
16465
|
+
endpoint: string;
|
|
16466
|
+
coin: string;
|
|
16467
|
+
markPx: string;
|
|
16468
|
+
reduceOnly: boolean;
|
|
16469
|
+
unsignedAction?: unknown;
|
|
16470
|
+
notionalUsd?: string | undefined;
|
|
16471
|
+
leverage?: {
|
|
16472
|
+
type: "cross" | "isolated";
|
|
16473
|
+
value: number;
|
|
16474
|
+
} | undefined;
|
|
16475
|
+
} | {
|
|
16476
|
+
nonce: number;
|
|
16477
|
+
action: "perpetualsUpdateLeverage";
|
|
16478
|
+
network: "testnet" | "mainnet";
|
|
16479
|
+
endpoint: string;
|
|
16480
|
+
coin: string;
|
|
16481
|
+
leverage: {
|
|
16482
|
+
type: "cross" | "isolated";
|
|
16483
|
+
value: number;
|
|
16484
|
+
};
|
|
16485
|
+
unsignedAction?: unknown;
|
|
16486
|
+
} | {
|
|
16487
|
+
nonce: number;
|
|
16488
|
+
action: "perpetualsClosePosition";
|
|
16489
|
+
size: string;
|
|
16490
|
+
side: "buy" | "sell";
|
|
16491
|
+
network: "testnet" | "mainnet";
|
|
16492
|
+
endpoint: string;
|
|
16493
|
+
coin: string;
|
|
16494
|
+
markPx: string;
|
|
16495
|
+
reduceOnly: true;
|
|
16496
|
+
unsignedAction?: unknown;
|
|
16497
|
+
} | {
|
|
16498
|
+
toAddress: string;
|
|
16499
|
+
chainId: number;
|
|
16500
|
+
action: "hyperliquidDeposit";
|
|
16501
|
+
token: {
|
|
16502
|
+
symbol: string;
|
|
16503
|
+
address: string;
|
|
16504
|
+
};
|
|
16505
|
+
amount: string;
|
|
16506
|
+
fromAddress: string;
|
|
16507
|
+
network: "testnet" | "mainnet";
|
|
16508
|
+
amountUSDValue?: string | undefined;
|
|
16509
|
+
} | {
|
|
16510
|
+
nonce: number;
|
|
16511
|
+
action: "hyperliquidWithdraw";
|
|
16512
|
+
amount: string;
|
|
16513
|
+
network: "testnet" | "mainnet";
|
|
16514
|
+
endpoint: string;
|
|
16515
|
+
destination: string;
|
|
16516
|
+
unsignedAction?: unknown;
|
|
13473
16517
|
} | undefined;
|
|
13474
16518
|
})[];
|
|
13475
16519
|
actionMetadata?: {
|
|
@@ -13582,6 +16626,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
13582
16626
|
amount: string;
|
|
13583
16627
|
fromAddress: string;
|
|
13584
16628
|
amountUSDValue?: string | undefined;
|
|
16629
|
+
} | {
|
|
16630
|
+
nonce: number;
|
|
16631
|
+
action: "perpetualsOrder";
|
|
16632
|
+
size: string;
|
|
16633
|
+
side: "buy" | "sell";
|
|
16634
|
+
network: "testnet" | "mainnet";
|
|
16635
|
+
endpoint: string;
|
|
16636
|
+
coin: string;
|
|
16637
|
+
markPx: string;
|
|
16638
|
+
reduceOnly: boolean;
|
|
16639
|
+
unsignedAction?: unknown;
|
|
16640
|
+
notionalUsd?: string | undefined;
|
|
16641
|
+
leverage?: {
|
|
16642
|
+
type: "cross" | "isolated";
|
|
16643
|
+
value: number;
|
|
16644
|
+
} | undefined;
|
|
16645
|
+
} | {
|
|
16646
|
+
nonce: number;
|
|
16647
|
+
action: "perpetualsUpdateLeverage";
|
|
16648
|
+
network: "testnet" | "mainnet";
|
|
16649
|
+
endpoint: string;
|
|
16650
|
+
coin: string;
|
|
16651
|
+
leverage: {
|
|
16652
|
+
type: "cross" | "isolated";
|
|
16653
|
+
value: number;
|
|
16654
|
+
};
|
|
16655
|
+
unsignedAction?: unknown;
|
|
16656
|
+
} | {
|
|
16657
|
+
nonce: number;
|
|
16658
|
+
action: "perpetualsClosePosition";
|
|
16659
|
+
size: string;
|
|
16660
|
+
side: "buy" | "sell";
|
|
16661
|
+
network: "testnet" | "mainnet";
|
|
16662
|
+
endpoint: string;
|
|
16663
|
+
coin: string;
|
|
16664
|
+
markPx: string;
|
|
16665
|
+
reduceOnly: true;
|
|
16666
|
+
unsignedAction?: unknown;
|
|
16667
|
+
} | {
|
|
16668
|
+
toAddress: string;
|
|
16669
|
+
chainId: number;
|
|
16670
|
+
action: "hyperliquidDeposit";
|
|
16671
|
+
token: {
|
|
16672
|
+
symbol: string;
|
|
16673
|
+
address: string;
|
|
16674
|
+
};
|
|
16675
|
+
amount: string;
|
|
16676
|
+
fromAddress: string;
|
|
16677
|
+
network: "testnet" | "mainnet";
|
|
16678
|
+
amountUSDValue?: string | undefined;
|
|
16679
|
+
} | {
|
|
16680
|
+
nonce: number;
|
|
16681
|
+
action: "hyperliquidWithdraw";
|
|
16682
|
+
amount: string;
|
|
16683
|
+
network: "testnet" | "mainnet";
|
|
16684
|
+
endpoint: string;
|
|
16685
|
+
destination: string;
|
|
16686
|
+
unsignedAction?: unknown;
|
|
13585
16687
|
} | undefined;
|
|
13586
16688
|
};
|
|
13587
16689
|
simulated?: boolean | undefined;
|
|
@@ -13778,6 +16880,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
13778
16880
|
amount: string;
|
|
13779
16881
|
fromAddress: string;
|
|
13780
16882
|
amountUSDValue?: string | undefined;
|
|
16883
|
+
} | {
|
|
16884
|
+
nonce: number;
|
|
16885
|
+
action: "perpetualsOrder";
|
|
16886
|
+
size: string;
|
|
16887
|
+
side: "buy" | "sell";
|
|
16888
|
+
network: "testnet" | "mainnet";
|
|
16889
|
+
endpoint: string;
|
|
16890
|
+
coin: string;
|
|
16891
|
+
markPx: string;
|
|
16892
|
+
reduceOnly: boolean;
|
|
16893
|
+
unsignedAction?: unknown;
|
|
16894
|
+
notionalUsd?: string | undefined;
|
|
16895
|
+
leverage?: {
|
|
16896
|
+
type: "cross" | "isolated";
|
|
16897
|
+
value: number;
|
|
16898
|
+
} | undefined;
|
|
16899
|
+
} | {
|
|
16900
|
+
nonce: number;
|
|
16901
|
+
action: "perpetualsUpdateLeverage";
|
|
16902
|
+
network: "testnet" | "mainnet";
|
|
16903
|
+
endpoint: string;
|
|
16904
|
+
coin: string;
|
|
16905
|
+
leverage: {
|
|
16906
|
+
type: "cross" | "isolated";
|
|
16907
|
+
value: number;
|
|
16908
|
+
};
|
|
16909
|
+
unsignedAction?: unknown;
|
|
16910
|
+
} | {
|
|
16911
|
+
nonce: number;
|
|
16912
|
+
action: "perpetualsClosePosition";
|
|
16913
|
+
size: string;
|
|
16914
|
+
side: "buy" | "sell";
|
|
16915
|
+
network: "testnet" | "mainnet";
|
|
16916
|
+
endpoint: string;
|
|
16917
|
+
coin: string;
|
|
16918
|
+
markPx: string;
|
|
16919
|
+
reduceOnly: true;
|
|
16920
|
+
unsignedAction?: unknown;
|
|
16921
|
+
} | {
|
|
16922
|
+
toAddress: string;
|
|
16923
|
+
chainId: number;
|
|
16924
|
+
action: "hyperliquidDeposit";
|
|
16925
|
+
token: {
|
|
16926
|
+
symbol: string;
|
|
16927
|
+
address: string;
|
|
16928
|
+
};
|
|
16929
|
+
amount: string;
|
|
16930
|
+
fromAddress: string;
|
|
16931
|
+
network: "testnet" | "mainnet";
|
|
16932
|
+
amountUSDValue?: string | undefined;
|
|
16933
|
+
} | {
|
|
16934
|
+
nonce: number;
|
|
16935
|
+
action: "hyperliquidWithdraw";
|
|
16936
|
+
amount: string;
|
|
16937
|
+
network: "testnet" | "mainnet";
|
|
16938
|
+
endpoint: string;
|
|
16939
|
+
destination: string;
|
|
16940
|
+
unsignedAction?: unknown;
|
|
13781
16941
|
} | undefined;
|
|
13782
16942
|
} | {
|
|
13783
16943
|
type: "SingleTransaction";
|
|
@@ -13899,6 +17059,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
13899
17059
|
amount: string;
|
|
13900
17060
|
fromAddress: string;
|
|
13901
17061
|
amountUSDValue?: string | undefined;
|
|
17062
|
+
} | {
|
|
17063
|
+
nonce: number;
|
|
17064
|
+
action: "perpetualsOrder";
|
|
17065
|
+
size: string;
|
|
17066
|
+
side: "buy" | "sell";
|
|
17067
|
+
network: "testnet" | "mainnet";
|
|
17068
|
+
endpoint: string;
|
|
17069
|
+
coin: string;
|
|
17070
|
+
markPx: string;
|
|
17071
|
+
reduceOnly: boolean;
|
|
17072
|
+
unsignedAction?: unknown;
|
|
17073
|
+
notionalUsd?: string | undefined;
|
|
17074
|
+
leverage?: {
|
|
17075
|
+
type: "cross" | "isolated";
|
|
17076
|
+
value: number;
|
|
17077
|
+
} | undefined;
|
|
17078
|
+
} | {
|
|
17079
|
+
nonce: number;
|
|
17080
|
+
action: "perpetualsUpdateLeverage";
|
|
17081
|
+
network: "testnet" | "mainnet";
|
|
17082
|
+
endpoint: string;
|
|
17083
|
+
coin: string;
|
|
17084
|
+
leverage: {
|
|
17085
|
+
type: "cross" | "isolated";
|
|
17086
|
+
value: number;
|
|
17087
|
+
};
|
|
17088
|
+
unsignedAction?: unknown;
|
|
17089
|
+
} | {
|
|
17090
|
+
nonce: number;
|
|
17091
|
+
action: "perpetualsClosePosition";
|
|
17092
|
+
size: string;
|
|
17093
|
+
side: "buy" | "sell";
|
|
17094
|
+
network: "testnet" | "mainnet";
|
|
17095
|
+
endpoint: string;
|
|
17096
|
+
coin: string;
|
|
17097
|
+
markPx: string;
|
|
17098
|
+
reduceOnly: true;
|
|
17099
|
+
unsignedAction?: unknown;
|
|
17100
|
+
} | {
|
|
17101
|
+
toAddress: string;
|
|
17102
|
+
chainId: number;
|
|
17103
|
+
action: "hyperliquidDeposit";
|
|
17104
|
+
token: {
|
|
17105
|
+
symbol: string;
|
|
17106
|
+
address: string;
|
|
17107
|
+
};
|
|
17108
|
+
amount: string;
|
|
17109
|
+
fromAddress: string;
|
|
17110
|
+
network: "testnet" | "mainnet";
|
|
17111
|
+
amountUSDValue?: string | undefined;
|
|
17112
|
+
} | {
|
|
17113
|
+
nonce: number;
|
|
17114
|
+
action: "hyperliquidWithdraw";
|
|
17115
|
+
amount: string;
|
|
17116
|
+
network: "testnet" | "mainnet";
|
|
17117
|
+
endpoint: string;
|
|
17118
|
+
destination: string;
|
|
17119
|
+
unsignedAction?: unknown;
|
|
13902
17120
|
} | undefined;
|
|
13903
17121
|
} | {
|
|
13904
17122
|
type: "SignatureRequests";
|
|
@@ -14211,6 +17429,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
14211
17429
|
amount: string;
|
|
14212
17430
|
fromAddress: string;
|
|
14213
17431
|
amountUSDValue?: string | undefined;
|
|
17432
|
+
} | {
|
|
17433
|
+
nonce: number;
|
|
17434
|
+
action: "perpetualsOrder";
|
|
17435
|
+
size: string;
|
|
17436
|
+
side: "buy" | "sell";
|
|
17437
|
+
network: "testnet" | "mainnet";
|
|
17438
|
+
endpoint: string;
|
|
17439
|
+
coin: string;
|
|
17440
|
+
markPx: string;
|
|
17441
|
+
reduceOnly: boolean;
|
|
17442
|
+
unsignedAction?: unknown;
|
|
17443
|
+
notionalUsd?: string | undefined;
|
|
17444
|
+
leverage?: {
|
|
17445
|
+
type: "cross" | "isolated";
|
|
17446
|
+
value: number;
|
|
17447
|
+
} | undefined;
|
|
17448
|
+
} | {
|
|
17449
|
+
nonce: number;
|
|
17450
|
+
action: "perpetualsUpdateLeverage";
|
|
17451
|
+
network: "testnet" | "mainnet";
|
|
17452
|
+
endpoint: string;
|
|
17453
|
+
coin: string;
|
|
17454
|
+
leverage: {
|
|
17455
|
+
type: "cross" | "isolated";
|
|
17456
|
+
value: number;
|
|
17457
|
+
};
|
|
17458
|
+
unsignedAction?: unknown;
|
|
17459
|
+
} | {
|
|
17460
|
+
nonce: number;
|
|
17461
|
+
action: "perpetualsClosePosition";
|
|
17462
|
+
size: string;
|
|
17463
|
+
side: "buy" | "sell";
|
|
17464
|
+
network: "testnet" | "mainnet";
|
|
17465
|
+
endpoint: string;
|
|
17466
|
+
coin: string;
|
|
17467
|
+
markPx: string;
|
|
17468
|
+
reduceOnly: true;
|
|
17469
|
+
unsignedAction?: unknown;
|
|
17470
|
+
} | {
|
|
17471
|
+
toAddress: string;
|
|
17472
|
+
chainId: number;
|
|
17473
|
+
action: "hyperliquidDeposit";
|
|
17474
|
+
token: {
|
|
17475
|
+
symbol: string;
|
|
17476
|
+
address: string;
|
|
17477
|
+
};
|
|
17478
|
+
amount: string;
|
|
17479
|
+
fromAddress: string;
|
|
17480
|
+
network: "testnet" | "mainnet";
|
|
17481
|
+
amountUSDValue?: string | undefined;
|
|
17482
|
+
} | {
|
|
17483
|
+
nonce: number;
|
|
17484
|
+
action: "hyperliquidWithdraw";
|
|
17485
|
+
amount: string;
|
|
17486
|
+
network: "testnet" | "mainnet";
|
|
17487
|
+
endpoint: string;
|
|
17488
|
+
destination: string;
|
|
17489
|
+
unsignedAction?: unknown;
|
|
14214
17490
|
} | undefined;
|
|
14215
17491
|
} | {
|
|
14216
17492
|
type: "ActionSequence";
|
|
@@ -14334,6 +17610,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
14334
17610
|
amount: string;
|
|
14335
17611
|
fromAddress: string;
|
|
14336
17612
|
amountUSDValue?: string | undefined;
|
|
17613
|
+
} | {
|
|
17614
|
+
nonce: number;
|
|
17615
|
+
action: "perpetualsOrder";
|
|
17616
|
+
size: string;
|
|
17617
|
+
side: "buy" | "sell";
|
|
17618
|
+
network: "testnet" | "mainnet";
|
|
17619
|
+
endpoint: string;
|
|
17620
|
+
coin: string;
|
|
17621
|
+
markPx: string;
|
|
17622
|
+
reduceOnly: boolean;
|
|
17623
|
+
unsignedAction?: unknown;
|
|
17624
|
+
notionalUsd?: string | undefined;
|
|
17625
|
+
leverage?: {
|
|
17626
|
+
type: "cross" | "isolated";
|
|
17627
|
+
value: number;
|
|
17628
|
+
} | undefined;
|
|
17629
|
+
} | {
|
|
17630
|
+
nonce: number;
|
|
17631
|
+
action: "perpetualsUpdateLeverage";
|
|
17632
|
+
network: "testnet" | "mainnet";
|
|
17633
|
+
endpoint: string;
|
|
17634
|
+
coin: string;
|
|
17635
|
+
leverage: {
|
|
17636
|
+
type: "cross" | "isolated";
|
|
17637
|
+
value: number;
|
|
17638
|
+
};
|
|
17639
|
+
unsignedAction?: unknown;
|
|
17640
|
+
} | {
|
|
17641
|
+
nonce: number;
|
|
17642
|
+
action: "perpetualsClosePosition";
|
|
17643
|
+
size: string;
|
|
17644
|
+
side: "buy" | "sell";
|
|
17645
|
+
network: "testnet" | "mainnet";
|
|
17646
|
+
endpoint: string;
|
|
17647
|
+
coin: string;
|
|
17648
|
+
markPx: string;
|
|
17649
|
+
reduceOnly: true;
|
|
17650
|
+
unsignedAction?: unknown;
|
|
17651
|
+
} | {
|
|
17652
|
+
toAddress: string;
|
|
17653
|
+
chainId: number;
|
|
17654
|
+
action: "hyperliquidDeposit";
|
|
17655
|
+
token: {
|
|
17656
|
+
symbol: string;
|
|
17657
|
+
address: string;
|
|
17658
|
+
};
|
|
17659
|
+
amount: string;
|
|
17660
|
+
fromAddress: string;
|
|
17661
|
+
network: "testnet" | "mainnet";
|
|
17662
|
+
amountUSDValue?: string | undefined;
|
|
17663
|
+
} | {
|
|
17664
|
+
nonce: number;
|
|
17665
|
+
action: "hyperliquidWithdraw";
|
|
17666
|
+
amount: string;
|
|
17667
|
+
network: "testnet" | "mainnet";
|
|
17668
|
+
endpoint: string;
|
|
17669
|
+
destination: string;
|
|
17670
|
+
unsignedAction?: unknown;
|
|
14337
17671
|
} | undefined;
|
|
14338
17672
|
} | {
|
|
14339
17673
|
type: "SingleTransaction";
|
|
@@ -14455,6 +17789,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
14455
17789
|
amount: string;
|
|
14456
17790
|
fromAddress: string;
|
|
14457
17791
|
amountUSDValue?: string | undefined;
|
|
17792
|
+
} | {
|
|
17793
|
+
nonce: number;
|
|
17794
|
+
action: "perpetualsOrder";
|
|
17795
|
+
size: string;
|
|
17796
|
+
side: "buy" | "sell";
|
|
17797
|
+
network: "testnet" | "mainnet";
|
|
17798
|
+
endpoint: string;
|
|
17799
|
+
coin: string;
|
|
17800
|
+
markPx: string;
|
|
17801
|
+
reduceOnly: boolean;
|
|
17802
|
+
unsignedAction?: unknown;
|
|
17803
|
+
notionalUsd?: string | undefined;
|
|
17804
|
+
leverage?: {
|
|
17805
|
+
type: "cross" | "isolated";
|
|
17806
|
+
value: number;
|
|
17807
|
+
} | undefined;
|
|
17808
|
+
} | {
|
|
17809
|
+
nonce: number;
|
|
17810
|
+
action: "perpetualsUpdateLeverage";
|
|
17811
|
+
network: "testnet" | "mainnet";
|
|
17812
|
+
endpoint: string;
|
|
17813
|
+
coin: string;
|
|
17814
|
+
leverage: {
|
|
17815
|
+
type: "cross" | "isolated";
|
|
17816
|
+
value: number;
|
|
17817
|
+
};
|
|
17818
|
+
unsignedAction?: unknown;
|
|
17819
|
+
} | {
|
|
17820
|
+
nonce: number;
|
|
17821
|
+
action: "perpetualsClosePosition";
|
|
17822
|
+
size: string;
|
|
17823
|
+
side: "buy" | "sell";
|
|
17824
|
+
network: "testnet" | "mainnet";
|
|
17825
|
+
endpoint: string;
|
|
17826
|
+
coin: string;
|
|
17827
|
+
markPx: string;
|
|
17828
|
+
reduceOnly: true;
|
|
17829
|
+
unsignedAction?: unknown;
|
|
17830
|
+
} | {
|
|
17831
|
+
toAddress: string;
|
|
17832
|
+
chainId: number;
|
|
17833
|
+
action: "hyperliquidDeposit";
|
|
17834
|
+
token: {
|
|
17835
|
+
symbol: string;
|
|
17836
|
+
address: string;
|
|
17837
|
+
};
|
|
17838
|
+
amount: string;
|
|
17839
|
+
fromAddress: string;
|
|
17840
|
+
network: "testnet" | "mainnet";
|
|
17841
|
+
amountUSDValue?: string | undefined;
|
|
17842
|
+
} | {
|
|
17843
|
+
nonce: number;
|
|
17844
|
+
action: "hyperliquidWithdraw";
|
|
17845
|
+
amount: string;
|
|
17846
|
+
network: "testnet" | "mainnet";
|
|
17847
|
+
endpoint: string;
|
|
17848
|
+
destination: string;
|
|
17849
|
+
unsignedAction?: unknown;
|
|
14458
17850
|
} | undefined;
|
|
14459
17851
|
} | {
|
|
14460
17852
|
type: "SignatureRequests";
|
|
@@ -14767,6 +18159,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
14767
18159
|
amount: string;
|
|
14768
18160
|
fromAddress: string;
|
|
14769
18161
|
amountUSDValue?: string | undefined;
|
|
18162
|
+
} | {
|
|
18163
|
+
nonce: number;
|
|
18164
|
+
action: "perpetualsOrder";
|
|
18165
|
+
size: string;
|
|
18166
|
+
side: "buy" | "sell";
|
|
18167
|
+
network: "testnet" | "mainnet";
|
|
18168
|
+
endpoint: string;
|
|
18169
|
+
coin: string;
|
|
18170
|
+
markPx: string;
|
|
18171
|
+
reduceOnly: boolean;
|
|
18172
|
+
unsignedAction?: unknown;
|
|
18173
|
+
notionalUsd?: string | undefined;
|
|
18174
|
+
leverage?: {
|
|
18175
|
+
type: "cross" | "isolated";
|
|
18176
|
+
value: number;
|
|
18177
|
+
} | undefined;
|
|
18178
|
+
} | {
|
|
18179
|
+
nonce: number;
|
|
18180
|
+
action: "perpetualsUpdateLeverage";
|
|
18181
|
+
network: "testnet" | "mainnet";
|
|
18182
|
+
endpoint: string;
|
|
18183
|
+
coin: string;
|
|
18184
|
+
leverage: {
|
|
18185
|
+
type: "cross" | "isolated";
|
|
18186
|
+
value: number;
|
|
18187
|
+
};
|
|
18188
|
+
unsignedAction?: unknown;
|
|
18189
|
+
} | {
|
|
18190
|
+
nonce: number;
|
|
18191
|
+
action: "perpetualsClosePosition";
|
|
18192
|
+
size: string;
|
|
18193
|
+
side: "buy" | "sell";
|
|
18194
|
+
network: "testnet" | "mainnet";
|
|
18195
|
+
endpoint: string;
|
|
18196
|
+
coin: string;
|
|
18197
|
+
markPx: string;
|
|
18198
|
+
reduceOnly: true;
|
|
18199
|
+
unsignedAction?: unknown;
|
|
18200
|
+
} | {
|
|
18201
|
+
toAddress: string;
|
|
18202
|
+
chainId: number;
|
|
18203
|
+
action: "hyperliquidDeposit";
|
|
18204
|
+
token: {
|
|
18205
|
+
symbol: string;
|
|
18206
|
+
address: string;
|
|
18207
|
+
};
|
|
18208
|
+
amount: string;
|
|
18209
|
+
fromAddress: string;
|
|
18210
|
+
network: "testnet" | "mainnet";
|
|
18211
|
+
amountUSDValue?: string | undefined;
|
|
18212
|
+
} | {
|
|
18213
|
+
nonce: number;
|
|
18214
|
+
action: "hyperliquidWithdraw";
|
|
18215
|
+
amount: string;
|
|
18216
|
+
network: "testnet" | "mainnet";
|
|
18217
|
+
endpoint: string;
|
|
18218
|
+
destination: string;
|
|
18219
|
+
unsignedAction?: unknown;
|
|
14770
18220
|
} | undefined;
|
|
14771
18221
|
})[];
|
|
14772
18222
|
actionMetadata?: {
|
|
@@ -14879,6 +18329,64 @@ export declare const PendingToolCallSchema: z.ZodObject<{
|
|
|
14879
18329
|
amount: string;
|
|
14880
18330
|
fromAddress: string;
|
|
14881
18331
|
amountUSDValue?: string | undefined;
|
|
18332
|
+
} | {
|
|
18333
|
+
nonce: number;
|
|
18334
|
+
action: "perpetualsOrder";
|
|
18335
|
+
size: string;
|
|
18336
|
+
side: "buy" | "sell";
|
|
18337
|
+
network: "testnet" | "mainnet";
|
|
18338
|
+
endpoint: string;
|
|
18339
|
+
coin: string;
|
|
18340
|
+
markPx: string;
|
|
18341
|
+
reduceOnly: boolean;
|
|
18342
|
+
unsignedAction?: unknown;
|
|
18343
|
+
notionalUsd?: string | undefined;
|
|
18344
|
+
leverage?: {
|
|
18345
|
+
type: "cross" | "isolated";
|
|
18346
|
+
value: number;
|
|
18347
|
+
} | undefined;
|
|
18348
|
+
} | {
|
|
18349
|
+
nonce: number;
|
|
18350
|
+
action: "perpetualsUpdateLeverage";
|
|
18351
|
+
network: "testnet" | "mainnet";
|
|
18352
|
+
endpoint: string;
|
|
18353
|
+
coin: string;
|
|
18354
|
+
leverage: {
|
|
18355
|
+
type: "cross" | "isolated";
|
|
18356
|
+
value: number;
|
|
18357
|
+
};
|
|
18358
|
+
unsignedAction?: unknown;
|
|
18359
|
+
} | {
|
|
18360
|
+
nonce: number;
|
|
18361
|
+
action: "perpetualsClosePosition";
|
|
18362
|
+
size: string;
|
|
18363
|
+
side: "buy" | "sell";
|
|
18364
|
+
network: "testnet" | "mainnet";
|
|
18365
|
+
endpoint: string;
|
|
18366
|
+
coin: string;
|
|
18367
|
+
markPx: string;
|
|
18368
|
+
reduceOnly: true;
|
|
18369
|
+
unsignedAction?: unknown;
|
|
18370
|
+
} | {
|
|
18371
|
+
toAddress: string;
|
|
18372
|
+
chainId: number;
|
|
18373
|
+
action: "hyperliquidDeposit";
|
|
18374
|
+
token: {
|
|
18375
|
+
symbol: string;
|
|
18376
|
+
address: string;
|
|
18377
|
+
};
|
|
18378
|
+
amount: string;
|
|
18379
|
+
fromAddress: string;
|
|
18380
|
+
network: "testnet" | "mainnet";
|
|
18381
|
+
amountUSDValue?: string | undefined;
|
|
18382
|
+
} | {
|
|
18383
|
+
nonce: number;
|
|
18384
|
+
action: "hyperliquidWithdraw";
|
|
18385
|
+
amount: string;
|
|
18386
|
+
network: "testnet" | "mainnet";
|
|
18387
|
+
endpoint: string;
|
|
18388
|
+
destination: string;
|
|
18389
|
+
unsignedAction?: unknown;
|
|
14882
18390
|
} | undefined;
|
|
14883
18391
|
};
|
|
14884
18392
|
simulated?: boolean | undefined;
|