From bd7ee82726659994872f7435345a841895569907 Mon Sep 17 00:00:00 2001 From: hunshenshi <289517357@qq.com> Date: Thu, 30 May 2024 17:21:29 +0800 Subject: [PATCH] [ioctl][ws] update ws default value (#4285) * feat(ioctl/ws): sync latest w3bstream contract abis and generate go code * feat(ioctl/config): add ws contract address configurations * feat(ioctl/ws): ioctl support ws project contracts interactions * feat(ioctl/ws): ioctl support ws prover contracts interactions * feat(ioctl/ws): ioctl support ws project device contract interactions * feat(ioctl/ioid): ioctl support ioid interactions * chore: remove redundent abis * fix: transfer amount flag type change to string * feat(ioctl): update default value in ws --------- Co-authored-by: sincos --- ioctl/config/configsetget.go | 10 +++++----- ioctl/newcmd/config/config.go | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ioctl/config/configsetget.go b/ioctl/config/configsetget.go index 9ae8693be9..74ca670e22 100644 --- a/ioctl/config/configsetget.go +++ b/ioctl/config/configsetget.go @@ -29,19 +29,19 @@ const ( _defaultEndpoint = "api.iotex.one:443" _defaultAnalyserEndpoint = "https://iotex-analyser-api-mainnet.chainanalytics.org" // _defaultWsEndpoint default w3bstream endpoint - _defaultWsEndpoint = "sprout-staging.w3bstream.com:9000" + _defaultWsEndpoint = "https://sprout-testnet.w3bstream.com" // _defaultIPFSEndpoint default IPFS endpoint for uploading _defaultIPFSEndpoint = "ipfs.mainnet.iotex.io" // _defaultIPFSGateway default IPFS gateway for resource fetching _defaultIPFSGateway = "https://ipfs.io" // _defaultWsProjectRegisterContract default project register contract address - _defaultWsProjectRegisterContract = "0x80b49a5788DcE3eAbFcc46780dEA965602f869C9" + _defaultWsProjectRegisterContract = "0x4888bfbf39Dc83C19cbBcb307ccE8F7F93b72E38" // _defaultWsProjectStoreContract default project store contract address - _defaultWsProjectStoreContract = "0xf9B976C0127BC38E56fb97B0B1e1408e6F2737CE" + _defaultWsProjectStoreContract = "0x6AfCB0EB71B7246A68Bb9c0bFbe5cD7c11c4839f" // _defaultWsFleetManagementContract default fleet management contract address - _defaultWsFleetManagementContract = "0x698D8cEfe0c2E603DCA4B7815cb8E67F251eCF37" + _defaultWsFleetManagementContract = "0xDBA78C8eCaeE2DB9DDE0c4168f7E8626d4Ff0010" // _defaultWsProverStoreContract default prover store contract address - _defaultWsProverStoreContract = "0xa9bed62ADB1708E0c501664C9CE6A34BC4Fc246b" + _defaultWsProverStoreContract = "0xAD480a9c1B9fA8dD118c26Ac26880727160D0448" // _defaultWsProjectDevicesContract default project devices contract address _defaultWsProjectDevicesContract = "0x3d6b6c7bDB72e8BF73780f433342759d8b329Ca5" ) diff --git a/ioctl/newcmd/config/config.go b/ioctl/newcmd/config/config.go index db62f870e8..0b1f3b8e60 100644 --- a/ioctl/newcmd/config/config.go +++ b/ioctl/newcmd/config/config.go @@ -35,19 +35,19 @@ const ( _defaultAnalyserEndpoint = "https://iotex-analyser-api-mainnet.chainanalytics.org" _defaultConfigFileName = "config.default" // _defaultWsEndpoint default w3bstream endpoint - _defaultWsEndpoint = "sprout-staging.w3bstream.com:9000" + _defaultWsEndpoint = "https://sprout-testnet.w3bstream.com" // _defaultIPFSEndpoint default IPFS endpoint for uploading _defaultIPFSEndpoint = "ipfs.mainnet.iotex.io" // _defaultIPFSGateway default IPFS gateway for resource fetching _defaultIPFSGateway = "https://ipfs.io" // _defaultWsProjectRegisterContract default project register contract address - _defaultWsProjectRegisterContract = "0x80b49a5788DcE3eAbFcc46780dEA965602f869C9" + _defaultWsProjectRegisterContract = "0x4888bfbf39Dc83C19cbBcb307ccE8F7F93b72E38" // _defaultWsProjectStoreContract default project store contract address - _defaultWsProjectStoreContract = "0xf9B976C0127BC38E56fb97B0B1e1408e6F2737CE" + _defaultWsProjectStoreContract = "0x6AfCB0EB71B7246A68Bb9c0bFbe5cD7c11c4839f" // _defaultWsFleetManagementContract default fleet management contract address - _defaultWsFleetManagementContract = "0x698D8cEfe0c2E603DCA4B7815cb8E67F251eCF37" + _defaultWsFleetManagementContract = "0xDBA78C8eCaeE2DB9DDE0c4168f7E8626d4Ff0010" // _defaultWsProverStoreContract default prover store contract address - _defaultWsProverStoreContract = "0xa9bed62ADB1708E0c501664C9CE6A34BC4Fc246b" + _defaultWsProverStoreContract = "0xAD480a9c1B9fA8dD118c26Ac26880727160D0448" // _defaultWsProjectDevicesContract default project device contract address _defaultWsProjectDevicesContract = "0x3d6b6c7bDB72e8BF73780f433342759d8b329Ca5" )