@initia/interwovenkit-react 2.9.1 → 2.11.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/index.d.ts CHANGED
@@ -33,23 +33,49 @@ declare interface AutoSignFeePolicy {
33
33
  }
34
34
 
35
35
  declare interface Config {
36
+ /** Chain id the widget targets by default. */
36
37
  defaultChainId: string;
38
+ /** Chain definition that overrides or extends the registry entry. */
37
39
  customChain?: Chain;
40
+ /** Extra proto message types merged into the signing registry. */
38
41
  protoTypes?: Iterable<[string, GeneratedType]>;
42
+ /** Extra amino converters merged into the signing registry. */
39
43
  aminoConverters?: AminoConverters;
44
+ /** Initia chain registry base URL. */
40
45
  registryUrl: string;
46
+ /** Router API (Skip) base URL for bridging and swaps. */
41
47
  routerApiUrl: string;
48
+ /** Glyph base URL for NFT image rendering. */
42
49
  glyphUrl: string;
50
+ /** Move module address for usernames. */
43
51
  usernamesModuleAddress: string;
52
+ /** Move module address for lock staking. */
44
53
  lockStakeModuleAddress: string;
54
+ /** Move module address for CLAMM vaults. */
55
+ clammVaultModuleAddress: string;
56
+ /** Minity portfolio API base URL (SSE streaming). */
45
57
  minityUrl: string;
58
+ /** DEX indexer API base URL for LP prices and positions. */
46
59
  dexUrl: string;
60
+ /** VIP API base URL for vesting positions. */
47
61
  vipUrl: string;
62
+ /** Deposit API base URL; unset disables the deposit methods that rely on it. */
63
+ depositApiUrl?: string;
64
+ /** Onramper API base URL; unset disables the cash method. */
65
+ onramperApiUrl?: string;
66
+ /** Onramper publishable key (`pk_...`); override to bill your own account. */
67
+ onramperApiKey?: string;
68
+ /** Color theme. */
48
69
  theme: "light" | "dark";
70
+ /** Element the widget portals into instead of the default shadow root. */
49
71
  container?: HTMLElement;
72
+ /** Disables usage analytics. */
50
73
  disableAnalytics?: boolean;
74
+ /** Auto-sign opt-in: `true`, or a chain id → allowed message type URLs map. */
51
75
  enableAutoSign?: boolean | Record<string, string[]>;
76
+ /** Per-chain fee policy for auto-signed transactions. */
52
77
  autoSignFeePolicy?: Record<string, AutoSignFeePolicy>;
78
+ /** Cosmos wallets offered in the connect list. */
53
79
  cosmosWallets?: CosmosWallet[];
54
80
  }
55
81
 
@@ -408,6 +434,14 @@ declare class OfflineSigner implements OfflineAminoSigner {
408
434
  signAmino(signerAddress: string, signDoc: StdSignDoc): Promise<AminoSignResponse>;
409
435
  }
410
436
 
437
+ /** Initial editable values for the buy-with-cash form. */
438
+ declare interface OnrampPreset {
439
+ /** Non-negative fiat amount with at most two decimal places, e.g. "40". */
440
+ amount: string;
441
+ /** ISO currency code, matched case-insensitively, e.g. "USD". */
442
+ currency: string;
443
+ }
444
+
411
445
  declare interface PortfolioAssetGroup extends PortfolioAssetGroupInfo {
412
446
  assets: Array<PortfolioAssetItem>;
413
447
  totalValue: number;
@@ -499,6 +533,7 @@ export declare function useInterwovenKit(): {
499
533
  chainId?: string;
500
534
  srcOptions?: AssetOption[];
501
535
  recipientAddress?: string;
536
+ onramp?: OnrampPreset;
502
537
  }) => void;
503
538
  openWithdraw: (params: {
504
539
  denoms: string[];