klaytn 0.1.0 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b2ecedaa55657b6727db503cd9cd03aa8042da5bda490431c75be6739f2f957
4
- data.tar.gz: 4dceec99b7cba5c3622e24fa93d2b7959213de6c687824a38395fd0dfc37f097
3
+ metadata.gz: d7771ed81d24129ae58f55b94a87ed18e8b6b1bd43fa174342acb7708a2de033
4
+ data.tar.gz: 5e7a878c2f6f7584cd81ef4c6fcdca8afd28ae702220f12567810519ca369fcf
5
5
  SHA512:
6
- metadata.gz: 5fb1d6e532804b44232fa1e889e95955987d18c043564a77c8e376be76317c749d8827f1a8427ffbcabcae6afdab01f26b9492617805758d4ed06c624b795d3a
7
- data.tar.gz: 063c1e02aa2b2ad4e0c36182bd43b58459a2e80d56bdc80ef9410467378e1ef61061f61fe299cb716aa469dbbb35c311b92e1c88f6141f3b971ba78bc2b06e71
6
+ metadata.gz: e380aa08abbf8eb071e76911c2ad9fd4d77d08eb9b10d229a3a3c64bd6c5faa52ad3bf983a996e2872f10409511ebbb2787399f40409bcbacc3ecb52c05f5756
7
+ data.tar.gz: 54a213ea27fdf0f5d21663e304f241a986d777bfe2f1ce7074b3d8085c000cfb1165e6705d07b983ae831b4ba1584f8b7173a5d155f1d37c0fc3e7b58f1e2a12
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- klaytn (0.0.9)
4
+ klaytn (0.1.1)
5
5
  activesupport (>= 4.2)
6
6
  httparty (~> 0.20.0)
7
7
  keccak (~> 1.3)
@@ -49,6 +49,19 @@ module Klaytn
49
49
  JSON.parse(resp.body)
50
50
  end
51
51
 
52
+ def raw_transaction(input_data, gas: 0)
53
+ raise MISSING_CONTRACT if contract_address.blank?
54
+ body = {
55
+ from: kas_account_wallet_address,
56
+ to: contract_address,
57
+ input: input_data,
58
+ gas: gas,
59
+ submit: true
60
+ }
61
+ resp = HTTParty.post(BASE_URL + '/execute', body: body.to_json, headers: headers.merge('x-krn' => kas_account_pool_krn), basic_auth: basic_auth)
62
+ JSON.parse(resp.body)
63
+ end
64
+
52
65
  def function_body_builder(definition, inputs, params, gas)
53
66
  {
54
67
  from: kas_account_wallet_address,
@@ -1,3 +1,3 @@
1
1
  module Klaytn
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: klaytn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Kulp
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-03-06 00:00:00.000000000 Z
12
+ date: 2022-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec