xgt-ruby 0.1.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 +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +56 -0
- data/LICENSE.txt +21 -0
- data/README.md +45 -0
- data/Rakefile +6 -0
- data/bin/.wallet.swp +0 -0
- data/bin/setup +8 -0
- data/bin/wallet +438 -0
- data/examples/api/account_by_key_api/get_key_references.rb +18 -0
- data/examples/api/account_history_api/deprecated/enum_virtual_ops.rb +15 -0
- data/examples/api/account_history_api/deprecated/get_transaction.rb +12 -0
- data/examples/api/account_history_api/get_account_history.rb +16 -0
- data/examples/api/account_history_api/get_ops_in_block.rb +17 -0
- data/examples/api/chain_api/deprecated/dummy_code.rb +65 -0
- data/examples/api/chain_api/deprecated/push_block.rb +20 -0
- data/examples/api/database_api/accounts/find_accounts.rb +16 -0
- data/examples/api/database_api/accounts/list_accounts.rb +18 -0
- data/examples/api/database_api/accounts/not_supported/find_account_recovery_requests.rb +16 -0
- data/examples/api/database_api/accounts/not_supported/find_change_recovery_account_requests.rb +0 -0
- data/examples/api/database_api/accounts/not_supported/find_decline_voting_rights_requests.rb +0 -0
- data/examples/api/database_api/accounts/not_supported/find_escrows.rb +0 -0
- data/examples/api/database_api/accounts/not_supported/find_sbd_conversion_requests.rb +0 -0
- data/examples/api/database_api/accounts/not_supported/find_vesting_delegation_expirations.rb +0 -0
- data/examples/api/database_api/accounts/not_supported/find_vesting_delegations.rb +0 -0
- data/examples/api/database_api/accounts/not_supported/find_withdraw_vesting_routes.rb +18 -0
- data/examples/api/database_api/accounts/not_supported/list_account_recovery_requests.rb +18 -0
- data/examples/api/database_api/accounts/not_supported/list_change_recovery_account_requests.rb +0 -0
- data/examples/api/database_api/accounts/not_supported/list_decline_voting_rights_requests.rb +0 -0
- data/examples/api/database_api/accounts/not_supported/list_escrows.rb +18 -0
- data/examples/api/database_api/accounts/not_supported/list_recovery_histories.rb +17 -0
- data/examples/api/database_api/accounts/not_supported/list_sbd_conversion_requests.rb +0 -0
- data/examples/api/database_api/accounts/not_supported/list_vesting_delegation_expirations.rb +0 -0
- data/examples/api/database_api/accounts/not_supported/list_vesting_delegations.rb +18 -0
- data/examples/api/database_api/accounts/not_supported/list_withdraw_vesting_routes.rb +18 -0
- data/examples/api/database_api/authority/not_supported/find_smt_contributions.rb +0 -0
- data/examples/api/database_api/authority/not_supported/find_smt_token_balances.rb +0 -0
- data/examples/api/database_api/authority/not_supported/find_smt_token_emissions.rb +0 -0
- data/examples/api/database_api/authority/not_supported/find_smt_tokens.rb +0 -0
- data/examples/api/database_api/authority/not_supported/get_nai_pool.rb +0 -0
- data/examples/api/database_api/authority/not_supported/get_potential_signatures.rb +0 -0
- data/examples/api/database_api/authority/not_supported/get_required_signatures.rb +0 -0
- data/examples/api/database_api/authority/not_supported/get_smt_balances.rb +0 -0
- data/examples/api/database_api/authority/not_supported/get_transaction_hex.rb +0 -0
- data/examples/api/database_api/authority/not_supported/list_smt_contributions.rb +0 -0
- data/examples/api/database_api/authority/not_supported/list_smt_token_balances.rb +0 -0
- data/examples/api/database_api/authority/not_supported/list_smt_token_emissions.rb +0 -0
- data/examples/api/database_api/authority/not_supported/list_smt_tokens.rb +0 -0
- data/examples/api/database_api/authority/not_supported/verify_account_authority.rb +0 -0
- data/examples/api/database_api/authority/not_supported/verify_authority.rb +0 -0
- data/examples/api/database_api/authority/not_supported/verify_signatures.rb +0 -0
- data/examples/api/database_api/comments/not_supported/find_comments.rb +0 -0
- data/examples/api/database_api/comments/not_supported/find_votes.rb +0 -0
- data/examples/api/database_api/comments/not_supported/list_comments.rb +0 -0
- data/examples/api/database_api/comments/not_supported/list_votes.rb +0 -0
- data/examples/api/database_api/globals/get_config.rb +14 -0
- data/examples/api/database_api/globals/get_dynamic_global_properties.rb +14 -0
- data/examples/api/database_api/globals/get_hardfork_properties.rb +14 -0
- data/examples/api/database_api/globals/get_reward_funds.rb +14 -0
- data/examples/api/database_api/globals/get_version.rb +15 -0
- data/examples/api/database_api/globals/get_witness_schedule.rb +14 -0
- data/examples/api/database_api/market/not_supported/find_limit_orders.rb +0 -0
- data/examples/api/database_api/market/not_supported/get_order_book.rb +0 -0
- data/examples/api/database_api/market/not_supported/list_limit_orders.rb +0 -0
- data/examples/api/database_api/sps/not_supported/find_proposals.rb +0 -0
- data/examples/api/database_api/sps/not_supported/list_proposal_votes.rb +0 -0
- data/examples/api/database_api/sps/not_supported/list_proposals.rb +0 -0
- data/examples/api/database_api/witnesses/deprecated/get_round.rb +14 -0
- data/examples/api/database_api/witnesses/find_witnesses.rb +16 -0
- data/examples/api/database_api/witnesses/get_active_witnesses.rb +14 -0
- data/examples/api/database_api/witnesses/list_witnesses.rb +17 -0
- data/examples/api/database_api/witnesses/not_supported/list_witness_votes.rb +16 -0
- data/examples/api/extras/get_balance.rb +27 -0
- data/examples/api/network_broadcast_api/broadcast_transaction.rb +16 -0
- data/examples/api/network_broadcast_api/broadcast_transaction_synchronous.rb +15 -0
- data/examples/api/network_broadcast_api/create_wallet.rb +79 -0
- data/examples/api/network_broadcast_api/dummy_code.rb +68 -0
- data/examples/api/network_broadcast_api/get_transaction_hex.rb +17 -0
- data/examples/api/network_broadcast_api/not_supported/broadcast_block.rb +17 -0
- data/examples/api/network_broadcast_api/transfer.rb +45 -0
- data/examples/api/payloads.txt +3580 -0
- data/examples/api/transaction_status_api/find_transaction.rb +16 -0
- data/examples/operations/broadcast_transaction_synchronous.rb +16 -0
- data/examples/operations/completed/account_create.rb +79 -0
- data/examples/operations/completed/account_witness_proxy.rb +29 -0
- data/examples/operations/completed/account_witness_vote.rb +31 -0
- data/examples/operations/completed/claim_account.rb +33 -0
- data/examples/operations/completed/create_claimed_account.rb +62 -0
- data/examples/operations/completed/custom.rb +31 -0
- data/examples/operations/completed/custom_json.rb +32 -0
- data/examples/operations/completed/decline_voting_rights.rb +30 -0
- data/examples/operations/completed/delegate_some_vesting_shares.rb +32 -0
- data/examples/operations/completed/set_withdraw_vesting_route.rb +32 -0
- data/examples/operations/completed/transfer.rb +44 -0
- data/examples/operations/completed/transfer_to_vesting.rb +32 -0
- data/examples/operations/completed/update_proposal_votes.rb +31 -0
- data/examples/operations/completed/withdraw_vesting.rb +30 -0
- data/examples/operations/completed/witness_update.rb +64 -0
- data/examples/operations/deprecated/account_update.rb +44 -0
- data/examples/operations/deprecated/cancel_transfer_from_savings.rb +30 -0
- data/examples/operations/deprecated/challenge_authority.rb +28 -0
- data/examples/operations/deprecated/claim_reward_balance.rb +35 -0
- data/examples/operations/deprecated/convert.rb +38 -0
- data/examples/operations/deprecated/custom_binary.rb +31 -0
- data/examples/operations/deprecated/feed_publish.rb +33 -0
- data/examples/operations/do_later/change_recovery_account.rb +31 -0
- data/examples/operations/do_later/claim_reward_balance2.rb +37 -0
- data/examples/operations/do_later/remove_proposal_votes.rb +0 -0
- data/examples/operations/in_progress/create_proposal.rb +40 -0
- data/examples/operations/in_progress/escrow_approve.rb +36 -0
- data/examples/operations/in_progress/witness_set_properties.rb +62 -0
- data/lib/xgt/.ruby.rb.swp +0 -0
- data/lib/xgt/ruby.rb +200 -0
- data/lib/xgt/ruby/version.rb +5 -0
- data/payloads.txt +461 -0
- data/sample.rb +41 -0
- data/sample2.rb +104 -0
- data/xgt-ruby.gemspec +31 -0
- metadata +262 -0
data/sample.rb
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
require 'bundler/setup'
|
|
2
|
+
require 'time'
|
|
3
|
+
require 'xgt/ruby'
|
|
4
|
+
|
|
5
|
+
# -----
|
|
6
|
+
# Setup
|
|
7
|
+
# -----
|
|
8
|
+
|
|
9
|
+
# XXX: A transaction may require multiple wifs, if using multisig!
|
|
10
|
+
@wif = ENV['WIF'] || '5JNHfZYKGaomSFvd4NUdQ9qMcEAC43kujbfjueTHpVapX1Kzq2n'
|
|
11
|
+
@name = ENV['NAME'] || 'XGT0000000000000000000000000000000000000000'
|
|
12
|
+
@host = ENV['HOST'] || 'http://localhost:8751'
|
|
13
|
+
@address_prefix = 'XGT'
|
|
14
|
+
|
|
15
|
+
rpc = Xgt::Ruby::Rpc.new(@host)
|
|
16
|
+
generate_keys = ->() {
|
|
17
|
+
master = Xgt::Ruby::Auth.random_wif
|
|
18
|
+
ks = { 'master' => master }
|
|
19
|
+
%w(recovery money social memo).each do |role|
|
|
20
|
+
private_key = Xgt::Ruby::Auth.generate_wif(@name, master, 'recovery')
|
|
21
|
+
public_key = Xgt::Ruby::Auth.wif_to_public_key(private_key, @address_prefix)
|
|
22
|
+
ks["#{role}_private"] = private_key
|
|
23
|
+
ks["#{role}_public"] = public_key
|
|
24
|
+
end
|
|
25
|
+
ks
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
#master = Xgt::Ruby::Auth.random_wif
|
|
29
|
+
#private_key = Xgt::Ruby::Auth.generate_wif(@name, master, 'recovery')
|
|
30
|
+
private_key = '5Kb8kLf9zgWQnogidDA76MzL6TsZZY36hWXMssSzNydYXYB9KF'
|
|
31
|
+
public_key = Xgt::Ruby::Auth.wif_to_public_key(private_key, @address_prefix)
|
|
32
|
+
p ['private_key', private_key]
|
|
33
|
+
p ['public_key', public_key]
|
|
34
|
+
|
|
35
|
+
response = rpc.call('wallet_by_key_api.generate_wallet_name', {
|
|
36
|
+
'recovery_keys' => [public_key]
|
|
37
|
+
})
|
|
38
|
+
wallet_name = response['wallet_name']
|
|
39
|
+
p wallet_name
|
|
40
|
+
|
|
41
|
+
p Xgt::Ruby::Auth.generate_wallet_name(public_key)
|
data/sample2.rb
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
require 'digest/sha2'
|
|
2
|
+
require 'xgt/ruby'
|
|
3
|
+
require 'base58'
|
|
4
|
+
require 'bigdecimal'
|
|
5
|
+
|
|
6
|
+
@wif = ENV['WIF'] || '5JNHfZYKGaomSFvd4NUdQ9qMcEAC43kujbfjueTHpVapX1Kzq2n'
|
|
7
|
+
@name = ENV['NAME'] || 'XGT0000000000000000000000000000000000000000'
|
|
8
|
+
@host = ENV['HOST'] || 'http://localhost:8751'
|
|
9
|
+
@address_prefix = ENV['ADDRESS_PREFIX'] || 'XGT'
|
|
10
|
+
@precision = ENV['PRECISION'] || 8
|
|
11
|
+
@bitcoin_key = ENV['BITCOIN_KEY'] || '5Kb8kLf9zgWQnogidDA76MzPL6TsZZY36hWXMssSzNydYXYB9KF'
|
|
12
|
+
|
|
13
|
+
def rpc
|
|
14
|
+
Xgt::Ruby::Rpc.new(@host || 'http://localhost:8751')
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def config
|
|
18
|
+
rpc.call('database_api.get_config', {})
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def chain_id
|
|
22
|
+
config['XGT_CHAIN_ID']
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def transfer_operation(wallet_name, amount)
|
|
26
|
+
{
|
|
27
|
+
'type' => 'transfer_operation',
|
|
28
|
+
'value' => {
|
|
29
|
+
'amount' => {
|
|
30
|
+
'amount' => ( amount * (10 ** @precision) ).to_i.to_s,
|
|
31
|
+
'precision' => @precision,
|
|
32
|
+
'nai' => '@@000000021'
|
|
33
|
+
},
|
|
34
|
+
'from' => @name,
|
|
35
|
+
'to' => wallet_name,
|
|
36
|
+
'json_metadata' => '',
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def wallet_update_operation(wallet_name, keys)
|
|
42
|
+
{
|
|
43
|
+
'type' => 'wallet_update_operation',
|
|
44
|
+
'value' => {
|
|
45
|
+
'wallet' => wallet_name,
|
|
46
|
+
'recovery' => {
|
|
47
|
+
'weight_threshold' => 1,
|
|
48
|
+
'account_auths' => [],
|
|
49
|
+
'key_auths' => [[keys['recovery_public'], 1]]
|
|
50
|
+
},
|
|
51
|
+
'money' => {
|
|
52
|
+
'weight_threshold' => 1,
|
|
53
|
+
'account_auths' => [],
|
|
54
|
+
'key_auths' => [[keys['money_public'], 1]]
|
|
55
|
+
},
|
|
56
|
+
'social' => {
|
|
57
|
+
'weight_threshold' => 1,
|
|
58
|
+
'account_auths' => [],
|
|
59
|
+
'key_auths' => [[keys['social_public'], 1]]
|
|
60
|
+
},
|
|
61
|
+
'memo_key' => keys['memo_public'],
|
|
62
|
+
'json_metadata' => '',
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Generate a set of keys from a parent wallet name and master key
|
|
68
|
+
def generate_keys(from_wallet_name, master_key)
|
|
69
|
+
ks = { 'master' => master_key }
|
|
70
|
+
%w(recovery money social memo).each do |role|
|
|
71
|
+
private_key = Xgt::Ruby::Auth.generate_wif(from_wallet_name, master_key, 'recovery')
|
|
72
|
+
public_key = Xgt::Ruby::Auth.wif_to_public_key(private_key, @address_prefix)
|
|
73
|
+
ks["#{role}_private"] = private_key
|
|
74
|
+
ks["#{role}_public"] = public_key
|
|
75
|
+
end
|
|
76
|
+
ks['wallet_name'] = Xgt::Ruby::Auth.generate_wallet_name(ks['recovery_public'])
|
|
77
|
+
ks
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Query the node for a wallet name given a public key
|
|
81
|
+
def fetch_wallet_name(public_key)
|
|
82
|
+
result = rpc.call('wallet_by_key_api.get_key_references', { 'keys' => [keys['recovery_public']] })
|
|
83
|
+
result&.fetch('wallets', [])&.first&.first
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if __FILE__ == $0
|
|
87
|
+
# Generate keys
|
|
88
|
+
keys = generate_keys(@name, @bitcoin_key)
|
|
89
|
+
recovery_private = keys['recovery_private']
|
|
90
|
+
recovery_public = keys['recovery_public']
|
|
91
|
+
|
|
92
|
+
# Create lazy wallet
|
|
93
|
+
txn = { 'operations' => [ transfer_operation(wallet_name, BigDecimal('0.00000001')) ] }
|
|
94
|
+
id = rpc.broadcast_transaction(txn, [@wif], chain_id)
|
|
95
|
+
(puts 'Waiting...' or sleep 1) until rpc.transaction_ready?(id)
|
|
96
|
+
puts 'Done!'
|
|
97
|
+
|
|
98
|
+
# Redeem lazy wallet
|
|
99
|
+
txn = { 'operations' => [ wallet_update_operation(wallet_name, keys) ] }
|
|
100
|
+
id = rpc.broadcast_transaction(txn, [recovery_private], chain_id)
|
|
101
|
+
(puts 'Waiting...' or sleep 1) until fetch_wallet_name(recovery_public)
|
|
102
|
+
puts 'Done!'
|
|
103
|
+
p keys
|
|
104
|
+
end
|
data/xgt-ruby.gemspec
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
|
+
require 'xgt/ruby/version'
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = 'xgt-ruby'
|
|
7
|
+
spec.version = Xgt::Ruby::VERSION
|
|
8
|
+
spec.authors = ['Roger Jungemann']
|
|
9
|
+
spec.email = ['roger@gather.com']
|
|
10
|
+
|
|
11
|
+
spec.summary = %q(XGT client library)
|
|
12
|
+
spec.homepage = %q(https://github.com/gather-com/xgt-ruby)
|
|
13
|
+
spec.license = 'MIT'
|
|
14
|
+
|
|
15
|
+
# Specify which files should be added to the gem when it is released.
|
|
16
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
17
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
18
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
19
|
+
end
|
|
20
|
+
spec.bindir = 'exe'
|
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
22
|
+
spec.require_paths = ['lib']
|
|
23
|
+
|
|
24
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
|
25
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
|
26
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
|
27
|
+
spec.add_dependency 'faraday', '~> 0.15.4'
|
|
28
|
+
spec.add_dependency 'faraday_middleware', '~> 0.13.1'
|
|
29
|
+
spec.add_dependency 'bitcoin-ruby', '~> 0.0.19'
|
|
30
|
+
spec.add_dependency 'base58', '~> 0.2.3'
|
|
31
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: xgt-ruby
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Roger Jungemann
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2021-05-29 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: bundler
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '2.0'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '2.0'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rake
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '10.0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '10.0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rspec
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '3.0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '3.0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: faraday
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "~>"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: 0.15.4
|
|
62
|
+
type: :runtime
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: 0.15.4
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: faraday_middleware
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: 0.13.1
|
|
76
|
+
type: :runtime
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - "~>"
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: 0.13.1
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: bitcoin-ruby
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - "~>"
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: 0.0.19
|
|
90
|
+
type: :runtime
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - "~>"
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: 0.0.19
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: base58
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - "~>"
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: 0.2.3
|
|
104
|
+
type: :runtime
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - "~>"
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: 0.2.3
|
|
111
|
+
description:
|
|
112
|
+
email:
|
|
113
|
+
- roger@gather.com
|
|
114
|
+
executables: []
|
|
115
|
+
extensions: []
|
|
116
|
+
extra_rdoc_files: []
|
|
117
|
+
files:
|
|
118
|
+
- ".gitignore"
|
|
119
|
+
- ".rspec"
|
|
120
|
+
- ".travis.yml"
|
|
121
|
+
- CODE_OF_CONDUCT.md
|
|
122
|
+
- Gemfile
|
|
123
|
+
- Gemfile.lock
|
|
124
|
+
- LICENSE.txt
|
|
125
|
+
- README.md
|
|
126
|
+
- Rakefile
|
|
127
|
+
- bin/.wallet.swp
|
|
128
|
+
- bin/setup
|
|
129
|
+
- bin/wallet
|
|
130
|
+
- examples/api/account_by_key_api/get_key_references.rb
|
|
131
|
+
- examples/api/account_history_api/deprecated/enum_virtual_ops.rb
|
|
132
|
+
- examples/api/account_history_api/deprecated/get_transaction.rb
|
|
133
|
+
- examples/api/account_history_api/get_account_history.rb
|
|
134
|
+
- examples/api/account_history_api/get_ops_in_block.rb
|
|
135
|
+
- examples/api/chain_api/deprecated/dummy_code.rb
|
|
136
|
+
- examples/api/chain_api/deprecated/push_block.rb
|
|
137
|
+
- examples/api/database_api/accounts/find_accounts.rb
|
|
138
|
+
- examples/api/database_api/accounts/list_accounts.rb
|
|
139
|
+
- examples/api/database_api/accounts/not_supported/find_account_recovery_requests.rb
|
|
140
|
+
- examples/api/database_api/accounts/not_supported/find_change_recovery_account_requests.rb
|
|
141
|
+
- examples/api/database_api/accounts/not_supported/find_decline_voting_rights_requests.rb
|
|
142
|
+
- examples/api/database_api/accounts/not_supported/find_escrows.rb
|
|
143
|
+
- examples/api/database_api/accounts/not_supported/find_sbd_conversion_requests.rb
|
|
144
|
+
- examples/api/database_api/accounts/not_supported/find_vesting_delegation_expirations.rb
|
|
145
|
+
- examples/api/database_api/accounts/not_supported/find_vesting_delegations.rb
|
|
146
|
+
- examples/api/database_api/accounts/not_supported/find_withdraw_vesting_routes.rb
|
|
147
|
+
- examples/api/database_api/accounts/not_supported/list_account_recovery_requests.rb
|
|
148
|
+
- examples/api/database_api/accounts/not_supported/list_change_recovery_account_requests.rb
|
|
149
|
+
- examples/api/database_api/accounts/not_supported/list_decline_voting_rights_requests.rb
|
|
150
|
+
- examples/api/database_api/accounts/not_supported/list_escrows.rb
|
|
151
|
+
- examples/api/database_api/accounts/not_supported/list_recovery_histories.rb
|
|
152
|
+
- examples/api/database_api/accounts/not_supported/list_sbd_conversion_requests.rb
|
|
153
|
+
- examples/api/database_api/accounts/not_supported/list_vesting_delegation_expirations.rb
|
|
154
|
+
- examples/api/database_api/accounts/not_supported/list_vesting_delegations.rb
|
|
155
|
+
- examples/api/database_api/accounts/not_supported/list_withdraw_vesting_routes.rb
|
|
156
|
+
- examples/api/database_api/authority/not_supported/find_smt_contributions.rb
|
|
157
|
+
- examples/api/database_api/authority/not_supported/find_smt_token_balances.rb
|
|
158
|
+
- examples/api/database_api/authority/not_supported/find_smt_token_emissions.rb
|
|
159
|
+
- examples/api/database_api/authority/not_supported/find_smt_tokens.rb
|
|
160
|
+
- examples/api/database_api/authority/not_supported/get_nai_pool.rb
|
|
161
|
+
- examples/api/database_api/authority/not_supported/get_potential_signatures.rb
|
|
162
|
+
- examples/api/database_api/authority/not_supported/get_required_signatures.rb
|
|
163
|
+
- examples/api/database_api/authority/not_supported/get_smt_balances.rb
|
|
164
|
+
- examples/api/database_api/authority/not_supported/get_transaction_hex.rb
|
|
165
|
+
- examples/api/database_api/authority/not_supported/list_smt_contributions.rb
|
|
166
|
+
- examples/api/database_api/authority/not_supported/list_smt_token_balances.rb
|
|
167
|
+
- examples/api/database_api/authority/not_supported/list_smt_token_emissions.rb
|
|
168
|
+
- examples/api/database_api/authority/not_supported/list_smt_tokens.rb
|
|
169
|
+
- examples/api/database_api/authority/not_supported/verify_account_authority.rb
|
|
170
|
+
- examples/api/database_api/authority/not_supported/verify_authority.rb
|
|
171
|
+
- examples/api/database_api/authority/not_supported/verify_signatures.rb
|
|
172
|
+
- examples/api/database_api/comments/not_supported/find_comments.rb
|
|
173
|
+
- examples/api/database_api/comments/not_supported/find_votes.rb
|
|
174
|
+
- examples/api/database_api/comments/not_supported/list_comments.rb
|
|
175
|
+
- examples/api/database_api/comments/not_supported/list_votes.rb
|
|
176
|
+
- examples/api/database_api/globals/get_config.rb
|
|
177
|
+
- examples/api/database_api/globals/get_dynamic_global_properties.rb
|
|
178
|
+
- examples/api/database_api/globals/get_hardfork_properties.rb
|
|
179
|
+
- examples/api/database_api/globals/get_reward_funds.rb
|
|
180
|
+
- examples/api/database_api/globals/get_version.rb
|
|
181
|
+
- examples/api/database_api/globals/get_witness_schedule.rb
|
|
182
|
+
- examples/api/database_api/market/not_supported/find_limit_orders.rb
|
|
183
|
+
- examples/api/database_api/market/not_supported/get_order_book.rb
|
|
184
|
+
- examples/api/database_api/market/not_supported/list_limit_orders.rb
|
|
185
|
+
- examples/api/database_api/sps/not_supported/find_proposals.rb
|
|
186
|
+
- examples/api/database_api/sps/not_supported/list_proposal_votes.rb
|
|
187
|
+
- examples/api/database_api/sps/not_supported/list_proposals.rb
|
|
188
|
+
- examples/api/database_api/witnesses/deprecated/get_round.rb
|
|
189
|
+
- examples/api/database_api/witnesses/find_witnesses.rb
|
|
190
|
+
- examples/api/database_api/witnesses/get_active_witnesses.rb
|
|
191
|
+
- examples/api/database_api/witnesses/list_witnesses.rb
|
|
192
|
+
- examples/api/database_api/witnesses/not_supported/list_witness_votes.rb
|
|
193
|
+
- examples/api/extras/get_balance.rb
|
|
194
|
+
- examples/api/network_broadcast_api/broadcast_transaction.rb
|
|
195
|
+
- examples/api/network_broadcast_api/broadcast_transaction_synchronous.rb
|
|
196
|
+
- examples/api/network_broadcast_api/create_wallet.rb
|
|
197
|
+
- examples/api/network_broadcast_api/dummy_code.rb
|
|
198
|
+
- examples/api/network_broadcast_api/get_transaction_hex.rb
|
|
199
|
+
- examples/api/network_broadcast_api/not_supported/broadcast_block.rb
|
|
200
|
+
- examples/api/network_broadcast_api/transfer.rb
|
|
201
|
+
- examples/api/payloads.txt
|
|
202
|
+
- examples/api/transaction_status_api/find_transaction.rb
|
|
203
|
+
- examples/operations/broadcast_transaction_synchronous.rb
|
|
204
|
+
- examples/operations/completed/account_create.rb
|
|
205
|
+
- examples/operations/completed/account_witness_proxy.rb
|
|
206
|
+
- examples/operations/completed/account_witness_vote.rb
|
|
207
|
+
- examples/operations/completed/claim_account.rb
|
|
208
|
+
- examples/operations/completed/create_claimed_account.rb
|
|
209
|
+
- examples/operations/completed/custom.rb
|
|
210
|
+
- examples/operations/completed/custom_json.rb
|
|
211
|
+
- examples/operations/completed/decline_voting_rights.rb
|
|
212
|
+
- examples/operations/completed/delegate_some_vesting_shares.rb
|
|
213
|
+
- examples/operations/completed/set_withdraw_vesting_route.rb
|
|
214
|
+
- examples/operations/completed/transfer.rb
|
|
215
|
+
- examples/operations/completed/transfer_to_vesting.rb
|
|
216
|
+
- examples/operations/completed/update_proposal_votes.rb
|
|
217
|
+
- examples/operations/completed/withdraw_vesting.rb
|
|
218
|
+
- examples/operations/completed/witness_update.rb
|
|
219
|
+
- examples/operations/deprecated/account_update.rb
|
|
220
|
+
- examples/operations/deprecated/cancel_transfer_from_savings.rb
|
|
221
|
+
- examples/operations/deprecated/challenge_authority.rb
|
|
222
|
+
- examples/operations/deprecated/claim_reward_balance.rb
|
|
223
|
+
- examples/operations/deprecated/convert.rb
|
|
224
|
+
- examples/operations/deprecated/custom_binary.rb
|
|
225
|
+
- examples/operations/deprecated/feed_publish.rb
|
|
226
|
+
- examples/operations/do_later/change_recovery_account.rb
|
|
227
|
+
- examples/operations/do_later/claim_reward_balance2.rb
|
|
228
|
+
- examples/operations/do_later/remove_proposal_votes.rb
|
|
229
|
+
- examples/operations/in_progress/create_proposal.rb
|
|
230
|
+
- examples/operations/in_progress/escrow_approve.rb
|
|
231
|
+
- examples/operations/in_progress/witness_set_properties.rb
|
|
232
|
+
- lib/xgt/.ruby.rb.swp
|
|
233
|
+
- lib/xgt/ruby.rb
|
|
234
|
+
- lib/xgt/ruby/version.rb
|
|
235
|
+
- payloads.txt
|
|
236
|
+
- sample.rb
|
|
237
|
+
- sample2.rb
|
|
238
|
+
- xgt-ruby.gemspec
|
|
239
|
+
homepage: https://github.com/gather-com/xgt-ruby
|
|
240
|
+
licenses:
|
|
241
|
+
- MIT
|
|
242
|
+
metadata: {}
|
|
243
|
+
post_install_message:
|
|
244
|
+
rdoc_options: []
|
|
245
|
+
require_paths:
|
|
246
|
+
- lib
|
|
247
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
248
|
+
requirements:
|
|
249
|
+
- - ">="
|
|
250
|
+
- !ruby/object:Gem::Version
|
|
251
|
+
version: '0'
|
|
252
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
253
|
+
requirements:
|
|
254
|
+
- - ">="
|
|
255
|
+
- !ruby/object:Gem::Version
|
|
256
|
+
version: '0'
|
|
257
|
+
requirements: []
|
|
258
|
+
rubygems_version: 3.0.3
|
|
259
|
+
signing_key:
|
|
260
|
+
specification_version: 4
|
|
261
|
+
summary: XGT client library
|
|
262
|
+
test_files: []
|