From a3f89ead37c4056feb4e92cc9c14c3355f796346 Mon Sep 17 00:00:00 2001 From: hthieu1110 Date: Sat, 23 Nov 2024 13:42:45 -0800 Subject: [PATCH] feat(gno): move from test4 => test5 (#1415) * feat: remove test4 network config + add test 5 network config * fix: adjust makefile to deploy teritori pkgs on gno * fix: use correct profile pkg path Signed-off-by: Norman Meier --------- Signed-off-by: Norman Meier Co-authored-by: Norman Meier Co-authored-by: n0izn0iz --- gno/Makefile | 8 +++---- networks.json | 20 ++++++++--------- .../{gno-test4 => gno-test5}/currencies.ts | 0 .../{gno-test4 => gno-test5}/index.ts | 22 +++++++++---------- packages/networks/index.ts | 6 ++--- 5 files changed, 28 insertions(+), 28 deletions(-) rename packages/networks/{gno-test4 => gno-test5}/currencies.ts (100%) rename packages/networks/{gno-test4 => gno-test5}/index.ts (79%) diff --git a/gno/Makefile b/gno/Makefile index fc86495579..b5b29d6e4c 100644 --- a/gno/Makefile +++ b/gno/Makefile @@ -1,7 +1,7 @@ -KEY = teritori-test4-seed +KEY = teritori BASE = teritori -REMOTE = https://rpc.gno.land:443 -CHAIN_ID = portal-loop +REMOTE = https://rpc.test5.gno.land +CHAIN_ID = test5 .PHONY: add_social_feeds_realm add_utf16_pkg add_ujson_pkg add_flags_index_pkg add_dao_interfaces_pkg add_social_feed all @@ -21,7 +21,7 @@ add_social_feed: -pkgpath "gno.land/r/${BASE}/social_feeds" \ -func="CreateFeed" \ -gas-fee="1000000ugnot" \ - -gas-wanted="3000000" \ + -gas-wanted="5000000" \ -remote="${REMOTE}" \ -chainid="${CHAIN_ID}" \ -broadcast \ diff --git a/networks.json b/networks.json index f6d967ea00..38a7a5c383 100644 --- a/networks.json +++ b/networks.json @@ -4615,9 +4615,9 @@ "txIndexerURL": "https://indexer.test3.gno.testnet.teritori.com" }, { - "id": "gno-test4", + "id": "gno-test5", "kind": "Gno", - "displayName": "Gno Test4", + "displayName": "Gno Test5", "icon": "gno.svg", "features": [ "SocialFeed", @@ -4645,12 +4645,12 @@ } ], "stakeCurrency": "ugnot", - "idPrefix": "gnotest4", - "chainId": "test4", - "endpoint": "https://rpc.test4.gno.land:443", - "txExplorer": "https://gnoscan.io/transactions/details?txhash=$hash&chainId=test4", - "accountExplorer": "https://gnoscan.io/accounts/$address?chainId=test4", - "contractExplorer": "https://gnoscan.io/realms/details?path=$address&chainId=test4", + "idPrefix": "gnotest5", + "chainId": "test5", + "endpoint": "https://rpc.test5.gno.land", + "txExplorer": "https://gnoscan.io/transactions/details?txhash=$hash&chainId=test5", + "accountExplorer": "https://gnoscan.io/accounts/$address?chainId=test5", + "contractExplorer": "https://gnoscan.io/realms/details?path=$address&chainId=test5", "testnet": true, "backendEndpoint": "https://dapp-backend.testnet.teritori.com", "gnowebURL": "https://gno.land", @@ -4660,8 +4660,8 @@ "socialFeedsPkgPath": "gno.land/r/teritori/social_feeds", "socialFeedsDAOPkgPath": "gno.land/r/teritori/social_feeds_dao", "daoInterfacesPkgPath": "gno.land/p/teritori/dao_interfaces", - "profilePkgPath": "gno.land/r/teritori/profile", - "txIndexerURL": "https://indexer.test4.gno.testnet.teritori.com" + "profilePkgPath": "gno.land/r/demo/profile", + "txIndexerURL": "https://indexer.test5.gno.testnet.teritori.com" }, { "id": "cosmos-registry:gravitybridge", diff --git a/packages/networks/gno-test4/currencies.ts b/packages/networks/gno-test5/currencies.ts similarity index 100% rename from packages/networks/gno-test4/currencies.ts rename to packages/networks/gno-test5/currencies.ts diff --git a/packages/networks/gno-test4/index.ts b/packages/networks/gno-test5/index.ts similarity index 79% rename from packages/networks/gno-test4/index.ts rename to packages/networks/gno-test5/index.ts index 187cf7d985..e40cb116d6 100644 --- a/packages/networks/gno-test4/index.ts +++ b/packages/networks/gno-test5/index.ts @@ -1,10 +1,10 @@ import { gnoCurrencies } from "./currencies"; import { GnoNetworkInfo, NetworkFeature, NetworkKind } from "../types"; -export const gnoTest4Network: GnoNetworkInfo = { - id: "gno-test4", +export const gnoTest5Network: GnoNetworkInfo = { + id: "gno-test5", kind: NetworkKind.Gno, - displayName: "Gno Test4", + displayName: "Gno Test5", icon: "gno.svg", features: [ NetworkFeature.SocialFeed, @@ -21,14 +21,14 @@ export const gnoTest4Network: GnoNetworkInfo = { ], currencies: gnoCurrencies, stakeCurrency: "ugnot", - idPrefix: "gnotest4", - chainId: "test4", - endpoint: "https://rpc.test4.gno.land:443", + idPrefix: "gnotest5", + chainId: "test5", + endpoint: "https://rpc.test5.gno.land", txExplorer: - "https://gnoscan.io/transactions/details?txhash=$hash&chainId=test4", - accountExplorer: "https://gnoscan.io/accounts/$address?chainId=test4", + "https://gnoscan.io/transactions/details?txhash=$hash&chainId=test5", + accountExplorer: "https://gnoscan.io/accounts/$address?chainId=test5", contractExplorer: - "https://gnoscan.io/realms/details?path=$address&chainId=test4", + "https://gnoscan.io/realms/details?path=$address&chainId=test5", testnet: true, backendEndpoint: "https://dapp-backend.testnet.teritori.com", gnowebURL: "https://gno.land", @@ -39,6 +39,6 @@ export const gnoTest4Network: GnoNetworkInfo = { socialFeedsPkgPath: "gno.land/r/teritori/social_feeds", socialFeedsDAOPkgPath: "gno.land/r/teritori/social_feeds_dao", daoInterfacesPkgPath: "gno.land/p/teritori/dao_interfaces", - profilePkgPath: "gno.land/r/teritori/profile", - txIndexerURL: "https://indexer.test4.gno.testnet.teritori.com", + profilePkgPath: "gno.land/r/demo/profile", + txIndexerURL: "https://indexer.test5.gno.testnet.teritori.com", }; diff --git a/packages/networks/index.ts b/packages/networks/index.ts index d2ec9de5eb..6b33f052dc 100644 --- a/packages/networks/index.ts +++ b/packages/networks/index.ts @@ -14,7 +14,7 @@ import { NetworkFeature, NetworkFeatureObject } from "./features"; import { gnoDevNetwork } from "./gno-dev"; import { gnoPortalNetwork } from "./gno-portal"; import { gnoTest3Network } from "./gno-test3"; -import { gnoTest4Network } from "./gno-test4"; +import { gnoTest5Network } from "./gno-test5"; import { osmosisNetwork } from "./osmosis"; import { osmosisTestnetNetwork } from "./osmosis-testnet"; // import { solanaNetwork } from "./solana"; @@ -49,7 +49,7 @@ const packageNetworks = [ osmosisTestnetNetwork, gnoPortalNetwork, gnoTest3Network, - gnoTest4Network, + gnoTest5Network, gnoDevNetwork, polygonMumbaiNetwork, polygonNetwork, @@ -67,7 +67,7 @@ export const defaultEnabledNetworks = [ "cosmos-hub", "osmosis", "gno-portal", - "gno-test4", + "gno-test5", "cosmos-registry:juno", "cosmos-registry:kujira", "cosmos-registry:axelar",