Skip to main content

@raidguild/quiver

Index

Type aliases

Awaited

Awaited<T>: T extends PromiseLike<infer U> ? Awaited<U> : T

Type parameters

  • T

ContractFunctions

ContractFunctions<TContract>: TContract extends ContractInstance<infer TFunctions> ? TFunctions : never

Type parameters

NetworkConfig

NetworkConfig: {}

Type declaration

  • [chainId string]: { chainId: string; explorer: string; name: string; rpc: string; symbol: string }

WalletContextType

WalletContextType: { address: string | null | undefined; chainId: string | null | undefined; isConnected: boolean; isConnecting: boolean; isMetamask: boolean; networks: NetworkConfig; provider: providers.Web3Provider | null | undefined; connectWallet: any; disconnect: any; switchNetwork: any }

Type declaration

  • address: string | null | undefined
  • chainId: string | null | undefined
  • isConnected: boolean
  • isConnecting: boolean
  • isMetamask: boolean
  • networks: NetworkConfig
  • provider: providers.Web3Provider | null | undefined
  • connectWallet: function
    • connectWallet(): Promise<void>

    • Returns Promise<void>

  • disconnect: function
    • disconnect(): void

    • Returns void

  • switchNetwork: function
    • switchNetwork(chainId: string): void

    • Parameters

      • chainId: string

      Returns void

Common ABIs

constERC165_ABI

ERC165_ABI: readonly string[] = ...

An ABI definition for ERC165.

constERC20_ABI

ERC20_ABI: readonly string[] = ...

A minimal ABI definition for an ERC20 token.

constERC721_ABI

ERC721_ABI: readonly string[] = ...

An ABI definition for an ERC721 (non-fungible) token. This ABI includes common extensions for metadata, and enumerability.

constERC721_BASE_ABI

ERC721_BASE_ABI: readonly string[] = ...

A minimal ABI definition for an ERC721 (non-fungible) token.

constERC721_ENUMERABLE_ABI

ERC721_ENUMERABLE_ABI: readonly string[] = ...

An ABI definition for enumerability of ERC721 tokens.

constERC721_METADATA_ABI

ERC721_METADATA_ABI: readonly string[] = ...

Providers

constWalletProvider

WalletProvider: React.FC<React.PropsWithChildren<{ defaultChainId?: string; networks: NetworkConfig; web3modalOptions: Partial<ICoreOptions>; handleModalEvents?: any }>> = ...