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

            decodedOperationMeta.Changes = LedgerEntryChanges.Decode(stream);
            return(decodedOperationMeta);
        }
Exemplo n.º 2
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.º 3
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);
        }
Exemplo n.º 4
0
        public static void Encode(XdrDataOutputStream stream, LedgerEntryChanges encodedLedgerEntryChanges)
        {
            int LedgerEntryChangessize = encodedLedgerEntryChanges.InnerValue.Length;

            stream.WriteInt(LedgerEntryChangessize);
            for (int i = 0; i < LedgerEntryChangessize; i++)
            {
                LedgerEntryChange.Encode(stream, encodedLedgerEntryChanges.InnerValue[i]);
            }
        }
 public static void Encode(XdrDataOutputStream stream, TransactionMetaV1 encodedTransactionMetaV1)
 {
     LedgerEntryChanges.Encode(stream, encodedTransactionMetaV1.TxChanges);
     int operationssize = encodedTransactionMetaV1.Operations.Length;
     stream.WriteInt(operationssize);
     for (int i = 0; i < operationssize; i++)
     {
         OperationMeta.Encode(stream, encodedTransactionMetaV1.Operations[i]);
     }
 }
Exemplo n.º 6
0
        public static LedgerEntryChanges Decode(XdrDataInputStream stream)
        {
            LedgerEntryChanges decodedLedgerEntryChanges = new LedgerEntryChanges();
            int LedgerEntryChangessize = stream.ReadInt();

            decodedLedgerEntryChanges.InnerValue = new LedgerEntryChange[LedgerEntryChangessize];
            for (int i = 0; i < LedgerEntryChangessize; i++)
            {
                decodedLedgerEntryChanges.InnerValue[i] = LedgerEntryChange.Decode(stream);
            }
            return(decodedLedgerEntryChanges);
        }
        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;
        }
Exemplo n.º 8
0
        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);
        }
Exemplo n.º 9
0
 public static void Encode(XdrDataOutputStream stream, OperationMeta encodedOperationMeta)
 {
     LedgerEntryChanges.Encode(stream, encodedOperationMeta.Changes);
 }
Exemplo n.º 10
0
 public static void Encode(XdrDataOutputStream stream, UpgradeEntryMeta encodedUpgradeEntryMeta)
 {
     LedgerUpgrade.Encode(stream, encodedUpgradeEntryMeta.Upgrade);
     LedgerEntryChanges.Encode(stream, encodedUpgradeEntryMeta.Changes);
 }
Exemplo n.º 11
0
 public static void Encode(XdrDataOutputStream stream, TransactionResultMeta encodedTransactionResultMeta)
 {
     TransactionResultPair.Encode(stream, encodedTransactionResultMeta.Result);
     LedgerEntryChanges.Encode(stream, encodedTransactionResultMeta.FeeProcessing);
     TransactionMeta.Encode(stream, encodedTransactionResultMeta.TxApplyProcessing);
 }