GardenProps
This type represents the configuration object for the Garden instance.
Property | Type | Description |
---|---|---|
environment | Environment | Specifies the network (mainnet or testnet ). |
digestKey | string | DigestKey | It is a 32-byte non-custodial identifier used for auth, identity, and secret management in atomic swaps. |
api | string | Orderbook service's base URL |
secretManager | ISecretManager | It handles generation and retrieval of secrets and secretHashes for swaps. |
orderbook | IOrderbook | Allows creating and managing orders easily |
quote | IQuote | Get a quote for the given orderpair and amount. |
blockNumberFetcher | IBlockNumberfetcher | Fetches the current block numbers across multiple chains. |
siweOpts | SiweOpts | Specifies Sign-In With Ethereum (SIWE) config |
htlc | HTLCConfig | HTLC implementations for supported networks. |
SiweOpts
{
domain?: string;
store?: IStore;
signingStatement?: string;
};
HTLCConfig
{
evm?: IEVMHTLC;
starknet?: IStarknetHTLC;
}