ton_sdk_client 1.26.0 → 1.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/ton_sdk_client/abi.rb +27 -0
- data/lib/ton_sdk_client/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: de68cde3bf2772d6e041682e0c3b72653dbc10c88f9d3da6f6e38805392c79d9
|
|
4
|
+
data.tar.gz: 711422d1ea613eade3fa88d04f6b04ac820ea7ad4d5cc290fb820fef7d9af531
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 91abf0f72519493a45ab76f48099204cd7a00660d7da98a88bbf26d0ce9e73d8a45c8cbeba5555bce24c0ed5017abcb42e880a88a0f3c054b12b4555b2a3b51e
|
|
7
|
+
data.tar.gz: fad6857d97f33b0b38ea00a6e107225e90a3dca58aafbc48ac61f9c28e4e608a2bc6c3de6d70b327503cd967ee7a4437f3c5bdc07237ea6a1b6ea5c9bd73df98
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
all the changes are always according to the ones of the main TON SDK library; and on top on that, there may be additional ones
|
|
4
4
|
|
|
5
|
+
1.27.0
|
|
6
|
+
-----
|
|
7
|
+
* Changes `1.27.0` https://github.com/tonlabs/TON-SDK/blob/master/CHANGELOG.md#1270--2021-12-03
|
|
8
|
+
|
|
5
9
|
1.26.0
|
|
6
10
|
-----
|
|
7
11
|
* Changes `1.26.0` https://github.com/tonlabs/TON-SDK/blob/master/CHANGELOG.md#1260--2021-11-25
|
data/lib/ton_sdk_client/abi.rb
CHANGED
|
@@ -756,6 +756,19 @@ module TonSdk
|
|
|
756
756
|
|
|
757
757
|
ResultOfUpdateInitialData = KwStruct.new(:data)
|
|
758
758
|
|
|
759
|
+
ParamsOfEncodeInitialData = KwStruct.new(:abi, :initial_data, :initial_pubkey, :boc_cache) do
|
|
760
|
+
def to_h
|
|
761
|
+
{
|
|
762
|
+
abi: abi&.to_h,
|
|
763
|
+
initial_data: initial_data,
|
|
764
|
+
initial_pubkey: initial_pubkey,
|
|
765
|
+
boc_cache: boc_cache&.to_h
|
|
766
|
+
}
|
|
767
|
+
end
|
|
768
|
+
end
|
|
769
|
+
|
|
770
|
+
ResultOfEncodeInitialData = KwStruct.new(:data)
|
|
771
|
+
|
|
759
772
|
ParamsOfDecodeInitialData = KwStruct.new(:data, :abi) do
|
|
760
773
|
def to_h
|
|
761
774
|
{
|
|
@@ -923,6 +936,20 @@ module TonSdk
|
|
|
923
936
|
end
|
|
924
937
|
end
|
|
925
938
|
|
|
939
|
+
def self.encode_initial_data(ctx, params)
|
|
940
|
+
Interop::request_to_native_lib(ctx, "abi.encode_initial_data", params) do |resp|
|
|
941
|
+
if resp.success?
|
|
942
|
+
yield NativeLibResponseResult.new(
|
|
943
|
+
result: ResultOfEncodeInitialData.new(
|
|
944
|
+
data: resp.result["data"]
|
|
945
|
+
)
|
|
946
|
+
)
|
|
947
|
+
else
|
|
948
|
+
yield resp
|
|
949
|
+
end
|
|
950
|
+
end
|
|
951
|
+
end
|
|
952
|
+
|
|
926
953
|
def self.decode_initial_data(ctx, params)
|
|
927
954
|
Interop::request_to_native_lib(ctx, "abi.decode_initial_data", params) do |resp|
|
|
928
955
|
if resp.success?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ton_sdk_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.27.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex Maslakov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-12-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|