Add Frequency Mainnet (#8398)
* Add Frequency Mainnet * Adding Spec for Frequency
This commit is contained in:
parent
2a7ba5b5ab
commit
c4e44b7f93
@ -23,6 +23,7 @@
|
||||
"@docknetwork/node-types": "0.13.0",
|
||||
"@edgeware/node-types": "3.6.2-wako",
|
||||
"@equilab/definitions": "1.4.14",
|
||||
"@frequency-chain/api-augment": "^0.9.29",
|
||||
"@interlay/interbtc-types": "1.9.0",
|
||||
"@kiltprotocol/type-definitions": "^0.2.1",
|
||||
"@laminar/type-definitions": "0.3.1",
|
||||
|
||||
17
packages/apps-config/src/api/spec/frequency.ts
Normal file
17
packages/apps-config/src/api/spec/frequency.ts
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright 2017-2022 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import { options } from '@frequency-chain/api-augment';
|
||||
|
||||
export default {
|
||||
...options,
|
||||
types: [
|
||||
{
|
||||
// on all versions
|
||||
minmax: [0, undefined],
|
||||
types: options.types
|
||||
}
|
||||
]
|
||||
} as OverrideBundleDefinition;
|
||||
@ -44,6 +44,7 @@ import encointerNodeTeeproxy from './encointer-node-teeproxy';
|
||||
import encointerPara from './encointer-para';
|
||||
import equilibrium from './equilibrium';
|
||||
import fantour from './fantour';
|
||||
import frequency from './frequency';
|
||||
import galital from './galital';
|
||||
import galitalParachain from './galital-parachain';
|
||||
import galois from './galois';
|
||||
@ -185,6 +186,8 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
'encointer-node-teeproxy': encointerNodeTeeproxy,
|
||||
'encointer-parachain': encointerPara,
|
||||
fantour,
|
||||
frequency,
|
||||
'frequency-rococo': frequency,
|
||||
galital,
|
||||
'galital-collator': galitalParachain,
|
||||
gamepower,
|
||||
|
||||
@ -33573,6 +33573,498 @@ export const typesBundle = {
|
||||
}
|
||||
]
|
||||
},
|
||||
"frequency": {
|
||||
"rpc": {
|
||||
"msa": {
|
||||
"checkDelegations": {
|
||||
"description": "Test a list of MSAs to see if they have delegated to the provider MSA",
|
||||
"params": [
|
||||
{
|
||||
"name": "delegator_msa_ids",
|
||||
"type": "Vec<DelegatorId>"
|
||||
},
|
||||
{
|
||||
"name": "provider_msa_id",
|
||||
"type": "ProviderId"
|
||||
},
|
||||
{
|
||||
"name": "block_number",
|
||||
"type": "BlockNumber"
|
||||
},
|
||||
{
|
||||
"name": "schema_id",
|
||||
"type": "Option<SchemaId>"
|
||||
}
|
||||
],
|
||||
"type": "Vec<(DelegatorId, bool)>"
|
||||
},
|
||||
"grantedSchemaIdsByMsaId": {
|
||||
"description": "Fetch the list of schema ids that a delegator has granted to provider",
|
||||
"params": [
|
||||
{
|
||||
"name": "delegator_msa_id",
|
||||
"type": "DelegatorId"
|
||||
},
|
||||
{
|
||||
"name": "provider_msa_id",
|
||||
"type": "ProviderId"
|
||||
}
|
||||
],
|
||||
"type": "Option<Vec<SchemaId>>"
|
||||
}
|
||||
},
|
||||
"messages": {
|
||||
"getBySchemaId": {
|
||||
"description": "Get messages by schemaId paginated",
|
||||
"params": [
|
||||
{
|
||||
"name": "schema_id",
|
||||
"type": "SchemaId"
|
||||
},
|
||||
{
|
||||
"name": "pagination",
|
||||
"type": "BlockPaginationRequest"
|
||||
}
|
||||
],
|
||||
"type": "BlockPaginationResponseMessage"
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"getBySchemaId": {
|
||||
"description": "Get a Schema by Id",
|
||||
"params": [
|
||||
{
|
||||
"name": "schema_id",
|
||||
"type": "SchemaId"
|
||||
}
|
||||
],
|
||||
"type": "Option<SchemaResponse>"
|
||||
},
|
||||
"checkSchemaValidity": {
|
||||
"description": "",
|
||||
"params": [
|
||||
{
|
||||
"name": "model",
|
||||
"type": "SchemaModel"
|
||||
},
|
||||
{
|
||||
"name": "at",
|
||||
"type": "BlockHash",
|
||||
"isOptional": true
|
||||
}
|
||||
],
|
||||
"type": "bool"
|
||||
}
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"minmax": [
|
||||
0,
|
||||
null
|
||||
],
|
||||
"types": {
|
||||
"MessageSourceId": "u64",
|
||||
"DelegatorId": "MessageSourceId",
|
||||
"ProviderId": "MessageSourceId",
|
||||
"KeyInfoResponse": {
|
||||
"key": "AccountId",
|
||||
"msaId": "MessageSourceId"
|
||||
},
|
||||
"BlockPaginationRequest": {
|
||||
"from_block": "BlockNumber",
|
||||
"from_index": "u32",
|
||||
"to_block": "BlockNumber",
|
||||
"page_size": "u32"
|
||||
},
|
||||
"MessageResponse": {
|
||||
"payload": "Option<Vec<u8>>",
|
||||
"cid": "Option<Vec<u8>>",
|
||||
"provider_msa_id": "MessageSourceId",
|
||||
"msa_id": "Option<MessageSourceId>",
|
||||
"index": "u16",
|
||||
"block_number": "BlockNumber",
|
||||
"payload_length": "Option<u32>"
|
||||
},
|
||||
"BlockPaginationResponseMessage": {
|
||||
"content": "Vec<MessageResponse>",
|
||||
"has_next": "bool",
|
||||
"next_block": "Option<BlockNumber>",
|
||||
"next_index": "Option<u32>"
|
||||
},
|
||||
"SchemaId": "u16",
|
||||
"SchemaModel": "Vec<u8>",
|
||||
"SchemaResponse": {
|
||||
"schema_id": "SchemaId",
|
||||
"model": "SchemaModel",
|
||||
"model_type": "ModelType",
|
||||
"payload_location": "PayloadLocation"
|
||||
},
|
||||
"ModelType": {
|
||||
"_enum": [
|
||||
"AvroBinary",
|
||||
"Parquet"
|
||||
]
|
||||
},
|
||||
"PayloadLocation": {
|
||||
"_enum": [
|
||||
"OnChain",
|
||||
"IPFS"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"signedExtensions": {
|
||||
"CheckFreeExtrinsicUse": {
|
||||
"extrinsic": {},
|
||||
"payload": {}
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"MsaRuntimeApi": [
|
||||
{
|
||||
"methods": {
|
||||
"has_delegation": {
|
||||
"description": "Check to see if a delegation existed between the given delegator and provider at a given block",
|
||||
"params": [
|
||||
{
|
||||
"name": "delegator_id",
|
||||
"type": "DelegatorId"
|
||||
},
|
||||
{
|
||||
"name": "provider_id",
|
||||
"type": "ProviderId"
|
||||
},
|
||||
{
|
||||
"name": "block_number",
|
||||
"type": "BlockNumber"
|
||||
},
|
||||
{
|
||||
"name": "schema_id",
|
||||
"type": "Option<SchemaId>"
|
||||
}
|
||||
],
|
||||
"type": "bool"
|
||||
},
|
||||
"get_granted_schemas_by_msa_id": {
|
||||
"description": "Get the list of schema ids (if any) that exist in any delegation between the delegator and provider",
|
||||
"params": [
|
||||
{
|
||||
"name": "delegator_id",
|
||||
"type": "DelegatorId"
|
||||
},
|
||||
{
|
||||
"name": "provider_id",
|
||||
"type": "ProviderId"
|
||||
}
|
||||
],
|
||||
"type": "Option<Vec<SchemaId>>"
|
||||
}
|
||||
},
|
||||
"version": 1
|
||||
}
|
||||
],
|
||||
"MessagesRuntimeApi": [
|
||||
{
|
||||
"methods": {
|
||||
"get_messages_by_schema_and_block": {
|
||||
"description": "Retrieve the messages for a particular schema and block number",
|
||||
"params": [
|
||||
{
|
||||
"name": "schema_id",
|
||||
"type": "SchemaId"
|
||||
},
|
||||
{
|
||||
"name": "schema_payload_location",
|
||||
"type": "PayloadLocation"
|
||||
},
|
||||
{
|
||||
"name": "block_number",
|
||||
"type": "BlockNumber"
|
||||
}
|
||||
],
|
||||
"type": "Vec<MessageResponse>"
|
||||
},
|
||||
"get_schema_by_id": {
|
||||
"description": "Retrieve a schema by id",
|
||||
"params": [
|
||||
{
|
||||
"name": "schema_id",
|
||||
"type": "SchemaId"
|
||||
}
|
||||
],
|
||||
"type": "Option<SchemaResponse>"
|
||||
}
|
||||
},
|
||||
"version": 1
|
||||
}
|
||||
],
|
||||
"SchemasRuntimeApi": [
|
||||
{
|
||||
"methods": {
|
||||
"get_schema_by_id": {
|
||||
"description": "Fetch the schema by id",
|
||||
"params": [
|
||||
{
|
||||
"name": "schema_id",
|
||||
"type": "SchemaId"
|
||||
}
|
||||
],
|
||||
"type": "Option<SchemaResponse>"
|
||||
}
|
||||
},
|
||||
"version": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"frequency-rococo": {
|
||||
"rpc": {
|
||||
"msa": {
|
||||
"checkDelegations": {
|
||||
"description": "Test a list of MSAs to see if they have delegated to the provider MSA",
|
||||
"params": [
|
||||
{
|
||||
"name": "delegator_msa_ids",
|
||||
"type": "Vec<DelegatorId>"
|
||||
},
|
||||
{
|
||||
"name": "provider_msa_id",
|
||||
"type": "ProviderId"
|
||||
},
|
||||
{
|
||||
"name": "block_number",
|
||||
"type": "BlockNumber"
|
||||
},
|
||||
{
|
||||
"name": "schema_id",
|
||||
"type": "Option<SchemaId>"
|
||||
}
|
||||
],
|
||||
"type": "Vec<(DelegatorId, bool)>"
|
||||
},
|
||||
"grantedSchemaIdsByMsaId": {
|
||||
"description": "Fetch the list of schema ids that a delegator has granted to provider",
|
||||
"params": [
|
||||
{
|
||||
"name": "delegator_msa_id",
|
||||
"type": "DelegatorId"
|
||||
},
|
||||
{
|
||||
"name": "provider_msa_id",
|
||||
"type": "ProviderId"
|
||||
}
|
||||
],
|
||||
"type": "Option<Vec<SchemaId>>"
|
||||
}
|
||||
},
|
||||
"messages": {
|
||||
"getBySchemaId": {
|
||||
"description": "Get messages by schemaId paginated",
|
||||
"params": [
|
||||
{
|
||||
"name": "schema_id",
|
||||
"type": "SchemaId"
|
||||
},
|
||||
{
|
||||
"name": "pagination",
|
||||
"type": "BlockPaginationRequest"
|
||||
}
|
||||
],
|
||||
"type": "BlockPaginationResponseMessage"
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"getBySchemaId": {
|
||||
"description": "Get a Schema by Id",
|
||||
"params": [
|
||||
{
|
||||
"name": "schema_id",
|
||||
"type": "SchemaId"
|
||||
}
|
||||
],
|
||||
"type": "Option<SchemaResponse>"
|
||||
},
|
||||
"checkSchemaValidity": {
|
||||
"description": "",
|
||||
"params": [
|
||||
{
|
||||
"name": "model",
|
||||
"type": "SchemaModel"
|
||||
},
|
||||
{
|
||||
"name": "at",
|
||||
"type": "BlockHash",
|
||||
"isOptional": true
|
||||
}
|
||||
],
|
||||
"type": "bool"
|
||||
}
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"minmax": [
|
||||
0,
|
||||
null
|
||||
],
|
||||
"types": {
|
||||
"MessageSourceId": "u64",
|
||||
"DelegatorId": "MessageSourceId",
|
||||
"ProviderId": "MessageSourceId",
|
||||
"KeyInfoResponse": {
|
||||
"key": "AccountId",
|
||||
"msaId": "MessageSourceId"
|
||||
},
|
||||
"BlockPaginationRequest": {
|
||||
"from_block": "BlockNumber",
|
||||
"from_index": "u32",
|
||||
"to_block": "BlockNumber",
|
||||
"page_size": "u32"
|
||||
},
|
||||
"MessageResponse": {
|
||||
"payload": "Option<Vec<u8>>",
|
||||
"cid": "Option<Vec<u8>>",
|
||||
"provider_msa_id": "MessageSourceId",
|
||||
"msa_id": "Option<MessageSourceId>",
|
||||
"index": "u16",
|
||||
"block_number": "BlockNumber",
|
||||
"payload_length": "Option<u32>"
|
||||
},
|
||||
"BlockPaginationResponseMessage": {
|
||||
"content": "Vec<MessageResponse>",
|
||||
"has_next": "bool",
|
||||
"next_block": "Option<BlockNumber>",
|
||||
"next_index": "Option<u32>"
|
||||
},
|
||||
"SchemaId": "u16",
|
||||
"SchemaModel": "Vec<u8>",
|
||||
"SchemaResponse": {
|
||||
"schema_id": "SchemaId",
|
||||
"model": "SchemaModel",
|
||||
"model_type": "ModelType",
|
||||
"payload_location": "PayloadLocation"
|
||||
},
|
||||
"ModelType": {
|
||||
"_enum": [
|
||||
"AvroBinary",
|
||||
"Parquet"
|
||||
]
|
||||
},
|
||||
"PayloadLocation": {
|
||||
"_enum": [
|
||||
"OnChain",
|
||||
"IPFS"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"signedExtensions": {
|
||||
"CheckFreeExtrinsicUse": {
|
||||
"extrinsic": {},
|
||||
"payload": {}
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"MsaRuntimeApi": [
|
||||
{
|
||||
"methods": {
|
||||
"has_delegation": {
|
||||
"description": "Check to see if a delegation existed between the given delegator and provider at a given block",
|
||||
"params": [
|
||||
{
|
||||
"name": "delegator_id",
|
||||
"type": "DelegatorId"
|
||||
},
|
||||
{
|
||||
"name": "provider_id",
|
||||
"type": "ProviderId"
|
||||
},
|
||||
{
|
||||
"name": "block_number",
|
||||
"type": "BlockNumber"
|
||||
},
|
||||
{
|
||||
"name": "schema_id",
|
||||
"type": "Option<SchemaId>"
|
||||
}
|
||||
],
|
||||
"type": "bool"
|
||||
},
|
||||
"get_granted_schemas_by_msa_id": {
|
||||
"description": "Get the list of schema ids (if any) that exist in any delegation between the delegator and provider",
|
||||
"params": [
|
||||
{
|
||||
"name": "delegator_id",
|
||||
"type": "DelegatorId"
|
||||
},
|
||||
{
|
||||
"name": "provider_id",
|
||||
"type": "ProviderId"
|
||||
}
|
||||
],
|
||||
"type": "Option<Vec<SchemaId>>"
|
||||
}
|
||||
},
|
||||
"version": 1
|
||||
}
|
||||
],
|
||||
"MessagesRuntimeApi": [
|
||||
{
|
||||
"methods": {
|
||||
"get_messages_by_schema_and_block": {
|
||||
"description": "Retrieve the messages for a particular schema and block number",
|
||||
"params": [
|
||||
{
|
||||
"name": "schema_id",
|
||||
"type": "SchemaId"
|
||||
},
|
||||
{
|
||||
"name": "schema_payload_location",
|
||||
"type": "PayloadLocation"
|
||||
},
|
||||
{
|
||||
"name": "block_number",
|
||||
"type": "BlockNumber"
|
||||
}
|
||||
],
|
||||
"type": "Vec<MessageResponse>"
|
||||
},
|
||||
"get_schema_by_id": {
|
||||
"description": "Retrieve a schema by id",
|
||||
"params": [
|
||||
{
|
||||
"name": "schema_id",
|
||||
"type": "SchemaId"
|
||||
}
|
||||
],
|
||||
"type": "Option<SchemaResponse>"
|
||||
}
|
||||
},
|
||||
"version": 1
|
||||
}
|
||||
],
|
||||
"SchemasRuntimeApi": [
|
||||
{
|
||||
"methods": {
|
||||
"get_schema_by_id": {
|
||||
"description": "Fetch the schema by id",
|
||||
"params": [
|
||||
{
|
||||
"name": "schema_id",
|
||||
"type": "SchemaId"
|
||||
}
|
||||
],
|
||||
"type": "Option<SchemaResponse>"
|
||||
}
|
||||
},
|
||||
"version": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"galital": {
|
||||
"types": [
|
||||
{
|
||||
|
||||
@ -181,6 +181,16 @@ export const prodParasPolkadot: EndpointOption[] = [
|
||||
Dwellir: 'wss://equilibrium-rpc.dwellir.com'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'frequency',
|
||||
homepage: 'https://frequency.xyz',
|
||||
paraId: 2091,
|
||||
text: 'Frequency',
|
||||
providers: {
|
||||
'Frequency 0': 'wss://0.rpc.frequency.xyz',
|
||||
'Frequency 1': 'wss://1.rpc.frequency.xyz'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'geminis',
|
||||
isUnreachable: true,
|
||||
|
||||
@ -54,6 +54,7 @@ const chainDotMog = '#020609';
|
||||
const chainEfinity = '#496ddb';
|
||||
const chainEquilibrium = '#1792ff';
|
||||
const chainFantour = '#5a189a';
|
||||
const chainFrequency = '#4b64ff';
|
||||
const chainFrequencyRococo = '#29fd47';
|
||||
const chainGalital = '#00063F';
|
||||
const chainGalois = '#000000';
|
||||
@ -339,6 +340,7 @@ export const chainColors: Record<string, string> = Object.entries({
|
||||
'Equilibrium parachain': chainEquilibrium,
|
||||
EquilibriumTestnet: chainGenshiro,
|
||||
'Fantour Development': chainFantour,
|
||||
Frequency: chainFrequency,
|
||||
'Frequency Rococo': chainFrequencyRococo,
|
||||
Galital: chainGalital,
|
||||
'Galois-PoC-1': chainGalois,
|
||||
|
||||
@ -1 +1 @@
|
||||
<svg width="120mm" height="120mm" viewBox="0 0 120 120" xml:space="preserve" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="a"><stop style="stop-color:#4473ec;stop-opacity:1" offset=".058"/><stop style="stop-color:#29fd47;stop-opacity:1" offset=".672"/></linearGradient><linearGradient xlink:href="#a" id="b" x1="134.677" y1="257.847" x2="180.191" y2="257.847" gradientUnits="userSpaceOnUse" gradientTransform="matrix(1 0 0 1 -64.176 8.217)"/></defs><g transform="translate(-29.77 -203.063)"><circle style="stroke:none;stroke-opacity:1;fill:#000;fill-opacity:1" cx="89.769" cy="263.063" r="60"/><path style="fill:url(#b);fill-opacity:1;stroke:none" d="M115.881 229.7v12.107H83.285v24.638c25.219-10.81.03.05 25.23-10.752.212 13.076.012-.021.254 13.058-25.352 11.11-.049.067-25.397 11.105-.046 22.584.004.013-.087 22.573H70.5V229.7z"/></g></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" xmlns:v="https://vecta.io/nano"><defs><linearGradient id="A" x1="54" y1="84" x2="114" y2="84" gradientUnits="userSpaceOnUse"><stop offset=".058" stop-color="#4473ec"/><stop offset=".672" stop-color="#29fd47"/></linearGradient></defs><circle cx="80" cy="80" r="80"/><path d="M54.3 35.5h60.5v16H71.5v33L105 70v17.5L71.5 102v30.5H54.3z" fill="url(#A)"/></svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 900 B After Width: | Height: | Size: 422 B |
@ -300,6 +300,7 @@ export const chainLogos = Object.entries({
|
||||
Equilibrium: chainEquilibrium,
|
||||
'Equilibrium parachain': chainEquilibrium,
|
||||
EquilibriumTestnet: chainEquilibrium,
|
||||
Frequency: chainFrequency,
|
||||
'Frequency Rococo': chainFrequency,
|
||||
Galital: nodeGalital,
|
||||
'GamePower Network': nodeGamePower,
|
||||
@ -759,6 +760,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
encointer: nodeEncointer,
|
||||
equilibrium: chainEquilibrium,
|
||||
fantour: nodeFantour,
|
||||
frequency: chainFrequency,
|
||||
galital: nodeGalital,
|
||||
galois: nodeMath,
|
||||
gamepower: nodeGamePower,
|
||||
|
||||
12
yarn.lock
12
yarn.lock
@ -1933,6 +1933,17 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@frequency-chain/api-augment@npm:^0.9.29":
|
||||
version: 0.9.29
|
||||
resolution: "@frequency-chain/api-augment@npm:0.9.29"
|
||||
dependencies:
|
||||
"@polkadot/api": ^9.6.2
|
||||
"@polkadot/rpc-provider": ^9.6.2
|
||||
"@polkadot/types": ^9.6.2
|
||||
checksum: 452d3ecd2e322bea5063bbd744f75cc3ff4a5f38ee9864799eb09d7b2dd270bd541f7cd7c4fb632a47e9c6ec46ee06a2e4907f046c0c1821ddc8af2f08b8ce8e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@humanwhocodes/config-array@npm:^0.11.6":
|
||||
version: 0.11.6
|
||||
resolution: "@humanwhocodes/config-array@npm:0.11.6"
|
||||
@ -3150,6 +3161,7 @@ __metadata:
|
||||
"@docknetwork/node-types": 0.13.0
|
||||
"@edgeware/node-types": 3.6.2-wako
|
||||
"@equilab/definitions": 1.4.14
|
||||
"@frequency-chain/api-augment": ^0.9.29
|
||||
"@interlay/interbtc-types": 1.9.0
|
||||
"@kiltprotocol/type-definitions": ^0.2.1
|
||||
"@laminar/type-definitions": 0.3.1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user