示例#1
0
        public void DumpConsensusStateTest()
        {
            NodeRpcClient      nodeRpcClient = new NodeRpcClient(endpoint);
            DumpRoundStateData result        = nodeRpcClient.DumpConsensusState();

            Assert.NotNull(result.RoundState.Height);
        }
示例#2
0
        public void NetInfoTest()
        {
            NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint);
            ResultNetInfo result        = nodeRpcClient.NetInfo();

            Assert.NotNull(result.Peers[0].NodeInfo.Id);
        }
示例#3
0
        public void AbciInfoTest()
        {
            NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint);
            ResponseData  responseData  = nodeRpcClient.AbciInfo();

            Assert.NotNull(responseData.Response.Data);
        }
示例#4
0
        public void ConsensusStateTest()
        {
            NodeRpcClient           nodeRpcClient = new NodeRpcClient(endpoint);
            ConsensusRoundStateData result        = nodeRpcClient.ConsensusState();

            Assert.NotNull(result.RoundState.HeightVoteSets[0]);
        }
示例#5
0
        public void AbciQueryTokenListTest()
        {
            NodeRpcClient   nodeRpcClient = new NodeRpcClient(endpoint);
            ResultAbciQuery response      = nodeRpcClient.AbciQueryTokenList();

            Assert.NotNull(response.Response.Value);
        }
示例#6
0
        public void ValidatorsTest()
        {
            NodeRpcClient    nodeRpcClient = new NodeRpcClient(endpoint);
            ResultValidators result        = nodeRpcClient.Validators(10779111);

            Assert.NotNull(result.Validators[0].Address);
        }
示例#7
0
        public void ConsensusParamsTest()
        {
            NodeRpcClient         nodeRpcClient = new NodeRpcClient(endpoint);
            ResultConsensusParams result        = nodeRpcClient.ConsensusParams(10779111);

            Assert.NotNull(result.ConsensusParams.Evidence.MaxAge);
        }
示例#8
0
        public void NumUnconfirmedTxsTest()
        {
            NodeRpcClient           nodeRpcClient = new NodeRpcClient(endpoint);
            ResultNumUnconfirmedTxs result        = nodeRpcClient.NumUnconfirmedTxs();

            Assert.NotNull(result.NTxs);
        }
示例#9
0
        public void BlockchainTest()
        {
            NodeRpcClient        nodeRpcClient = new NodeRpcClient(endpoint);
            ResultBlockchainInfo result        = nodeRpcClient.Blockchain(10, 11);

            Assert.NotNull(result.BlockMetas[0].Header.ChainId);
        }
示例#10
0
        public void CommitTest()
        {
            NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint);
            ResultCommit  result        = nodeRpcClient.Commit(10779111);

            Assert.NotNull(result.SignedHeader.Header.ChainId);
        }
示例#11
0
        public void BlockResultsTest()
        {
            NodeRpcClient      nodeRpcClient = new NodeRpcClient(endpoint);
            ResultBlockResults result        = nodeRpcClient.BlockResults(10779111);

            Assert.NotNull(result.Results.BeginBlock);
        }
示例#12
0
        public void BlockByHashTest()
        {
            NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint);
            ResultBlock   result        = nodeRpcClient.BlockByHash("0x989A3A075B6168A5B0F9B75F69BC71608E65D7A8A632F0D462AD311A646923ED");

            Assert.NotNull(result.Block.Header.ChainId);
        }
示例#13
0
        public void BlockTest()
        {
            NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint);
            ResultBlock   result        = nodeRpcClient.Block(10779111);

            Assert.NotNull(result.Block.Header.ChainId);
        }
示例#14
0
        public void GenesisTest()
        {
            NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint);
            ResultGenesis result        = nodeRpcClient.Genesis();

            Assert.NotNull(result.Genesis);
        }
示例#15
0
        public void TxTest()
        {
            NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint);
            ResultTx      result        = nodeRpcClient.Tx("0xAB1B84C7C0B0B195941DCE9CFE1A54214B72D5DB54AD388D8B146A6B62911E8E", true);

            Assert.NotNull(result.TxResult.Data);
        }
示例#16
0
        public void HealthTest()
        {
            NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint);
            ResultHealth  result        = nodeRpcClient.Health();

            Assert.NotNull(result);
        }
示例#17
0
        public void TxSearchTest()
        {
            NodeRpcClient  nodeRpcClient = new NodeRpcClient(endpoint);
            ResultTxSearch result        = nodeRpcClient.TxSearch("tx.height=10779179", true);

            Assert.NotNull(result.TotalCount);
        }
示例#18
0
        public void StatusTest()
        {
            NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint);
            ResultStatus  result        = nodeRpcClient.Status();

            Assert.NotNull(result.NodeInfo.ListenAddr);
        }
示例#19
0
        public void AbciQueryTest()
        {
            NodeRpcClient   nodeRpcClient = new NodeRpcClient(endpoint);
            ResultAbciQuery response      = nodeRpcClient.AbciQuery(EAbciQueryPath.StoreAccKey, "0x6163636F756E743A89F856CB39D25C1BDDAAEC74A381577CA8E2F886");

            Assert.NotNull(response.Response.Value);
        }