Exemplo n.º 1
0
        public static OperationMeta Decode(IByteReader stream)
        {
            OperationMeta decodedOperationMeta = new OperationMeta();

            decodedOperationMeta.Changes = LedgerEntryChanges.Decode(stream);
            return(decodedOperationMeta);
        }
Exemplo n.º 2
0
        public static OperationMeta Decode(XdrDataInputStream stream)
        {
            var decodedOperationMeta = new OperationMeta();

            decodedOperationMeta.Changes = LedgerEntryChanges.Decode(stream);
            return(decodedOperationMeta);
        }
Exemplo n.º 3
0
        public static UpgradeEntryMeta Decode(XdrDataInputStream stream)
        {
            UpgradeEntryMeta decodedUpgradeEntryMeta = new UpgradeEntryMeta();

            decodedUpgradeEntryMeta.Upgrade = LedgerUpgrade.Decode(stream);
            decodedUpgradeEntryMeta.Changes = LedgerEntryChanges.Decode(stream);
            return(decodedUpgradeEntryMeta);
        }
Exemplo n.º 4
0
        public static TransactionResultMeta Decode(XdrDataInputStream stream)
        {
            TransactionResultMeta decodedTransactionResultMeta = new TransactionResultMeta();

            decodedTransactionResultMeta.Result            = TransactionResultPair.Decode(stream);
            decodedTransactionResultMeta.FeeProcessing     = LedgerEntryChanges.Decode(stream);
            decodedTransactionResultMeta.TxApplyProcessing = TransactionMeta.Decode(stream);
            return(decodedTransactionResultMeta);
        }
        public static TransactionMetaV1 Decode(XdrDataInputStream stream)
        {
            TransactionMetaV1 decodedTransactionMetaV1 = new TransactionMetaV1();

            decodedTransactionMetaV1.TxChanges = LedgerEntryChanges.Decode(stream);
            int operationssize = stream.ReadInt();

            decodedTransactionMetaV1.Operations = new OperationMeta[operationssize];
            for (int i = 0; i < operationssize; i++)
            {
                decodedTransactionMetaV1.Operations[i] = OperationMeta.Decode(stream);
            }
            return(decodedTransactionMetaV1);
        }
        public static TransactionMetaV2 Decode(XdrDataInputStream stream)
        {
            TransactionMetaV2 decodedTransactionMetaV2 = new TransactionMetaV2();

            decodedTransactionMetaV2.TxChangesBefore = LedgerEntryChanges.Decode(stream);
            int operationssize = stream.ReadInt();

            decodedTransactionMetaV2.Operations = new OperationMeta[operationssize];
            for (int i = 0; i < operationssize; i++)
            {
                decodedTransactionMetaV2.Operations[i] = OperationMeta.Decode(stream);
            }
            decodedTransactionMetaV2.TxChangesAfter = LedgerEntryChanges.Decode(stream);
            return(decodedTransactionMetaV2);
        }