Skip to content

Latest commit

 

History

History
144 lines (130 loc) · 7.43 KB

File metadata and controls

144 lines (130 loc) · 7.43 KB

Deployed Contracts on Mainnet

We're using proxy-upgrade pattern for contracts that touching users' money (i.e. DOSPayment and Staking contract), so that in case of emergency situation we'll be able to upgrade to a patched version without interrupting user behavior.

Deployed Contracts on Rinkeby Testnet

Acquire Testnet DOS Tokens

  • [x]

Appendix

Selector

The selector expression is following JSONPath and XPath rules to filter components from responses.

Json example and selector expression:
{
    "store": {
        "book": [
            {
                "category": "reference",
                "author": "Nigel Rees",
                "title": "Sayings of the Century",
                "price": 8.95
            },
            {
                "category": "fiction",
                "author": "Evelyn Waugh",
                "title": "Sword of Honour",
                "price": 12.99
            },
            {
                "category": "fiction",
                "author": "Herman Melville",
                "title": "Moby Dick",
                "isbn": "0-553-21311-3",
                "price": 8.99
            },
            {
                "category": "fiction",
                "author": "J. R. R. Tolkien",
                "title": "The Lord of the Rings",
                "isbn": "0-395-19395-8",
                "price": 22.99
            }
        ],
        "bicycle": {
            "color": "red",
            "price": 19.95
        }
    },
    "expensive": 10
}

Example selector expressions for the above json object:

Selector expression Description
$.expensive 10
$.store.book[0].price 8.95
$.store.book[-1].isbn "0-395-19395-8"
$.store.book[0,1].price [8.95, 12.99]
$.store.book[0:2].price [8.95, 12.99, 8.99]
$.store.book[?(@.isbn)].price [8.99, 22.99]
$.store.book[?(@.price > 10)].title ["Sword of Honour", "The Lord of the Rings"]
$.store.book[?(@.price < $.expensive)].price [8.95, 8.99]
$.store.book[:].price [8.9.5, 12.99, 8.9.9, 22.99]
  • Use this online tool to get familar with JSONPath selector.
XML example and selector expression:
<library>
  <!-- Great book. -->
  <book id="b0836217462" available="true">
    <isbn>0836217462</isbn>
    <title lang="en">Being a Dog Is a Full-Time Job</title>
    <quote>I'd dog paddle the deepest ocean.</quote>
    <author id="CMS">
      <?echo "go rocks"?>
      <name>Charles M Schulz</name>
      <born>1922-11-26</born>
      <dead>2000-02-12</dead>
    </author>
    <character id="PP">
      <name>Peppermint Patty</name>
      <born>1966-08-22</born>
      <qualification>bold, brash and tomboyish</qualification>
    </character>
    <character id="Snoopy">
      <name>Snoopy</name>
      <born>1950-10-04</born>
      <qualification>extroverted beagle</qualification>
    </character>
  </book>
</library>

Example selector expressions for the above xml document:

Selector expression Description
/library/book/isbn "0836217462"
/library/*/isbn "0836217462"
/library/book/../book/./isbn "0836217462"
/library/book/character[2]/name "Snoopy"
/library/book/character[born='1950-10-04']/name "Snoopy"
/library/book//node()[@id='PP']/name "Peppermint Patty"
//book[author/@id='CMS']/title "Being a Dog Is a Full-Time Job",
/library/book/preceding::comment() " Great book. "
//*[contains(born,'1922')]/name "Charles M Schulz"
//*[@id='PP' or @id='Snoopy']/born {"1966-08-22", "1950-10-04"}
  • Use this online tool to get familar with XPath selector.