Skip to content

Commit

Permalink
OpenZeppelin runtime template (polkadot-js#10212)
Browse files Browse the repository at this point in the history
* Config for OZ template in PolkadotJS

* fix emblem

* fix ci

* fix CI

* updated ParaId
  • Loading branch information
KitHat authored Jan 23, 2024
1 parent f9b8730 commit 6bda536
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1 deletion.
22 changes: 22 additions & 0 deletions packages/apps-config/src/api/spec/oz-template.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright 2017-2024 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { OverrideBundleDefinition } from '@polkadot/types/types';

// structs need to be in order
/* eslint-disable sort-keys */

const definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Address: 'AccountId',
LookupSource: 'AccountId'
}
}
]
};

export default definitions;
12 changes: 11 additions & 1 deletion packages/apps-config/src/endpoints/testingRelayRococo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { EndpointOption } from './types.js';

import { ROCOCO_GENESIS } from '../api/constants.js';
import { chainsAcurastPNG, chainsAmplitudeSVG, chainsBitgreenPNG, chainsFrequencySVG, chainsGenshiroSVG, chainsHydratePNG, chainsIdiyanaleLogoWhiteSVG, chainsJurPNG, chainsMangataPNG, chainsMoonsamaPNG, chainsNeurowebTestnetPNG, chainsRococoSVG, chainsSnowbridgePNG, chainsT0rnPNG, chainsTinkerPNG, chainsTotemSVG, chainsTuringPNG, chainsVirtoPNG, chainsWatrPNG } from '../ui/logos/chains/index.js';
import { nodesArcticPNG, nodesAssetHubSVG, nodesAventusSVG, nodesBajunPNG, nodesBasiliskPNG, nodesBasiliskRococoBgPNG, nodesBifrostSVG, nodesBridgeHubBlackSVG, nodesCentrifugePNG, nodesConftiSVG, nodesCrustParachainSVG, nodesCurioSVG, nodesDatahighwayPNG, nodesDolphinSVG, nodesEncointerBlueSVG, nodesGiantPNG, nodesGiediPNG, nodesHelixstreetPNG, nodesImbuePNG, nodesIntegriteeSVG, nodesKabochaSVG, nodesKiltPNG, nodesLitentryRococoPNG, nodesMd5PNG, nodesMetaquityNetworkPNG, nodesNodleSVG, nodesOliSVG, nodesPangolinSVG, nodesPhalaSVG, nodesPicassoPNG, nodesPolkadexSVG, nodesRexSVG, nodesRobonomicsSVG, nodesRocfinitySVG, nodesSocietalSVG, nodesSoonsocialXPNG, nodesSoraSubstrateSVG, nodesSubstrateContractsNodePNG, nodesTrappistRococoPNG, nodesUnitnetworkPNG, nodesYerbanetworkPNG, nodesZeitgeistPNG, nodesZeroSVG } from '../ui/logos/nodes/index.js';
import { nodesArcticPNG, nodesAssetHubSVG, nodesAventusSVG, nodesBajunPNG, nodesBasiliskPNG, nodesBasiliskRococoBgPNG, nodesBifrostSVG, nodesBridgeHubBlackSVG, nodesCentrifugePNG, nodesConftiSVG, nodesCrustParachainSVG, nodesCurioSVG, nodesDatahighwayPNG, nodesDolphinSVG, nodesEncointerBlueSVG, nodesGiantPNG, nodesGiediPNG, nodesHelixstreetPNG, nodesImbuePNG, nodesIntegriteeSVG, nodesKabochaSVG, nodesKiltPNG, nodesLitentryRococoPNG, nodesMd5PNG, nodesMetaquityNetworkPNG, nodesNodleSVG, nodesOliSVG, nodesOzPNG, nodesPangolinSVG, nodesPhalaSVG, nodesPicassoPNG, nodesPolkadexSVG, nodesRexSVG, nodesRobonomicsSVG, nodesRocfinitySVG, nodesSocietalSVG, nodesSoonsocialXPNG, nodesSoraSubstrateSVG, nodesSubstrateContractsNodePNG, nodesTrappistRococoPNG, nodesUnitnetworkPNG, nodesYerbanetworkPNG, nodesZeitgeistPNG, nodesZeroSVG } from '../ui/logos/nodes/index.js';
import { getTeleports } from './util.js';

// The available endpoints that will show in the dropdown. For the most part (with the exception of
Expand Down Expand Up @@ -413,6 +413,16 @@ export const testParasRococo: Omit<EndpointOption, 'teleport'>[] = [
logo: nodesOliSVG
}
},
{
info: 'rococoOpenZeppelin',
paraId: 4354,
providers: {},
text: 'OpenZeppelin Runtime Template',
ui: {
color: '#f653a2',
logo: nodesOzPNG
}
},
{
info: 'rococoPangolin',
paraId: 2105,
Expand Down
6 changes: 6 additions & 0 deletions packages/apps-config/src/ui/logos/nodes/generated/ozPNG.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright 2017-2024 @polkadot/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0

// Do not edit. Auto-generated via node scripts/imgConvert.mjs

export const nodesOzPNG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAK8AAADDCAYAAAD0pEFUAAAACXBIWXMAAHjUAAB41AED++8iAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAEKhJREFUeJzt3X+cFPV5B/DPM7M7exA5EFoPBFrzqy9s/IGxptWg8ZVYU1uFg9ZLXqlKjts7VEDENKASpYsIAsYfCCUHHHioqfUqd7cg1rRp6a9YkxpRTk1T01QgNZgaI/Q4dmZ3nv4RjCfuHXt7M9/vzHyf93/s7H7nA3wY9rmZ2aXp1x1kCBE/fZbuBEJUh1ZLeUUc7ecaWivlFfFDtCDfOuGolFfECoG/1f3w6XkAkPKKOHEt0IJ3fyHlFbHBhLU72if+8N1fS3lFXBwo+KlV/R+Q8opYYOJFz2yv6+3/mJRXRB4B384/POnJEx+X8oqocy22FpTbIOUV0cb8wI7tE14ttymlOosQlaOfev6IuwfaKkdeEVlMuGX3o2MPD7Rdyiui6l92tp/++GBPkPKKKCoCPI8Zg16uK+UV0UNY390+6aWTPU3KK6KFcMgiL1fJU6W8IlIIWNy57YxfVPJcKa+Iku90t098pNInS3lFVPhs+TefbEjrT8orooF4Y37b5O8N5SVSXhEFb9lMy4b6Iimv0I7At+5on/jWUF8n5RW6PX/eRyZtreaFUl6hk0/M85Ytg1/Ni+WqMqERtXVtn/hcta+WI6/Q5W3PtpYOZwEpr9CDsHT31vE/G84SUl6hwwuZoxM3DXcRKa9Qjcm3Fj7xBErDXUjKK5QiQn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st/dlgC4JMUtkMPBM2/RMvtw2C/b9AD6kOJIoo6LyXvM0ahlsxD1pGGxI21e4DIw/Vh1IlFdReWsK3t0AJoScJRKYsGagIQ2QIS1KTlrexm73bBBfryJMBOz3apzV5TbUltybCZiiOpAY2KDlNW1IA2Ph9svRe+LDja/0jgewVEMiMYhBy9uU964zZUgD8K0t9U5XuQ22n74fQK3iPOIkBizvNU+jFsymnElzmQYY0l4sTgPjC6oDiZMbsLwjXG8FDBnSwFjTNj3zHyc+nNuDFFn+Bsg9aZFUtrzZTvcsBt+gOowmB9yRTtkPwDswrrAAwDmK84gKfaC8BBDZ5gxpjPJDWnNPbx1Ad+rIJCrzgYLO6fauZdBndIRRjulv2+rTneU3ptcAGKM0jxiS9x15r3katQQ25TNkXbb8sh872tJTvIgZ16oOJIbmfeWtKXjLYciQRsC95Ya0hg7Yvi9DWhz8qrwtO91PgPhGnWEUOlAY4ZT9aKrRUwrXgzBVdSAxdBbwyyHN92k9ACO+C4wZi8oNabN/gHEMyunIJIbOAoCmLu8agC/VnEUJAv1dW73zZLltjltYDWCc4kiiSlZTHqNA5gxpls1lh7Tmfd75TNSoOpConmXBWw7gdN1BVGDgvtYrnR+c+HgOsBjmfHNRUvw/Q+rxdxzM0SAAAAAASUVORK5CYII=';
1 change: 1 addition & 0 deletions packages/apps-config/src/ui/logos/nodes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export { nodesOliSVG } from './generated/oliSVG.js';
export { nodesOmnibtcSVG } from './generated/omnibtcSVG.js';
export { nodesOpalLogoPNG } from './generated/opal-logoPNG.js';
export { nodesOpportunityPNG } from './generated/opportunityPNG.js';
export { nodesOzPNG } from './generated/ozPNG.js';
export { nodesPangolinSVG } from './generated/pangolinSVG.js';
export { nodesPangoroSVG } from './generated/pangoroSVG.js';
export { nodesParallelSVG } from './generated/parallelSVG.js';
Expand Down
Binary file added packages/apps-config/src/ui/logos/nodes/oz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6bda536

Please sign in to comment.