casper_network 0.2.1 → 1.0.1

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.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -4
  3. data/lib/casper_network.rb +62 -8
  4. data/lib/crypto/00_asymmetric_key.rb +95 -0
  5. data/lib/crypto/01_ed25519.rb +67 -0
  6. data/lib/crypto/asymmetric_key.rb +87 -0
  7. data/lib/crypto/ed25519_key.rb +44 -0
  8. data/lib/crypto/key_pair.rb +40 -0
  9. data/lib/crypto/keys.rb +7 -0
  10. data/lib/crypto/secp256k1_key.rb +0 -0
  11. data/lib/crypto/test_ed25519_key.rb +44 -0
  12. data/lib/entity/account.rb +45 -0
  13. data/lib/entity/action_thresholds.rb +25 -0
  14. data/lib/entity/associated_key.rb +24 -0
  15. data/lib/entity/auction_state.rb +1 -0
  16. data/lib/entity/bid.rb +1 -0
  17. data/lib/entity/bid_info.rb +1 -0
  18. data/lib/entity/contract.rb +47 -0
  19. data/lib/entity/contract_package.rb +41 -0
  20. data/lib/entity/contract_version.rb +33 -0
  21. data/lib/entity/delegator.rb +1 -0
  22. data/lib/entity/deploy.rb +1 -0
  23. data/lib/entity/deploy_approval.rb +8 -6
  24. data/lib/entity/deploy_executable.rb +155 -1
  25. data/lib/entity/deploy_executable_item_internal.rb +27 -0
  26. data/lib/entity/deploy_executable_transfer.rb +51 -0
  27. data/lib/entity/deploy_hash.rb +1 -0
  28. data/lib/entity/deploy_header.rb +18 -15
  29. data/lib/entity/deploy_info.rb +45 -0
  30. data/lib/entity/deploy_named_argument.rb +20 -0
  31. data/lib/entity/deploy_transfer.rb +11 -0
  32. data/lib/entity/disabled_version.rb +26 -0
  33. data/lib/entity/era_info.rb +18 -0
  34. data/lib/entity/era_summary.rb +1 -0
  35. data/lib/entity/era_validator.rb +1 -0
  36. data/lib/entity/executable_deploy_item.rb +11 -0
  37. data/lib/entity/group.rb +25 -0
  38. data/lib/entity/module_bytes.rb +51 -0
  39. data/lib/entity/peer.rb +1 -0
  40. data/lib/entity/seigniorage_allocation.rb +18 -0
  41. data/lib/entity/stored_contract_by_hash.rb +51 -0
  42. data/lib/entity/stored_contract_by_name.rb +52 -0
  43. data/lib/entity/stored_value.rb +57 -0
  44. data/lib/entity/stored_versioned_contract_by_hash.rb +63 -0
  45. data/lib/entity/stored_versioned_contract_by_name.rb +63 -0
  46. data/lib/entity/transfer.rb +66 -0
  47. data/lib/entity/validator_weight.rb +1 -0
  48. data/lib/entity/vesting_schedule.rb +22 -0
  49. data/lib/include.rb +18 -0
  50. data/lib/rpc/rpc.rb +227 -0
  51. data/lib/rpc/rpc_client.rb +45 -39
  52. data/lib/rpc/rpc_error.rb +1 -0
  53. data/lib/serialization/cl_type_serializer.rb +77 -0
  54. data/lib/serialization/cl_value_bytes_parsers.rb +498 -0
  55. data/lib/serialization/cl_value_serializer.rb +260 -0
  56. data/lib/serialization/deploy_approval_serializer.rb +16 -0
  57. data/lib/serialization/deploy_executable_serializer.rb +27 -0
  58. data/lib/serialization/deploy_header_serializer.rb +49 -0
  59. data/lib/serialization/deploy_named_arg_serializer.rb +20 -0
  60. data/lib/serialization/deploy_serializer.rb +269 -0
  61. data/lib/serialization/test.rb +431 -0
  62. data/lib/types/cl_account_hash.rb +24 -0
  63. data/lib/types/cl_account_hash_type.rb +22 -0
  64. data/lib/types/cl_any.rb +25 -0
  65. data/lib/types/cl_any_type.rb +22 -0
  66. data/lib/types/cl_bool.rb +32 -0
  67. data/lib/types/cl_bool_type.rb +35 -0
  68. data/lib/types/cl_byte_array.rb +25 -0
  69. data/lib/types/cl_byte_array_type.rb +27 -0
  70. data/lib/types/cl_i32.rb +26 -0
  71. data/lib/types/cl_i32_type.rb +26 -0
  72. data/lib/types/cl_i64.rb +26 -0
  73. data/lib/types/cl_i64_type.rb +27 -0
  74. data/lib/types/cl_key.rb +39 -0
  75. data/lib/types/cl_key_type.rb +27 -0
  76. data/lib/types/cl_list.rb +25 -0
  77. data/lib/types/cl_list_type.rb +26 -0
  78. data/lib/types/cl_map.rb +25 -0
  79. data/lib/types/cl_map_type.rb +26 -0
  80. data/lib/types/cl_option.rb +33 -0
  81. data/lib/types/cl_option_type.rb +52 -0
  82. data/lib/types/cl_public_key.rb +152 -0
  83. data/lib/types/cl_public_key_type.rb +26 -0
  84. data/lib/types/cl_result.rb +25 -0
  85. data/lib/types/cl_result_type.rb +26 -0
  86. data/lib/types/cl_string.rb +39 -0
  87. data/lib/types/cl_string_type.rb +32 -0
  88. data/lib/types/cl_tuple.rb +151 -0
  89. data/lib/types/cl_tuple_type.rb +108 -0
  90. data/lib/types/cl_type.rb +96 -0
  91. data/lib/types/cl_type_tag.rb +51 -0
  92. data/lib/types/cl_u128.rb +26 -0
  93. data/lib/types/cl_u128_type.rb +26 -0
  94. data/lib/types/cl_u256.rb +26 -0
  95. data/lib/types/cl_u256_type.rb +26 -0
  96. data/lib/types/cl_u32.rb +26 -0
  97. data/lib/types/cl_u32_type.rb +26 -0
  98. data/lib/types/cl_u512.rb +26 -0
  99. data/lib/types/cl_u512_type.rb +26 -0
  100. data/lib/types/cl_u64.rb +26 -0
  101. data/lib/types/cl_u64_type.rb +27 -0
  102. data/lib/types/cl_u8.rb +26 -0
  103. data/lib/types/cl_u8_type.rb +26 -0
  104. data/lib/types/cl_unit.rb +38 -0
  105. data/lib/types/cl_unit_type.rb +22 -0
  106. data/lib/types/cl_uref.rb +120 -0
  107. data/lib/types/cl_uref_type.rb +46 -0
  108. data/lib/types/cl_value.rb +11 -0
  109. data/lib/types/constants.rb +50 -0
  110. data/lib/types/error.rb +7 -0
  111. data/lib/utils/base_16.rb +18 -0
  112. data/lib/utils/byte_utils.rb +107 -0
  113. data/lib/utils/find_byte_parser_by_cl_type.rb +53 -0
  114. data/lib/utils/hash_utils.rb +19 -0
  115. data/lib/utils/hex_utils.rb +12 -0
  116. data/lib/utils/time_utils.rb +85 -0
  117. data/lib/utils/utils.rb +2 -0
  118. data/lib/version.rb +3 -0
  119. data/spec/a_spec.rb +697 -0
  120. data/spec/byte_utils_spec.rb +72 -0
  121. data/spec/cl_public_spec.rb +169 -0
  122. data/spec/cl_types_spec.rb +715 -0
  123. data/spec/cl_value_serializer_spec.rb +140 -0
  124. data/spec/crypto_spec.rb +42 -0
  125. data/spec/deploy_approval_serializer_spec.rb +26 -0
  126. data/spec/deploy_executable_serializer_spec.rb +0 -0
  127. data/spec/deploy_header_serializer_spec.rb +21 -0
  128. data/spec/deploy_named_arg_serializer_spec.rb +49 -0
  129. data/spec/deploy_serializer_spec.rb +77 -0
  130. data/spec/deploy_serializer_test_spec.rb +225 -0
  131. data/spec/mainnet_spec.rb +8 -8
  132. data/spec/string_spec.rb +68 -0
  133. data/spec/testnet_spec.rb +11 -11
  134. data/spec/time_utils_spec.rb +87 -0
  135. metadata +130 -2
@@ -0,0 +1,68 @@
1
+ require_relative '../lib/types/cl_string.rb'
2
+ require_relative '../lib/types/constants.rb'
3
+ require_relative '../lib/serialization/cl_value_bytes_parsers.rb'
4
+ require 'json'
5
+
6
+ =begin
7
+ Strings serialize as a 32-bit integer representing the length in bytes
8
+ (note: this might be different than the number of characters since special characters, such as emojis, take more than one byte),
9
+ followed by the UTF-8 encoding of the characters in the string.
10
+ E.g. "Hello, World!" serializes as 0x0d00000048656c6c6f2c20576f726c6421
11
+ =end
12
+ describe CLString do
13
+ cl_string = CLString.new("ABC")
14
+ describe "#get_value" do
15
+ it "should return proper value" do
16
+ expect(cl_string.get_value).to eq("ABC")
17
+ end
18
+ end
19
+
20
+ describe "#get_cl_type" do
21
+ it "should return proper cl_type" do
22
+ expect(cl_string.get_cl_type).to be_an_instance_of(String)
23
+ end
24
+ end
25
+
26
+ describe "#get_cl_type" do
27
+ it "should return String type" do
28
+ expect(cl_string.get_cl_type).to eq('String')
29
+ end
30
+ end
31
+
32
+ describe "#cl_string.get_size" do
33
+ it "should return proper string length" do
34
+ expect(cl_string.get_size).to eq(3)
35
+ end
36
+ end
37
+
38
+ it "should return \'ABC\'" do
39
+ expect(cl_string.from_bytes("03000000414243")).to eql("ABC")
40
+ end
41
+
42
+ it "should do to_bytes / from_bytes string serialization" do
43
+ string = CLString.new("Hello, World!")
44
+ value = string.get_value
45
+ bytes = string.to_bytes(value)
46
+ result_string = string.from_bytes(bytes)
47
+ puts value, bytes, result_string
48
+ expect(value).to eql("Hello, World!")
49
+ expect(bytes).to eql("0d00000048656c6c6f2c20576f726c6421")
50
+ expect(value).to eql(result_string)
51
+ end
52
+ it "to_bytes / from_bytes" do
53
+ str = "pclphXwfYmCmdITj8hnh"
54
+ len = str.length
55
+ hex1 = len.to_s(16).rjust(8, '0').scan(/../).reverse.join('')
56
+ hex2 = str.unpack("H*").first
57
+ hex3 = hex1 + hex2
58
+ expected_hex1 = "14000000"
59
+ expected_hex2 = "70636c7068587766596d436d6449546a38686e68"
60
+ expected_hex3 = "1400000070636c7068587766596d436d6449546a38686e68"
61
+ puts str
62
+ puts hex3
63
+ puts CLValueBytesParsers::CLStringBytesParser.to_bytes(str)
64
+ puts CLValueBytesParsers::CLStringBytesParser.from_bytes(hex3)
65
+ end
66
+ end
67
+
68
+
data/spec/testnet_spec.rb CHANGED
@@ -1,12 +1,12 @@
1
1
  # mainnet_spec.rb
2
- require './lib/casper_network.rb'
2
+ require './lib/rpc/rpc_client.rb'
3
3
 
4
4
  # Ip Address taken from Testnet
5
- # client = Casper::CasperClient.new("138.201.54.44")
5
+ # client = Casper::RpcClient.new("138.201.54.44")
6
6
  # Ip Address taken from Testnet
7
- # client = Casper::CasperClient.new("65.21.227.101") # IP is taken from "TestNet"
8
- # client = Casper::CasperClient.new("138.201.54.44") # IP is taken from "TestNet"
9
- client = Casper::CasperClient.new("5.9.23.55") # IP is taken from "TestNet"
7
+ # client = Casper::RpcClient.new("65.21.227.101") # IP is taken from "TestNet"
8
+ # client = Casper::RpcClient.new("138.201.54.44") # IP is taken from "TestNet"
9
+ client = Casper::RpcClient.new("5.9.23.55") # IP is taken from "TestNet"
10
10
 
11
11
  # block_Hash taken from Testnet
12
12
  block_hash = "71e19e2e9629c716dc9578066cfeceace559d32fe51b08245ddd4d218f8c18da"
@@ -15,15 +15,15 @@ deploy_hash = "d3e0a1bd85ee74916e096cf4b18df391ada414d0915aeb865eff0ba75f04c3d8"
15
15
  state_root_hash = "2a62440a1e1e57bff71344aac8a7de169f6dd08d29cffe83b2fb5d6648971855"
16
16
  item_key = "f870e3cadfde21d7d7686fdf3d1a8413838274d363ca7b27ae71fc9125eb6743"
17
17
  uref = "uref-9199d08ff4ca4d52cd7a05ba0d2694204b7ebff963fec1c216f81bf654e0e59f-007"
18
- describe Casper::CasperClient do
18
+ describe Casper::RpcClient do
19
19
  url = "65.21.0.X"
20
- client2 = Casper::CasperClient.new(url)
20
+ client2 = Casper::RpcClient.new(url)
21
21
  it "fails, wrong ip format : #{url}" do
22
22
  expect(client2.get_error).to eql("SocketError")
23
23
  end
24
24
 
25
25
  url2 = "65.21.0.0"
26
- client3 = Casper::CasperClient.new(url2)
26
+ client3 = Casper::RpcClient.new(url2)
27
27
  it "fails, #{url2} is not available in network" do
28
28
  expect(client3.get_error).to eql("Errno::ECONNREFUSED")
29
29
  end
@@ -36,7 +36,7 @@ describe Casper::CasperClient do
36
36
  expect(peers).to be_truthy
37
37
  end
38
38
  # it "fails, connecting non existing node" do
39
- # client2 = Casper::CasperClient.new("12.2.2.2")
39
+ # client2 = Casper::RpcClient.new("12.2.2.2")
40
40
  # end
41
41
  it "passes, peers array is not empty" do
42
42
  expect(peers).not_to be_empty
@@ -44,7 +44,7 @@ describe Casper::CasperClient do
44
44
 
45
45
  # it "passes, size of both peer arrays are equal" do
46
46
  # # Check the length of the peers array
47
- # client2 = Casper::CasperClient.new("34.192.231.34")
47
+ # client2 = Casper::RpcClient.new("34.192.231.34")
48
48
  # other_peers = client2.info_get_peers
49
49
  # expect(peers.size).to eql(other_peers.size)
50
50
  # end
@@ -84,7 +84,7 @@ describe Casper::CasperClient do
84
84
  end
85
85
  end
86
86
  context "When called info_get_peers with invalid ip address" do
87
- client4 = Casper::CasperClient.new("65.21.227.X")
87
+ client4 = Casper::RpcClient.new("65.21.227.X")
88
88
  # puts client4.info_get_peers
89
89
  it "fails, \"#{client4.info_get_peers}\"" do
90
90
  expect(client4.info_get_peers).to eql("SocketError")
@@ -0,0 +1,87 @@
1
+ require_relative '../lib/utils/time_utils.rb'
2
+ require_relative '../lib/utils/byte_utils.rb'
3
+
4
+ RSpec.describe Utils::TimeUtils do
5
+ let(:time_utils) { Utils::TimeUtils }
6
+ let(:byte_utils) { Utils::ByteUtils }
7
+
8
+ it "serialize 1603994401469 ms to 0xbd3a847575010000" do
9
+ expect("0x"+ byte_utils.to_u64(1603994401469)).to eql("0xbd3a847575010000")
10
+ expect(byte_utils.to_u64(1603994401469)).to eql("bd3a847575010000")
11
+ end
12
+
13
+ it "should convert iso datetime to ms from unix epoch" do
14
+ date = "2020-11-17T00:39:24.072Z"
15
+ expect(time_utils.to_epoc_ms(date)).to eql(1605573564072)
16
+ end
17
+
18
+ it "should convert miliseconds to iso datetime" do
19
+ date = "2020-11-17T00:39:24.072Z"
20
+ milliseconds = 1605573564072
21
+ expect(time_utils.to_iso_string(milliseconds)).to eql("2020-11-17T00:39:24.072Z")
22
+ end
23
+
24
+ it "should convert ttl to milliseconds" do
25
+ time1 = time_utils.ttl_to_milliseconds("1d")
26
+ expect(time1).to eql(86400000)
27
+
28
+ time2 = time_utils.ttl_to_milliseconds("1h")
29
+ expect(time2).to eql(3600000)
30
+
31
+ time3 = time_utils.ttl_to_milliseconds("30m")
32
+ expect(time3).to eql(1800000)
33
+
34
+ time4 = time_utils.ttl_to_milliseconds("50s")
35
+ expect(time4).to eql(50000)
36
+
37
+ time5 = time_utils.ttl_to_milliseconds("90ms")
38
+ expect(time5).to eql(90)
39
+
40
+ time6 = time_utils.ttl_to_milliseconds("1d 1h 30m 50s 90ms")
41
+ expect(time6).to eql(91850090)
42
+
43
+ time7 = time_utils.ttl_to_milliseconds("1h 30m 50s 90ms")
44
+ expect(time7).to eql(5450090)
45
+
46
+ time8 = time_utils.ttl_to_milliseconds("30m 50s 90ms")
47
+ expect(time8).to eql(1850090)
48
+
49
+ time9 = time_utils.ttl_to_milliseconds("50s 90ms")
50
+ expect(time9).to eql(50090)
51
+
52
+ time10 = time_utils.ttl_to_milliseconds("90ms")
53
+ expect(time10).to eql(90)
54
+ end
55
+
56
+ it "should convert milliseconds to ttl" do
57
+ ttl1 = time_utils.milliseconds_to_ttl(86400000)
58
+ expect(ttl1).to eql("1d")
59
+
60
+ ttl2 = time_utils.milliseconds_to_ttl(3600000)
61
+ expect(ttl2).to eql("1h")
62
+
63
+ ttl3 = time_utils.milliseconds_to_ttl(1800000)
64
+ expect(ttl3).to eql("30m")
65
+
66
+ ttl4 = time_utils.milliseconds_to_ttl(50000)
67
+ expect(ttl4).to eql("50s")
68
+
69
+ ttl5 = time_utils.milliseconds_to_ttl(90)
70
+ expect(ttl5).to eql("90ms")
71
+
72
+ ttl6 = time_utils.milliseconds_to_ttl(91850090)
73
+ expect(ttl6).to eql("1d 1h 30m 50s 90ms")
74
+
75
+ ttl7 = time_utils.milliseconds_to_ttl(5450090)
76
+ expect(ttl7).to eql("1h 30m 50s 90ms")
77
+
78
+ ttl8 = time_utils.milliseconds_to_ttl(1850090)
79
+ expect(ttl8).to eql("30m 50s 90ms")
80
+
81
+ ttl9 = time_utils.milliseconds_to_ttl(50090)
82
+ expect(ttl9).to eql("50s 90ms")
83
+
84
+ ttl10 = time_utils.milliseconds_to_ttl(90)
85
+ expect(ttl10).to eql("90ms")
86
+ end
87
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: casper_network
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehmet Sait Gülmez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-19 00:00:00.000000000 Z
11
+ date: 2022-09-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby gem enables developers to interact with the Casper Network.
14
14
  email: cenggulmez.65@gmail.com
@@ -21,25 +21,139 @@ files:
21
21
  - README.md
22
22
  - SECURITY.md
23
23
  - lib/casper_network.rb
24
+ - lib/crypto/00_asymmetric_key.rb
25
+ - lib/crypto/01_ed25519.rb
26
+ - lib/crypto/asymmetric_key.rb
27
+ - lib/crypto/ed25519_key.rb
28
+ - lib/crypto/key_pair.rb
29
+ - lib/crypto/keys.rb
30
+ - lib/crypto/secp256k1_key.rb
31
+ - lib/crypto/test_ed25519_key.rb
32
+ - lib/entity/account.rb
33
+ - lib/entity/action_thresholds.rb
34
+ - lib/entity/associated_key.rb
24
35
  - lib/entity/auction_state.rb
25
36
  - lib/entity/bid.rb
26
37
  - lib/entity/bid_info.rb
38
+ - lib/entity/contract.rb
39
+ - lib/entity/contract_package.rb
40
+ - lib/entity/contract_version.rb
27
41
  - lib/entity/delegator.rb
28
42
  - lib/entity/deploy.rb
29
43
  - lib/entity/deploy_approval.rb
30
44
  - lib/entity/deploy_executable.rb
45
+ - lib/entity/deploy_executable_item_internal.rb
46
+ - lib/entity/deploy_executable_transfer.rb
31
47
  - lib/entity/deploy_hash.rb
32
48
  - lib/entity/deploy_header.rb
49
+ - lib/entity/deploy_info.rb
50
+ - lib/entity/deploy_named_argument.rb
51
+ - lib/entity/deploy_transfer.rb
52
+ - lib/entity/disabled_version.rb
53
+ - lib/entity/era_info.rb
33
54
  - lib/entity/era_summary.rb
34
55
  - lib/entity/era_validator.rb
56
+ - lib/entity/executable_deploy_item.rb
57
+ - lib/entity/group.rb
58
+ - lib/entity/module_bytes.rb
35
59
  - lib/entity/peer.rb
60
+ - lib/entity/seigniorage_allocation.rb
61
+ - lib/entity/stored_contract_by_hash.rb
62
+ - lib/entity/stored_contract_by_name.rb
63
+ - lib/entity/stored_value.rb
64
+ - lib/entity/stored_versioned_contract_by_hash.rb
65
+ - lib/entity/stored_versioned_contract_by_name.rb
66
+ - lib/entity/transfer.rb
36
67
  - lib/entity/validator_weight.rb
68
+ - lib/entity/vesting_schedule.rb
69
+ - lib/include.rb
70
+ - lib/rpc/rpc.rb
37
71
  - lib/rpc/rpc_client.rb
38
72
  - lib/rpc/rpc_error.rb
73
+ - lib/serialization/cl_type_serializer.rb
74
+ - lib/serialization/cl_value_bytes_parsers.rb
75
+ - lib/serialization/cl_value_serializer.rb
76
+ - lib/serialization/deploy_approval_serializer.rb
77
+ - lib/serialization/deploy_executable_serializer.rb
78
+ - lib/serialization/deploy_header_serializer.rb
79
+ - lib/serialization/deploy_named_arg_serializer.rb
80
+ - lib/serialization/deploy_serializer.rb
81
+ - lib/serialization/test.rb
82
+ - lib/types/cl_account_hash.rb
83
+ - lib/types/cl_account_hash_type.rb
84
+ - lib/types/cl_any.rb
85
+ - lib/types/cl_any_type.rb
86
+ - lib/types/cl_bool.rb
87
+ - lib/types/cl_bool_type.rb
88
+ - lib/types/cl_byte_array.rb
89
+ - lib/types/cl_byte_array_type.rb
90
+ - lib/types/cl_i32.rb
91
+ - lib/types/cl_i32_type.rb
92
+ - lib/types/cl_i64.rb
93
+ - lib/types/cl_i64_type.rb
94
+ - lib/types/cl_key.rb
95
+ - lib/types/cl_key_type.rb
96
+ - lib/types/cl_list.rb
97
+ - lib/types/cl_list_type.rb
98
+ - lib/types/cl_map.rb
99
+ - lib/types/cl_map_type.rb
100
+ - lib/types/cl_option.rb
101
+ - lib/types/cl_option_type.rb
102
+ - lib/types/cl_public_key.rb
103
+ - lib/types/cl_public_key_type.rb
104
+ - lib/types/cl_result.rb
105
+ - lib/types/cl_result_type.rb
106
+ - lib/types/cl_string.rb
107
+ - lib/types/cl_string_type.rb
108
+ - lib/types/cl_tuple.rb
109
+ - lib/types/cl_tuple_type.rb
110
+ - lib/types/cl_type.rb
111
+ - lib/types/cl_type_tag.rb
112
+ - lib/types/cl_u128.rb
113
+ - lib/types/cl_u128_type.rb
114
+ - lib/types/cl_u256.rb
115
+ - lib/types/cl_u256_type.rb
116
+ - lib/types/cl_u32.rb
117
+ - lib/types/cl_u32_type.rb
118
+ - lib/types/cl_u512.rb
119
+ - lib/types/cl_u512_type.rb
120
+ - lib/types/cl_u64.rb
121
+ - lib/types/cl_u64_type.rb
122
+ - lib/types/cl_u8.rb
123
+ - lib/types/cl_u8_type.rb
124
+ - lib/types/cl_unit.rb
125
+ - lib/types/cl_unit_type.rb
126
+ - lib/types/cl_uref.rb
127
+ - lib/types/cl_uref_type.rb
128
+ - lib/types/cl_value.rb
129
+ - lib/types/constants.rb
130
+ - lib/types/error.rb
131
+ - lib/utils/base_16.rb
132
+ - lib/utils/byte_utils.rb
133
+ - lib/utils/find_byte_parser_by_cl_type.rb
134
+ - lib/utils/hash_utils.rb
135
+ - lib/utils/hex_utils.rb
136
+ - lib/utils/time_utils.rb
137
+ - lib/utils/utils.rb
138
+ - lib/version.rb
139
+ - spec/a_spec.rb
140
+ - spec/byte_utils_spec.rb
141
+ - spec/cl_public_spec.rb
142
+ - spec/cl_types_spec.rb
143
+ - spec/cl_value_serializer_spec.rb
39
144
  - spec/client_spec.rb
145
+ - spec/crypto_spec.rb
146
+ - spec/deploy_approval_serializer_spec.rb
147
+ - spec/deploy_executable_serializer_spec.rb
148
+ - spec/deploy_header_serializer_spec.rb
149
+ - spec/deploy_named_arg_serializer_spec.rb
150
+ - spec/deploy_serializer_spec.rb
151
+ - spec/deploy_serializer_test_spec.rb
40
152
  - spec/mainnet_spec.rb
41
153
  - spec/spec_helper.rb
154
+ - spec/string_spec.rb
42
155
  - spec/testnet_spec.rb
156
+ - spec/time_utils_spec.rb
43
157
  homepage: https://github.com/saitgulmez/casper-ruby-sdk.git
44
158
  licenses:
45
159
  - Apache-2.0
@@ -64,7 +178,21 @@ signing_key:
64
178
  specification_version: 4
65
179
  summary: Casper Ruby SDK
66
180
  test_files:
181
+ - spec/a_spec.rb
182
+ - spec/byte_utils_spec.rb
183
+ - spec/cl_public_spec.rb
184
+ - spec/cl_types_spec.rb
185
+ - spec/cl_value_serializer_spec.rb
67
186
  - spec/client_spec.rb
187
+ - spec/crypto_spec.rb
188
+ - spec/deploy_approval_serializer_spec.rb
189
+ - spec/deploy_executable_serializer_spec.rb
190
+ - spec/deploy_header_serializer_spec.rb
191
+ - spec/deploy_named_arg_serializer_spec.rb
192
+ - spec/deploy_serializer_spec.rb
193
+ - spec/deploy_serializer_test_spec.rb
68
194
  - spec/mainnet_spec.rb
69
195
  - spec/spec_helper.rb
196
+ - spec/string_spec.rb
70
197
  - spec/testnet_spec.rb
198
+ - spec/time_utils_spec.rb