MAPO Developer Docs
LearnDevelopRunWhitePaperBRC-201
繁體中文
繁體中文
  • 概述
  • 學習
    • 關於 MAP 協議
      • 背景
      • 介紹 MAP 協議
      • MAP 協議的發展歷程
    • 與其他跨鏈模型進行比較
      • MAP 協議與Cosmos& Pokadot
      • MAP vs. 其他無中繼鏈的跨鏈解決方案
    • 技術機制
      • MAP協議'的技術機制
      • 三層結構
      • MAP協議層
      • MAP中繼鏈
        • 概念
        • 與所有鏈的同構性
        • 驗證& 維護網絡
      • MAPO服務(MOS)層
      • MAPO應用層
      • ZK 支持下的輕節點
    • 燃氣費收費模式
    • DAO
    • MAP協議的構建
      • 開發者
      • 驗證者
      • 維護者
      • 信使
      • 流動資金提供者
      • 終端用戶
    • Tokenomics
    • 購買$MAP
  • 開發
    • MAP Relay Chain
      • 入門
        • 構建
        • 製作私有鏈
        • 如何投票
        • 如何取出質押
        • 集成到交易所
        • EVM 兼容鏈接入MAP 中繼鏈
      • 共識
        • 概述
        • Proof-of-Stake
        • 驗證器
          • 驗證器
          • 鎖定的MAP
        • 選舉
        • 獎勵
        • 聚合印章
      • 合約
        • 預編譯合約
        • 創世紀合約
          • ABI
            • AccountsABI
            • ElectionABI
            • EpochRewardsABI
            • LockedGoldABI
            • ValidatorsABI
          • Deploy
      • Marker
        • Genesis
        • 驗證器
        • Vote
        • ContractOwner
        • Common
    • 輕型客戶端
      • 基於輕型客戶端的驗證
      • MAPO輕型客戶端
        • EVM鏈
        • Near
      • 輕客戶端
        • 客戶端管理器
        • BNB 鏈
        • NEAR 協議
        • Polygon(Matic)
        • Ethereum 2.0
        • 維護者
    • MOS 全鏈服務
      • MOS消息指南
        • How It Works
      • MOS 指南
        • 運行原理
        • 如何使用
          • 在Evm鏈的方法
          • 在NEAR協議上
        • 中繼鏈合約
        • EVM鏈合約
        • NEAR 協議合約
      • 信使
      • API
    • OmniChain實例
      • Omni App
      • OmniDictionary
    • API & SDK
      • Butter SDK
      • Atlas JSON RPC
      • Atlas Consensus API
      • MAP掃描API
    • 最新接鏈進展以及對應地址
  • 運行
    • 如何成爲一個新的驗證者
    • 如何成爲一個新的驗證者[進階版]
    • 取出或撤回
Powered by GitBook
On this page
  • quicklyVote 快速投票
  • 啟用
  • RevokePending 撤銷等待
  • RevokeActive 撤銷激活

Was this helpful?

  1. 開發
  2. MAP Relay Chain
  3. Marker

Vote

關於投票命令的介紹。

###投票

您必須提前將足夠的MAP鎖定到lockedGold合約中,並將您的信息註冊到合約中。

減少您之前在 LockedGold 合約中註冊的帳戶對應的總數和未投票數。

增加“選舉”合約中驗證者的總票數和未決票數。

USAGE
  $ ./marker vote

OPTIONS
  --keystore                                                   your keystore file path
  
  --rpcaddr                                                    HTTP-RPC server address 
                                                               
  --target                                                     Your target validator address
  
  --voteNum                                                    Your number of votes

                                                                                                            
EXAMPLES:
./marker vote
--rpcaddr http://127.0.0.1:7445
--keystore ./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15
--target "0x81f02fd21657df80783755874a92c996749777bf"
--voteNum 10000


RESPONSE:
success
or
Failed

quicklyVote 快速投票

如果您還沒有創建賬號或鎖定地圖,您可以通過quicklyVote命令進行快速投票, 集成了 createAccount lockedMAP

請注意,您只能使用此命令一次。 無論命令成功與否,該命令只是對createAccount lockedMAP 命令進行打包組合,不具備復用的性質。

If you have not creat Account or locked the Map, you can quickly vote through the quicklyVote command, which integrates the createAccount lockedMAP

Please note that you can only use this command once. No matter whether the command succeeds or fails, this command only packs and combines createAccount lockedMAP commands and does not have the nature of reuse.

USAGE
$ ./marker  quicklyVote   

OPTIONS
  --keystore                                                   your keystore file path
  
  --rpcaddr                                                    HTTP-RPC server address 
                                                               
  --target                                                     Your target validator address
  
  --voteNum                                                    Your number of votes
  
  --lockedNum                                                  In order to vote to validator,
                                                               you will lock enough `MAP`.

                                                                                                            
EXAMPLES:
./marker vote
--rpcaddr http://127.0.0.1:7445
--keystore ./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15
--target "0x81f02fd21657df80783755874a92c996749777bf"
--voteNum 10000
--lockedNum 10000


RESPONSE:
success
or
Failed

啟用

在驗證者選舉中激活未決選票以開始賺取獎勵。 要作為選民獲得獎勵,需要在產生投票的紀元結束後的某個時間點激活您的未決投票。

這意味著將“帳戶”對“驗證者”的未決投票轉換為有效投票。

USAGE
$ ./marker activate   

OPTIONS
  --keystore                                                   your keystore file path
  
  --rpcaddr                                                    HTTP-RPC server address 
                                                               
  --target                                                     Your target validator address
                                                               you can query it from 
                                                               `getTotalVotesForEligibleValidators`
                                                               command
  


                                                                                                            
EXAMPLES:
./marker activate
--rpcaddr http://127.0.0.1:7445
--keystore ./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15
--target "0x81f02fd21657df80783755874a92c996749777bf"

RESPONSE:
success
or
Failed

RevokePending 撤銷等待

撤銷 validator 的 value 未決投票。

此命令會將有投票權的 MAP 變成無投票權的 MAP。

增加與您之前在 LockedGold 合約中註冊的帳戶相對應的總數和無投票權的數量。

減少“選舉”合約中驗證者的總票數和未決票數。

USAGE
$ ./marker revokePending   

OPTIONS
  --keystore                                                   your keystore file path

  --rpcaddr                                                    HTTP-RPC server address 
                                                               
  --target                                                     Your target validator address
                                                               you can query it from 
                                                               `getTotalVotesForEligibleValidators`
                                                               command
                                                               
  --lockedNum                                                   The `MAP` that you want to revoke from your penging votes for validator
  


                                                                                                            
EXAMPLES::
./marker revokePending
--rpcaddr http://127.0.0.1:7445
--keystore ./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15
--target "0x81f02fd21657df80783755874a92c996749777bf"
--lockedNum 10000

RESPONSE:
success
or
Failed

RevokeActive 撤銷激活

撤銷對“驗證者”的“價值”有效投票

此命令會將有投票權的 MAP 變成無投票權的 MAP。

增加與您之前在 LockedGold 合約中註冊的帳戶相對應的總數和無投票權的數量。

減少“選舉”合約中驗證者的總票數和有效票數。

USAGE
$ ./marker revokeActive

OPTIONS
  --keystore                                                   your keystore file path

  --rpcaddr                                                    HTTP-RPC server address 
                                                               
  --target                                                     Your target validator address
                                                               you can query it from 
                                                               `getTotalVotesForEligibleValidators`
                                                               command
                                                               
  --lockedNum                                                   The `MAP` that you want to revoke from your active votes for validator
                                                                                                             
EXAMPLES:
./marker revokeActive
--rpcaddr http://127.0.0.1:7445
--keystore ./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15
--target "0x81f02fd21657df80783755874a92c996749777bf"
--lockedNum 10000

RESPONSE:
success
or
Failed
Previous驗證器NextContractOwner

Last updated 1 year ago

Was this helpful?