Rangers Protocol
  • Rangers Protocol White Paper
  • Rangers Protocol Token Economy White Paper
  • Rangers Protocol Development Documentation
  • Rangers Protocol Technical documentation
  • Rangers Protocol GitHub
  • Rangers Protocol Product Articles
    • Rangers Protocol Virtual Machine Technology Pt.1
    • Rangers Protocol Virtual Machine Technology, Pt.2
    • Rangers Protocol VRF+BLS Сonsensus Mechanism: Solving the Problem of High-Frequency Trading
    • Rangers Protocol Relay Chain: Heterogeneous Cross-Chain in the True Sense
    • Rangers Protocol’s NFT Protocol: Data Inheritance and Reuse Are Key
  • Buy RPG
    • How to Purchase BEP20 RPG
    • How to Purchase ERC20 RPG
  • Add Liquidity for RPG
    • Get RPG/BUSD LP Tokens(BSC)
    • Get RPG/USDT LP Tokens(ETH)
  • Become A Verification Node
    • How to Apply to Be a Verification Node
    • Node Reward Address Replacement
    • How to Add Rangers Protocol Node Stakes
    • How to Use Rangers Protocol Cross-Chain Bridge?
  • Node Manangement Platform
    • User Manual
    • Console & Delegate
    • Apply & Calculator
    • Portfolio & History
  • RANGERS PROTOCOL ORACLE
    • What Is Rangers Protocol Oracle
    • Instructions for the Oracle
  • Grand Guard Safe
    • What is Grand Guard
    • Instructions for Grand Guard Pt.1
    • Instructions for Grand Guard Pt.2
    • Instructions for Grand Guard Pt.3
Powered by GitBook
On this page

Was this helpful?

  1. RANGERS PROTOCOL ORACLE

Instructions for the Oracle

[mainnet] Deployed

[decimal] 18

[Instruction] Invoke the compute() API of the above contracts (e.g.: to obtain the price of mix, invoke the compute of contract 0x3e39a24d01d0754C09a1185EA422204a86d5F3F6, and the return value is mix price in usd)

ABI:

[
	{
		"constant": false,
		"inputs": [
			{
				"name": "owner_",
				"type": "address"
			}
		],
		"name": "setOwner",
		"outputs": [],
		"payable": false,
		"stateMutability": "nonpayable",
		"type": "function"
	},
	{
		"constant": false,
		"inputs": [
			{
				"name": "",
				"type": "bytes32"
			}
		],
		"name": "poke",
		"outputs": [],
		"payable": false,
		"stateMutability": "nonpayable",
		"type": "function"
	},
	{
		"constant": false,
		"inputs": [],
		"name": "poke",
		"outputs": [],
		"payable": false,
		"stateMutability": "nonpayable",
		"type": "function"
	},
	{
		"constant": true,
		"inputs": [],
		"name": "compute",
		"outputs": [
			{
				"name": "",
				"type": "bytes32"
			},
			{
				"name": "",
				"type": "bool"
			}
		],
		"payable": false,
		"stateMutability": "view",
		"type": "function"
	},
	{
		"constant": false,
		"inputs": [
			{
				"name": "wat",
				"type": "address"
			}
		],
		"name": "set",
		"outputs": [],
		"payable": false,
		"stateMutability": "nonpayable",
		"type": "function"
	},
	{
		"constant": false,
		"inputs": [
			{
				"name": "wat",
				"type": "address"
			}
		],
		"name": "unset",
		"outputs": [],
		"payable": false,
		"stateMutability": "nonpayable",
		"type": "function"
	},
	{
		"constant": true,
		"inputs": [
			{
				"name": "",
				"type": "address"
			}
		],
		"name": "indexes",
		"outputs": [
			{
				"name": "",
				"type": "bytes12"
			}
		],
		"payable": false,
		"stateMutability": "view",
		"type": "function"
	},
	{
		"constant": true,
		"inputs": [],
		"name": "next",
		"outputs": [
			{
				"name": "",
				"type": "bytes12"
			}
		],
		"payable": false,
		"stateMutability": "view",
		"type": "function"
	},
	{
		"constant": true,
		"inputs": [],
		"name": "read",
		"outputs": [
			{
				"name": "",
				"type": "bytes32"
			}
		],
		"payable": false,
		"stateMutability": "view",
		"type": "function"
	},
	{
		"constant": true,
		"inputs": [],
		"name": "peek",
		"outputs": [
			{
				"name": "",
				"type": "bytes32"
			},
			{
				"name": "",
				"type": "bool"
			}
		],
		"payable": false,
		"stateMutability": "view",
		"type": "function"
	},
	{
		"constant": true,
		"inputs": [
			{
				"name": "",
				"type": "bytes12"
			}
		],
		"name": "values",
		"outputs": [
			{
				"name": "",
				"type": "address"
			}
		],
		"payable": false,
		"stateMutability": "view",
		"type": "function"
	},
	{
		"constant": false,
		"inputs": [
			{
				"name": "min_",
				"type": "uint96"
			}
		],
		"name": "setMin",
		"outputs": [],
		"payable": false,
		"stateMutability": "nonpayable",
		"type": "function"
	},
	{
		"constant": false,
		"inputs": [
			{
				"name": "authority_",
				"type": "address"
			}
		],
		"name": "setAuthority",
		"outputs": [],
		"payable": false,
		"stateMutability": "nonpayable",
		"type": "function"
	},
	{
		"constant": true,
		"inputs": [],
		"name": "owner",
		"outputs": [
			{
				"name": "",
				"type": "address"
			}
		],
		"payable": false,
		"stateMutability": "view",
		"type": "function"
	},
	{
		"constant": false,
		"inputs": [],
		"name": "void",
		"outputs": [],
		"payable": false,
		"stateMutability": "nonpayable",
		"type": "function"
	},
	{
		"constant": false,
		"inputs": [
			{
				"name": "pos",
				"type": "bytes12"
			},
			{
				"name": "wat",
				"type": "address"
			}
		],
		"name": "set",
		"outputs": [],
		"payable": false,
		"stateMutability": "nonpayable",
		"type": "function"
	},
	{
		"constant": true,
		"inputs": [],
		"name": "authority",
		"outputs": [
			{
				"name": "",
				"type": "address"
			}
		],
		"payable": false,
		"stateMutability": "view",
		"type": "function"
	},
	{
		"constant": false,
		"inputs": [
			{
				"name": "pos",
				"type": "bytes12"
			}
		],
		"name": "unset",
		"outputs": [],
		"payable": false,
		"stateMutability": "nonpayable",
		"type": "function"
	},
	{
		"constant": false,
		"inputs": [
			{
				"name": "next_",
				"type": "bytes12"
			}
		],
		"name": "setNext",
		"outputs": [],
		"payable": false,
		"stateMutability": "nonpayable",
		"type": "function"
	},
	{
		"constant": true,
		"inputs": [],
		"name": "min",
		"outputs": [
			{
				"name": "",
				"type": "uint96"
			}
		],
		"payable": false,
		"stateMutability": "view",
		"type": "function"
	},
	{
		"anonymous": true,
		"inputs": [
			{
				"indexed": true,
				"name": "sig",
				"type": "bytes4"
			},
			{
				"indexed": true,
				"name": "guy",
				"type": "address"
			},
			{
				"indexed": true,
				"name": "foo",
				"type": "bytes32"
			},
			{
				"indexed": true,
				"name": "bar",
				"type": "bytes32"
			},
			{
				"indexed": false,
				"name": "wad",
				"type": "uint256"
			},
			{
				"indexed": false,
				"name": "fax",
				"type": "bytes"
			}
		],
		"name": "LogNote",
		"type": "event"
	},
	{
		"anonymous": false,
		"inputs": [
			{
				"indexed": true,
				"name": "authority",
				"type": "address"
			}
		],
		"name": "LogSetAuthority",
		"type": "event"
	},
	{
		"anonymous": false,
		"inputs": [
			{
				"indexed": true,
				"name": "owner",
				"type": "address"
			}
		],
		"name": "LogSetOwner",
		"type": "event"
	}
]
PreviousWhat Is Rangers Protocol OracleNextWhat is Grand Guard

Last updated 2 years ago

Was this helpful?