예제 #1
0
        private ContractTransaction prepareTxObject(string bindingid, BC.Offchain.Repository.Models.Profile CitizenProfile)
        {
            var _dto = CitizenProfile;

            _dto.TransactedTime = DateTime.Now;
            _dto.TransactionID  = Guid.NewGuid().ToString();

            TransactionConfirmation _transactionConfirmation = new TransactionConfirmation()
            {
                BlockHash        = "0xfa4e2a31506c1f930efc7701ff6ddc1451d08a38a7a9267fe263766b4c7ea2d0",
                BlockNumber      = "1",
                TransactionHash  = "",
                Name             = "Fake Contract",
                ProxyId          = "Fake Contract_Proxy ID",
                TransactionIndex = "1"
            };
            ContractTransaction _txInformation = new ContractTransaction(bindingid, " Enterprise Smart Contract transacted.....", _dto, _transactionConfirmation);

            return(_txInformation);
        }
예제 #2
0
        private ContractTransaction prepareDeployObject(BC.Offchain.Repository.Models.Profile citizenProfile)
        {
            ConstructorConfirmation _deployConfirmation = new ConstructorConfirmation()
            {
                NewContractOrTokenId = Guid.NewGuid().ToString(),
                Name = "Smart Contract instance by ESC Template",
                TransactionConfirmation = new TransactionConfirmation()
                {
                    BlockHash        = "0xfa4e2a31506c1f930efc7701ff6ddc1451d08a38a7a9267fe263766b4c7ea2d0",
                    BlockNumber      = "1",
                    LedgerAddress    = "",
                    TransactionHash  = "",
                    Name             = "Fake Contract",
                    ProxyId          = "Fake Contract_Proxy ID",
                    TransactionIndex = "1"
                }
            };
            ContractTransaction _txInformation = new ContractTransaction(citizenProfile, _deployConfirmation);

            return(_txInformation);
        }