public async Task <string> DeployContract() { //TODO Deploy contract Standard first var standardContract = await _txHelper.DeployContract(this.GetWeb3(), DefaultSettings.AddressFrom, DefaultSettings.Password, DefaultSettings.StandardSchemaContractByteCode); return(await _txHelper.DeployContract(WorkContractDefinition.ABI, this.GetWeb3(), DefaultSettings.AddressFrom, DefaultSettings.Password, DefaultSettings.ContractByteCode, new [] { (string)standardContract })); }
public async Task <string> DeployContractAsync() { var transactionHelper = new TransactionHelpers(); var web3 = new Web3(publicNode); return(await transactionHelper.DeployContract(privateKey, web3, account, byteCode)); }
public virtual async Task ShouldDeployStandardSchema() { var transactionHelper = new TransactionHelpers(); var web3 = await CreateNewWeb3Instance(); string contract = await transactionHelper.DeployContract(web3, Account, _password, WorkStandardSchemaByteCode, false); }
public virtual async Task <string> ShouldDeployRegistryFactory() { var transactionHelper = new TransactionHelpers(); var web3 = await CreateNewWeb3Instance(); var contract = await transactionHelper.DeployContract(PrivateKey, web3, Account, WorkFactoryService.BYTE_CODE); return(contract); }
public virtual async Task <string> ShouldDeployStandardSchema() { var transactionHelper = new TransactionHelpers(); var web3 = await CreateNewWeb3Instance(); var contract = await transactionHelper.DeployContract(PrivateKey, web3, Account, WorkStandardSchemaByteCode); return(contract); }
public override async Task <string> DeployContractAsync() { var transactionHelper = new TransactionHelpers(); var web3 = await CreateNewWeb3Instance(); var contract = await transactionHelper.DeployContract(PrivateKey, WorkContractDefinition.ABI, web3, Account, ByteCode, new[] { WorkStandardSchemaAddress }); return(contract); }
public override async Task <string> DeployContractAsync() { var transactionHelper = new TransactionHelpers(); var web3 = await CreateNewWeb3Instance(); var contract = await transactionHelper.DeployContract(WorkContractDefinition.ABI, web3, Account, _password, ByteCode, new[] { WorkStandardSchemaAddress }); Debug.WriteLine("Contract created: " + contract); return(contract); }
public async Task <string> DeployContract() { return(await txHelper.DeployContract(this.GetWeb3(), DefaultSettings.AddressFrom, DefaultSettings.Password, DefaultSettings.ContractByteCode)); }