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.
- checksums.yaml +4 -4
- data/lib/ffi/sign/go.mod +1 -1
- data/lib/ffi/sign/go.sum +368 -33
- data/lib/ffi/sign/sign-darwin-10.6-amd64.dylib +0 -0
- data/lib/ffi/sign/sign-linux-amd64.so +0 -0
- data/lib/ffi/sign/sign.go +1 -1
- data/lib/ffi/tx_hash/go.mod +1 -1
- data/lib/ffi/tx_hash/go.sum +368 -28
- data/lib/ffi/tx_hash/tx-hash-darwin-10.6-amd64.dylib +0 -0
- data/lib/ffi/tx_hash/tx-hash-darwin-10.6-amd64.h +0 -4
- data/lib/ffi/tx_hash/tx-hash-linux-amd64.h +0 -4
- data/lib/ffi/tx_hash/tx-hash-linux-amd64.so +0 -0
- data/lib/ffi/tx_hash/tx_hash.go +77 -75
- data/lib/ffi/tx_hash/tx_hash_ffi.rb +2 -2
- data/lib/ffi/wallet/go.mod +1 -1
- data/lib/ffi/wallet/go.sum +368 -28
- data/lib/ffi/wallet/wallet-darwin-10.6-amd64.dylib +0 -0
- data/lib/ffi/wallet/wallet-linux-amd64.so +0 -0
- data/lib/ffi/wallet/wallet.go +2 -1
- data/lib/minter/api/resources/estimate_resource.rb +1 -1
- data/lib/minter/transactions/edit_candidate_tx.rb +4 -2
- data/lib/minter/transactions/multi_send_tx.rb +2 -2
- data/lib/minter/version.rb +1 -1
- metadata +6 -6
Binary file
|
Binary file
|
data/lib/ffi/wallet/wallet.go
CHANGED
@@ -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:
|
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(
|
16
|
-
@items << {
|
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
|
data/lib/minter/version.rb
CHANGED
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
|
+
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-
|
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: []
|