Exemplo n.º 1
0
        static void Main(string[] args)
        {
            // Register Asset Module
            AssetTypesRegisterer.RegisterTypes();

            // Initialize client
            var miyabiClient = new Client(SdkConfig.Load(SDK_CONFIG_PATH));

            // Create services
            var transactionService = new TransactionService(miyabiClient);

            // This line needs to be replace by a valid table admin key
            TABLE_ADMIN_PRIVATE_KEY = "input_your_key_here";

            // Create Alice wallet for the demo
            var aliceWallet = new WalletService(miyabiClient, transactionService);

            var demo = new Demo(transactionService, aliceWallet);

            demo.Run();
        }
Exemplo n.º 2
0
 public Demo(TransactionService transactionService, WalletService aliceWallet)
 {
     _transactionService = transactionService;
     _aliceWallet        = aliceWallet;
 }