@gardenfi/core 0.3.0-beta.2 → 0.3.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +19 -16
- package/dist/index.js +10720 -6872
- package/dist/src/index.d.ts +5 -4
- package/dist/src/lib/bitcoin/htlc.d.ts +2 -0
- package/dist/src/lib/{garden → blockNumberFetcher}/blockNumber.d.ts +2 -2
- package/dist/src/lib/constants.d.ts +13 -0
- package/dist/src/lib/evm/htlc/evmHTLC.d.ts +54 -54
- package/dist/src/lib/evm/relay/evmRelay.d.ts +3 -4
- package/dist/src/lib/evm/relay/evmRelay.types.d.ts +2 -1
- package/dist/src/lib/garden/garden.d.ts +28 -32
- package/dist/src/lib/garden/garden.types.d.ts +60 -8
- package/dist/src/lib/{garden/orderStatusParser.d.ts → orderStatusParser.d.ts} +3 -2
- package/dist/src/lib/secretManager/secretManager.d.ts +12 -7
- package/dist/src/lib/secretManager/secretManager.types.d.ts +18 -4
- package/dist/src/lib/switchOrAddNetwork.d.ts +53 -0
- package/dist/src/lib/utils.d.ts +4 -16
- package/package.json +3 -3
package/dist/src/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export { Garden } from './lib/garden/garden';
|
|
2
2
|
export type { IGardenJS, SwapParams, GardenEvents, IOrderExecutorCache, OrderCacheValue, EventCallback, OrderWithStatus, } from './lib/garden/garden.types';
|
|
3
3
|
export { OrderActions } from './lib/garden/garden.types';
|
|
4
|
-
export { BlockNumberFetcher } from './lib/
|
|
5
|
-
export type { IBlockNumberFetcher
|
|
4
|
+
export { BlockNumberFetcher } from './lib/blockNumberFetcher/blockNumber';
|
|
5
|
+
export type { IBlockNumberFetcher } from './lib/blockNumberFetcher/blockNumber';
|
|
6
6
|
export { EvmRelay } from './lib/evm/relay/evmRelay';
|
|
7
7
|
export type { IEVMRelay } from './lib/evm/relay/evmRelay.types';
|
|
8
8
|
export { OrderStatus, SwapStatus } from './lib/status';
|
|
9
|
-
export { parseAction, ParseOrderStatus, ParseSwapStatus, isExpired, filterDeadlineExpiredOrders, parseActionFromStatus, } from './lib/
|
|
9
|
+
export { parseAction, ParseOrderStatus, ParseSwapStatus, isExpired, filterDeadlineExpiredOrders, parseActionFromStatus, } from './lib/orderStatusParser';
|
|
10
10
|
export { SecretManager } from './lib/secretManager/secretManager';
|
|
11
11
|
export type { ISecretManager, Secret, } from './lib/secretManager/secretManager.types';
|
|
12
12
|
export { Quote } from './lib/quote/quote';
|
|
13
13
|
export type { IQuote, QuoteResponse, Strategies, } from './lib/quote/quote.types';
|
|
14
|
-
export {
|
|
14
|
+
export { constructOrderPair, validateBTCAddress } from './lib/utils';
|
|
15
|
+
export { citreaTestnet, evmToViemChainMap, switchOrAddNetwork, } from './lib/switchOrAddNetwork';
|
|
@@ -64,6 +64,8 @@ export declare class GardenHTLC implements IHTLCWallet {
|
|
|
64
64
|
*/
|
|
65
65
|
private getOutputScript;
|
|
66
66
|
init(fee?: number): Promise<string>;
|
|
67
|
+
generateRedeemSACP(secret: string, receiver: string, fee?: number): Promise<string>;
|
|
68
|
+
generateInstantRefundSACP(receiver: string, fee?: number): Promise<string>;
|
|
67
69
|
/**
|
|
68
70
|
* Instantly refunds the funds to the initiator given the counterparty's signatures and pubkey
|
|
69
71
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AsyncResult } from '@catalogfi/utils';
|
|
2
2
|
import { Chain } from '@gardenfi/orderbook';
|
|
3
|
+
import { Environment } from '@gardenfi/utils';
|
|
3
4
|
|
|
4
|
-
export type Network = 'testnet' | 'mainnet';
|
|
5
5
|
type Response = {
|
|
6
6
|
[key in Chain]: number;
|
|
7
7
|
};
|
|
@@ -10,7 +10,7 @@ export interface IBlockNumberFetcher {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class BlockNumberFetcher implements IBlockNumberFetcher {
|
|
12
12
|
private url;
|
|
13
|
-
constructor(url: string, network:
|
|
13
|
+
constructor(url: string, network: Environment);
|
|
14
14
|
fetchBlockNumbers(): AsyncResult<Response, string>;
|
|
15
15
|
}
|
|
16
16
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const API: {
|
|
2
|
+
readonly mainnet: {
|
|
3
|
+
readonly orderbook: "https://orderbookv2.garden.finance";
|
|
4
|
+
readonly quote: "https://pricev2.garden.finance";
|
|
5
|
+
readonly info: "https://infov2.garden.finance";
|
|
6
|
+
};
|
|
7
|
+
readonly testnet: {
|
|
8
|
+
readonly orderbook: "https://orderbook.garden.finance";
|
|
9
|
+
readonly quote: "https://price.garden.finance";
|
|
10
|
+
readonly info: "https://info.garden.finance";
|
|
11
|
+
};
|
|
12
|
+
readonly localnet: {};
|
|
13
|
+
};
|
|
@@ -317,7 +317,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
317
317
|
}];
|
|
318
318
|
readonly stateMutability: "view";
|
|
319
319
|
readonly type: "function";
|
|
320
|
-
}], "eip712Domain", readonly []>, "address" | "
|
|
320
|
+
}], "eip712Domain", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, readonly bigint[]]>;
|
|
321
321
|
orders: (args: readonly [`0x${string}`], options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
|
|
322
322
|
readonly inputs: readonly [{
|
|
323
323
|
readonly internalType: "address";
|
|
@@ -622,7 +622,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
622
622
|
}];
|
|
623
623
|
readonly stateMutability: "view";
|
|
624
624
|
readonly type: "function";
|
|
625
|
-
}], "orders", readonly [`0x${string}`]>, "address" | "
|
|
625
|
+
}], "orders", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [boolean, `0x${string}`, `0x${string}`, bigint, bigint, bigint]>;
|
|
626
626
|
token: (options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
|
|
627
627
|
readonly inputs: readonly [{
|
|
628
628
|
readonly internalType: "address";
|
|
@@ -927,7 +927,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
927
927
|
}];
|
|
928
928
|
readonly stateMutability: "view";
|
|
929
929
|
readonly type: "function";
|
|
930
|
-
}], "token", readonly []>, "address" | "
|
|
930
|
+
}], "token", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<`0x${string}`>;
|
|
931
931
|
};
|
|
932
932
|
estimateGas: {
|
|
933
933
|
initiate: (args: readonly [`0x${string}`, bigint, bigint, `0x${string}`], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
@@ -1234,7 +1234,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
1234
1234
|
}];
|
|
1235
1235
|
readonly stateMutability: "view";
|
|
1236
1236
|
readonly type: "function";
|
|
1237
|
-
}], "initiate", readonly [`0x${string}`, bigint, bigint, `0x${string}`], import('viem').Chain | undefined>, "address" | "
|
|
1237
|
+
}], "initiate", readonly [`0x${string}`, bigint, bigint, `0x${string}`], import('viem').Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
1238
1238
|
initiateWithSignature: (args: readonly [`0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
1239
1239
|
readonly inputs: readonly [{
|
|
1240
1240
|
readonly internalType: "address";
|
|
@@ -1539,7 +1539,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
1539
1539
|
}];
|
|
1540
1540
|
readonly stateMutability: "view";
|
|
1541
1541
|
readonly type: "function";
|
|
1542
|
-
}], "initiateWithSignature", readonly [`0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`], import('viem').Chain | undefined>, "address" | "
|
|
1542
|
+
}], "initiateWithSignature", readonly [`0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`], import('viem').Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
1543
1543
|
instantRefund: (args: readonly [`0x${string}`, `0x${string}`], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
1544
1544
|
readonly inputs: readonly [{
|
|
1545
1545
|
readonly internalType: "address";
|
|
@@ -1844,7 +1844,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
1844
1844
|
}];
|
|
1845
1845
|
readonly stateMutability: "view";
|
|
1846
1846
|
readonly type: "function";
|
|
1847
|
-
}], "instantRefund", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined>, "address" | "
|
|
1847
|
+
}], "instantRefund", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
1848
1848
|
multicall: (args: readonly [readonly {
|
|
1849
1849
|
redeemer: `0x${string}`;
|
|
1850
1850
|
expiry: bigint;
|
|
@@ -2171,7 +2171,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
2171
2171
|
secret: `0x${string}`;
|
|
2172
2172
|
}[], readonly {
|
|
2173
2173
|
orderID: `0x${string}`;
|
|
2174
|
-
}[]], import('viem').Chain | undefined>, "address" | "
|
|
2174
|
+
}[]], import('viem').Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
2175
2175
|
redeem: (args: readonly [`0x${string}`, `0x${string}`], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
2176
2176
|
readonly inputs: readonly [{
|
|
2177
2177
|
readonly internalType: "address";
|
|
@@ -2476,7 +2476,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
2476
2476
|
}];
|
|
2477
2477
|
readonly stateMutability: "view";
|
|
2478
2478
|
readonly type: "function";
|
|
2479
|
-
}], "redeem", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined>, "address" | "
|
|
2479
|
+
}], "redeem", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
2480
2480
|
refund: (args: readonly [`0x${string}`], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
2481
2481
|
readonly inputs: readonly [{
|
|
2482
2482
|
readonly internalType: "address";
|
|
@@ -2781,7 +2781,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
2781
2781
|
}];
|
|
2782
2782
|
readonly stateMutability: "view";
|
|
2783
2783
|
readonly type: "function";
|
|
2784
|
-
}], "refund", readonly [`0x${string}`], import('viem').Chain | undefined>, "address" | "
|
|
2784
|
+
}], "refund", readonly [`0x${string}`], import('viem').Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
2785
2785
|
} & {
|
|
2786
2786
|
initiate: (args: readonly [`0x${string}`, bigint, bigint, `0x${string}`], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
2787
2787
|
readonly inputs: readonly [{
|
|
@@ -3087,7 +3087,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
3087
3087
|
}];
|
|
3088
3088
|
readonly stateMutability: "view";
|
|
3089
3089
|
readonly type: "function";
|
|
3090
|
-
}], "initiate", readonly [`0x${string}`, bigint, bigint, `0x${string}`], import('viem').Chain | undefined>, "address" | "
|
|
3090
|
+
}], "initiate", readonly [`0x${string}`, bigint, bigint, `0x${string}`], import('viem').Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
3091
3091
|
initiateWithSignature: (args: readonly [`0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
3092
3092
|
readonly inputs: readonly [{
|
|
3093
3093
|
readonly internalType: "address";
|
|
@@ -3392,7 +3392,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
3392
3392
|
}];
|
|
3393
3393
|
readonly stateMutability: "view";
|
|
3394
3394
|
readonly type: "function";
|
|
3395
|
-
}], "initiateWithSignature", readonly [`0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`], import('viem').Chain | undefined>, "address" | "
|
|
3395
|
+
}], "initiateWithSignature", readonly [`0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`], import('viem').Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
3396
3396
|
instantRefund: (args: readonly [`0x${string}`, `0x${string}`], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
3397
3397
|
readonly inputs: readonly [{
|
|
3398
3398
|
readonly internalType: "address";
|
|
@@ -3697,7 +3697,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
3697
3697
|
}];
|
|
3698
3698
|
readonly stateMutability: "view";
|
|
3699
3699
|
readonly type: "function";
|
|
3700
|
-
}], "instantRefund", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined>, "address" | "
|
|
3700
|
+
}], "instantRefund", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
3701
3701
|
multicall: (args: readonly [readonly {
|
|
3702
3702
|
redeemer: `0x${string}`;
|
|
3703
3703
|
expiry: bigint;
|
|
@@ -4024,7 +4024,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
4024
4024
|
secret: `0x${string}`;
|
|
4025
4025
|
}[], readonly {
|
|
4026
4026
|
orderID: `0x${string}`;
|
|
4027
|
-
}[]], import('viem').Chain | undefined>, "address" | "
|
|
4027
|
+
}[]], import('viem').Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
4028
4028
|
redeem: (args: readonly [`0x${string}`, `0x${string}`], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
4029
4029
|
readonly inputs: readonly [{
|
|
4030
4030
|
readonly internalType: "address";
|
|
@@ -4329,7 +4329,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
4329
4329
|
}];
|
|
4330
4330
|
readonly stateMutability: "view";
|
|
4331
4331
|
readonly type: "function";
|
|
4332
|
-
}], "redeem", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined>, "address" | "
|
|
4332
|
+
}], "redeem", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
4333
4333
|
refund: (args: readonly [`0x${string}`], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
4334
4334
|
readonly inputs: readonly [{
|
|
4335
4335
|
readonly internalType: "address";
|
|
@@ -4634,7 +4634,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
4634
4634
|
}];
|
|
4635
4635
|
readonly stateMutability: "view";
|
|
4636
4636
|
readonly type: "function";
|
|
4637
|
-
}], "refund", readonly [`0x${string}`], import('viem').Chain | undefined>, "address" | "
|
|
4637
|
+
}], "refund", readonly [`0x${string}`], import('viem').Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
4638
4638
|
};
|
|
4639
4639
|
simulate: {
|
|
4640
4640
|
initiate: <chainOverride extends import('viem').Chain | undefined = undefined, accountOverride extends import('viem').Account | Address | undefined = undefined>(args: readonly [`0x${string}`, bigint, bigint, `0x${string}`], options?: Omit<import('viem').SimulateContractParameters<readonly [{
|
|
@@ -4941,7 +4941,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
4941
4941
|
}];
|
|
4942
4942
|
readonly stateMutability: "view";
|
|
4943
4943
|
readonly type: "function";
|
|
4944
|
-
}], "initiate", readonly [`0x${string}`, bigint, bigint, `0x${string}`], import('viem').Chain | undefined, chainOverride, accountOverride>, "address" | "
|
|
4944
|
+
}], "initiate", readonly [`0x${string}`, bigint, bigint, `0x${string}`], import('viem').Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
|
|
4945
4945
|
readonly inputs: readonly [{
|
|
4946
4946
|
readonly internalType: "address";
|
|
4947
4947
|
readonly name: "token_";
|
|
@@ -5550,7 +5550,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
5550
5550
|
}];
|
|
5551
5551
|
readonly stateMutability: "view";
|
|
5552
5552
|
readonly type: "function";
|
|
5553
|
-
}], "initiateWithSignature", readonly [`0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`], import('viem').Chain | undefined, chainOverride, accountOverride>, "address" | "
|
|
5553
|
+
}], "initiateWithSignature", readonly [`0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`], import('viem').Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
|
|
5554
5554
|
readonly inputs: readonly [{
|
|
5555
5555
|
readonly internalType: "address";
|
|
5556
5556
|
readonly name: "token_";
|
|
@@ -6159,7 +6159,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
6159
6159
|
}];
|
|
6160
6160
|
readonly stateMutability: "view";
|
|
6161
6161
|
readonly type: "function";
|
|
6162
|
-
}], "instantRefund", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined, chainOverride, accountOverride>, "address" | "
|
|
6162
|
+
}], "instantRefund", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
|
|
6163
6163
|
readonly inputs: readonly [{
|
|
6164
6164
|
readonly internalType: "address";
|
|
6165
6165
|
readonly name: "token_";
|
|
@@ -6790,7 +6790,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
6790
6790
|
secret: `0x${string}`;
|
|
6791
6791
|
}[], readonly {
|
|
6792
6792
|
orderID: `0x${string}`;
|
|
6793
|
-
}[]], import('viem').Chain | undefined, chainOverride, accountOverride>, "address" | "
|
|
6793
|
+
}[]], import('viem').Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
|
|
6794
6794
|
readonly inputs: readonly [{
|
|
6795
6795
|
readonly internalType: "address";
|
|
6796
6796
|
readonly name: "token_";
|
|
@@ -7410,7 +7410,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
7410
7410
|
}];
|
|
7411
7411
|
readonly stateMutability: "view";
|
|
7412
7412
|
readonly type: "function";
|
|
7413
|
-
}], "redeem", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined, chainOverride, accountOverride>, "address" | "
|
|
7413
|
+
}], "redeem", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
|
|
7414
7414
|
readonly inputs: readonly [{
|
|
7415
7415
|
readonly internalType: "address";
|
|
7416
7416
|
readonly name: "token_";
|
|
@@ -8019,7 +8019,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
8019
8019
|
}];
|
|
8020
8020
|
readonly stateMutability: "view";
|
|
8021
8021
|
readonly type: "function";
|
|
8022
|
-
}], "refund", readonly [`0x${string}`], import('viem').Chain | undefined, chainOverride, accountOverride>, "address" | "
|
|
8022
|
+
}], "refund", readonly [`0x${string}`], import('viem').Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
|
|
8023
8023
|
readonly inputs: readonly [{
|
|
8024
8024
|
readonly internalType: "address";
|
|
8025
8025
|
readonly name: "token_";
|
|
@@ -12416,7 +12416,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
12416
12416
|
}];
|
|
12417
12417
|
readonly stateMutability: "view";
|
|
12418
12418
|
readonly type: "function";
|
|
12419
|
-
}], "initiate", readonly [`0x${string}`, bigint, bigint, `0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "
|
|
12419
|
+
}], "initiate", readonly [`0x${string}`, bigint, bigint, `0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
12420
12420
|
readonly inputs: readonly [{
|
|
12421
12421
|
readonly internalType: "address";
|
|
12422
12422
|
readonly name: "token_";
|
|
@@ -12720,7 +12720,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
12720
12720
|
}];
|
|
12721
12721
|
readonly stateMutability: "view";
|
|
12722
12722
|
readonly type: "function";
|
|
12723
|
-
}], "initiate", readonly [`0x${string}`, bigint, bigint, `0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "
|
|
12723
|
+
}], "initiate", readonly [`0x${string}`, bigint, bigint, `0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [`0x${string}`, bigint, bigint, `0x${string}`], options: options) => Promise<import('viem').WriteContractReturnType>;
|
|
12724
12724
|
initiateWithSignature: <chainOverride extends import('viem').Chain | undefined, options extends import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
12725
12725
|
readonly inputs: readonly [{
|
|
12726
12726
|
readonly internalType: "address";
|
|
@@ -13025,7 +13025,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
13025
13025
|
}];
|
|
13026
13026
|
readonly stateMutability: "view";
|
|
13027
13027
|
readonly type: "function";
|
|
13028
|
-
}], "initiateWithSignature", readonly [`0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "
|
|
13028
|
+
}], "initiateWithSignature", readonly [`0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
13029
13029
|
readonly inputs: readonly [{
|
|
13030
13030
|
readonly internalType: "address";
|
|
13031
13031
|
readonly name: "token_";
|
|
@@ -13329,7 +13329,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
13329
13329
|
}];
|
|
13330
13330
|
readonly stateMutability: "view";
|
|
13331
13331
|
readonly type: "function";
|
|
13332
|
-
}], "initiateWithSignature", readonly [`0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "
|
|
13332
|
+
}], "initiateWithSignature", readonly [`0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [`0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`], options: options) => Promise<import('viem').WriteContractReturnType>;
|
|
13333
13333
|
instantRefund: <chainOverride extends import('viem').Chain | undefined, options extends import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
13334
13334
|
readonly inputs: readonly [{
|
|
13335
13335
|
readonly internalType: "address";
|
|
@@ -13634,7 +13634,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
13634
13634
|
}];
|
|
13635
13635
|
readonly stateMutability: "view";
|
|
13636
13636
|
readonly type: "function";
|
|
13637
|
-
}], "instantRefund", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "
|
|
13637
|
+
}], "instantRefund", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
13638
13638
|
readonly inputs: readonly [{
|
|
13639
13639
|
readonly internalType: "address";
|
|
13640
13640
|
readonly name: "token_";
|
|
@@ -13938,7 +13938,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
13938
13938
|
}];
|
|
13939
13939
|
readonly stateMutability: "view";
|
|
13940
13940
|
readonly type: "function";
|
|
13941
|
-
}], "instantRefund", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "
|
|
13941
|
+
}], "instantRefund", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [`0x${string}`, `0x${string}`], options: options) => Promise<import('viem').WriteContractReturnType>;
|
|
13942
13942
|
multicall: <chainOverride extends import('viem').Chain | undefined, options extends import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
13943
13943
|
readonly inputs: readonly [{
|
|
13944
13944
|
readonly internalType: "address";
|
|
@@ -14254,7 +14254,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
14254
14254
|
secret: `0x${string}`;
|
|
14255
14255
|
}[], readonly {
|
|
14256
14256
|
orderID: `0x${string}`;
|
|
14257
|
-
}[]], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "
|
|
14257
|
+
}[]], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
14258
14258
|
readonly inputs: readonly [{
|
|
14259
14259
|
readonly internalType: "address";
|
|
14260
14260
|
readonly name: "token_";
|
|
@@ -14569,7 +14569,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
14569
14569
|
secret: `0x${string}`;
|
|
14570
14570
|
}[], readonly {
|
|
14571
14571
|
orderID: `0x${string}`;
|
|
14572
|
-
}[]], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "
|
|
14572
|
+
}[]], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [readonly {
|
|
14573
14573
|
redeemer: `0x${string}`;
|
|
14574
14574
|
expiry: bigint;
|
|
14575
14575
|
amount: bigint;
|
|
@@ -14885,7 +14885,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
14885
14885
|
}];
|
|
14886
14886
|
readonly stateMutability: "view";
|
|
14887
14887
|
readonly type: "function";
|
|
14888
|
-
}], "redeem", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "
|
|
14888
|
+
}], "redeem", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
14889
14889
|
readonly inputs: readonly [{
|
|
14890
14890
|
readonly internalType: "address";
|
|
14891
14891
|
readonly name: "token_";
|
|
@@ -15189,7 +15189,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
15189
15189
|
}];
|
|
15190
15190
|
readonly stateMutability: "view";
|
|
15191
15191
|
readonly type: "function";
|
|
15192
|
-
}], "redeem", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "
|
|
15192
|
+
}], "redeem", readonly [`0x${string}`, `0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [`0x${string}`, `0x${string}`], options: options) => Promise<import('viem').WriteContractReturnType>;
|
|
15193
15193
|
refund: <chainOverride extends import('viem').Chain | undefined, options extends import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
15194
15194
|
readonly inputs: readonly [{
|
|
15195
15195
|
readonly internalType: "address";
|
|
@@ -15494,7 +15494,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
15494
15494
|
}];
|
|
15495
15495
|
readonly stateMutability: "view";
|
|
15496
15496
|
readonly type: "function";
|
|
15497
|
-
}], "refund", readonly [`0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "
|
|
15497
|
+
}], "refund", readonly [`0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
15498
15498
|
readonly inputs: readonly [{
|
|
15499
15499
|
readonly internalType: "address";
|
|
15500
15500
|
readonly name: "token_";
|
|
@@ -15798,7 +15798,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
15798
15798
|
}];
|
|
15799
15799
|
readonly stateMutability: "view";
|
|
15800
15800
|
readonly type: "function";
|
|
15801
|
-
}], "refund", readonly [`0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "
|
|
15801
|
+
}], "refund", readonly [`0x${string}`], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [`0x${string}`], options: options) => Promise<import('viem').WriteContractReturnType>;
|
|
15802
15802
|
};
|
|
15803
15803
|
address: `0x${string}`;
|
|
15804
15804
|
abi: readonly [{
|
|
@@ -16243,7 +16243,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
16243
16243
|
readonly outputs: readonly [{
|
|
16244
16244
|
readonly type: "bool";
|
|
16245
16245
|
}];
|
|
16246
|
-
}], "symbol", readonly []>, "address" | "
|
|
16246
|
+
}], "symbol", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<string>;
|
|
16247
16247
|
name: (options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
|
|
16248
16248
|
readonly type: "event";
|
|
16249
16249
|
readonly name: "Approval";
|
|
@@ -16378,7 +16378,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
16378
16378
|
readonly outputs: readonly [{
|
|
16379
16379
|
readonly type: "bool";
|
|
16380
16380
|
}];
|
|
16381
|
-
}], "name", readonly []>, "address" | "
|
|
16381
|
+
}], "name", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<string>;
|
|
16382
16382
|
allowance: (args: readonly [`0x${string}`, `0x${string}`], options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
|
|
16383
16383
|
readonly type: "event";
|
|
16384
16384
|
readonly name: "Approval";
|
|
@@ -16513,7 +16513,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
16513
16513
|
readonly outputs: readonly [{
|
|
16514
16514
|
readonly type: "bool";
|
|
16515
16515
|
}];
|
|
16516
|
-
}], "allowance", readonly [`0x${string}`, `0x${string}`]>, "address" | "
|
|
16516
|
+
}], "allowance", readonly [`0x${string}`, `0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
16517
16517
|
balanceOf: (args: readonly [`0x${string}`], options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
|
|
16518
16518
|
readonly type: "event";
|
|
16519
16519
|
readonly name: "Approval";
|
|
@@ -16648,7 +16648,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
16648
16648
|
readonly outputs: readonly [{
|
|
16649
16649
|
readonly type: "bool";
|
|
16650
16650
|
}];
|
|
16651
|
-
}], "balanceOf", readonly [`0x${string}`]>, "address" | "
|
|
16651
|
+
}], "balanceOf", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
16652
16652
|
decimals: (options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
|
|
16653
16653
|
readonly type: "event";
|
|
16654
16654
|
readonly name: "Approval";
|
|
@@ -16783,7 +16783,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
16783
16783
|
readonly outputs: readonly [{
|
|
16784
16784
|
readonly type: "bool";
|
|
16785
16785
|
}];
|
|
16786
|
-
}], "decimals", readonly []>, "address" | "
|
|
16786
|
+
}], "decimals", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
|
|
16787
16787
|
totalSupply: (options?: import('viem').Prettify<import('viem').UnionOmit<import('viem').ReadContractParameters<readonly [{
|
|
16788
16788
|
readonly type: "event";
|
|
16789
16789
|
readonly name: "Approval";
|
|
@@ -16918,7 +16918,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
16918
16918
|
readonly outputs: readonly [{
|
|
16919
16919
|
readonly type: "bool";
|
|
16920
16920
|
}];
|
|
16921
|
-
}], "totalSupply", readonly []>, "address" | "
|
|
16921
|
+
}], "totalSupply", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
16922
16922
|
};
|
|
16923
16923
|
estimateGas: {
|
|
16924
16924
|
approve: (args: readonly [`0x${string}`, bigint], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
@@ -17055,7 +17055,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
17055
17055
|
readonly outputs: readonly [{
|
|
17056
17056
|
readonly type: "bool";
|
|
17057
17057
|
}];
|
|
17058
|
-
}], "approve", readonly [`0x${string}`, bigint], import('viem').Chain | undefined>, "address" | "
|
|
17058
|
+
}], "approve", readonly [`0x${string}`, bigint], import('viem').Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
17059
17059
|
transfer: (args: readonly [`0x${string}`, bigint], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
17060
17060
|
readonly type: "event";
|
|
17061
17061
|
readonly name: "Approval";
|
|
@@ -17190,7 +17190,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
17190
17190
|
readonly outputs: readonly [{
|
|
17191
17191
|
readonly type: "bool";
|
|
17192
17192
|
}];
|
|
17193
|
-
}], "transfer", readonly [`0x${string}`, bigint], import('viem').Chain | undefined>, "address" | "
|
|
17193
|
+
}], "transfer", readonly [`0x${string}`, bigint], import('viem').Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
17194
17194
|
transferFrom: (args: readonly [`0x${string}`, `0x${string}`, bigint], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
17195
17195
|
readonly type: "event";
|
|
17196
17196
|
readonly name: "Approval";
|
|
@@ -17325,7 +17325,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
17325
17325
|
readonly outputs: readonly [{
|
|
17326
17326
|
readonly type: "bool";
|
|
17327
17327
|
}];
|
|
17328
|
-
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint], import('viem').Chain | undefined>, "address" | "
|
|
17328
|
+
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint], import('viem').Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
17329
17329
|
} & {
|
|
17330
17330
|
approve: (args: readonly [`0x${string}`, bigint], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
17331
17331
|
readonly type: "event";
|
|
@@ -17461,7 +17461,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
17461
17461
|
readonly outputs: readonly [{
|
|
17462
17462
|
readonly type: "bool";
|
|
17463
17463
|
}];
|
|
17464
|
-
}], "approve", readonly [`0x${string}`, bigint], import('viem').Chain | undefined>, "address" | "
|
|
17464
|
+
}], "approve", readonly [`0x${string}`, bigint], import('viem').Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
17465
17465
|
transfer: (args: readonly [`0x${string}`, bigint], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
17466
17466
|
readonly type: "event";
|
|
17467
17467
|
readonly name: "Approval";
|
|
@@ -17596,7 +17596,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
17596
17596
|
readonly outputs: readonly [{
|
|
17597
17597
|
readonly type: "bool";
|
|
17598
17598
|
}];
|
|
17599
|
-
}], "transfer", readonly [`0x${string}`, bigint], import('viem').Chain | undefined>, "address" | "
|
|
17599
|
+
}], "transfer", readonly [`0x${string}`, bigint], import('viem').Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
17600
17600
|
transferFrom: (args: readonly [`0x${string}`, `0x${string}`, bigint], options: import('viem').Prettify<import('viem').UnionOmit<import('viem').EstimateContractGasParameters<readonly [{
|
|
17601
17601
|
readonly type: "event";
|
|
17602
17602
|
readonly name: "Approval";
|
|
@@ -17731,7 +17731,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
17731
17731
|
readonly outputs: readonly [{
|
|
17732
17732
|
readonly type: "bool";
|
|
17733
17733
|
}];
|
|
17734
|
-
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint], import('viem').Chain | undefined>, "address" | "
|
|
17734
|
+
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint], import('viem').Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<import('viem').EstimateContractGasReturnType>;
|
|
17735
17735
|
};
|
|
17736
17736
|
simulate: {
|
|
17737
17737
|
approve: <chainOverride extends import('viem').Chain | undefined = undefined, accountOverride extends import('viem').Account | Address | undefined = undefined>(args: readonly [`0x${string}`, bigint], options?: Omit<import('viem').SimulateContractParameters<readonly [{
|
|
@@ -17868,7 +17868,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
17868
17868
|
readonly outputs: readonly [{
|
|
17869
17869
|
readonly type: "bool";
|
|
17870
17870
|
}];
|
|
17871
|
-
}], "approve", readonly [`0x${string}`, bigint], import('viem').Chain | undefined, chainOverride, accountOverride>, "address" | "
|
|
17871
|
+
}], "approve", readonly [`0x${string}`, bigint], import('viem').Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
|
|
17872
17872
|
readonly type: "event";
|
|
17873
17873
|
readonly name: "Approval";
|
|
17874
17874
|
readonly inputs: readonly [{
|
|
@@ -18137,7 +18137,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
18137
18137
|
readonly outputs: readonly [{
|
|
18138
18138
|
readonly type: "bool";
|
|
18139
18139
|
}];
|
|
18140
|
-
}], "transfer", readonly [`0x${string}`, bigint], import('viem').Chain | undefined, chainOverride, accountOverride>, "address" | "
|
|
18140
|
+
}], "transfer", readonly [`0x${string}`, bigint], import('viem').Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
|
|
18141
18141
|
readonly type: "event";
|
|
18142
18142
|
readonly name: "Approval";
|
|
18143
18143
|
readonly inputs: readonly [{
|
|
@@ -18406,7 +18406,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
18406
18406
|
readonly outputs: readonly [{
|
|
18407
18407
|
readonly type: "bool";
|
|
18408
18408
|
}];
|
|
18409
|
-
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint], import('viem').Chain | undefined, chainOverride, accountOverride>, "address" | "
|
|
18409
|
+
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint], import('viem').Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<import('viem').SimulateContractReturnType<readonly [{
|
|
18410
18410
|
readonly type: "event";
|
|
18411
18411
|
readonly name: "Approval";
|
|
18412
18412
|
readonly inputs: readonly [{
|
|
@@ -19565,7 +19565,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
19565
19565
|
readonly outputs: readonly [{
|
|
19566
19566
|
readonly type: "bool";
|
|
19567
19567
|
}];
|
|
19568
|
-
}], "approve", readonly [`0x${string}`, bigint], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "
|
|
19568
|
+
}], "approve", readonly [`0x${string}`, bigint], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
19569
19569
|
readonly type: "event";
|
|
19570
19570
|
readonly name: "Approval";
|
|
19571
19571
|
readonly inputs: readonly [{
|
|
@@ -19699,7 +19699,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
19699
19699
|
readonly outputs: readonly [{
|
|
19700
19700
|
readonly type: "bool";
|
|
19701
19701
|
}];
|
|
19702
|
-
}], "approve", readonly [`0x${string}`, bigint], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "
|
|
19702
|
+
}], "approve", readonly [`0x${string}`, bigint], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [`0x${string}`, bigint], options: options) => Promise<import('viem').WriteContractReturnType>;
|
|
19703
19703
|
transfer: <chainOverride extends import('viem').Chain | undefined, options extends import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
19704
19704
|
readonly type: "event";
|
|
19705
19705
|
readonly name: "Approval";
|
|
@@ -19834,7 +19834,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
19834
19834
|
readonly outputs: readonly [{
|
|
19835
19835
|
readonly type: "bool";
|
|
19836
19836
|
}];
|
|
19837
|
-
}], "transfer", readonly [`0x${string}`, bigint], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "
|
|
19837
|
+
}], "transfer", readonly [`0x${string}`, bigint], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
19838
19838
|
readonly type: "event";
|
|
19839
19839
|
readonly name: "Approval";
|
|
19840
19840
|
readonly inputs: readonly [{
|
|
@@ -19968,7 +19968,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
19968
19968
|
readonly outputs: readonly [{
|
|
19969
19969
|
readonly type: "bool";
|
|
19970
19970
|
}];
|
|
19971
|
-
}], "transfer", readonly [`0x${string}`, bigint], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "
|
|
19971
|
+
}], "transfer", readonly [`0x${string}`, bigint], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [`0x${string}`, bigint], options: options) => Promise<import('viem').WriteContractReturnType>;
|
|
19972
19972
|
transferFrom: <chainOverride extends import('viem').Chain | undefined, options extends import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
19973
19973
|
readonly type: "event";
|
|
19974
19974
|
readonly name: "Approval";
|
|
@@ -20103,7 +20103,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
20103
20103
|
readonly outputs: readonly [{
|
|
20104
20104
|
readonly type: "bool";
|
|
20105
20105
|
}];
|
|
20106
|
-
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "
|
|
20106
|
+
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: import('viem').UnionOmit<import('viem').WriteContractParameters<readonly [{
|
|
20107
20107
|
readonly type: "event";
|
|
20108
20108
|
readonly name: "Approval";
|
|
20109
20109
|
readonly inputs: readonly [{
|
|
@@ -20237,7 +20237,7 @@ export declare class EVMHTLC implements IHTLCWallet {
|
|
|
20237
20237
|
readonly outputs: readonly [{
|
|
20238
20238
|
readonly type: "bool";
|
|
20239
20239
|
}];
|
|
20240
|
-
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "
|
|
20240
|
+
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint], import('viem').Chain | undefined, import('viem').Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName">[K]; } : never>(args: readonly [`0x${string}`, `0x${string}`, bigint], options: options) => Promise<import('viem').WriteContractReturnType>;
|
|
20241
20241
|
};
|
|
20242
20242
|
address: `0x${string}`;
|
|
20243
20243
|
abi: readonly [{
|
|
@@ -2,13 +2,12 @@ import { WalletClient } from 'viem';
|
|
|
2
2
|
import { MatchedOrder } from '@gardenfi/orderbook';
|
|
3
3
|
import { IEVMRelay } from './evmRelay.types';
|
|
4
4
|
import { AsyncResult } from '@catalogfi/utils';
|
|
5
|
-
import { IAuth } from '@gardenfi/utils';
|
|
5
|
+
import { IAuth, Url } from '@gardenfi/utils';
|
|
6
6
|
|
|
7
7
|
export declare class EvmRelay implements IEVMRelay {
|
|
8
8
|
private url;
|
|
9
9
|
private auth;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
init(walletClient: WalletClient): AsyncResult<string, string>;
|
|
10
|
+
constructor(url: string | Url, auth: IAuth);
|
|
11
|
+
init(walletClient: WalletClient, order: MatchedOrder): AsyncResult<string, string>;
|
|
13
12
|
redeem(orderId: string, secret: string): AsyncResult<string, string>;
|
|
14
13
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AsyncResult } from '@catalogfi/utils';
|
|
2
|
+
import { MatchedOrder } from '@gardenfi/orderbook';
|
|
2
3
|
import { IStore } from '@gardenfi/utils';
|
|
3
4
|
import { WalletClient } from 'viem';
|
|
4
5
|
|
|
@@ -15,7 +16,7 @@ export interface IEVMRelay {
|
|
|
15
16
|
* @NOTE send the current block number of the L1 chain, if the order is on L2 chain (arbitrum).
|
|
16
17
|
* @returns txHash of Initiation
|
|
17
18
|
*/
|
|
18
|
-
init(walletClient: WalletClient): AsyncResult<string, string>;
|
|
19
|
+
init(walletClient: WalletClient, order: MatchedOrder): AsyncResult<string, string>;
|
|
19
20
|
/**
|
|
20
21
|
* Redeems funds from the EVM atomic swap contract using relay service.
|
|
21
22
|
* Sends the secret to the relay service.
|