Skip to content
This repository was archived by the owner on Dec 13, 2021. It is now read-only.
This repository was archived by the owner on Dec 13, 2021. It is now read-only.

WCIP-11: Update Session Params #11

@pedrouid

Description

@pedrouid

Right now the current interface for Session Params includes the following parameters (L129)

interface ISessionParams {
    approved: boolean
    chainId: number | null
    accounts: string[] | null
    peerId?: string | null
    peerMeta?: IClientMeta | null
  }

However it would be beneficial to add some extra parameters like networkId (required) and rpcUrl (optional). These would be analogous to the proposed changes on EIP-2015. Therefore the new Session Params interface would look as follows:

interface ISessionParams {
    approved: boolean
    chainId: number | null
    networkId: number | null
    accounts: string[] | null
    rpcUrl?: string | null
    peerId?: string | null
    peerMeta?: IClientMeta | null
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions