Exemplo n.º 1
0
        public ContractTransaction(Profile businessContract, ConstructorConfirmation contractDeployed)
        {
            InitObject(businessContract);
            ContractID = Guid.NewGuid().ToString();

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