mastercoin-wallet 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
@@ -28,7 +28,7 @@ module MastercoinWallet
28
28
  @ui = Ui_MainWindow.new
29
29
  @ui.setupUi(self)
30
30
 
31
- setWindowTitle(tr("Mastercoin wallet - v0.0.7"))
31
+ setWindowTitle(tr("Mastercoin wallet - v0.0.8"))
32
32
 
33
33
  @rows = []
34
34
 
@@ -26,8 +26,8 @@ module MastercoinWallet
26
26
  @fee_input.validator = Qt::DoubleValidator.new(0.00000001, 10000,8, @fee_input)
27
27
 
28
28
  @currency_select = findChild(Qt::ComboBox, "currency_box")
29
- # Dont allow real coins for now
30
- # @currency_select.addItem(tr("Mastercoin"))
29
+
30
+ @currency_select.addItem(tr("Mastercoin"))
31
31
  @currency_select.addItem(tr("Test Mastercoin"))
32
32
 
33
33
  @submit.enabled = true
@@ -41,6 +41,14 @@ module MastercoinWallet
41
41
  @password = @password_input.text()
42
42
  @fee = @fee_input.text()
43
43
 
44
+ if @currency_select.currentText() == "Mastercoin"
45
+ currency_id = 1
46
+ elsif @currency_select.currentText() == "Test Mastercoin"
47
+ currency_id = 2
48
+ else
49
+ raise "How did you get here? ^_^"
50
+ end
51
+
44
52
  unless Bitcoin::valid_address?(@receiving_address)
45
53
  Qt::MessageBox.critical(self, tr("Invalid address"),
46
54
  tr("Please fill in a valid Bitcoin/Mastercoin address"))
@@ -28,8 +28,7 @@ module MastercoinWallet
28
28
 
29
29
 
30
30
  @currency_select = findChild(Qt::ComboBox, "currency_box")
31
- # Dont allow real coins for now
32
- # @currency_select.addItem(tr("Mastercoin"))
31
+ #@currency_select.addItem(tr("Mastercoin"))
33
32
  @currency_select.addItem(tr("Test Mastercoin"))
34
33
 
35
34
  @submit.enabled = true
@@ -44,9 +43,17 @@ module MastercoinWallet
44
43
  @time = @time_input.text()
45
44
  @password = @password_input.text()
46
45
 
46
+ if @currency_select.currentText() == "Mastercoin"
47
+ currency_id = 1
48
+ elsif @currency_select.currentText() == "Test Mastercoin"
49
+ currency_id = 2
50
+ else
51
+ raise "How did you get here? ^_^"
52
+ end
53
+
47
54
  unless @time.empty? || @fee_amount.empty? || @btc_amount.empty? || @amount.empty? || @password.empty?
48
55
 
49
- data_keys = Mastercoin::SellingOffer.new(currency_id: 2, amount: (@amount.to_f * 1e8).to_i, bitcoin_amount: (@btc_amount.to_f * 1e8).to_i, time_limit: @time.to_i, transaction_fee: (@fee_amount.to_f * 1e8).to_i).encode_to_compressed_public_key(MastercoinWallet.config.address)
56
+ data_keys = Mastercoin::SellingOffer.new(currency_id: currency_id, amount: (@amount.to_f * 1e8).to_i, bitcoin_amount: (@btc_amount.to_f * 1e8).to_i, time_limit: @time.to_i, transaction_fee: (@fee_amount.to_f * 1e8).to_i).encode_to_compressed_public_key(MastercoinWallet.config.address)
50
57
 
51
58
  create_transaction_with_keys(data_keys)
52
59
  close()
@@ -35,7 +35,7 @@
35
35
  <item row="0" column="0">
36
36
  <widget class="QLabel" name="label_2">
37
37
  <property name="text">
38
- <string>Masteroin address</string>
38
+ <string>Mastercoin address</string>
39
39
  </property>
40
40
  </widget>
41
41
  </item>
@@ -91,9 +91,9 @@
91
91
  <property name="geometry">
92
92
  <rect>
93
93
  <x>20</x>
94
- <y>10</y>
94
+ <y>5</y>
95
95
  <width>151</width>
96
- <height>16</height>
96
+ <height>21</height>
97
97
  </rect>
98
98
  </property>
99
99
  <property name="text">
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  ** Form generated from reading ui file 'main_window.ui'
3
3
  **
4
- ** Created: Thu Nov 14 13:28:58 2013
4
+ ** Created: Fri Nov 15 08:31:52 2013
5
5
  ** by: Qt User Interface Compiler version 4.8.4
6
6
  **
7
7
  ** WARNING! All changes made in this file will be lost when recompiling ui file!
@@ -117,7 +117,7 @@ class Ui_MainWindow
117
117
  @mscAddressLabel.sizePolicy = @sizePolicy2
118
118
  @font1 = Qt::Font.new
119
119
  @font1.family = "Verdana"
120
- @font1.pointSize = 24
120
+ @font1.pointSize = 21
121
121
  @mscAddressLabel.font = @font1
122
122
  @mscAddressLabel.textInteractionFlags = Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse
123
123
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  ** Form generated from reading ui file 'simple_send_window.ui'
3
3
  **
4
- ** Created: Sat Nov 2 14:56:54 2013
4
+ ** Created: Fri Nov 15 08:31:53 2013
5
5
  ** by: Qt User Interface Compiler version 4.8.4
6
6
  **
7
7
  ** WARNING! All changes made in this file will be lost when recompiling ui file!
@@ -82,7 +82,7 @@ class Ui_SimpleSend
82
82
 
83
83
  @label = Qt::Label.new(simpleSend)
84
84
  @label.objectName = "label"
85
- @label.geometry = Qt::Rect.new(20, 10, 151, 16)
85
+ @label.geometry = Qt::Rect.new(20, 5, 151, 21)
86
86
  @submit_button = Qt::PushButton.new(simpleSend)
87
87
  @submit_button.objectName = "submit_button"
88
88
  @submit_button.enabled = false
@@ -105,7 +105,7 @@ class Ui_SimpleSend
105
105
  def retranslateUi(simpleSend)
106
106
  simpleSend.windowTitle = Qt::Application.translate("SimpleSend", "New Simple Send", nil, Qt::Application::UnicodeUTF8)
107
107
  @amount_input.placeholderText = ''
108
- @label_2.text = Qt::Application.translate("SimpleSend", "Masteroin address", nil, Qt::Application::UnicodeUTF8)
108
+ @label_2.text = Qt::Application.translate("SimpleSend", "Mastercoin address", nil, Qt::Application::UnicodeUTF8)
109
109
  @label_3.text = Qt::Application.translate("SimpleSend", "Amount", nil, Qt::Application::UnicodeUTF8)
110
110
  @label_4.text = Qt::Application.translate("SimpleSend", "Currency", nil, Qt::Application::UnicodeUTF8)
111
111
  @address_input.placeholderText = ''
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "mastercoin-wallet"
8
- s.version = "0.0.7"
8
+ s.version = "0.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Maran"]
12
- s.date = "2013-11-14"
12
+ s.date = "2013-11-17"
13
13
  s.description = "Mastercoin wallet using QT bindings to create a useful gui wallet"
14
14
  s.email = "maran.hidskes@gmail.com"
15
15
  s.executables = ["console", "mastercoin-wallet"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercoin-wallet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-14 00:00:00.000000000 Z
12
+ date: 2013-11-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mastercoin-ruby
@@ -241,7 +241,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
241
241
  version: '0'
242
242
  segments:
243
243
  - 0
244
- hash: -877991234193888793
244
+ hash: -1555233637447261091
245
245
  required_rubygems_version: !ruby/object:Gem::Requirement
246
246
  none: false
247
247
  requirements: