test_sdk1 1.0.0 → 1.0.2

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: fc912ab6a40cae5e4fb436cd53e64f9d8e312ef47d538dd2bb9aa82e31b12a39
4
+ data.tar.gz: a560cc02719b199ce0ee21921aadcfbf1d6def7a5d92326de4bdf9539b9ff7fd
5
5
  SHA512:
6
- metadata.gz: 2670f2470ae0afbe934af510a4b06c9b96ae74ef6b9df665f9af8a0ac411b227cc3cc4927a25cc539a32c2fb33717d69bc4d7dcfaf1b593001cc134898c212e2
7
- data.tar.gz: f28a9700ee6dc7be50a03d77388d570251cb0194e3918fdb327e07e3787764cafa314c4cebd8ee6c7e424e06e62b8bbc67d7ce9b420c4b6f9dbd82860cb1b68b
6
+ metadata.gz: c26c3679268634a2f6859367b5caa1281589dcc01fbaeb189b7fda3d6ad710fd86d9d7329fdbb371eda4bbc032bd799cea3063f66d6739df2ce422539ee77763
7
+ data.tar.gz: 359258d4d8bd9e817eda41ddc86644a618f897c0e412d18f14474934ea899e8694aaaa168b15ec8d44c326253edd8a75241c623769ff105e0c7a0898b65a5c1d
@@ -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,5 +1,6 @@
1
1
  module Casper
2
2
  module Entity
3
+ # BidInfo
3
4
  class BidInfo
4
5
 
5
6
  # @param [String] bonding_purse
@@ -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
@@ -4,6 +4,7 @@ require_relative './deploy_executable_transfer.rb'
4
4
 
5
5
  module Casper
6
6
  module Entity
7
+ # DeployExecutable
7
8
  class DeployExecutable
8
9
  attr_accessor :module_bytes, :transfer, :stored_contract_by_hash, :stored_contract_by_name,
9
10
  :stored_versioned_contract_by_hash, :stored_versioned_contract_by_name
@@ -2,6 +2,7 @@ require_relative './deploy_named_argument.rb'
2
2
 
3
3
  module Casper
4
4
  module Entity
5
+ # DeployExecutableItemInternal
5
6
  class DeployExecutableItemInternal
6
7
  attr_accessor :args
7
8
  def initialize(deploy_named_args = [])
@@ -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
data/lib/entity/group.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Casper
2
2
  module Entity
3
-
3
+ # Group
4
4
  class Group
5
5
 
6
6
  # @param [String] group
@@ -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
@@ -8,8 +8,9 @@ require 'active_support/core_ext/hash/keys'
8
8
  require 'timeout'
9
9
  require 'net/http'
10
10
  require_relative './rpc_error.rb'
11
- # Class for interacting with the network via RPC
11
+
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.2'
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehmet Sait Gülmez