New features introduced to /chains
Introduction of Wallet. Expose non-supported wallets
- A new Wallet schema was introduced – its main contents are
key
(a unique string that identifies that wallet) #289 - If a wallet is not supported by a given chain, that wallet can be disabled
GET /api/v1/chains
[
{
"chainId": <string>,
"disabledWallets": [<string>] // eg.: [ "metamask", "trust"]
...
}
]
Block Explorer API template support
- A template that represents the URL to the Block Explorer API was added – this allows the usage of different block explorer APIs (that follow #290
- blockExplorerUriTemplate.api has the following components in the template:
{{module}}
(eg.: contract){{action}}
(eg.: getAbi){{address}}
(Ethereum address used for action – if needed){{apiKey}}
– API key for the block explorer (set by the clients)
GET /api/v1/chains
[
{
"chainId": <string>,
"chainName": <string>,
"blockExplorerUriTemplate": {
"address": "https://etherscan.io/address/{{address}}", // example
"txHash": "https://etherscan.io/tx/{{txHash}}" // example
"api": "https://api.etherscan.io/api?module={{module}}&action={{action}}&address={{address}}&apiKey={{apiKey}}" // new field example
},
}
]
Add Chain Feature
Feature
is a new schema with a singlekey
that represent that feature. AFeature
can be enabled for multiple Chains. #291- The goal of each
Feature
is to describe its support on a given chain.
GET /api/v1/chains
[
{
"chainId": <string>,
"features": [<string>] // eg.: [ "ERC721", "SAFE_APPS"]
...
}
]
Other Changes
- Bump actions/checkout from 2.3.5 to 2.4.0 in #294
- Bump faker from 9.7.1 to 9.8.0 in #295
- Bump coveralls from 3.2.0 to 3.3.0 in #297
- Bump coverage from 5.5 to 6.1.1 in #284
- Bump boto3 from 1.19.7 to 1.19.12 in #298
- Bump isort from 5.9.3 to 5.10.0 in #296
Full Changelog: v2.5.3...v2.6.0