ever_sdk_client 1.36.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.
@@ -0,0 +1,77 @@
1
+ module EverSdk
2
+ CryptoConfig = KwStruct.new(:mnemonic_dictionary, :mnemonic_word_count, :hdkey_derivation_path)
3
+ BocConfig = KwStruct.new(:cache_max_size)
4
+ NetworkConfig = KwStruct.new(
5
+ :server_address,
6
+ :endpoints,
7
+ :network_retries_count,
8
+ :max_reconnect_timeout,
9
+ :reconnect_timeout,
10
+ :message_retries_count,
11
+ :message_processing_timeout,
12
+ :wait_for_timeout,
13
+ :out_of_sync_threshold,
14
+ :sending_endpoint_count,
15
+ :latency_detection_interval,
16
+ :max_latency,
17
+ :query_timeout,
18
+ :queries_protocol,
19
+ :first_remp_status_timeout,
20
+ :next_remp_status_timeout,
21
+ :access_key
22
+ ) do
23
+ def initialize(
24
+ server_address: "",
25
+ endpoints: [],
26
+ network_retries_count: 5,
27
+ max_reconnect_timeout: 120000,
28
+ reconnect_timeout: 1000,
29
+ message_retries_count: 5,
30
+ message_processing_timeout: 40000,
31
+ wait_for_timeout: 40000,
32
+ out_of_sync_threshold: 15000,
33
+ sending_endpoint_count: 2,
34
+ latency_detection_interval: 60000,
35
+ max_latency: 60000,
36
+ query_timeout: 60000,
37
+ queries_protocol: nil,
38
+ first_remp_status_timeout: nil,
39
+ next_remp_status_timeout: nil,
40
+ access_key: nil
41
+ )
42
+ super
43
+ end
44
+ end
45
+
46
+ module NetworkQueriesProtocol
47
+ HTTP = "HTTP".freeze
48
+ WS = "WS".freeze
49
+ end
50
+
51
+ AbiConfig = KwStruct.new(
52
+ :workchain,
53
+ :message_expiration_timeout,
54
+ :message_expiration_timeout_grow_factor
55
+ ) do
56
+ def initialize(
57
+ workchain: nil,
58
+ message_expiration_timeout: 40000,
59
+ message_expiration_timeout_grow_factor: 1.5
60
+ )
61
+ super
62
+ end
63
+ end
64
+
65
+ ClientConfig = KwStruct.new(:network, :crypto, :abi, :boc) do
66
+ def to_h
67
+ res = super.to_h
68
+
69
+ {
70
+ network: res[:network]&.to_h,
71
+ crypto: res[:crypto]&.to_h,
72
+ abi: res[:abi]&.to_h,
73
+ boc: res[:boc]&.to_h
74
+ }
75
+ end
76
+ end
77
+ end