pinetwork 0.1.4 → 0.1.5
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/pinetwork.rb +2 -5
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8a84d8ec60d970ce532eaa91719ad9489df92a4d705b0fd0e9e729ec787f2b87
|
|
4
|
+
data.tar.gz: 18f1f89e4bc966b552556d8bd6c4a1569e15b6fb29612a55f41cb8aa47284ede
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e3149e0c3bffeaf65dd395b57c51fdb87ff3667e915aa0fe9ab0cf8e3f7ec0f9d6770d0c62cf1ca855d28ed73974d83c84e38917f4c77b85e7c0ff62f9aae46
|
|
7
|
+
data.tar.gz: 6e561e7f72fafde97d68245f01ad4296b2b9c182e497978d0899ba4e827879e5e8884b74862bbac6acdae9ba3c06f0c31d27247f71a40416b60bce55ba59f338
|
data/lib/pinetwork.rb
CHANGED
|
@@ -164,7 +164,7 @@ class PiNetwork
|
|
|
164
164
|
host = (network.starts_with? "Pi Network") ? @mainnet_host : @testnet_host
|
|
165
165
|
horizon = "https://#{host}"
|
|
166
166
|
|
|
167
|
-
client = Stellar::Client.new(host: host, horizon: horizon)
|
|
167
|
+
client = Stellar::Horizon::Client.new(host: host, horizon: horizon)
|
|
168
168
|
Stellar::default_network = network
|
|
169
169
|
|
|
170
170
|
@client = client
|
|
@@ -185,10 +185,7 @@ class PiNetwork
|
|
|
185
185
|
recipient = Stellar::KeyPair.from_address(transaction_data[:recipient])
|
|
186
186
|
memo = Stellar::Memo.new(:memo_text, transaction_data[:identifier])
|
|
187
187
|
|
|
188
|
-
payment_operation = Stellar::Operation.payment(
|
|
189
|
-
destination: recipient,
|
|
190
|
-
amount: amount.to_payment
|
|
191
|
-
})
|
|
188
|
+
payment_operation = Stellar::Operation.payment(destination: recipient, amount: amount.to_payment)
|
|
192
189
|
|
|
193
190
|
my_public_key = self.account.address
|
|
194
191
|
sequence_number = self.client.account_info(my_public_key).sequence.to_i
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pinetwork
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pi Core Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-04-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: stellar-sdk
|
|
@@ -16,28 +16,28 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
19
|
+
version: 0.31.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.
|
|
26
|
+
version: 0.31.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: faraday
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
33
|
+
version: 1.6.0
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version:
|
|
40
|
+
version: 1.6.0
|
|
41
41
|
description: Pi Network backend library for Ruby-based webservers.
|
|
42
42
|
email: support@minepi.com
|
|
43
43
|
executables: []
|