Add Fragnova mainnet and testnet (#9198)

* add the fragnova mainnet and testnet to the polkadot.js website

* added npm package `@fragnova/api-augment@0.1.0-spec-1.0`

* updated npm package `@fragnova/api-augment` to `0.1.0-spec-1.0.4-mainnet`

* added comment in "fixupModules.cjs"

---------

Co-authored-by: aang114 <karandevsapra@gmail.com>
This commit is contained in:
Giovanni Petrantoni 2023-03-19 18:24:25 +08:00 committed by GitHub
parent bea2bfab90
commit d63660d937
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 526 additions and 2 deletions

View File

@ -25,6 +25,7 @@
"@docknetwork/node-types": "0.15.0",
"@edgeware/node-types": "3.6.2-wako",
"@equilab/definitions": "1.4.18",
"@fragnova/api-augment": "0.1.0-spec-1.0.4-mainnet",
"@frequency-chain/api-augment": "1.3.0",
"@interlay/interbtc-types": "1.12.0",
"@kiltprotocol/type-definitions": "0.31.1",

View File

@ -0,0 +1,17 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { OverrideBundleDefinition } from '@polkadot/types/types';
import { options } from '@fragnova/api-augment';
export default {
...options,
types: [
{
// on all versions
minmax: [0, undefined],
types: options.types
}
]
} as OverrideBundleDefinition;

View File

@ -45,6 +45,7 @@ import encointerNodeTeeproxy from './encointer-node-teeproxy.js';
import encointerPara from './encointer-para.js';
import equilibrium from './equilibrium.js';
import fantour from './fantour.js';
import fragnova from './fragnova.js';
import frequency from './frequency.js';
import galital from './galital.js';
import galitalParachain from './galital-parachain.js';
@ -190,6 +191,8 @@ const spec: Record<string, OverrideBundleDefinition> = {
'encointer-node-teeproxy': encointerNodeTeeproxy,
'encointer-parachain': encointerPara,
fantour,
fragnova,
'fragnova-testnet': fragnova,
frequency,
'frequency-rococo': frequency,
galital,

View File

@ -54001,6 +54001,466 @@ export const typesBundle = {
}
]
},
"fragnova": {
"rpc": {
"fragments": {
"getDefinitions": {
"description": "Query and Return Fragment Definition(s) based on `params`",
"type": "String",
"params": [
{
"name": "param",
"type": "GetDefinitionsParams"
},
{
"name": "at",
"type": "BlockHash",
"isOptional": true
}
]
},
"getInstances": {
"description": "Query and Return Fragment Instance(s) based on `params`",
"type": "String",
"params": [
{
"name": "param",
"type": "GetInstancesParams"
},
{
"name": "at",
"type": "BlockHash",
"isOptional": true
}
]
},
"getInstanceOwner": {
"description": "Query the owner of a Fragment Instance. The return type is a String",
"type": "String",
"params": [
{
"name": "param",
"type": "GetInstanceOwnerParams"
},
{
"name": "at",
"type": "BlockHash",
"isOptional": true
}
]
}
},
"protos": {
"getData": {
"description": "Query and Return Proto-Fragment data based on `proto_hash`. The **return type** is base64 encoded bytes.",
"type": "String",
"params": [
{
"name": "proto_hash",
"type": "BlockHash"
},
{
"name": "at",
"type": "BlockHash",
"isOptional": true
}
]
},
"getProtos": {
"description": "Query and Return Proto-Fragment(s) based on `params`. The return type is a JSON string",
"type": "String",
"params": [
{
"name": "param",
"type": "GetProtosParams"
},
{
"name": "at",
"type": "BlockHash",
"isOptional": true
}
]
},
"getGenealogy": {
"description": "Query the Genealogy of a Proto-Fragment based on `params`. The return type is a JSON string that represents an Adjacency List.",
"type": "String",
"params": [
{
"name": "param",
"type": "GetGenealogyParams"
},
{
"name": "at",
"type": "BlockHash",
"isOptional": true
}
]
}
}
},
"types": [
{
"minmax": [
0,
null
],
"types": {
"DefinitionMetadata": {
"name": "Vec<u8>",
"currency": "Option<AssetId>",
"_reserved1": "Option<()>",
"_reserved2": "Option<()>",
"_reserved3": "Option<()>"
},
"GetDefinitionsParams": {
"desc": "bool",
"from": "u64",
"limit": "u64",
"metadata_keys": "Vec<String>",
"owner": "Option<AccountId>",
"return_owners": "bool"
},
"GetInstancesParams": {
"desc": "bool",
"from": "u64",
"limit": "u64",
"definition_hash": "String",
"metadata_keys": "Vec<String>",
"owner": "Option<AccountId>",
"only_return_first_copies": "bool"
},
"GetInstanceOwnerParams": {
"definition_hash": "String",
"edition_id": "InstanceUnit",
"copy_id": "InstanceUnit"
},
"InstanceUnit": "u64",
"Categories": {
"_enum": {
"text": "TextCategories",
"trait": "Option<ShardsTrait>",
"shards": "ShardsScriptInfo",
"audio": "AudioCategories",
"texture": "TextureCategories",
"vector": "VectorCategories",
"video": "VideoCategories",
"model": "ModelCategories",
"binary": "BinaryCategories"
}
},
"AudioCategories": {
"_enum": [
"oggFile",
"mp3File"
]
},
"ModelCategories": {
"_enum": [
"gltfFile",
"sdf",
"physicsCollider"
]
},
"TextureCategories": {
"_enum": [
"pngFile",
"jpgFile"
]
},
"VectorCategories": {
"_enum": [
"svgFile",
"ttfFile",
"otfFile"
]
},
"VideoCategories": {
"_enum": [
"mkvFile",
"mp4File"
]
},
"TextCategories": {
"_enum": [
"plain",
"json",
"wgsl",
"markdown"
]
},
"BinaryCategories": {
"_enum": [
"wasmProgram",
"wasmReactor",
"blendFile",
"onnxModel",
"safeTensors",
"rareDomain"
]
},
"ShardsScriptInfo": {
"format": "ShardsFormat",
"shardsVersion": "Compact<u32>",
"requiring": "Vec<ShardsTrait>",
"implementing": "Vec<ShardsTrait>"
},
"ShardsTrait": "Vec<u16>",
"ShardsFormat": {
"_enum": [
"edn",
"binary"
]
},
"GetProtosParams": {
"desc": "bool",
"from": "u32",
"limit": "u32",
"metadata_keys": "Vec<String>",
"owner": "Option<AccountId>",
"return_owners": "bool",
"categories": "Vec<Categories>",
"tags": "Vec<String>",
"exclude_tags": "Vec<String>",
"available": "Option<bool>"
},
"GetGenealogyParams": {
"proto_hash": "String",
"get_ancestors": "bool"
}
}
}
]
},
"fragnova-testnet": {
"rpc": {
"fragments": {
"getDefinitions": {
"description": "Query and Return Fragment Definition(s) based on `params`",
"type": "String",
"params": [
{
"name": "param",
"type": "GetDefinitionsParams"
},
{
"name": "at",
"type": "BlockHash",
"isOptional": true
}
]
},
"getInstances": {
"description": "Query and Return Fragment Instance(s) based on `params`",
"type": "String",
"params": [
{
"name": "param",
"type": "GetInstancesParams"
},
{
"name": "at",
"type": "BlockHash",
"isOptional": true
}
]
},
"getInstanceOwner": {
"description": "Query the owner of a Fragment Instance. The return type is a String",
"type": "String",
"params": [
{
"name": "param",
"type": "GetInstanceOwnerParams"
},
{
"name": "at",
"type": "BlockHash",
"isOptional": true
}
]
}
},
"protos": {
"getData": {
"description": "Query and Return Proto-Fragment data based on `proto_hash`. The **return type** is base64 encoded bytes.",
"type": "String",
"params": [
{
"name": "proto_hash",
"type": "BlockHash"
},
{
"name": "at",
"type": "BlockHash",
"isOptional": true
}
]
},
"getProtos": {
"description": "Query and Return Proto-Fragment(s) based on `params`. The return type is a JSON string",
"type": "String",
"params": [
{
"name": "param",
"type": "GetProtosParams"
},
{
"name": "at",
"type": "BlockHash",
"isOptional": true
}
]
},
"getGenealogy": {
"description": "Query the Genealogy of a Proto-Fragment based on `params`. The return type is a JSON string that represents an Adjacency List.",
"type": "String",
"params": [
{
"name": "param",
"type": "GetGenealogyParams"
},
{
"name": "at",
"type": "BlockHash",
"isOptional": true
}
]
}
}
},
"types": [
{
"minmax": [
0,
null
],
"types": {
"DefinitionMetadata": {
"name": "Vec<u8>",
"currency": "Option<AssetId>",
"_reserved1": "Option<()>",
"_reserved2": "Option<()>",
"_reserved3": "Option<()>"
},
"GetDefinitionsParams": {
"desc": "bool",
"from": "u64",
"limit": "u64",
"metadata_keys": "Vec<String>",
"owner": "Option<AccountId>",
"return_owners": "bool"
},
"GetInstancesParams": {
"desc": "bool",
"from": "u64",
"limit": "u64",
"definition_hash": "String",
"metadata_keys": "Vec<String>",
"owner": "Option<AccountId>",
"only_return_first_copies": "bool"
},
"GetInstanceOwnerParams": {
"definition_hash": "String",
"edition_id": "InstanceUnit",
"copy_id": "InstanceUnit"
},
"InstanceUnit": "u64",
"Categories": {
"_enum": {
"text": "TextCategories",
"trait": "Option<ShardsTrait>",
"shards": "ShardsScriptInfo",
"audio": "AudioCategories",
"texture": "TextureCategories",
"vector": "VectorCategories",
"video": "VideoCategories",
"model": "ModelCategories",
"binary": "BinaryCategories"
}
},
"AudioCategories": {
"_enum": [
"oggFile",
"mp3File"
]
},
"ModelCategories": {
"_enum": [
"gltfFile",
"sdf",
"physicsCollider"
]
},
"TextureCategories": {
"_enum": [
"pngFile",
"jpgFile"
]
},
"VectorCategories": {
"_enum": [
"svgFile",
"ttfFile",
"otfFile"
]
},
"VideoCategories": {
"_enum": [
"mkvFile",
"mp4File"
]
},
"TextCategories": {
"_enum": [
"plain",
"json",
"wgsl",
"markdown"
]
},
"BinaryCategories": {
"_enum": [
"wasmProgram",
"wasmReactor",
"blendFile",
"onnxModel",
"safeTensors",
"rareDomain"
]
},
"ShardsScriptInfo": {
"format": "ShardsFormat",
"shardsVersion": "Compact<u32>",
"requiring": "Vec<ShardsTrait>",
"implementing": "Vec<ShardsTrait>"
},
"ShardsTrait": "Vec<u16>",
"ShardsFormat": {
"_enum": [
"edn",
"binary"
]
},
"GetProtosParams": {
"desc": "bool",
"from": "u32",
"limit": "u32",
"metadata_keys": "Vec<String>",
"owner": "Option<AccountId>",
"return_owners": "bool",
"categories": "Vec<Categories>",
"tags": "Vec<String>",
"exclude_tags": "Vec<String>",
"available": "Option<bool>"
},
"GetGenealogyParams": {
"proto_hash": "String",
"get_ancestors": "bool"
}
}
}
]
},
"frequency": {
"rpc": {
"frequency": {

View File

@ -3,7 +3,7 @@
import type { EndpointOption } from './types.js';
import { chains3dpassPNG, chainsAlephSVG, chainsBittensorPNG, chainsCreditcoinPNG, chainsDebioSVG, chainsEquilibriumSVG, chainsGenshiroSVG, chainsLogionPNG, chainsMyriadPNG, chainsSpannerPNG } from '../ui/logos/chains/index.js';
import { chains3dpassPNG, chainsAlephSVG, chainsBittensorPNG, chainsCreditcoinPNG, chainsDebioSVG, chainsEquilibriumSVG, chainsFragnovaPNG, chainsGenshiroSVG, chainsLogionPNG, chainsMyriadPNG, chainsSpannerPNG } from '../ui/logos/chains/index.js';
import { nodesAresOdysseySVG, nodesAutomataPNG, nodesCentrifugePNG, nodesChainxSVG, nodesCompetitorsClubPNG, nodesCrownSterlingPNG, nodesCrustSVG, nodesDarwiniaSVG, nodesDatahighwayPNG, nodesDockPNG, nodesEdgewareWhitePNG, nodesEfinitySVG, nodesHanyonycashPNG, nodesHumanodePNG, nodesJoystreamSVG, nodesKulupuSVG, nodesKusariSVG, nodesMathSVG, nodesMinixPNG, nodesNftmartPNG, nodesNodleSVG, nodesPolkadexSVG, nodesPolymeshSVG, nodesRiochainSVG, nodesRobonomicsSVG, nodesSherpaxPNG, nodesSoraSubstrateSVG, nodesStafiPNG, nodesSubgameSVG, nodesSubsocialSVG, nodesSwapdexSVG, nodesTernoaSVG, nodesThebifrostPNG, nodesUniartsPNG, nodesUnitnetworkPNG } from '../ui/logos/nodes/index.js';
export * from './productionRelayKusama.js';
@ -208,6 +208,17 @@ export const prodChains: EndpointOption[] = [
logo: chainsEquilibriumSVG
}
},
{
info: 'fragnova',
providers: { // The actual hosted secure websocket endpoint
'Fragnova Network': 'wss://ws.fragnova.network'
},
text: 'Fragnova', // The text to display on the dropdown
ui: {
color: '#6b35a8',
logo: chainsFragnovaPNG
}
},
{
info: 'genshiro',
providers: {

View File

@ -3,7 +3,7 @@
import type { EndpointOption } from './types.js';
import { chains3dpassPNG, chainsAcalaSVG, chainsAlephSVG, chainsBrainstormPNG, chainsCreditcoinTestPNG, chainsDebioSVG, chainsEquilibriumSVG, chainsFerrumPNG, chainsKintsugiPNG, chainsLogionPNG, chainsMyriadPNG, chainsShidenPNG, chainsSkyekiwiPNG, chainsTanglePNG, chainsVaraSVG } from '../ui/logos/chains/index.js';
import { chains3dpassPNG, chainsAcalaSVG, chainsAlephSVG, chainsBrainstormPNG, chainsCreditcoinTestPNG, chainsDebioSVG, chainsEquilibriumSVG, chainsFerrumPNG, chainsFragnovaPNG, chainsKintsugiPNG, chainsLogionPNG, chainsMyriadPNG, chainsShidenPNG, chainsSkyekiwiPNG, chainsTanglePNG, chainsVaraSVG } from '../ui/logos/chains/index.js';
import { nodesAjunaPNG, nodesArcticPNG, nodesAresGladiosSVG, nodesAutomataPNG, nodesBifrostSVG, nodesBitcountryPNG, nodesCessPNG, nodesCloverSVG, nodesCrustMaxwellSVG, nodesCurioSVG, nodesDatahighwayPNG, nodesDockPNG, nodesDolphinSVG, nodesDotmogSVG, nodesEdgewareWhitePNG, nodesEncointerBlueSVG, nodesFantourPNG, nodesGalitalLogoPNG, nodesGamepowerSVG, nodesGeekSVG, nodesInterlaySVG, nodesIpsePNG, nodesJazPNG, nodesJupiterSVG, nodesKhalaSVG, nodesKiltPNG, nodesKlugPNG, nodesKylinPNG, nodesLaminarCircleSVG, nodesLitentryPNG, nodesMantaPNG, nodesMathSVG, nodesMinixPNG, nodesMoonbaseAlphaSVG, nodesMybankPNG, nodesNftmartPNG, nodesNodleSVG, nodesOpalLogoPNG, nodesOpportunityPNG, nodesPangoroSVG, nodesPhalaSVG, nodesPhoenixPNG, nodesPichiuPNG, nodesPolkadexSVG, nodesPolkafoundrySVG, nodesPolymeshSVG, nodesPontemSVG, nodesPrismPNG, nodesRealisPNG, nodesRiochainSVG, nodesSherpaxPNG, nodesSoonsocialPNG, nodesSoraSubstrateSVG, nodesSubdaoPNG, nodesSubgameSVG, nodesSubspacePNG, nodesSubstrateHexagonSVG, nodesTernoaSVG, nodesThebifrostPNG, nodesUniartsPNG, nodesUniqueSVG, nodesUnitnetworkPNG, nodesWeb3gamesSVG, nodesZCloakSVG } from '../ui/logos/nodes/index.js';
export * from './testingRelayRococo.js';
@ -299,6 +299,17 @@ export const testChains: EndpointOption[] = [
logo: nodesSubstrateHexagonSVG
}
},
{
info: 'fragnova',
providers: { // The actual hosted secure websocket endpoint
'Fragnova Network': 'wss://ws-test.fragnova.network'
},
text: 'Fragnova Testnet', // The text to display on the dropdown
ui: {
color: '#6b35a8',
logo: chainsFragnovaPNG
}
},
{
info: 'Galital',
providers: {

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

File diff suppressed because one or more lines are too long

View File

@ -21,6 +21,7 @@ export { chainsDorafactoryPNG } from './generated/dorafactoryPNG.js';
export { chainsDustyPNG } from './generated/dustyPNG.js';
export { chainsEquilibriumSVG } from './generated/equilibriumSVG.js';
export { chainsFerrumPNG } from './generated/ferrumPNG.js';
export { chainsFragnovaPNG } from './generated/fragnovaPNG.js';
export { chainsFrequencySVG } from './generated/frequencySVG.js';
export { chainsGeminisPNG } from './generated/geminisPNG.js';
export { chainsGenshiroSVG } from './generated/genshiroSVG.js';

View File

@ -7,6 +7,8 @@ const process = require('node:process');
// incorrect packages without type specifier
[
// See https://github.com/fragcolor-xyz/fragnova/issues/286
'@fragnova/api-augment',
// See https://github.com/LibertyDSNP/frequency/issues/1116
'@frequency-chain/api-augment'
].forEach((f) => {

View File

@ -674,6 +674,17 @@ __metadata:
languageName: node
linkType: hard
"@fragnova/api-augment@npm:0.1.0-spec-1.0.4-mainnet":
version: 0.1.0-spec-1.0.4-mainnet
resolution: "@fragnova/api-augment@npm:0.1.0-spec-1.0.4-mainnet"
dependencies:
"@polkadot/api": ^9.13.2
"@polkadot/rpc-provider": ^9.13.2
"@polkadot/types": ^9.13.2
checksum: 88b5b878693b55b1ff32f6be1308e68ed0a5871a4e2e0aa42aacc1fa2514135a6083dbdbf5d03aa6dd7c615bf9a0d4b9a4ed4231871b54ce5cb154375c32cdcc
languageName: node
linkType: hard
"@frequency-chain/api-augment@npm:1.3.0":
version: 1.3.0
resolution: "@frequency-chain/api-augment@npm:1.3.0"
@ -1684,6 +1695,7 @@ __metadata:
"@docknetwork/node-types": 0.15.0
"@edgeware/node-types": 3.6.2-wako
"@equilab/definitions": 1.4.18
"@fragnova/api-augment": 0.1.0-spec-1.0.4-mainnet
"@frequency-chain/api-augment": 1.3.0
"@interlay/interbtc-types": 1.12.0
"@kiltprotocol/type-definitions": 0.31.1