Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing functionality #77

Merged
merged 42 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
b281fce
fix NFTAcceptOffer
Platonenkov Jan 14, 2023
bcad649
fix Balances (1.3 H)
Platonenkov Jan 14, 2023
383c69a
fix fee sugar (0.2 h)
Platonenkov Jan 14, 2023
04a723e
to extensions (0.2 h)
Platonenkov Jan 14, 2023
e26d1cd
Get OrderBook Sugar (0.5 h)
Platonenkov Jan 14, 2023
42b9568
submit sugar (1 h)
Platonenkov Jan 14, 2023
60951dc
address sugar (0.2 h)
Platonenkov Jan 14, 2023
d1f651f
utils (10 H)
Platonenkov Jan 15, 2023
b362dc8
Merge branch 'main' into Missing_Functionality
dangell7 Jan 19, 2023
73646c5
fix subscribe test
dangell7 Jan 22, 2023
088698f
xumm numbers to seed
Platonenkov Apr 2, 2023
7adf06d
fix fields name, missing fields, connection events, lost transactions
Platonenkov Jun 11, 2023
bb8a0de
Merge branch 'fixes_newFunc_xumm' into Missing_Functionality
Platonenkov Jun 11, 2023
2969b0a
TxFormat fix
Platonenkov Jun 11, 2023
72151fb
Meta serializer
Platonenkov Jun 28, 2023
64b9d9c
submit from server with sequence
Platonenkov Jul 30, 2023
2d64678
quality must be decimal (23 digits after dot)
Platonenkov Jul 30, 2023
ace8f07
limit must be double
Platonenkov Aug 4, 2023
9d9c8c2
FundWallet to interface
Platonenkov Aug 6, 2023
6aca1a0
catch exception type must be XrplException
Platonenkov Aug 6, 2023
a42d2ba
max and min decimal fix
Platonenkov Aug 20, 2023
6478d93
NFTokenPage parser fix
Platonenkov Aug 20, 2023
d32069d
update packages
Platonenkov Sep 21, 2023
0ab583c
amm branch copied
Platonenkov Oct 15, 2023
a6b0962
add definitions.json
Platonenkov Oct 17, 2023
3dc47f6
add AMM Response
Platonenkov Oct 22, 2023
00a7971
add Clawback
Platonenkov Oct 22, 2023
d16a74b
comment autofill
Platonenkov Dec 12, 2023
2d57884
add nftokenoffer owner parse
Platonenkov Dec 14, 2023
ba482b0
remove wrong
Platonenkov Dec 14, 2023
7b19b1c
add networkID to connection
Platonenkov Dec 28, 2023
4260f3e
add network Id into server info & to connection options
Platonenkov Dec 29, 2023
96d7b96
add unknown type for new transaction types
Platonenkov Dec 29, 2023
5b98a81
add missed submit fields
Platonenkov Feb 7, 2024
8757c40
fix amm fields
Platonenkov Feb 7, 2024
d70194a
Add client network_id field to tx, add amm method
Platonenkov Feb 7, 2024
3fc5f33
fix: amm tx response
Platonenkov Mar 27, 2024
4ac79a1
feat: add LP token valid name converter
Platonenkov Mar 27, 2024
66099fb
Merge branch 'main' into Missing_Functionality
dangell7 May 10, 2024
1cef235
fix merge
dangell7 May 10, 2024
38d32cd
fix bad merge
dangell7 May 10, 2024
eaae0c2
fix bad merge
dangell7 May 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Base/Xrpl.AddressCodec/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@

namespace Xrpl.AddressCodec
{
public class Utils
public static class Utils
{
/// <summary>
/// from bytes array to hex row
/// </summary>
/// <param name="bytes">bytes array</param>
/// <returns></returns>
public static string FromBytesToHex(byte[] bytes) => Hex.ToHexString(bytes).ToUpper();
public static string FromBytesToHex(this byte[] bytes) => Hex.ToHexString(bytes).ToUpper();

/// <summary>
/// hex row to bytes array
/// </summary>
/// <param name="hex">hex row</param>
/// <returns></returns>
public static byte[] FromHexToBytes(string hex) => Hex.Decode(hex);
public static byte[] FromHexToBytes(this string hex) => Hex.Decode(hex);

/// <summary>
/// combine bytes arrays to single array
Expand Down
4 changes: 2 additions & 2 deletions Base/Xrpl.AddressCodec/Xrpl.AddressCodec.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
<PackageLicenseUrl>https://github.com/Transia-RnD/XrplCSharp/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/Transia-RnD/XrplCSharp</PackageProjectUrl>
<Title>XrplCSharp</Title>
<PackageVersion>1.0.0</PackageVersion>
<PackageVersion>2.0.0</PackageVersion>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Debug\net6.0\XrplCSharp.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Portable.BouncyCastle" Version="1.9.0" />
<PackageReference Include="Chaos.NaCl.Standard" Version="1.0.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
Expand Down
9 changes: 0 additions & 9 deletions Base/Xrpl.BinaryCodec/Binary/BytesList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,6 @@ public void Put(byte[] bytes)
}
/// <summary> Get all bytes </summary>
/// <returns>Bytes</returns>
public byte[] Bytes()
{
var n = BytesLength();
var bytes = new byte[n];
AddBytes(bytes, 0);
return bytes;
}
/// <summary> Get all bytes </summary>
/// <returns>Bytes</returns>
public byte[] ToBytes()
{
var n = BytesLength();
Expand Down
6 changes: 3 additions & 3 deletions Base/Xrpl.BinaryCodec/Enums/Field.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,14 @@ private bool IsVlEncodedType()
public static readonly TransactionTypeField TransactionType = new TransactionTypeField(nameof(TransactionType), 2);
public static readonly Uint16Field SignerWeight = new Uint16Field(nameof(SignerWeight), 3);
public static readonly Uint16Field TransferFee = new Uint16Field(nameof(TransferFee), 4);
public static readonly Uint16Field TradingFee = new Uint16Field(nameof(TradingFee), 4);
public static readonly Uint16Field TradingFee = new Uint16Field(nameof(TradingFee), 4);
public static readonly Uint16Field Version = new Uint16Field(nameof(Version), 16);
public static readonly Uint16Field HookStateChangeCount = new Uint16Field(nameof(HookStateChangeCount), 17);
public static readonly Uint16Field HookStateEmitCount = new Uint16Field(nameof(HookStateEmitCount), 18);
public static readonly Uint16Field HookStateExecutionIndex = new Uint16Field(nameof(HookStateExecutionIndex), 19);
public static readonly Uint16Field HookApiVersion = new Uint16Field(nameof(HookApiVersion), 20);

public static readonly Uint32Field NetworkID = new Uint32Field(nameof(NetworkID), 1);
public static readonly Uint32Field Flags = new Uint32Field(nameof(Flags), 2);
public static readonly Uint32Field SourceTag = new Uint32Field(nameof(SourceTag), 3);
public static readonly Uint32Field Sequence = new Uint32Field(nameof(Sequence), 4);
Expand Down Expand Up @@ -214,7 +215,7 @@ private bool IsVlEncodedType()
public static readonly AmountField DeliverMin = new AmountField(nameof(DeliverMin), 10);
public static readonly AmountField Amount2 = new AmountField(nameof(Amount2), 11);
public static readonly AmountField BidMin = new AmountField(nameof(BidMin), 12);
public static readonly AmountField BidMax = new AmountField(nameof(BidMax), 13);
public static readonly AmountField BidMax = new AmountField(nameof(BidMax), 13);
public static readonly AmountField MinimumOffer = new AmountField(nameof(MinimumOffer), 16);
public static readonly AmountField RippleEscrow = new AmountField(nameof(RippleEscrow), 17);
public static readonly AmountField DeliveredAmount = new AmountField(nameof(DeliveredAmount), 18);
Expand Down Expand Up @@ -314,7 +315,6 @@ private bool IsVlEncodedType()
public static readonly StArrayField HookParameters = new StArrayField(nameof(HookParameters), 19);
public static readonly StArrayField HookGrants = new StArrayField(nameof(HookGrants), 19);
public static readonly StArrayField AuthAccounts = new StArrayField(nameof(AuthAccounts), 26);

public static readonly Field Generic = new Field(nameof(Generic), 0, FieldType.Unknown, isSigningField: false);
public static readonly Field Invalid = new Field(nameof(Invalid), -1, FieldType.Unknown, isSigningField: false);

Expand Down
1 change: 0 additions & 1 deletion Base/Xrpl.BinaryCodec/Enums/LedgerEntryType.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Newtonsoft.Json.Linq;
using Xrpl.BinaryCodec.Enums;

//todo not found doc

Expand Down
3 changes: 2 additions & 1 deletion Base/Xrpl.BinaryCodec/Enums/TransactionType.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Xrpl.BinaryCodec.Enums;

namespace Xrpl.BinaryCodec.Enums
namespace Xrpl.BinaryCodec.Types
{
public class TransactionType : SerializedEnumItem<ushort>
{
Expand Down Expand Up @@ -86,6 +86,7 @@ private static TransactionType Add(string name, int ordinal)
public static readonly TransactionType AMMWithdraw = Add(nameof(AMMWithdraw), 37);
public static readonly TransactionType AMMVote = Add(nameof(AMMVote), 38);
public static readonly TransactionType AMMBid = Add(nameof(AMMBid), 39);
public static readonly TransactionType AMMDelete = Add(nameof(AMMDelete), 40);

// ...
/// <summary>
Expand Down
Loading
Loading