coins_paid_rails 1.1.3 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +5 -5
- data/Gemfile +1 -0
- data/Gemfile.lock +70 -68
- data/coins_paid_rails.gemspec +2 -2
- data/lib/coins_paid/qr_code.rb +8 -4
- data/lib/coins_paid.rb +5 -0
- data/spec/issued_addresses_spec.rb +20 -0
- data/spec/qr_code_spec.rb +39 -6
- data/spec/spec_helper.rb +1 -0
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab34308c6f8735c1ab2b0c30a24faa2c11719b5017e8aca9697fa70cc85b0c32
|
4
|
+
data.tar.gz: 64151ea8d034672fd678555036a82e3f191cbb11beedc015a5653b7982c7e449
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3555750af1c3766d2bd96af8085258a2617f45e8c2a23f66f5b1cdc172da54366e2e3ba84e64bdb02985176fff5d55a482a0d784d5cac676c9caecb98a976fe
|
7
|
+
data.tar.gz: 167e712d1860a1b2ad29cea848bf25bd601531a55648ed40e89d13ed5503ed9c94203ddaabb4987ef72edfe0a22c4e2b6cef7cfa1990cc597d5dd357a67a2b3b
|
data/.circleci/config.yml
CHANGED
@@ -35,12 +35,12 @@ jobs:
|
|
35
35
|
- restore_cache:
|
36
36
|
key: v4-repo-{{ .Environment.CIRCLE_SHA1 }}
|
37
37
|
- restore_cache:
|
38
|
-
key: v4-bundle-{{ checksum "Gemfile" }}
|
38
|
+
key: v4-bundle-{{ checksum "Gemfile.lock" }}
|
39
39
|
- run: echo "export rvm_ignore_gemsets_flag=1" >> ~/.rvmrc
|
40
40
|
- run: sudo apt-get update && sudo apt-get install -y libsodium-dev
|
41
|
-
- run: bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
|
41
|
+
- run: bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
|
42
42
|
- save_cache:
|
43
|
-
key: v4-bundle-{{ checksum "Gemfile" }}
|
43
|
+
key: v4-bundle-{{ checksum "Gemfile.lock" }}
|
44
44
|
paths:
|
45
45
|
- ~/coins_paid/vendor/bundle
|
46
46
|
|
@@ -55,7 +55,7 @@ jobs:
|
|
55
55
|
- restore_cache:
|
56
56
|
key: v4-repo-{{ .Environment.CIRCLE_SHA1 }}
|
57
57
|
- restore_cache:
|
58
|
-
key: v4-bundle-{{ checksum "Gemfile" }}
|
58
|
+
key: v4-bundle-{{ checksum "Gemfile.lock" }}
|
59
59
|
- attach_workspace:
|
60
60
|
at: ~/coins_paid
|
61
61
|
- run: sudo apt-get update && sudo apt-get install -y libsodium-dev
|
@@ -83,7 +83,7 @@ jobs:
|
|
83
83
|
- restore_cache:
|
84
84
|
key: v4-repo-{{ .Environment.CIRCLE_SHA1 }}
|
85
85
|
- restore_cache:
|
86
|
-
key: v4-bundle-{{ checksum "Gemfile" }}
|
86
|
+
key: v4-bundle-{{ checksum "Gemfile.lock" }}
|
87
87
|
- run: mkdir -p ~/.ssh && ssh-keyscan -H github.com >> ~/.ssh/known_hosts
|
88
88
|
- run: sudo apt-get update && sudo apt-get install -y libsodium-dev
|
89
89
|
- run: bundle check --path vendor/bundle
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
coins_paid_rails (1.
|
5
|
-
activerecord (
|
4
|
+
coins_paid_rails (1.1.7)
|
5
|
+
activerecord (~> 6.1.4)
|
6
6
|
coins_paid_api (~> 1.0)
|
7
7
|
dry-initializer (~> 3.0)
|
8
8
|
dry-struct (~> 1.0)
|
@@ -10,137 +10,139 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: http://www.rubygems.org/
|
12
12
|
specs:
|
13
|
-
actionpack (
|
14
|
-
actionview (=
|
15
|
-
activesupport (=
|
16
|
-
rack (~> 2.0, >= 2.0.
|
13
|
+
actionpack (6.1.4.1)
|
14
|
+
actionview (= 6.1.4.1)
|
15
|
+
activesupport (= 6.1.4.1)
|
16
|
+
rack (~> 2.0, >= 2.0.9)
|
17
17
|
rack-test (>= 0.6.3)
|
18
18
|
rails-dom-testing (~> 2.0)
|
19
|
-
rails-html-sanitizer (~> 1.0, >= 1.0
|
20
|
-
actionview (
|
21
|
-
activesupport (=
|
19
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
20
|
+
actionview (6.1.4.1)
|
21
|
+
activesupport (= 6.1.4.1)
|
22
22
|
builder (~> 3.1)
|
23
23
|
erubi (~> 1.4)
|
24
24
|
rails-dom-testing (~> 2.0)
|
25
|
-
rails-html-sanitizer (~> 1.
|
26
|
-
activemodel (
|
27
|
-
activesupport (=
|
28
|
-
activerecord (
|
29
|
-
activemodel (=
|
30
|
-
activesupport (=
|
31
|
-
|
32
|
-
activesupport (5.2.4.4)
|
25
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
26
|
+
activemodel (6.1.4.1)
|
27
|
+
activesupport (= 6.1.4.1)
|
28
|
+
activerecord (6.1.4.1)
|
29
|
+
activemodel (= 6.1.4.1)
|
30
|
+
activesupport (= 6.1.4.1)
|
31
|
+
activesupport (6.1.4.1)
|
33
32
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
34
|
-
i18n (>=
|
35
|
-
minitest (
|
36
|
-
tzinfo (~>
|
37
|
-
|
33
|
+
i18n (>= 1.6, < 2)
|
34
|
+
minitest (>= 5.1)
|
35
|
+
tzinfo (~> 2.0)
|
36
|
+
zeitwerk (~> 2.3)
|
38
37
|
builder (3.2.4)
|
39
|
-
|
38
|
+
chunky_png (1.4.0)
|
39
|
+
coins_paid_api (1.0.7)
|
40
40
|
dry-struct (~> 1.0)
|
41
41
|
faraday (~> 0.12)
|
42
42
|
faraday_middleware (~> 0.11)
|
43
|
-
concurrent-ruby (1.1.
|
43
|
+
concurrent-ruby (1.1.9)
|
44
44
|
crass (1.0.6)
|
45
45
|
diff-lcs (1.4.4)
|
46
46
|
docile (1.1.5)
|
47
|
-
dry-configurable (0.
|
47
|
+
dry-configurable (0.12.1)
|
48
48
|
concurrent-ruby (~> 1.0)
|
49
|
-
dry-core (~> 0.
|
50
|
-
dry-equalizer (~> 0.2)
|
49
|
+
dry-core (~> 0.5, >= 0.5.0)
|
51
50
|
dry-container (0.7.2)
|
52
51
|
concurrent-ruby (~> 1.0)
|
53
52
|
dry-configurable (~> 0.1, >= 0.1.3)
|
54
|
-
dry-core (0.
|
53
|
+
dry-core (0.6.0)
|
55
54
|
concurrent-ruby (~> 1.0)
|
56
|
-
dry-equalizer (0.3.0)
|
57
55
|
dry-inflector (0.2.0)
|
58
56
|
dry-initializer (3.0.4)
|
59
|
-
dry-logic (1.0
|
57
|
+
dry-logic (1.2.0)
|
60
58
|
concurrent-ruby (~> 1.0)
|
61
|
-
dry-core (~> 0.
|
62
|
-
|
63
|
-
|
64
|
-
dry-
|
65
|
-
dry-equalizer (~> 0.3)
|
66
|
-
dry-types (~> 1.3)
|
59
|
+
dry-core (~> 0.5, >= 0.5)
|
60
|
+
dry-struct (1.4.0)
|
61
|
+
dry-core (~> 0.5, >= 0.5)
|
62
|
+
dry-types (~> 1.5)
|
67
63
|
ice_nine (~> 0.11)
|
68
|
-
dry-types (1.
|
64
|
+
dry-types (1.5.1)
|
69
65
|
concurrent-ruby (~> 1.0)
|
70
66
|
dry-container (~> 0.3)
|
71
|
-
dry-core (~> 0.
|
72
|
-
dry-equalizer (~> 0.3)
|
67
|
+
dry-core (~> 0.5, >= 0.5)
|
73
68
|
dry-inflector (~> 0.1, >= 0.1.2)
|
74
69
|
dry-logic (~> 1.0, >= 1.0.2)
|
75
70
|
erubi (1.10.0)
|
76
|
-
faraday (0.17.
|
71
|
+
faraday (0.17.4)
|
77
72
|
multipart-post (>= 1.2, < 3)
|
78
73
|
faraday_middleware (0.14.0)
|
79
74
|
faraday (>= 0.7.4, < 1.0)
|
80
|
-
i18n (1.8.
|
75
|
+
i18n (1.8.10)
|
81
76
|
concurrent-ruby (~> 1.0)
|
82
77
|
ice_nine (0.11.2)
|
83
78
|
json (2.3.0)
|
84
|
-
loofah (2.
|
79
|
+
loofah (2.12.0)
|
85
80
|
crass (~> 1.0.2)
|
86
81
|
nokogiri (>= 1.5.9)
|
87
82
|
method_source (1.0.0)
|
88
|
-
mini_portile2 (2.
|
89
|
-
minitest (5.14.
|
83
|
+
mini_portile2 (2.6.1)
|
84
|
+
minitest (5.14.4)
|
90
85
|
multipart-post (2.1.1)
|
91
|
-
nokogiri (1.
|
92
|
-
mini_portile2 (~> 2.
|
86
|
+
nokogiri (1.12.5)
|
87
|
+
mini_portile2 (~> 2.6.1)
|
88
|
+
racc (~> 1.4)
|
89
|
+
racc (1.5.2)
|
93
90
|
rack (2.2.3)
|
94
91
|
rack-test (1.1.0)
|
95
92
|
rack (>= 1.0, < 3)
|
96
93
|
rails-dom-testing (2.0.3)
|
97
94
|
activesupport (>= 4.2.0)
|
98
95
|
nokogiri (>= 1.6)
|
99
|
-
rails-html-sanitizer (1.
|
96
|
+
rails-html-sanitizer (1.4.2)
|
100
97
|
loofah (~> 2.3)
|
101
|
-
railties (
|
102
|
-
actionpack (=
|
103
|
-
activesupport (=
|
98
|
+
railties (6.1.4.1)
|
99
|
+
actionpack (= 6.1.4.1)
|
100
|
+
activesupport (= 6.1.4.1)
|
104
101
|
method_source
|
105
|
-
rake (>= 0.
|
106
|
-
thor (
|
107
|
-
rake (13.0.
|
108
|
-
|
102
|
+
rake (>= 0.13)
|
103
|
+
thor (~> 1.0)
|
104
|
+
rake (13.0.6)
|
105
|
+
rqrcode (2.1.0)
|
106
|
+
chunky_png (~> 1.0)
|
107
|
+
rqrcode_core (~> 1.0)
|
108
|
+
rqrcode_core (1.2.0)
|
109
|
+
rspec-core (3.10.1)
|
109
110
|
rspec-support (~> 3.10.0)
|
110
|
-
rspec-expectations (3.10.
|
111
|
+
rspec-expectations (3.10.1)
|
111
112
|
diff-lcs (>= 1.2.0, < 2.0)
|
112
113
|
rspec-support (~> 3.10.0)
|
113
114
|
rspec-its (1.3.0)
|
114
115
|
rspec-core (>= 3.0.0)
|
115
116
|
rspec-expectations (>= 3.0.0)
|
116
|
-
rspec-mocks (3.10.
|
117
|
+
rspec-mocks (3.10.2)
|
117
118
|
diff-lcs (>= 1.2.0, < 2.0)
|
118
119
|
rspec-support (~> 3.10.0)
|
119
|
-
rspec-rails (
|
120
|
-
actionpack (>=
|
121
|
-
activesupport (>=
|
122
|
-
railties (>=
|
123
|
-
rspec-core (~> 3.
|
124
|
-
rspec-expectations (~> 3.
|
125
|
-
rspec-mocks (~> 3.
|
126
|
-
rspec-support (~> 3.
|
127
|
-
rspec-support (3.10.
|
120
|
+
rspec-rails (5.0.2)
|
121
|
+
actionpack (>= 5.2)
|
122
|
+
activesupport (>= 5.2)
|
123
|
+
railties (>= 5.2)
|
124
|
+
rspec-core (~> 3.10)
|
125
|
+
rspec-expectations (~> 3.10)
|
126
|
+
rspec-mocks (~> 3.10)
|
127
|
+
rspec-support (~> 3.10)
|
128
|
+
rspec-support (3.10.2)
|
128
129
|
simplecov (0.13.0)
|
129
130
|
docile (~> 1.1.0)
|
130
131
|
json (>= 1.8, < 3)
|
131
132
|
simplecov-html (~> 0.10.0)
|
132
133
|
simplecov-html (0.10.2)
|
133
134
|
sqlite3 (1.4.2)
|
134
|
-
thor (1.0
|
135
|
-
|
136
|
-
|
137
|
-
|
135
|
+
thor (1.1.0)
|
136
|
+
tzinfo (2.0.4)
|
137
|
+
concurrent-ruby (~> 1.0)
|
138
|
+
zeitwerk (2.4.2)
|
138
139
|
|
139
140
|
PLATFORMS
|
140
141
|
ruby
|
141
142
|
|
142
143
|
DEPENDENCIES
|
143
144
|
coins_paid_rails!
|
145
|
+
rqrcode
|
144
146
|
rspec-its
|
145
147
|
rspec-rails
|
146
148
|
simplecov
|
data/coins_paid_rails.gemspec
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'coins_paid_rails'
|
3
3
|
s.authors = ['Artem Biserov(artembiserov)', 'Oleg Ivanov(morhekil)']
|
4
|
-
s.version = '1.1.
|
4
|
+
s.version = '1.1.8'
|
5
5
|
s.files = `git ls-files`.split("\n")
|
6
6
|
s.summary = 'CoinsPaid Rails Integration'
|
7
7
|
s.license = 'MIT'
|
8
8
|
|
9
9
|
s.add_runtime_dependency 'coins_paid_api', '~> 1.0'
|
10
|
-
s.add_runtime_dependency 'activerecord', '
|
10
|
+
s.add_runtime_dependency 'activerecord', '~> 6.1.4'
|
11
11
|
s.add_runtime_dependency 'dry-initializer', '~> 3.0'
|
12
12
|
s.add_runtime_dependency 'dry-struct', '~> 1.0'
|
13
13
|
s.add_development_dependency 'rspec-rails'
|
data/lib/coins_paid/qr_code.rb
CHANGED
@@ -10,15 +10,15 @@ module CoinsPaid
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def url
|
13
|
-
"#{token_type}:#{address}?label=#{encode(label)}&message=#{encode(message)}"
|
13
|
+
known_url? ? "#{token_type}:#{address.address}?label=#{encode(label)}&message=#{encode(message)}" : nil
|
14
14
|
end
|
15
15
|
|
16
16
|
def address
|
17
|
-
@address ||= CoinsPaid.address(player_id, currency: currency)
|
17
|
+
@address ||= CoinsPaid.address(player_id, currency: currency)
|
18
18
|
end
|
19
19
|
|
20
20
|
def svg
|
21
|
-
RQRCode::QRCode.new(url).as_svg(
|
21
|
+
RQRCode::QRCode.new(url || address.address).as_svg(
|
22
22
|
offset: 0,
|
23
23
|
color: '000',
|
24
24
|
shape_rendering: 'crispEdges',
|
@@ -30,11 +30,15 @@ module CoinsPaid
|
|
30
30
|
private
|
31
31
|
|
32
32
|
def token_type
|
33
|
-
ADDRESS_PREFIXES
|
33
|
+
ADDRESS_PREFIXES[currency]
|
34
34
|
end
|
35
35
|
|
36
36
|
def encode(string)
|
37
37
|
URI.encode_www_form_component(string)
|
38
38
|
end
|
39
|
+
|
40
|
+
def known_url?
|
41
|
+
token_type.present?
|
42
|
+
end
|
39
43
|
end
|
40
44
|
end
|
data/lib/coins_paid.rb
CHANGED
@@ -15,6 +15,7 @@ module CoinsPaid
|
|
15
15
|
ADDRESS_PREFIXES = {
|
16
16
|
'BTC' => 'bitcoin',
|
17
17
|
'BCH' => 'bitcoincash',
|
18
|
+
'DOGE' => 'doge',
|
18
19
|
'ETH' => 'ethereum',
|
19
20
|
'EURTE' => 'ethereum',
|
20
21
|
'LTC' => 'litecoin',
|
@@ -35,4 +36,8 @@ module CoinsPaid
|
|
35
36
|
def currency(name)
|
36
37
|
CoinsPaid::API.currencies_list.find { |item| item.currency == name } || raise(UnknownCurrency, name)
|
37
38
|
end
|
39
|
+
|
40
|
+
def issued_addresses(foreign_id)
|
41
|
+
CoinsPaidAddress.where(foreign_id: foreign_id).order(:currency)
|
42
|
+
end
|
38
43
|
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
describe CoinsPaid, '.issued_addresses' do
|
4
|
+
let(:foreign_id) { 123 }
|
5
|
+
|
6
|
+
it 'returns addresses with requested foreign_id ordered by currency' do
|
7
|
+
attrs = {
|
8
|
+
foreign_id: foreign_id,
|
9
|
+
currency: 'BTC',
|
10
|
+
address: 'addr',
|
11
|
+
external_id: 1
|
12
|
+
}
|
13
|
+
|
14
|
+
addr1 = CoinsPaid::CoinsPaidAddress.create!(attrs)
|
15
|
+
addr2 = CoinsPaid::CoinsPaidAddress.create!(attrs.merge(currency: 'ETH'))
|
16
|
+
CoinsPaid::CoinsPaidAddress.create!(attrs.merge(foreign_id: 555))
|
17
|
+
|
18
|
+
expect(CoinsPaid.issued_addresses(foreign_id)).to eq [addr1, addr2]
|
19
|
+
end
|
20
|
+
end
|
data/spec/qr_code_spec.rb
CHANGED
@@ -2,25 +2,58 @@
|
|
2
2
|
|
3
3
|
describe CoinsPaid, '.qr_code' do
|
4
4
|
let(:foreign_id) { 123 }
|
5
|
+
let(:currency) { 'BTC' }
|
6
|
+
let(:address) { 'abc123' }
|
5
7
|
let(:coins_paid_address) do
|
6
8
|
instance_double CoinsPaid::CoinsPaidAddress,
|
7
|
-
|
8
|
-
|
9
|
+
currency: currency,
|
10
|
+
address: address
|
9
11
|
end
|
10
12
|
subject(:qr_code) do
|
11
13
|
described_class.qr_code(
|
12
14
|
foreign_id,
|
13
|
-
currency:
|
15
|
+
currency: currency,
|
14
16
|
label: 'RedStar deposit',
|
15
17
|
message: 'Make a deposit to RedStar'
|
16
18
|
)
|
17
19
|
end
|
18
20
|
|
19
21
|
before do
|
20
|
-
allow(CoinsPaid).to receive(:address).with(foreign_id, currency:
|
22
|
+
allow(CoinsPaid).to receive(:address).with(foreign_id, currency: currency).and_return(coins_paid_address)
|
21
23
|
end
|
22
24
|
|
23
|
-
|
24
|
-
|
25
|
+
context 'it is known how to build payment url for the currency' do
|
26
|
+
let(:currency) { 'BTC' }
|
27
|
+
let(:url) { "bitcoin:#{address}?label=RedStar+deposit&message=Make+a+deposit+to+RedStar" }
|
28
|
+
|
29
|
+
describe '#url' do
|
30
|
+
its(:url) { is_expected.to eq url }
|
31
|
+
end
|
32
|
+
|
33
|
+
describe '#svg' do
|
34
|
+
it 'encodes payment url' do
|
35
|
+
expect(RQRCode::QRCode).to receive(:new).with(url).and_call_original
|
36
|
+
qr_code.svg
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
context 'it is not known how to build payment url for the currency' do
|
42
|
+
let(:currency) { 'BNB' }
|
43
|
+
|
44
|
+
describe '#url' do
|
45
|
+
its(:url) { is_expected.to be_nil }
|
46
|
+
end
|
47
|
+
|
48
|
+
describe '#svg' do
|
49
|
+
it 'encodes payment address' do
|
50
|
+
expect(RQRCode::QRCode).to receive(:new).with(address).and_call_original
|
51
|
+
qr_code.svg
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
context '#address' do
|
57
|
+
its(:address) { is_expected.to eq coins_paid_address }
|
25
58
|
end
|
26
59
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coins_paid_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Biserov(artembiserov)
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-09-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: coins_paid_api
|
@@ -29,16 +29,16 @@ dependencies:
|
|
29
29
|
name: activerecord
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: 6.1.4
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: 6.1.4
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: dry-initializer
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- lib/generators/coins_paid/templates/migration.rb
|
105
105
|
- spec/address_spec.rb
|
106
106
|
- spec/currency_spec.rb
|
107
|
+
- spec/issued_addresses_spec.rb
|
107
108
|
- spec/qr_code_spec.rb
|
108
109
|
- spec/spec_helper.rb
|
109
110
|
- spec/support/database/create_table.rb
|