Skip to content

Commit

Permalink
Upgrade to SDK version 1.37.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry committed Sep 21, 2022
1 parent 8c21c9c commit 1e1023e
Show file tree
Hide file tree
Showing 23 changed files with 242 additions and 92 deletions.
2 changes: 1 addition & 1 deletion generator/api.index.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
1.37.1
1.37.2
TYPES
client.ClientErrorCode
client.ClientError
Expand Down
88 changes: 72 additions & 16 deletions generator/api.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.37.1",
"version": "1.37.2",
"modules": [
{
"name": "client",
Expand Down Expand Up @@ -540,7 +540,7 @@
"type": "String"
},
"summary": "Access key to GraphQL API.",
"description": "You can specify here Evercloud project secret ot serialized JWT."
"description": "You can specify here Basic Auth secret (Evercloud project secret) in hex string\nor serialized JWT in base64 string.\nWill be passed on as Authorization: Basic ... or Authorization: Bearer ... header."
}
],
"summary": null,
Expand Down Expand Up @@ -1310,29 +1310,61 @@
"enum_types": [
{
"name": "AES",
"type": "Ref",
"ref_name": "crypto.AesParamsEB",
"type": "Struct",
"struct_fields": [
{
"name": "value",
"type": "Ref",
"ref_name": "crypto.AesParamsEB",
"summary": null,
"description": null
}
],
"summary": null,
"description": null
},
{
"name": "ChaCha20",
"type": "Ref",
"ref_name": "crypto.ChaCha20ParamsEB",
"type": "Struct",
"struct_fields": [
{
"name": "value",
"type": "Ref",
"ref_name": "crypto.ChaCha20ParamsEB",
"summary": null,
"description": null
}
],
"summary": null,
"description": null
},
{
"name": "NaclBox",
"type": "Ref",
"ref_name": "crypto.NaclBoxParamsEB",
"type": "Struct",
"struct_fields": [
{
"name": "value",
"type": "Ref",
"ref_name": "crypto.NaclBoxParamsEB",
"summary": null,
"description": null
}
],
"summary": null,
"description": null
},
{
"name": "NaclSecretBox",
"type": "Ref",
"ref_name": "crypto.NaclSecretBoxParamsEB",
"type": "Struct",
"struct_fields": [
{
"name": "value",
"type": "Ref",
"ref_name": "crypto.NaclSecretBoxParamsEB",
"summary": null,
"description": null
}
],
"summary": null,
"description": null
}
Expand Down Expand Up @@ -1588,22 +1620,46 @@
"enum_types": [
{
"name": "ChaCha20",
"type": "Ref",
"ref_name": "crypto.ChaCha20ParamsCB",
"type": "Struct",
"struct_fields": [
{
"name": "value",
"type": "Ref",
"ref_name": "crypto.ChaCha20ParamsCB",
"summary": null,
"description": null
}
],
"summary": null,
"description": null
},
{
"name": "NaclBox",
"type": "Ref",
"ref_name": "crypto.NaclBoxParamsCB",
"type": "Struct",
"struct_fields": [
{
"name": "value",
"type": "Ref",
"ref_name": "crypto.NaclBoxParamsCB",
"summary": null,
"description": null
}
],
"summary": null,
"description": null
},
{
"name": "NaclSecretBox",
"type": "Ref",
"ref_name": "crypto.NaclSecretBoxParamsCB",
"type": "Struct",
"struct_fields": [
{
"name": "value",
"type": "Ref",
"ref_name": "crypto.NaclSecretBoxParamsCB",
"summary": null,
"description": null
}
],
"summary": null,
"description": null
}
Expand Down
Binary file modified runtimes/linux-x64/native/libton_client.so
Binary file not shown.
Binary file modified runtimes/osx-x64/native/libton_client.dylib
Binary file not shown.
Binary file modified runtimes/win-x64/native/ton_client.dll
Binary file not shown.
Binary file modified runtimes/win-x86/native/ton_client.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion src/TonClient/Modules/AbiModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using TonSdk.Modules;

/*
* TON API version 1.37.1, abi module.
* TON API version 1.37.2, abi module.
* THIS FILE WAS GENERATED AUTOMATICALLY.
*/

Expand Down
2 changes: 1 addition & 1 deletion src/TonClient/Modules/BocModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using TonSdk.Modules;

/*
* TON API version 1.37.1, boc module.
* TON API version 1.37.2, boc module.
* THIS FILE WAS GENERATED AUTOMATICALLY.
*/

Expand Down
6 changes: 4 additions & 2 deletions src/TonClient/Modules/ClientModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using TonSdk.Modules;

/*
* TON API version 1.37.1, client module.
* TON API version 1.37.2, client module.
* THIS FILE WAS GENERATED AUTOMATICALLY.
*/

Expand Down Expand Up @@ -211,7 +211,9 @@ public class NetworkConfig
public uint? NextRempStatusTimeout { get; set; }

/// <summary>
/// You can specify here Evercloud project secret ot serialized JWT.
/// You can specify here Basic Auth secret (Evercloud project secret) in hex string
/// or serialized JWT in base64 string.
/// Will be passed on as Authorization: Basic ... or Authorization: Bearer ... header.
/// </summary>
[JsonProperty("access_key", NullValueHandling = NullValueHandling.Ignore)]
public string AccessKey { get; set; }
Expand Down
67 changes: 15 additions & 52 deletions src/TonClient/Modules/CryptoModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using TonSdk.Modules;

/*
* TON API version 1.37.1, crypto module.
* TON API version 1.37.2, crypto module.
* THIS FILE WAS GENERATED AUTOMATICALLY.
*/

Expand Down Expand Up @@ -82,48 +82,26 @@ public abstract class EncryptionAlgorithm
{
public class AES : EncryptionAlgorithm
{
[JsonProperty("mode", NullValueHandling = NullValueHandling.Ignore)]
[JsonConverter(typeof(StringEnumConverter))]
public CipherMode Mode { get; set; }

[JsonProperty("key", NullValueHandling = NullValueHandling.Ignore)]
public string Key { get; set; }

[JsonProperty("iv", NullValueHandling = NullValueHandling.Ignore)]
public string Iv { get; set; }
[JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)]
public AesParamsEB Value { get; set; }
}

public class ChaCha20 : EncryptionAlgorithm
{
/// <summary>
/// Must be encoded with `hex`.
/// </summary>
[JsonProperty("nonce", NullValueHandling = NullValueHandling.Ignore)]
public string Nonce { get; set; }
[JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)]
public ChaCha20ParamsEB Value { get; set; }
}

public class NaclBox : EncryptionAlgorithm
{
/// <summary>
/// Must be encoded with `hex`.
/// </summary>
[JsonProperty("their_public", NullValueHandling = NullValueHandling.Ignore)]
public string TheirPublic { get; set; }

/// <summary>
/// Must be encoded with `hex`.
/// </summary>
[JsonProperty("nonce", NullValueHandling = NullValueHandling.Ignore)]
public string Nonce { get; set; }
[JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)]
public NaclBoxParamsEB Value { get; set; }
}

public class NaclSecretBox : EncryptionAlgorithm
{
/// <summary>
/// Nonce in `hex`
/// </summary>
[JsonProperty("nonce", NullValueHandling = NullValueHandling.Ignore)]
public string Nonce { get; set; }
[JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)]
public NaclSecretBoxParamsEB Value { get; set; }
}
}

Expand Down Expand Up @@ -270,35 +248,20 @@ public abstract class BoxEncryptionAlgorithm
{
public class ChaCha20 : BoxEncryptionAlgorithm
{
/// <summary>
/// Must be encoded with `hex`.
/// </summary>
[JsonProperty("nonce", NullValueHandling = NullValueHandling.Ignore)]
public string Nonce { get; set; }
[JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)]
public ChaCha20ParamsCB Value { get; set; }
}

public class NaclBox : BoxEncryptionAlgorithm
{
/// <summary>
/// Must be encoded with `hex`.
/// </summary>
[JsonProperty("their_public", NullValueHandling = NullValueHandling.Ignore)]
public string TheirPublic { get; set; }

/// <summary>
/// Must be encoded with `hex`.
/// </summary>
[JsonProperty("nonce", NullValueHandling = NullValueHandling.Ignore)]
public string Nonce { get; set; }
[JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)]
public NaclBoxParamsCB Value { get; set; }
}

public class NaclSecretBox : BoxEncryptionAlgorithm
{
/// <summary>
/// Nonce in `hex`
/// </summary>
[JsonProperty("nonce", NullValueHandling = NullValueHandling.Ignore)]
public string Nonce { get; set; }
[JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)]
public NaclSecretBoxParamsCB Value { get; set; }
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/TonClient/Modules/DebotModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using TonSdk.Modules;

/*
* TON API version 1.37.1, debot module.
* TON API version 1.37.2, debot module.
* THIS FILE WAS GENERATED AUTOMATICALLY.
*/

Expand Down
2 changes: 1 addition & 1 deletion src/TonClient/Modules/NetModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using TonSdk.Modules;

/*
* TON API version 1.37.1, net module.
* TON API version 1.37.2, net module.
* THIS FILE WAS GENERATED AUTOMATICALLY.
*/

Expand Down
2 changes: 1 addition & 1 deletion src/TonClient/Modules/ProcessingModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using TonSdk.Modules;

/*
* TON API version 1.37.1, processing module.
* TON API version 1.37.2, processing module.
* THIS FILE WAS GENERATED AUTOMATICALLY.
*/

Expand Down
2 changes: 1 addition & 1 deletion src/TonClient/Modules/ProofsModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using TonSdk.Modules;

/*
* TON API version 1.37.1, proofs module.
* TON API version 1.37.2, proofs module.
* THIS FILE WAS GENERATED AUTOMATICALLY.
*/

Expand Down
2 changes: 1 addition & 1 deletion src/TonClient/Modules/TvmModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using TonSdk.Modules;

/*
* TON API version 1.37.1, tvm module.
* TON API version 1.37.2, tvm module.
* THIS FILE WAS GENERATED AUTOMATICALLY.
*/

Expand Down
2 changes: 1 addition & 1 deletion src/TonClient/Modules/UtilsModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using TonSdk.Modules;

/*
* TON API version 1.37.1, utils module.
* TON API version 1.37.2, utils module.
* THIS FILE WAS GENERATED AUTOMATICALLY.
*/

Expand Down
2 changes: 1 addition & 1 deletion tests/Modules/ClientModuleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public async Task Should_Return_Version()
var result = await _client.Client.VersionAsync();
Assert.NotEmpty(result.Version);
Assert.Matches(@"\d+\.\d+\.\d+", result.Version);
Assert.Equal("1.37.1", result.Version);
Assert.Equal("1.37.2", result.Version);
}

[Fact]
Expand Down
Loading

0 comments on commit 1e1023e

Please sign in to comment.