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

Was this helpful?

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

ContractOwner

Contract Owner

Owner is a specific person who can modify contract rule settings.

This module will introduce how the owner modifies the contract params on the chain through commands.

setValidatorLockedGoldRequirements

Updates the Locked Gold requirements for Validators.

USAGE
  $ ./marker setValidatorLockedGoldRequirements

OPTIONS
  --keystore                                                   Keystore file path
  
  --rpcaddr                                                    HTTP-RPC server address 

  --value                                                      The threshold you set to 
                                                               be the validator value.         

  --duration                                                   Minimum time (in seconds)
                                                               required to be a validator,
                                                               so you will not be able to
                                                               deregister during this period.
                                                               
EXAMPLES:
./marker      setValidatorLockedGoldRequirements
--rpcaddr     http://127.0.0.1:7445
--keystore    ./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15
--value       0
--duration    0

RESPONSE:
success
or
Failed

setEpochRelayerPaymentFraction

Sets the relayer reward percentage

USAGE
  $ ./marker setEpochRelayerPaymentFraction

OPTIONS
  --keystore                                                   Keystore file path
  
  --rpcaddr                                                    HTTP-RPC server address 

  --relayerf                                                   The percentage of the total
                                                               reward to be sent to the relayer.
                                                               (0<value<1)         

  
EXAMPLES:
./marker setEpochRelayerPaymentFraction
--rpcaddr http://127.0.0.1:7445
--keystore ./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15
--relayerf 0.1


RESPONSE:
success
or
Failed

setImplementation

Sets the address of the implementation contract and calls into it.

USAGE
  $ ./marker setImplementation

OPTIONS
  --keystore                                                   Keystore file path
  
  --rpcaddr                                                    HTTP-RPC server address 
                                                               
  --contractAddress                                            Proxy contract Address    
  
  --ImplementationAddress                                      the target contractAddress 
                                                               you will set   
                                                                    
   
  
EXAMPLES:
./marker                setImplementation
--rpcaddr               http://127.0.0.1:7445
--keystore              ./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15
--contractAddress       0x000000000000000000000000000000000000D012
--ImplementationAddress 0x6C5938B49bACDe73a8Db7C3A7DA208846898BFf5


RESPONSE:
success
or
Failed

setContractOwner

Transfers ownership of the contract to a new account (newOwner).

USAGE
  $ ./marker setContractOwner

OPTIONS
  --keystore                                                   Keystore file path
  
  --rpcaddr                                                    HTTP-RPC server address 
                                                               
  --contractAddress                                            Proxy contract Address    
  
  --target                                                     new owner you will set   
                                                                    
   
  
EXAMPLES:
./marker                setContractOwner
--rpcaddr               http://127.0.0.1:7445
--keystore              ./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15
--contractAddress       0x000000000000000000000000000000000000D012
--target                0x6C5938B49bACDe73a8Db7C3A7DA208846898BFf5


RESPONSE:
success
or
Failed

setProxyContractOwner

Transfers ownership of Proxy to a new owner.

USAGE
  $ ./marker setProxyContractOwner

OPTIONS
  --keystore                                                   Keystore file path
  
  --rpcaddr                                                    HTTP-RPC server address 
                                                               
  --contractAddress                                            Proxy contract Address    
  
  --target                                                     new owner you will set     
                                                                    
   
  
EXAMPLES:
./marker                setProxyContractOwner
--rpcaddr               http://127.0.0.1:7445
--keystore              ./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15
--contractAddress       0x000000000000000000000000000000000000D012
--target                0x6C5938B49bACDe73a8Db7C3A7DA208846898BFf5


RESPONSE:
success
or
Failed
PreviousVoteNextCommon

Last updated 1 year ago

Was this helpful?