📄️ Types
This document describes how to define a network.
📄️ Hooks
In Mask Network, a special kind of plugin provides the abilities of a network; they are "Network Plugins". Each of them has a unique ID. An enum called NetworkPlugin lists them all in it.
📄️ States
In the developing process of Mask Network, we abstract common features from different networks. Based on that, we create a state for each feature to avoid repeating ourselves.
📄️ Connection
To participate in the network, we need to send requests and receive responses from a node in the network. We have tools like ethers.js, web3.js and FCL helps to compose request payloads and decode responses.
📄️ Hub
📄️ Provider
We assume a wallet provider is an application available as a client-side application or server-side service. It handles requests from decentralized applications and provides APIs to create an interactable instance (Web3) with the official SDK. A network specification also defines the APIs as a protocol (Web3Provider) that all wallet providers should implement them.
📄️ Others
The Others provides a way to access network definitions.