Skip to content

PandaRR007/mcs-upgrade-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCS Upgrade Tool

A tool for multisig member to add "upgrade MCS contract" request and confirm it.

Table of Contents

Pre-requisite

Go (version 1.18 or later)

Go are available at the Go installation page and necessary bundles can be downloaded from the Go download page.

How to Build

git clone https://github.com/PandaRR007/mcs-upgrade-tool.git
cd mcs-upgrade-tool
make

You can see a binary mcs-upgrade-tool is generated.

Usage

  1. Configure upgrade.json
{
  "nearRpcUrl": "https://archival-rpc.testnet.near.org",  
  "sender": "member1.map002.testnet",                     
  "senderPrivateKey": "ed25519:...",                       
  "multisigAccount": "multisig.mfac.map004.testnet",      
  "mcsAccount": "mos2.mfac.map004.testnet",              
  "mcsWasmFile": "/path/to/mcs.wasm"                     
}
  • nearRpcUrl: near rpc url
  • sender: multisig member account to add the request
  • senderPrivateKey: private key of the multisig member
  • multisigAccount: multisig contract account
  • mcsAccount: MCS contract account to be upgraded
  • mcsWasmFile: MCS contract wasm file to upgrade the MCS contract
  1. Execute upgrade command
./mcs-upgrade-tool upgrade
  1. Get the request ID

After the command is executed successfully, you can see a NEAR blockchain explorer link at the last line of the output. img.png

Click it, and you can get the request ID from the transaction details.

img.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published