minter 0.4.1 → 0.5.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.
@@ -2,7 +2,8 @@ package main
2
2
 
3
3
  import (
4
4
  "C"
5
- "github.com/MinterTeam/minter-go-sdk/wallet"
5
+ "github.com/MinterTeam/minter-go-sdk/v2/wallet"
6
+
6
7
  )
7
8
 
8
9
  //export NewMnemonic
@@ -17,7 +17,7 @@ module Minter
17
17
 
18
18
  def estimate_coin_sell_all(coinToSell:, valueToSell:, coinToBuy:, gasPrice:, height: nil)
19
19
  path = "/estimate_coin_sell_all"
20
- params = { coinToSell: coinToSell, valueToSell: valueToBuy, coinToBuy: coinToBuy, gasPrice: gasPrice, height: height }.compact
20
+ params = { coinToSell: coinToSell, valueToSell: valueToSell, coinToBuy: coinToBuy, gasPrice: gasPrice, height: height }.compact
21
21
  get(path, params)
22
22
  end
23
23
 
@@ -2,12 +2,13 @@
2
2
 
3
3
  module Minter
4
4
  class EditCandidateTx < Transaction
5
- attr_accessor :pubkey, :reward_address, :owner_address, :nonce, :chain_id, :gas_coin, :gas_price
5
+ attr_accessor :pubkey, :reward_address, :owner_address, :control_address, :nonce, :chain_id, :gas_coin, :gas_price
6
6
 
7
- def initialize(pubkey:, reward_address:, owner_address:, nonce:, chain_id:, gas_coin:, gas_price:) # rubocop:disable Metrics/ParameterLists
7
+ def initialize(pubkey:, reward_address:, owner_address:, control_address:, nonce:, chain_id:, gas_coin:, gas_price:) # rubocop:disable Metrics/ParameterLists
8
8
  @pubkey = pubkey
9
9
  @reward_address = reward_address
10
10
  @owner_address = owner_address
11
+ @control_address = control_address
11
12
  @nonce = nonce
12
13
  @chain_id = chain_id
13
14
  @gas_coin = gas_coin
@@ -18,6 +19,7 @@ module Minter
18
19
  { PubKey: pubkey,
19
20
  RewardAddress: reward_address,
20
21
  OwnerAddress: owner_address,
22
+ ControlAddress: control_address,
21
23
  Nonce: nonce,
22
24
  ChainId: chain_id,
23
25
  GasCoin: gas_coin,
@@ -12,8 +12,8 @@ module Minter
12
12
  @items = []
13
13
  end
14
14
 
15
- def add_item(symbol:, value:, address_to:)
16
- @items << { Symbol: symbol, Value: value, AddressTo: address_to }
15
+ def add_item(coin_id:, value:, address_to:)
16
+ @items << { CoinID: coin_id, Value: value, AddressTo: address_to }
17
17
  end
18
18
 
19
19
  def to_params
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Minter
4
- VERSION = "0.4.1"
4
+ VERSION = "0.5.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Nikolaev
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-11 00:00:00.000000000 Z
11
+ date: 2020-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -131,7 +131,7 @@ dependencies:
131
131
  - !ruby/object:Gem::Version
132
132
  version: '3.9'
133
133
  description: This is a Ruby SDK based on Golang SDK for working with Minter blockchain
134
- email:
134
+ email:
135
135
  executables: []
136
136
  extensions: []
137
137
  extra_rdoc_files: []
@@ -213,7 +213,7 @@ metadata:
213
213
  homepage_uri: https://github.com/rubyroid-team/minter
214
214
  source_code_uri: https://github.com/rubyroid-team/minter
215
215
  changelog_uri: https://github.com/rubyroid-team/minter/blob/master/CHANGELOG.md
216
- post_install_message:
216
+ post_install_message:
217
217
  rdoc_options: []
218
218
  require_paths:
219
219
  - lib
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  version: '0'
230
230
  requirements: []
231
231
  rubygems_version: 3.0.8
232
- signing_key:
232
+ signing_key:
233
233
  specification_version: 4
234
234
  summary: This is a Ruby SDK based on Golang SDK for working with Minter blockchain
235
235
  test_files: []