示例#1
0
        public void TestCore()
        {
            var env = new TestEnviroment();

            var test_keypair = KeyPair.GenerateAddress();

            env.api.SendAsset(env.owner_keys, test_keypair.address, "GAS", 1);

            var test_key   = "test_key";
            var test_value = "Hello world!";

            var bridge = new BridgeManager(env.api, env.swarm, env.admin_keys.WIF, contract_script_bytes, env.api.GetBlockHeight());

            var tx = env.api.CallContract(test_keypair, contract_script_hash, "create", new object[] { test_keypair.address.AddressToScriptHash(), test_key, test_value });

            /*Assert.IsNotNull(tx);
             *
             * env.api.WaitForTransaction(test_keypair, tx);
             *
             * // run for a single block
             * bridge.Run(1);
             *
             * env.swarm.Read(env.ui)*/
        }
示例#2
0
        public void TestCore()
        {
            var env = new TestEnviroment();

            //Assert.IsTrue(TODO);
        }