Configurations

Detailed explanation of the Quirks configuration object and its parameters.

As seen before, to initialise Quirks it is necessary to pass an object with a valid configuration. Currently the library supports several configuration parameters to customise different layers (e.g. choose the storage type, the wallets to use, etc.).

Below is an in-depth look at all the elements that make up the Config type.

Usage

import { type Config,  } from "@quirks/store";
import {
  ,
  ,
  ,
  ,
  ,
} from "@quirks/wallets";
import {
   as ,
   as ,
} from 'chain-registry/mainnet/osmosis';
 
const : Config = {
  : [
    ,
    ,
    ,
    ,
    ,
  ],
  : [],
  : [],
  : ,
  : {
    : {
      : "info",
      : "<YOUR-PROJECT-ID>",
      : {
        : "React App",
        : "React App for WalletConnect",
        : "https://walletconnect.com/",
        : ["https://avatars.githubusercontent.com/u/37784886"],
      },
    },
  },
};

Types

PropTypeDefault
walletConnectOptions?
WalletConnectOptions
-
persistOptions?
PersistOptions<AppState>
defaultPersistOptions
signerOptions?
SignerOptions
-
signOptions?
SignOptions
-
autoSuggestions?
boolean
true
autoConnect?
boolean
true
assetsLists?
AssetLists[]
[]
chains?
Chain[]
[]
wallets?
Wallet[]
[]

SignOptions

PropTypeDefault
disableBalanceCheck?
boolean
true
preferNoSetMemo?
boolean
true
preferNoSetFee?
boolean
false

SignerOptions

PropTypeDefault
signingCosmwasm?
(chain: Chain) => Promise<SigningStargateClientOptions | undefined>
-
signingStargate?
(chain: Chain) => Promise<SigningStargateClientOptions | undefined>
-
stargate?
(chain: Chain) => Promise<StargateClientOptions | undefined>
-

WalletConnectOptions

PropTypeDefault
namespaces?
{ cosmos: Omit<Namespace, 'chains'> }
{ cosmos: { methods: ['cosmos_getAccounts', 'cosmos_signDirect', 'cosmos_signAmino'], chains: [], events: ['chainChanged', 'accountsChanged'], }, }
providerOpts?
UniversalProviderOpts
-

On this page