> For the complete documentation index, see [llms.txt](https://docs.metaverse-ico.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.metaverse-ico.net/whitepaper/proof-of-meta-consensus-mechanismpage-1/macrominer-mpoh-and-metaanthill/microminer-mposw-and-metaanthill.md).

# MicroMiner (MPoSW & MetaAnthill)

t are one of the most essential parts of the human-centered blockchain structure. It creates a direct link between the Metachain ecosystem applications and the user, beyond performing the transaction verification task systematically.

<img src="https://docs.metatime.com/whitepaper/~gitbook/image?url=https%3A%2F%2F989455816-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAIzmobbGXH6E0WrRNrgp%252Fuploads%252FAbgo6AkBNlk5r3p5zIZs%252Fmicrominer.png%3Falt%3Dmedia%26token%3D50359bb7-6c6a-449f-a316-16be3163ae9e&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=29ce796b8966ec5878ccf5b8db1fd46c&#x26;sv=3" alt="" width="188">

```
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Strings.sol";
contract Vote{
    using Strings for uint256;
    address private immutable owner;
    string_baseUri;
    uint256 totalVote;
    struct Votes {
        uint256 startTime;
        uint256 endTime;
        uint256 selection;
        string question;
        mapping (uint256 => uint256) selections;
        mapping (address => uint256) voter;
    }
    
    mapping (uint256 => votes)_votes;
    
    constructor(string memory base_Uri_) {
        owner = msg.sender;
        _baseUri = base_Uri_;
    }
    
    modifier onlyOwner() {
        require(msg.sender == owner,"You are not owner.");
        _;
    }
    
    function questionURL(uint256 vote_) internal view returns(string memory) {
        return string(abi.encodePacked(_basedUri,_votes[vote_].selection.toString()));
    }
    
    function setBaseURI(string memory base_Uri_) external only Owner {
        _baseUri = base_Uri_;
    }
    
    function getQuestion() public view returns(string memory) {
        return_votes[totalVote].question;
    }
    
    function vote(uint256 selection)public {
        require(block.timestamp > _votes[totalVote].startTime&&
            block.timestamp <_votes[totalVote].endTime);
        require(selection <=_votes[]totalVote.selection && selection > 0);
        require(_votes[totalVote].voter[msg.sender] ==0);
        _votes[totalVote].voter[msg.sender] = selection;
    }
    
    function setVote(
        uint256 startTime,
        uint256 endTime,
        uint256 selection,
        string memory question)
        public
        onlyOwner {
        totalVote ++;
        _votes[totalVote].startTime = startTime;
        _votes[totalVote].endTime = endTime;
        _votes[totalVote].selection = selection;
        _votes[totalVote].question = question;
    }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.metaverse-ico.net/whitepaper/proof-of-meta-consensus-mechanismpage-1/macrominer-mpoh-and-metaanthill/microminer-mposw-and-metaanthill.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
