|
| 1 | +/* Copyright 2021 Radix Publishing Ltd incorporated in Jersey (Channel Islands). |
| 2 | + * |
| 3 | + * Licensed under the Radix License, Version 1.0 (the "License"); you may not use this |
| 4 | + * file except in compliance with the License. You may obtain a copy of the License at: |
| 5 | + * |
| 6 | + * radixfoundation.org/licenses/LICENSE-v1 |
| 7 | + * |
| 8 | + * The Licensor hereby grants permission for the Canonical version of the Work to be |
| 9 | + * published, distributed and used under or by reference to the Licensor’s trademark |
| 10 | + * Radix ® and use of any unregistered trade names, logos or get-up. |
| 11 | + * |
| 12 | + * The Licensor provides the Work (and each Contributor provides its Contributions) on an |
| 13 | + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, |
| 14 | + * including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, |
| 15 | + * MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. |
| 16 | + * |
| 17 | + * Whilst the Work is capable of being deployed, used and adopted (instantiated) to create |
| 18 | + * a distributed ledger it is your responsibility to test and validate the code, together |
| 19 | + * with all logic and performance of that code under all foreseeable scenarios. |
| 20 | + * |
| 21 | + * The Licensor does not make or purport to make and hereby excludes liability for all |
| 22 | + * and any representation, warranty or undertaking in any form whatsoever, whether express |
| 23 | + * or implied, to any entity or person, including any representation, warranty or |
| 24 | + * undertaking, as to the functionality security use, value or other characteristics of |
| 25 | + * any distributed ledger nor in respect the functioning or value of any tokens which may |
| 26 | + * be created stored or transferred using the Work. The Licensor does not warrant that the |
| 27 | + * Work or any use of the Work complies with any law or regulation in any territory where |
| 28 | + * it may be implemented or used or that it will be appropriate for any specific purpose. |
| 29 | + * |
| 30 | + * Neither the licensor nor any current or former employees, officers, directors, partners, |
| 31 | + * trustees, representatives, agents, advisors, contractors, or volunteers of the Licensor |
| 32 | + * shall be liable for any direct or indirect, special, incidental, consequential or other |
| 33 | + * losses of any kind, in tort, contract or otherwise (including but not limited to loss |
| 34 | + * of revenue, income or profits, or loss of use or data, or loss of reputation, or loss |
| 35 | + * of any economic or other opportunity of whatsoever nature or howsoever arising), arising |
| 36 | + * out of or in connection with (without limitation of any use, misuse, of any ledger system |
| 37 | + * or use made or its functionality or any performance or operation of any code or protocol |
| 38 | + * caused by bugs or programming or logic errors or otherwise); |
| 39 | + * |
| 40 | + * A. any offer, purchase, holding, use, sale, exchange or transmission of any |
| 41 | + * cryptographic keys, tokens or assets created, exchanged, stored or arising from any |
| 42 | + * interaction with the Work; |
| 43 | + * |
| 44 | + * B. any failure in a transmission or loss of any token or assets keys or other digital |
| 45 | + * artefacts due to errors in transmission; |
| 46 | + * |
| 47 | + * C. bugs, hacks, logic errors or faults in the Work or any communication; |
| 48 | + * |
| 49 | + * D. system software or apparatus including but not limited to losses caused by errors |
| 50 | + * in holding or transmitting tokens by any third-party; |
| 51 | + * |
| 52 | + * E. breaches or failure of security including hacker attacks, loss or disclosure of |
| 53 | + * password, loss of private key, unauthorised use or misuse of such passwords or keys; |
| 54 | + * |
| 55 | + * F. any losses including loss of anticipated savings or other benefits resulting from |
| 56 | + * use of the Work or any changes to the Work (however implemented). |
| 57 | + * |
| 58 | + * You are solely responsible for; testing, validating and evaluation of all operation |
| 59 | + * logic, functionality, security and appropriateness of using the Work for any commercial |
| 60 | + * or non-commercial purpose and for any reproduction or redistribution by You of the |
| 61 | + * Work. You assume all risks associated with Your use of the Work and the exercise of |
| 62 | + * permissions under this License. |
| 63 | + */ |
| 64 | + |
| 65 | +using System; |
| 66 | + |
| 67 | +namespace RadixDlt.CoreApiSdk.Model; |
| 68 | + |
| 69 | +public partial class UserLedgerTransactionV2 |
| 70 | +{ |
| 71 | + private byte[] _payloadBytes; |
| 72 | + |
| 73 | + public byte[] GetPayloadBytes() => _payloadBytes ??= Convert.FromHexString(PayloadHex); |
| 74 | +} |
0 commit comments