MAPO Developer Docs
LearnDevelopRunWhitePaperBRC-201
English
English
  • Overview
  • Learn
    • About MAP Protocol
      • Background
      • Introduction of MAP Protocol
      • History of MAP Protocol
    • Comparison with other cross-chain models
      • MAP Protocol vs Cosmos & Polkadot
      • MAP vs other cross-chain solutions without relay chain
    • Technical Mechanism
      • MAP Protocol's Technical Mechanism
      • Three-layer Architecture
      • MAP Protocol Layer
        • Concept
        • Isomorphism with All Chains
        • Verification & Maintenance Network
      • MAP Omnichain Service (MOS) Layer
      • MAPO Application Layer
      • Peer-to-Peer Cross-chain Technology with ZK-enabled Light Clients
      • Interact with Bitcoin
    • Gas Fee Model
    • DAO
    • Construction of MAP Protocol
      • Developers
      • Validators
      • Maintainers
      • Messengers
      • Liquidity providers
      • End users
    • Tokenomics
    • Purchase $MAP
  • Develop
    • MAP Relay Chain
      • Getting Started
        • Build
        • Make Private Chain
        • How To Vote
        • How To Withdraw
        • Integrate an Exchange
        • Integrate MAP Relay Chain with EVM-Compatible Chains
      • Consensus
        • Overview
        • Proof-of-Stake
        • Validator
          • Validator
          • Locked MAP
        • Election
        • Rewards
        • Aggregated Seal
      • Contracts
        • Precompiled Contracts
        • Genesis Contracts
          • ABI
            • AccountsABI
            • ElectionABI
            • EpochRewardsABI
            • LockedGoldABI
            • ValidatorsABI
          • Deploy
      • Marker
        • Genesis
        • Validator
        • Vote
        • ContractOwner
        • Common
      • Account-Abstraction
    • Light Client
      • Verification based on Light Client
      • MAPO Light Client
        • EVM Chains
        • Near
      • Light Clients
        • Client Manager
        • BNB Smart Chain
        • Near Protocol
        • Polygon(Matic)
        • Ethereum 2.0
        • Klaytn
        • Conflux)
      • Maintainer
    • MAP Omnichain Service (MOS)
      • MOS Message Guides
        • How It Works
        • How To Use
        • EVM Chains Contract
      • MCS Guides
        • How It Works
        • How To Use
          • How To On Evm Chains
          • How To On Near Protocol
        • Relay Chain Contract
        • EVM Chains Contract
        • Near Protocol Contract
      • Messenger
      • API
    • OmniChain Examples
      • OmniApp
      • OmniDictionary
    • API & SDK
      • Butter SDK
      • Atlas JSON RPC
      • Atlas Consensus API
      • MAP Scan API
    • Connected Chains and Corresponding Addresses
  • Run
    • How To Become A New Validator
    • How To Become A New Validator[advanced]
    • Withdraw
Powered by GitBook
On this page

Was this helpful?

  1. Develop
  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 2 years ago

Was this helpful?