test_sdk1 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9712f691a560569a3121f7c5ad9d89a0e0a745b40cc5c1f9344ce73d9e09af84
4
- data.tar.gz: 653cde3e0bf5aeb8dc87abe17f5e8eaac2b3fb9d64eb816cf4def1fcab120d18
3
+ metadata.gz: 306051874e6cbfb0fed3510027b11d567e3491645307cc07009d9eba1c05fce1
4
+ data.tar.gz: 68ebd9024dfa1d3b1893353194975622291f6cfe27463a2f16fd54de17119d86
5
5
  SHA512:
6
- metadata.gz: 2670f2470ae0afbe934af510a4b06c9b96ae74ef6b9df665f9af8a0ac411b227cc3cc4927a25cc539a32c2fb33717d69bc4d7dcfaf1b593001cc134898c212e2
7
- data.tar.gz: f28a9700ee6dc7be50a03d77388d570251cb0194e3918fdb327e07e3787764cafa314c4cebd8ee6c7e424e06e62b8bbc67d7ce9b420c4b6f9dbd82860cb1b68b
6
+ metadata.gz: b8069cd5531876490e4c941fac8508e6fc0c5f616d4cb4b7c7883f49b2bc4c8d1ca9cd80a8b374e9cf2937ddedc33ce478507fb6958b63a056703d8f20cdc754
7
+ data.tar.gz: b96b53188bf2bd01aad7ef336f177ed6b2db81dc3a5f3375ebb857dad06c388b9d0c5dbc69347e82f124ecef95c58c65aeafc64b7ac7c08710241c936d9b2a0f
@@ -1,5 +1,6 @@
1
1
  module Casper
2
2
  module Entity
3
+ # Data structure summarizing auction contract data.
3
4
  class AuctionState
4
5
  # @param [String] state_root_hash
5
6
  # @param [Integer] block_height
data/lib/entity/bid.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  module Casper
2
2
  module Entity
3
+ # An entry in the validator map.
3
4
  class Bid
4
5
 
5
6
  # @param [String] public_key
@@ -1,7 +1,7 @@
1
1
  module Casper
2
2
  module Entity
3
3
 
4
- # Contract entity class
4
+ # Information, entry points and named keys belonging to a Contract
5
5
  class Contract
6
6
 
7
7
  # @param [String] contract_package_hash
@@ -1,5 +1,6 @@
1
1
  module Casper
2
2
  module Entity
3
+ # A delegator associated with the given validator.
3
4
  class Delegator
4
5
 
5
6
  # @param [String] public_key
data/lib/entity/deploy.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  module Casper
2
2
  module Entity
3
+ # Deploy, an item containing a smart contract along with the requester's signature(s).
3
4
  class Deploy
4
5
 
5
6
  # @param [String] hash
@@ -1,5 +1,6 @@
1
1
  module Casper
2
2
  module Entity
3
+ # Signature and Public Key of the signer.
3
4
  class DeployApproval
4
5
 
5
6
  # @param [Hash] approval
@@ -17,6 +17,7 @@ require_relative './deploy_executable_item_internal.rb'
17
17
  =end
18
18
  module Casper
19
19
  module Entity
20
+ # A native transfer which does not contain or reference a Wasm code.
20
21
  class DeployExecutableTransfer < DeployExecutableItemInternal
21
22
 
22
23
  # @param [Array<Array<DeployNamedArgument>>] args
@@ -1,5 +1,6 @@
1
1
  module Casper
2
2
  module Entity
3
+ # Hex-encoded Deploy hash.
3
4
  class DeployHash
4
5
 
5
6
  # @param [String] hash
@@ -1,5 +1,6 @@
1
1
  module Casper
2
2
  module Entity
3
+ # Header information of a Deploy.
3
4
  class DeployHeader
4
5
 
5
6
  # @param [Hash] header
@@ -1,5 +1,6 @@
1
1
  module Casper
2
2
  module Entity
3
+ # Information relating to the given Deploy.
3
4
  class DeployInfo
4
5
 
5
6
  # @param [String] hash
@@ -1,5 +1,6 @@
1
1
  module Casper
2
2
  module Entity
3
+ # Named arguments passed as input in a Deploy item.
3
4
  class DeployNamedArgument
4
5
 
5
6
  def initialize(name, clvalue)
@@ -1,5 +1,6 @@
1
1
  module Casper
2
2
  module Entity
3
+ # A native transfer which does not contain or reference a Wasm code.
3
4
  class DeployTransfer
4
5
 
5
6
  def initialize
@@ -1,5 +1,6 @@
1
1
  module Casper
2
2
  module Entity
3
+ # The summary of an era.
3
4
  class EraSummary
4
5
 
5
6
  # @param [String] block_hash_
@@ -1,5 +1,6 @@
1
1
  module Casper
2
2
  module Entity
3
+ # Validator and weights for an Era.
3
4
  class EraValidator
4
5
 
5
6
  # @param [Integer] era_id
@@ -1,6 +1,6 @@
1
1
  module Casper
2
2
  module Entity
3
-
3
+ # Represents possible variants of an executable Deploy.
4
4
  class ExecutableDeployItem
5
5
 
6
6
  def initialize
@@ -2,6 +2,7 @@ require_relative './deploy_executable_item_internal.rb'
2
2
 
3
3
  module Casper
4
4
  module Entity
5
+ # Executable specified as raw bytes that represent Wasm code and an instance of RuntimeArgs.
5
6
  class ModuleBytes < DeployExecutableItemInternal
6
7
 
7
8
  # @param [String] module_bytes
data/lib/entity/peer.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  module Casper
2
2
  module Entity
3
+ # A node in the network.
3
4
  class Peer
4
5
 
5
6
  # @param [Hash] peer
@@ -2,6 +2,7 @@ require_relative './deploy_executable_item_internal.rb'
2
2
 
3
3
  module Casper
4
4
  module Entity
5
+ # Stored contract referenced by its ContractHash, entry point and an instance of RuntimeArgs.
5
6
  class StoredContractByHash < DeployExecutableItemInternal
6
7
 
7
8
  # @param [String] hash
@@ -2,6 +2,7 @@ require_relative './deploy_executable_item_internal.rb'
2
2
 
3
3
  module Casper
4
4
  module Entity
5
+ # Stored contract referenced by a named key existing in the signer's Account context, entry point and an instance of RuntimeArgs.
5
6
  class StoredContractByName < DeployExecutableItemInternal
6
7
 
7
8
  # @param [String] name
@@ -2,6 +2,7 @@ require_relative './deploy_executable_item_internal.rb'
2
2
 
3
3
  module Casper
4
4
  module Entity
5
+ # Stored versioned contract referenced by its ContractPackageHash, entry point and an instance of RuntimeArgs.
5
6
  class StoredVersionedContractByHash < DeployExecutableItemInternal
6
7
 
7
8
  # @param [String] hash
@@ -2,6 +2,8 @@ require_relative './deploy_executable_item_internal.rb'
2
2
 
3
3
  module Casper
4
4
  module Entity
5
+ # Stored versioned contract referenced by a named key existing in the signer's Account context,
6
+ # entry point and an instance of RuntimeArgs.
5
7
  class StoredVersionedContractByName < DeployExecutableItemInternal
6
8
 
7
9
  # @param [String] name
@@ -1,5 +1,6 @@
1
1
  module Casper
2
2
  module Entity
3
+ # Represents a transfer from one purse to another
3
4
  class Transfer
4
5
 
5
6
  # @param [Hash] transfer
@@ -1,5 +1,6 @@
1
1
  module Casper
2
2
  module Entity
3
+ # A validator's weight.
3
4
  class ValidatorWeight
4
5
 
5
6
  # @param [String] public_key
@@ -10,6 +10,7 @@ require 'net/http'
10
10
  require_relative './rpc_error.rb'
11
11
  # Class for interacting with the network via RPC
12
12
  module Casper
13
+ # Class for interacting with the network via RPC
13
14
  class RpcClient
14
15
  attr_accessor :ip_address, :port, :url, :state_root_hash
15
16
 
data/lib/rpc/rpc_error.rb CHANGED
@@ -1,6 +1,7 @@
1
1
 
2
2
  module Casper
3
3
  module RpcError
4
+ # Exception handling
4
5
  class ErrorHandle
5
6
  # @param [Integer] code
6
7
  # @param [String] message
data/lib/test_sdk1.rb CHANGED
@@ -18,6 +18,7 @@ require_relative './include.rb'
18
18
  # Class for interacting with the network via RPC
19
19
  # puts "Hello"
20
20
  module Casper
21
+ # Interacting with the network
21
22
  class CasperClient
22
23
  attr_accessor :ip_address, :port, :url, :state_root_hash
23
24
 
data/lib/types/cl_type.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'json'
2
-
2
+ # Casper types, i.e. types which can be stored and manipulated by smart contracts.
3
+ # Provides a description of the underlying data type of a CLValue.
3
4
  class CLType
4
5
  TAGS = {
5
6
  # Boolean primitive.
@@ -1,5 +1,6 @@
1
1
  require_relative './cl_type.rb'
2
2
 
3
+ # A Casper value, i.e. a value which can be stored and manipulated by smart contracts.
3
4
  class CLValue
4
5
 
5
6
  def initialize(bytes = nil, cl_type = nil, parsed = nil)
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module CasperNetworkSDK
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_sdk1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehmet Sait Gülmez