everscale-client-ruby 1.1.62 → 1.1.63
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/code_generator/api.json +87 -1
- data/lib/everscale-client-ruby/Client/Abi.rb +16 -0
- data/lib/everscale-client-ruby/version.rb +1 -1
- 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: 9dbc26200488873fe31f2b24aa622bbd36f2204e9564e78606b6f9e0c41ffbd8
|
4
|
+
data.tar.gz: 05db9abdd64c99d5fe4395550216229e6d64d3fa0bde339fa4a50e6f08a8fe9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b5f6eb1fc122801c939f0aaa0221b2249e9f55a3cd590ac8894108fa29e98ddd2e4a7a8772a9737987e4c615b81eee47484e4a533a4e789073779650a2c6198
|
7
|
+
data.tar.gz: e26806049ad9ff4092c99625286ac1d5ee05a5ae4b0d6f4200514215056b605e362ba499a99fbbf3886131cb5281626996eeb1b8cef0c0297908320d3642fd7a
|
data/lib/code_generator/api.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "1.
|
2
|
+
"version": "1.40.0",
|
3
3
|
"modules": [
|
4
4
|
{
|
5
5
|
"name": "client",
|
@@ -254,6 +254,13 @@
|
|
254
254
|
"value": "35",
|
255
255
|
"summary": null,
|
256
256
|
"description": null
|
257
|
+
},
|
258
|
+
{
|
259
|
+
"name": "InvalidData",
|
260
|
+
"type": "Number",
|
261
|
+
"value": "36",
|
262
|
+
"summary": null,
|
263
|
+
"description": null
|
257
264
|
}
|
258
265
|
],
|
259
266
|
"summary": null,
|
@@ -7126,6 +7133,47 @@
|
|
7126
7133
|
],
|
7127
7134
|
"summary": null,
|
7128
7135
|
"description": null
|
7136
|
+
},
|
7137
|
+
{
|
7138
|
+
"name": "ParamsOfGetSignatureData",
|
7139
|
+
"type": "Struct",
|
7140
|
+
"struct_fields": [
|
7141
|
+
{
|
7142
|
+
"name": "abi",
|
7143
|
+
"type": "Ref",
|
7144
|
+
"ref_name": "abi.Abi",
|
7145
|
+
"summary": "Contract ABI used to decode.",
|
7146
|
+
"description": null
|
7147
|
+
},
|
7148
|
+
{
|
7149
|
+
"name": "message",
|
7150
|
+
"type": "String",
|
7151
|
+
"summary": "Message BOC encoded in `base64`.",
|
7152
|
+
"description": null
|
7153
|
+
}
|
7154
|
+
],
|
7155
|
+
"summary": null,
|
7156
|
+
"description": null
|
7157
|
+
},
|
7158
|
+
{
|
7159
|
+
"name": "ResultOfGetSignatureData",
|
7160
|
+
"type": "Struct",
|
7161
|
+
"struct_fields": [
|
7162
|
+
{
|
7163
|
+
"name": "signature",
|
7164
|
+
"type": "String",
|
7165
|
+
"summary": "Signature from the message in `hex`.",
|
7166
|
+
"description": null
|
7167
|
+
},
|
7168
|
+
{
|
7169
|
+
"name": "hash",
|
7170
|
+
"type": "String",
|
7171
|
+
"summary": "Hash to verify the signature in `base64`.",
|
7172
|
+
"description": null
|
7173
|
+
}
|
7174
|
+
],
|
7175
|
+
"summary": null,
|
7176
|
+
"description": null
|
7129
7177
|
}
|
7130
7178
|
],
|
7131
7179
|
"functions": [
|
@@ -7698,6 +7746,44 @@
|
|
7698
7746
|
]
|
7699
7747
|
},
|
7700
7748
|
"errors": null
|
7749
|
+
},
|
7750
|
+
{
|
7751
|
+
"name": "get_signature_data",
|
7752
|
+
"summary": "Extracts signature from message body and calculates hash to verify the signature",
|
7753
|
+
"description": null,
|
7754
|
+
"params": [
|
7755
|
+
{
|
7756
|
+
"name": "context",
|
7757
|
+
"type": "Generic",
|
7758
|
+
"generic_name": "Arc",
|
7759
|
+
"generic_args": [
|
7760
|
+
{
|
7761
|
+
"type": "Ref",
|
7762
|
+
"ref_name": "ClientContext"
|
7763
|
+
}
|
7764
|
+
],
|
7765
|
+
"summary": null,
|
7766
|
+
"description": null
|
7767
|
+
},
|
7768
|
+
{
|
7769
|
+
"name": "params",
|
7770
|
+
"type": "Ref",
|
7771
|
+
"ref_name": "abi.ParamsOfGetSignatureData",
|
7772
|
+
"summary": null,
|
7773
|
+
"description": null
|
7774
|
+
}
|
7775
|
+
],
|
7776
|
+
"result": {
|
7777
|
+
"type": "Generic",
|
7778
|
+
"generic_name": "ClientResult",
|
7779
|
+
"generic_args": [
|
7780
|
+
{
|
7781
|
+
"type": "Ref",
|
7782
|
+
"ref_name": "abi.ResultOfGetSignatureData"
|
7783
|
+
}
|
7784
|
+
]
|
7785
|
+
},
|
7786
|
+
"errors": null
|
7701
7787
|
}
|
7702
7788
|
]
|
7703
7789
|
},
|
@@ -302,6 +302,22 @@ module TonClient
|
|
302
302
|
TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
|
303
303
|
end
|
304
304
|
|
305
|
+
# INPUT: ParamsOfGetSignatureData
|
306
|
+
# abi: Value - # # Contract ABI used to decode.
|
307
|
+
# message: String - # # Message BOC encoded in `base64`.
|
308
|
+
# RESPONSE: ResultOfGetSignatureData
|
309
|
+
# signature: String - # # Signature from the message in `hex`.
|
310
|
+
# hash: String - # # Hash to verify the signature in `base64`.
|
311
|
+
# Async
|
312
|
+
def get_signature_data(payload, &block)
|
313
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
314
|
+
end
|
315
|
+
|
316
|
+
# Sync
|
317
|
+
def get_signature_data_sync(payload)
|
318
|
+
TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
|
319
|
+
end
|
320
|
+
|
305
321
|
end
|
306
322
|
end
|
307
323
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: everscale-client-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.63
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nerzh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|