zold 0.31.3 → 0.31.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/.simplecov +1 -1
- data/Gemfile +18 -1
- data/Rakefile +1 -1
- data/bin/zold +1 -1
- data/features/step_definitions/steps.rb +1 -1
- data/features/support/env.rb +1 -1
- data/fixtures/merge/asserts.rb +1 -1
- data/fixtures/merge/into_no_wallet/assert.rb +1 -1
- data/fixtures/merge/legacy_negatives_stay/assert.rb +1 -1
- data/fixtures/merge/missed_wallets/assert.rb +1 -1
- data/fixtures/merge/negative_overwriting/assert.rb +1 -1
- data/fixtures/merge/negatives_in_between/assert.rb +1 -1
- data/fixtures/merge/random_expenses/assert.rb +1 -1
- data/fixtures/merge/simple_case/assert.rb +1 -1
- data/fixtures/merge/unconfirmed_income/assert.rb +1 -1
- data/lib/zold/age.rb +1 -1
- data/lib/zold/amount.rb +1 -1
- data/lib/zold/cached_wallets.rb +1 -1
- data/lib/zold/commands/alias.rb +0 -1
- data/lib/zold/commands/args.rb +1 -1
- data/lib/zold/commands/calculate.rb +1 -2
- data/lib/zold/commands/clean.rb +1 -2
- data/lib/zold/commands/create.rb +1 -2
- data/lib/zold/commands/diff.rb +1 -2
- data/lib/zold/commands/fetch.rb +1 -2
- data/lib/zold/commands/invoice.rb +1 -2
- data/lib/zold/commands/list.rb +1 -1
- data/lib/zold/commands/merge.rb +1 -2
- data/lib/zold/commands/next.rb +1 -2
- data/lib/zold/commands/node.rb +1 -2
- data/lib/zold/commands/pay.rb +6 -3
- data/lib/zold/commands/propagate.rb +1 -2
- data/lib/zold/commands/pull.rb +1 -1
- data/lib/zold/commands/push.rb +1 -2
- data/lib/zold/commands/remote.rb +1 -2
- data/lib/zold/commands/remove.rb +1 -2
- data/lib/zold/commands/routines/audit.rb +1 -1
- data/lib/zold/commands/routines/gc.rb +1 -1
- data/lib/zold/commands/routines/reconnect.rb +1 -1
- data/lib/zold/commands/routines/retire.rb +1 -1
- data/lib/zold/commands/routines.rb +1 -1
- data/lib/zold/commands/show.rb +1 -2
- data/lib/zold/commands/taxes.rb +1 -2
- data/lib/zold/commands/thread_badge.rb +1 -1
- data/lib/zold/copies.rb +1 -1
- data/lib/zold/dir_items.rb +1 -1
- data/lib/zold/endless.rb +1 -1
- data/lib/zold/gem.rb +1 -1
- data/lib/zold/hands.rb +1 -1
- data/lib/zold/head.rb +1 -1
- data/lib/zold/hexnum.rb +1 -1
- data/lib/zold/http.rb +1 -1
- data/lib/zold/hungry_wallets.rb +1 -1
- data/lib/zold/id.rb +1 -1
- data/lib/zold/json_page.rb +1 -1
- data/lib/zold/key.rb +1 -1
- data/lib/zold/log.rb +1 -1
- data/lib/zold/metronome.rb +1 -1
- data/lib/zold/node/async_entrance.rb +1 -1
- data/lib/zold/node/entrance.rb +1 -1
- data/lib/zold/node/farm.rb +1 -1
- data/lib/zold/node/farmers.rb +1 -1
- data/lib/zold/node/front.rb +1 -1
- data/lib/zold/node/journaled_pipeline.rb +1 -1
- data/lib/zold/node/nodup_entrance.rb +1 -1
- data/lib/zold/node/nospam_entrance.rb +1 -1
- data/lib/zold/node/pipeline.rb +1 -1
- data/lib/zold/node/safe_entrance.rb +1 -1
- data/lib/zold/node/soft_error.rb +1 -1
- data/lib/zold/node/spread_entrance.rb +1 -1
- data/lib/zold/node/sync_entrance.rb +1 -1
- data/lib/zold/node/trace.rb +1 -1
- data/lib/zold/patch.rb +1 -1
- data/lib/zold/prefixes.rb +1 -1
- data/lib/zold/remotes.rb +1 -1
- data/lib/zold/signature.rb +1 -1
- data/lib/zold/size.rb +1 -1
- data/lib/zold/sync_wallets.rb +1 -1
- data/lib/zold/tax.rb +1 -1
- data/lib/zold/thread_pool.rb +1 -1
- data/lib/zold/tree_wallets.rb +1 -1
- data/lib/zold/txn.rb +1 -1
- data/lib/zold/txns.rb +1 -1
- data/lib/zold/upgrades.rb +1 -1
- data/lib/zold/verbose_thread.rb +1 -1
- data/lib/zold/version.rb +2 -2
- data/lib/zold/version_file.rb +1 -1
- data/lib/zold/wallet.rb +1 -1
- data/lib/zold/wallets.rb +1 -1
- data/lib/zold.rb +1 -1
- data/test/commands/routines/test_audit.rb +1 -1
- data/test/commands/routines/test_gc.rb +1 -1
- data/test/commands/routines/test_reconcile.rb +1 -1
- data/test/commands/routines/test_reconnect.rb +1 -1
- data/test/commands/routines/test_retire.rb +1 -1
- data/test/commands/test_calculate.rb +1 -1
- data/test/commands/test_clean.rb +1 -1
- data/test/commands/test_create.rb +1 -1
- data/test/commands/test_diff.rb +1 -1
- data/test/commands/test_fetch.rb +1 -1
- data/test/commands/test_invoice.rb +1 -1
- data/test/commands/test_list.rb +1 -1
- data/test/commands/test_merge.rb +1 -1
- data/test/commands/test_node.rb +1 -1
- data/test/commands/test_pay.rb +1 -1
- data/test/commands/test_propagate.rb +1 -1
- data/test/commands/test_pull.rb +1 -1
- data/test/commands/test_push.rb +1 -1
- data/test/commands/test_remote.rb +1 -1
- data/test/commands/test_remove.rb +1 -1
- data/test/commands/test_show.rb +1 -1
- data/test/commands/test_taxes.rb +1 -1
- data/test/fake_home.rb +1 -1
- data/test/node/fake_entrance.rb +1 -1
- data/test/node/fake_node.rb +1 -1
- data/test/node/test_async_entrance.rb +1 -1
- data/test/node/test_entrance.rb +1 -1
- data/test/node/test_farm.rb +1 -1
- data/test/node/test_farmers.rb +1 -1
- data/test/node/test_front.rb +1 -1
- data/test/node/test_nodup_entrance.rb +1 -1
- data/test/node/test_nospam_entrance.rb +1 -1
- data/test/node/test_safe_entrance.rb +1 -1
- data/test/node/test_spread_entrance.rb +1 -1
- data/test/node/test_sync_entrance.rb +1 -1
- data/test/node/test_trace.rb +1 -1
- data/test/test__helper.rb +1 -5
- data/test/test_age.rb +1 -1
- data/test/test_amount.rb +1 -1
- data/test/test_cached_wallets.rb +1 -1
- data/test/test_copies.rb +1 -1
- data/test/test_dir_items.rb +1 -1
- data/test/test_hands.rb +1 -1
- data/test/test_hexnum.rb +1 -1
- data/test/test_http.rb +1 -1
- data/test/test_hungry_wallets.rb +1 -1
- data/test/test_id.rb +1 -1
- data/test/test_json_page.rb +1 -1
- data/test/test_key.rb +1 -1
- data/test/test_log.rb +1 -1
- data/test/test_metronome.rb +1 -1
- data/test/test_patch.rb +1 -1
- data/test/test_prefixes.rb +1 -1
- data/test/test_remotes.rb +1 -1
- data/test/test_signature.rb +1 -1
- data/test/test_size.rb +1 -1
- data/test/test_sync_wallets.rb +1 -1
- data/test/test_tax.rb +1 -1
- data/test/test_thread_pool.rb +1 -1
- data/test/test_tree_wallets.rb +1 -1
- data/test/test_txn.rb +1 -1
- data/test/test_upgrades.rb +1 -1
- data/test/test_verbose_thread.rb +1 -1
- data/test/test_wallet.rb +1 -1
- data/test/test_wallets.rb +1 -1
- data/test/test_zold.rb +1 -1
- data/test/upgrades/test_delete_banned_wallets.rb +1 -1
- data/test/upgrades/test_protocol_up.rb +1 -1
- data/upgrades/2.rb +1 -1
- data/upgrades/delete_banned_wallets.rb +1 -1
- data/upgrades/move_wallets_into_tree.rb +1 -1
- data/upgrades/protocol_up.rb +1 -1
- data/upgrades/rename_foreign_wallets.rb +1 -1
- data/zold.gemspec +1 -17
- metadata +3 -227
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6837bb58081513d3421063ecaee8197ce5940fcb538ad1bdd38809351e780119
|
|
4
|
+
data.tar.gz: ef50b2003f151e9c23dc76cddda7039b7b4bdeae78a0b960d2896825dcb5f49a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d20f8a8ead5f0ac8cd64a52cd35920d0c2e0563267e07a4670bd3ed4c60e0bf95061ea1980ceea1e8f019e7b09a3c0a1c421e48c5350b8d24fa3a9b382317175
|
|
7
|
+
data.tar.gz: 642133a1466c7568548203410a99826025feecffe9e907e24f30003742116601ff877c8116df7970865a4e6ce50717616015f1d8a3eee71d1424bf035525f408
|
data/.simplecov
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/Gemfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -22,3 +22,20 @@
|
|
|
22
22
|
|
|
23
23
|
source 'https://rubygems.org'
|
|
24
24
|
gemspec
|
|
25
|
+
|
|
26
|
+
gem 'cucumber', '3.1.2', require: false
|
|
27
|
+
gem 'guard', '2.15.0', require: false
|
|
28
|
+
gem 'guard-minitest', '2.4.6', require: false
|
|
29
|
+
gem 'minitest', '5.11.3', require: false
|
|
30
|
+
gem 'minitest-fail-fast', '0.1.0', require: false
|
|
31
|
+
gem 'minitest-hooks', '1.5.0', require: false
|
|
32
|
+
gem 'minitest-reporters', '1.3.6', require: false
|
|
33
|
+
gem 'rake', '12.3.2', require: false
|
|
34
|
+
gem 'random-port', '0.3.1', require: false
|
|
35
|
+
gem 'rdoc', '6.1.1', require: false
|
|
36
|
+
gem 'rspec-rails', '3.8.2', require: false
|
|
37
|
+
gem 'rubocop', '0.69.0', require: false
|
|
38
|
+
gem 'rubocop-rspec', '1.33.0', require: false
|
|
39
|
+
gem 'simplecov', '0.22.0', require: false
|
|
40
|
+
gem 'webmock', '3.5.1', require: false
|
|
41
|
+
gem 'xcop', '>=0.6', require: false
|
data/Rakefile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/bin/zold
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
# encoding: utf-8
|
|
3
3
|
#
|
|
4
|
-
# Copyright (c) 2018-
|
|
4
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
5
5
|
#
|
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/features/support/env.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/fixtures/merge/asserts.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/age.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/amount.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/cached_wallets.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/alias.rb
CHANGED
data/lib/zold/commands/args.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -39,7 +39,6 @@ module Zold
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
def run(args = [])
|
|
42
|
-
@log.debug("Calculate.run(#{args.join(' ')})")
|
|
43
42
|
opts = Slop.parse(args, help: true, suppress_errors: true) do |o|
|
|
44
43
|
o.banner = "Usage: zold score [options]
|
|
45
44
|
Available options:"
|
data/lib/zold/commands/clean.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -50,7 +50,6 @@ module Zold
|
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
def run(args = [])
|
|
53
|
-
@log.debug("Clean.run(#{args.join(' ')})")
|
|
54
53
|
opts = Slop.parse(args, help: true, suppress_errors: true) do |o|
|
|
55
54
|
o.banner = "Usage: zold clean [ID...] [options]
|
|
56
55
|
Available options:"
|
data/lib/zold/commands/create.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -44,7 +44,6 @@ module Zold
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
def run(args = [])
|
|
47
|
-
@log.debug("Create.run(#{args.join(' ')})")
|
|
48
47
|
opts = Slop.parse(args, help: true, suppress_errors: true) do |o|
|
|
49
48
|
o.banner = "Usage: zold create [options]
|
|
50
49
|
Available options:"
|
data/lib/zold/commands/diff.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -46,7 +46,6 @@ module Zold
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
def run(args = [])
|
|
49
|
-
@log.debug("Diff.run(#{args.join(' ')})")
|
|
50
49
|
opts = Slop.parse(args, help: true, suppress_errors: true) do |o|
|
|
51
50
|
o.banner = "Usage: zold diff [ID...] [options]
|
|
52
51
|
Available options:"
|
data/lib/zold/commands/fetch.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -70,7 +70,6 @@ module Zold
|
|
|
70
70
|
end
|
|
71
71
|
|
|
72
72
|
def run(args = [])
|
|
73
|
-
@log.debug("Fetch.run(#{args.join(' ')})")
|
|
74
73
|
opts = Slop.parse(args, help: true, suppress_errors: true) do |o|
|
|
75
74
|
o.banner = "Usage: zold fetch [ID...] [options]
|
|
76
75
|
Available options:"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -44,7 +44,6 @@ module Zold
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
def run(args = [])
|
|
47
|
-
@log.debug("Invoice.run(#{args.join(' ')})")
|
|
48
47
|
opts = Slop.parse(args, help: true, suppress_errors: true) do |o|
|
|
49
48
|
o.banner = "Usage: zold invoice ID [options]
|
|
50
49
|
Where:
|
data/lib/zold/commands/list.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/merge.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -51,7 +51,6 @@ module Zold
|
|
|
51
51
|
|
|
52
52
|
# Returns the array of modified wallets (IDs)
|
|
53
53
|
def run(args = [])
|
|
54
|
-
@log.debug("Merge.run(#{args.join(' ')})")
|
|
55
54
|
opts = Slop.parse(args, help: true, suppress_errors: true) do |o|
|
|
56
55
|
o.banner = "Usage: zold merge [ID...] [options]
|
|
57
56
|
Available options:"
|
data/lib/zold/commands/next.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -39,7 +39,6 @@ module Zold
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
def run(args = [])
|
|
42
|
-
@log.debug("Next.run(#{args.join(' ')})")
|
|
43
42
|
opts = Slop.parse(args, help: true, suppress_errors: true) do |o|
|
|
44
43
|
o.banner = "Usage: zold next [options] score
|
|
45
44
|
Available options:"
|
data/lib/zold/commands/node.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -73,7 +73,6 @@ module Zold
|
|
|
73
73
|
end
|
|
74
74
|
|
|
75
75
|
def run(args = [])
|
|
76
|
-
@log.debug("Node.run(#{args.join(' ')})")
|
|
77
76
|
opts = Slop.parse(args, help: true, suppress_errors: true) do |o|
|
|
78
77
|
o.banner = 'Usage: zold node [options]'
|
|
79
78
|
o.string '--invoice',
|
data/lib/zold/commands/pay.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -48,7 +48,6 @@ module Zold
|
|
|
48
48
|
# Sends a payment and returns the transaction just created in the
|
|
49
49
|
# paying wallet, an instance of Zold::Txn
|
|
50
50
|
def run(args = [])
|
|
51
|
-
@log.debug("Pay.run(#{args.join(' ')})")
|
|
52
51
|
opts = Slop.parse(args, help: true, suppress_errors: true) do |o|
|
|
53
52
|
o.banner = "Usage: zold pay wallet target amount [details] [options]
|
|
54
53
|
Where:
|
|
@@ -79,6 +78,9 @@ Available options:"
|
|
|
79
78
|
o.integer '--tolerate-quorum',
|
|
80
79
|
'The minimum number of nodes required for a successful fetch (default: 4)',
|
|
81
80
|
default: 4
|
|
81
|
+
o.bool '--ignore-nodes-absence',
|
|
82
|
+
'Don\'t complain if there are not enough nodes in the network to pay taxes',
|
|
83
|
+
default: false
|
|
82
84
|
o.bool '--ignore-score-weakness',
|
|
83
85
|
'Don\'t complain when their score is too weak (when paying taxes)',
|
|
84
86
|
default: false
|
|
@@ -144,9 +146,10 @@ Available options:"
|
|
|
144
146
|
"--private-key=#{Shellwords.escape(opts['private-key'])}",
|
|
145
147
|
opts['pay-taxes-anyway'] ? '--pay-anyway' : '',
|
|
146
148
|
opts['ignore-score-weakness'] ? '--ignore-score-weakness' : '',
|
|
149
|
+
opts['ignore-nodes-absence'] ? '--ignore-nodes-absence' : '',
|
|
147
150
|
opts['ignore-score-size'] ? '--ignore-score-size' : '',
|
|
148
151
|
id.to_s,
|
|
149
|
-
"--keygap=#{Shellwords.escape(opts['keygap'])}"
|
|
152
|
+
opts['keygap'].empty? ? '' : "--keygap=#{Shellwords.escape(opts['keygap'])}"
|
|
150
153
|
].reject(&:empty?)
|
|
151
154
|
)
|
|
152
155
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -46,7 +46,6 @@ module Zold
|
|
|
46
46
|
|
|
47
47
|
# Returns list of Wallet IDs which were affected
|
|
48
48
|
def run(args = [])
|
|
49
|
-
@log.debug("Propagate.run(#{args.join(' ')})")
|
|
50
49
|
opts = Slop.parse(args, help: true, suppress_errors: true) do |o|
|
|
51
50
|
o.banner = "Usage: zold propagate [ID...] [options]
|
|
52
51
|
Available options:"
|
data/lib/zold/commands/pull.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/push.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -59,7 +59,6 @@ module Zold
|
|
|
59
59
|
end
|
|
60
60
|
|
|
61
61
|
def run(args = [])
|
|
62
|
-
@log.debug("Push.run(#{args.join(' ')})")
|
|
63
62
|
opts = Slop.parse(args, help: true, suppress_errors: true) do |o|
|
|
64
63
|
o.banner = "Usage: zold push [ID...] [options]
|
|
65
64
|
Available options:"
|
data/lib/zold/commands/remote.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -54,7 +54,6 @@ module Zold
|
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
def run(args = [])
|
|
57
|
-
@log.debug("Remote.run(#{args.join(' ')})")
|
|
58
57
|
opts = Slop.parse(args, help: true, suppress_errors: true) do |o|
|
|
59
58
|
o.banner = "Usage: zold remote <command> [options]
|
|
60
59
|
Available commands:
|
data/lib/zold/commands/remove.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -41,7 +41,6 @@ module Zold
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
def run(args = [])
|
|
44
|
-
@log.debug("Remove.run(#{args.join(' ')})")
|
|
45
44
|
opts = Slop.parse(args, help: true, suppress_errors: true) do |o|
|
|
46
45
|
o.banner = "Usage: zold remove [ID...] [options]
|
|
47
46
|
Available options:"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/commands/show.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -48,7 +48,6 @@ module Zold
|
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
def run(args = [])
|
|
51
|
-
@log.debug("Show.run(#{args.join(' ')})")
|
|
52
51
|
opts = Slop.parse(args, help: true, suppress_errors: true) do |o|
|
|
53
52
|
o.banner = "Usage: zold show [ID...] [options]
|
|
54
53
|
Available options:"
|
data/lib/zold/commands/taxes.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -61,7 +61,6 @@ module Zold
|
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
def run(args = [])
|
|
64
|
-
@log.debug("Taxes.run(#{args.join(' ')})")
|
|
65
64
|
opts = Slop.parse(args, help: true, suppress_errors: true) do |o|
|
|
66
65
|
o.banner = "Usage: zold taxes command [options]
|
|
67
66
|
Available commands:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/copies.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/dir_items.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/endless.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/gem.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/hands.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/head.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/zold/hexnum.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2018-
|
|
3
|
+
# Copyright (c) 2018-2023 Zerocracy, Inc.
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|