/// <summary>
 ///     Creates the token.
 /// </summary>
 /// <returns></returns>
 public static Erc20TokenContractInfo Create()
 {
     // TODO: Add contract addresses here once deployed
     return(ContractInfoBuilder.Create(WellKnownContracts.Token)
            .Network(network: Layer2EthereumNetworks.OptimismKovan, new ContractAddress("0x2222222222222222222222222222222222222222"))
            .Network(network: PublicEthereumNetworks.KOVAN, new ContractAddress("0x64f5361a555A43776f71A06C58dD7bCD7E184983"))
            .BuildErc20Token(symbol: "SE667", decimalPlaces: 8));
 }
示例#2
0
 /// <summary>
 ///     Creates the Game Manager Contract.
 /// </summary>
 /// <returns></returns>
 public static IContractInfo Create()
 {
     return(ContractInfoBuilder.Create(WellKnownContracts.GameManager)
            .Network(network: Layer2EthereumNetworks.OptimismKovan, new ContractAddress("0x832B7d868C45a53e9690ffc12527391098bBd0dD"))
            .Transaction <StartGameRound>()
            .Transaction <StopBetting>()
            .Transaction <EndGameRound>()
            .Event <StartGameRoundEvent>()
            .Event <EndGameRoundEvent>()
            .Event <NoMoreBetsEvent>()
            .Build());
 }
 /// <summary>
 ///     Creates the faucet.
 /// </summary>
 /// <returns></returns>
 public static IContractInfo Create()
 {
     return ContractInfoBuilder.Create(WellKnownContracts.Faucet)
                               .Network(network: Layer2EthereumNetworks.OptimismKovan, new ContractAddress("0x4697d0CB9E40699237d0f40F3EE211527a5619fF"))
                               .Transaction<WithdrawEth>()
                               .Transaction<WithdrawToken>()
                               .Transaction<DistributeEth>()
                               .Transaction<DistributeToken>()
                               .Transaction<DistributeTokenAndEth>()
                               .Event<DistributedEth>()
                               .Event<DistributedToken>()
                               .Event<SentFundsToContract>()
                               .Event<WithdrewEthFromContract>()
                               .Event<WithdrewTokenFromContract>()
                               .Build();
 }
示例#4
0
 /// <summary>
 ///     Creates the faucet.
 /// </summary>
 /// <returns></returns>
 public static IContractInfo Create()
 {
     // TODO: Add contract addresses here once deployed
     return(ContractInfoBuilder.Create(WellKnownContracts.Faucet)
            .Network(network: Layer2EthereumNetworks.OptimismKovan, new ContractAddress("0x1111111111111111111111111111111111111111"))
            .Network(network: PublicEthereumNetworks.KOVAN, new ContractAddress("0x6f3C554Fb96EEb00E64688b6d8980eb6856Cfa78"))
            .Transaction <WithdrawEth>()
            .Transaction <WithdrawToken>()
            .Transaction <DistributeEth>()
            .Transaction <DistributeToken>()
            .Transaction <DistributeTokenAndEth>()
            .Event <DistributedEth>()
            .Event <DistributedToken>()
            .Event <SentFundsToContract>()
            .Event <WithdrewEthFromContract>()
            .Event <WithdrewTokenFromContract>()
            .Build());
 }
 /// <summary>
 ///     Creates the token.
 /// </summary>
 /// <returns></returns>
 public static Erc20TokenContractInfo Create()
 {
     return(ContractInfoBuilder.Create(WellKnownContracts.Token)
            .Network(network: Layer2EthereumNetworks.OptimismKovan, new ContractAddress("0x11160251d4283A48B7A8808aa0ED8EA5349B56e2"))
            .BuildErc20Token(symbol: "LABRATS", decimalPlaces: 8));
 }