add Synthetify to mainnet-beta.json (#424)

* add Synthetify to mainnet-beta.json

* add sortRank to RealmInfo
This commit is contained in:
Pawel-Szydlo 2022-03-09 17:21:31 +01:00 committed by GitHub
parent 14b08eaca5
commit 9d91810487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 165 additions and 4 deletions

View File

@ -29,6 +29,8 @@ export interface RealmInfo {
bannerImage?: string
isCertified: boolean
// 3- featured DAOs ,2- new DAO with active proposals, 1- DAOs with active proposal,
sortRank?: number
}
export function getProgramVersionForRealm(realmInfo: RealmInfo) {

1
next-env.d.ts vendored
View File

@ -1,5 +1,4 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited

View File

@ -36,8 +36,8 @@ const Realms = () => {
getUnchartedRealmInfos(connection),
])
const allRealms = [...certifiedRealms, ...uncharteredRealms]
setRealms(allRealms)
setFilteredRealms(allRealms)
setRealms(sortDaos(allRealms))
setFilteredRealms(sortDaos(allRealms))
setIsLoadingRealms(false)
}
if (selectedRealm.realm) {
@ -59,7 +59,11 @@ const Realms = () => {
}
router.push(fmtUrlWithCluster(`/realms/new`))
}
const sortDaos = (realmInfoData: RealmInfo[]) => {
return realmInfoData.sort((a: RealmInfo, b: RealmInfo) => {
return (b.sortRank ?? -0) - (a.sortRank ?? -0)
})
}
const filterDaos = (v) => {
setSearchString(v)
if (v.length > 0) {

View File

@ -0,0 +1,146 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="1920"
height="1482"
viewBox="0 0 507.99999 392.1129"
version="1.1"
id="svg5"
inkscape:version="1.1 (c68e22c387, 2021-05-23)"
sodipodi:docname="Synthetify logo green.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:document-units="mm"
showgrid="false"
units="px"
width="1920px"
inkscape:zoom="0.22627417"
inkscape:cx="3721.1494"
inkscape:cy="1480.5048"
inkscape:window-width="2560"
inkscape:window-height="1346"
inkscape:window-x="-11"
inkscape:window-y="-11"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs2" />
<g
inkscape:label="Warstwa 1"
inkscape:groupmode="layer"
id="layer1">
<g
style="clip-rule:evenodd;fill:#00f9bb;fill-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;fill-opacity:1"
id="g6386"
transform="matrix(0.5235285,0,0,0.5235285,-7.7570055,-52.964324)">
<g
transform="matrix(4.6075,0,-1.60927,4.6075,-718.738,-4931)"
id="g6353"
style="fill:#00f9bb;fill-opacity:1">
<g
id="g6351"
style="fill:#00f9bb;fill-opacity:1">
<g
transform="matrix(0.983552,0,0.343527,0.983552,-743.563,14.8473)"
id="g6307"
style="fill:#00f9bb;fill-opacity:1">
<path
d="m 1136.7872,1203.3847 c -3.0509,3.365 -6.3263,6.0571 -9.9157,8.2107 -9.751,5.8625 -22.0144,7.7617 -39.4376,7.9412 h -4.4268 0.015 -96.19977 l -63.20493,40.6641 c 0,0 152.0765,0 152.0765,0 24.6916,-0.09 46.6761,-16.3613 55.0213,-39.6022 2.2582,-6.2813 4.2922,-12.0541 6.072,-17.2138 z m -151.0955,-50.4 h 118.2381 c 7.1936,-0.03 13.9536,3.4248 18.141,9.2725 4.1727,5.8475 5.2644,13.3552 2.9164,20.1599 0,0 0,0 0,0 -2.9014,8.4199 -10.8128,14.5815 -19.7263,14.6117 H 965.34025 c -5.57991,-0.1797 -10.77993,-2.9314 -14.06565,-7.4779 -3.41284,-4.7109 -4.34158,-10.783 -2.49456,-16.3165 l 12.31583,-36.8204 c 6.1168,11.3811 18.43416,16.4361 24.59583,16.5707 z m 104.6886,-21.9397 40.7536,-35.295 H 999.8845 c -5.86261,0.015 -11.07908,4.2324 -12.99637,9.7809 0,0 0,0 0,0 -2.03843,5.8924 -1.09324,12.3981 2.53197,17.4681 3.6297,5.0699 9.49225,8.0758 15.7137,8.046 36.327,-0.1346 54.0941,-0.015 85.2465,0 z"
style="fill:#00f9bb;fill-opacity:1;stroke-width:1.49556"
id="path6305" />
</g>
<g
transform="matrix(0.781016,0,0.272787,0.781016,-685.216,491.027)"
id="g6349"
style="fill:#00f9bb;fill-opacity:1">
<g
transform="matrix(50,0,0,50,1298.75,980.644)"
id="g6311"
style="fill:#00f9bb;fill-opacity:1">
</g>
<g
transform="matrix(50,0,0,50,1334.05,980.644)"
id="g6315"
style="fill:#00f9bb;fill-opacity:1">
</g>
<g
transform="matrix(50,0,0,50,1364.95,980.644)"
id="g6319"
style="fill:#00f9bb;fill-opacity:1">
</g>
<g
transform="matrix(50,0,0,50,1397.9,980.644)"
id="g6323"
style="fill:#00f9bb;fill-opacity:1">
</g>
<g
transform="matrix(50,0,0,50,1418.8,980.644)"
id="g6327"
style="fill:#00f9bb;fill-opacity:1">
</g>
<g
transform="matrix(50,0,0,50,1451.75,980.644)"
id="g6331"
style="fill:#00f9bb;fill-opacity:1">
</g>
<g
transform="matrix(50,0,0,50,1483.3,980.644)"
id="g6335"
style="fill:#00f9bb;fill-opacity:1">
</g>
<g
transform="matrix(50,0,0,50,1504.2,980.644)"
id="g6339"
style="fill:#00f9bb;fill-opacity:1">
</g>
<g
transform="matrix(50,0,0,50,1519.6,980.644)"
id="g6343"
style="fill:#00f9bb;fill-opacity:1">
</g>
<g
transform="matrix(50,0,0,50,1539.45,980.644)"
id="g6347"
style="fill:#00f9bb;fill-opacity:1">
</g>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -17,6 +17,16 @@
"twitter": "@mangomarkets",
"ogImage": "https://trade.mango.markets/assets/icons/logo.svg"
},
{
"symbol": "SNY",
"displayName": "Synthetify",
"programId": "GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw",
"realmId": "7oB84bSuxv9AH1iRdMp5nFLwpQApv8Yo9s1gGmDkHtSP",
"ogImage": "/realms/SNY/img/synthetify_logo_green.svg",
"website": "https://synthetify.io/",
"twitter": "@synthetify",
"sortRank": 2
},
{
"symbol": "SOCEAN",
"programId": "5hAykmD4YGcQ7Am3N7nC9kyELq6CThAkU82nhNKDJiCy",