satsnames 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +3 -0
- data/Manifest.txt +7 -0
- data/README.md +79 -0
- data/Rakefile +29 -0
- data/config/relays.2023.csv +170 -0
- data/lib/satsnames/version.rb +22 -0
- data/lib/satsnames.rb +99 -0
- metadata +104 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 971286b027db09a220a08e877f53bc42292bdb1f6cb1570d0ffb6868813c5398
|
4
|
+
data.tar.gz: 906aba2b588add29601c7efc29ef3e0c3d6c07a2117ae7676b7a5add2c2cdfe5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4801b521836823ce7fbe4d27bb767f95ae95d1a392c05a01d21a11c46986843f27563f8630a516e29cbbc123cee28b3c7bf3055bdb8988d69239330ec45d00d4
|
7
|
+
data.tar.gz: 576ad305d055630c7490d5a13033e2a9274867c7e4a91773f90a4f37f23e0d046e5f84e955cd50344494753b6e028d6061e7cd5afd5800e4142f81fbf08de9a0
|
data/CHANGELOG.md
ADDED
data/Manifest.txt
ADDED
data/README.md
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
# Sats Names Helpers for Bitcoin Ordinal Inscription Names, Relays And More
|
2
|
+
|
3
|
+
satsnames - sats names helpers for bitcoin ordinal inscription names, relays and more
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
* home :: [github.com/ordbase/satsnames](https://github.com/ordbase/satsnames)
|
8
|
+
* bugs :: [github.com/ordbase/satsnames/issues](https://github.com/ordbase/satsnames/issues)
|
9
|
+
* gem :: [rubygems.org/gems/satsnames](https://rubygems.org/gems/satsnames)
|
10
|
+
* rdoc :: [rubydoc.info/gems/satsnames](http://rubydoc.info/gems/satsnames)
|
11
|
+
|
12
|
+
|
13
|
+
## What's Sats Names?
|
14
|
+
|
15
|
+
Sats Names is a standard for writing names to bitcoin using ordinals. The goal is to build a name ecosystem for bitcoin.
|
16
|
+
|
17
|
+
More @ [docs.satsnames.org »](https://docs.satsnames.org)
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
Lookup ordinal inscription ids by name via the `Sats` helper:
|
24
|
+
|
25
|
+
``` ruby
|
26
|
+
require 'satsnames'
|
27
|
+
|
28
|
+
## let's try some name relays:
|
29
|
+
Sats[ 'bitcoin.paper'] #=> '85b10531435304cbe47d268106b58b57a4416c76573d4b50fa544432597ad670i0'
|
30
|
+
Sats[ 'cypherpunk.paper'] #=> '8277fca13d0d5ccf70b5930e351494768ae6ed6759b318b403df229318984af3i0'
|
31
|
+
Sats[ 'snake.game' ] #=> '315198afb24aed9bc0b68f222eb6f2e976b7ab62bac456b30f26cbb8b893ae55i0'
|
32
|
+
Sats[ 'breakout.game' ] #=> '6cc328043c8e8837a421e2b869026363010fb10a5e50f89005187cadc429a821i0'
|
33
|
+
Sats[ '2048.game' ] #=> '2d7dcad13f149e82c5f2c77b003d55b3837df3710e30ed14aa3566625de28a53i0'
|
34
|
+
|
35
|
+
# and so on
|
36
|
+
```
|
37
|
+
|
38
|
+
That's it.
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
## Inside the "Off-Chain" Sat Names Relay to Bitcoin Inscription Ids
|
43
|
+
|
44
|
+
Note: The (sats) name (relay) to (inscription) id mappings
|
45
|
+
are fow now stored
|
46
|
+
in datafiles in the comma-separated value (.csv) format
|
47
|
+
and split by year (e.g. 2023, 2024, ..., etc.)
|
48
|
+
|
49
|
+
Example - [config/relays.2023.csv](config/relays.2023.csv):
|
50
|
+
|
51
|
+
``` csv
|
52
|
+
name, id
|
53
|
+
bitcoin.paper, 85b10531435304cbe47d268106b58b57a4416c76573d4b50fa544432597ad670i0
|
54
|
+
cypherpunk.paper, 8277fca13d0d5ccf70b5930e351494768ae6ed6759b318b403df229318984af3i0
|
55
|
+
snake.game, 315198afb24aed9bc0b68f222eb6f2e976b7ab62bac456b30f26cbb8b893ae55i0
|
56
|
+
breakout.game, 6cc328043c8e8837a421e2b869026363010fb10a5e50f89005187cadc429a821i0
|
57
|
+
2048.game, 2d7dcad13f149e82c5f2c77b003d55b3837df3710e30ed14aa3566625de28a53i0
|
58
|
+
flieka.joelle, 2f78bcf10a94b675aa744ecb4572b93b1ab2a0fb601799c5c47ecc17d95044fdi0
|
59
|
+
...
|
60
|
+
```
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
## License
|
68
|
+
|
69
|
+
The scripts are dedicated to the public domain.
|
70
|
+
Use it as you please with no restrictions whatsoever.
|
71
|
+
|
72
|
+
|
73
|
+
## Questions? Comments?
|
74
|
+
|
75
|
+
Join us in the [Ordgen / ORC-721 discord (chat server)](https://discord.gg/dDhvHKjm2t). Yes you can.
|
76
|
+
Your questions and commetary welcome.
|
77
|
+
|
78
|
+
|
79
|
+
Or post them over at the [Help & Support](https://github.com/geraldb/help) page. Thanks.
|
data/Rakefile
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'hoe'
|
2
|
+
require './lib/satsnames/version.rb'
|
3
|
+
|
4
|
+
Hoe.spec 'satsnames' do
|
5
|
+
|
6
|
+
self.version = Sats::VERSION
|
7
|
+
|
8
|
+
self.summary = "satsnames - sats names helpers for bitcoin ordinal inscription names, relays and more"
|
9
|
+
self.description = summary
|
10
|
+
|
11
|
+
self.urls = { home: 'https://github.com/ordbase/ordbase' }
|
12
|
+
|
13
|
+
self.author = 'Gerald Bauer'
|
14
|
+
self.email = 'gerald.bauer@gmail.com'
|
15
|
+
|
16
|
+
# switch extension to .markdown for gihub formatting
|
17
|
+
self.readme_file = 'README.md'
|
18
|
+
self.history_file = 'CHANGELOG.md'
|
19
|
+
|
20
|
+
self.extra_deps = [
|
21
|
+
['cocos'],
|
22
|
+
]
|
23
|
+
|
24
|
+
self.licenses = ['Public Domain']
|
25
|
+
|
26
|
+
self.spec_extras = {
|
27
|
+
required_ruby_version: '>= 2.3'
|
28
|
+
}
|
29
|
+
end
|
@@ -0,0 +1,170 @@
|
|
1
|
+
name, id
|
2
|
+
genesis.district, 86539aff946c437af8088955827b7e6ff48fc6192836d4071b697b5359b7a732i0
|
3
|
+
one.district, 25d1f1e62951450f368d8a44977d58d143db799752cb32ca8836e54f35bda069i0
|
4
|
+
casey.district, ca94587e296c1e01a9163f3583ce441febc80ee0612913921b86e449137e66aci0
|
5
|
+
billionaire.district, a00e806b17f2ea87ea2436a1a294f38e8b9fb36a79b3580471f7897f942eb0c6i0
|
6
|
+
pizza.district, a00e806b17f2ea87ea2436a1a294f38e8b9fb36a79b3580471f7897f942eb0c6i0
|
7
|
+
gm.district, b0b723d73a9a62285787dd16b237fa684f37791409e0bcf85ffc28f709c08953i0
|
8
|
+
game.district, eb95ab69b0d7879557baf33d3c4429e34865446bfaf09e3e53a061ceefcb140bi0
|
9
|
+
music.district, e68174f5b1bdd663b7edd7b3a9ce4ef540027f9ed73660da3a5ebd0262041b31i0
|
10
|
+
anime.district, 16afc93948d07c03300067b0729466f98bff06db9056a3ef00074ac3a703ac6bi0
|
11
|
+
paradigm.district, 1c9d808e10e89a36eb09f42c8d66700c09cdb303c5a65a2e25faa587055071f2i0
|
12
|
+
amazon.district, df9222a5c40334fb3166737d62798965dfc1084fe96671d9cef80d866643dbaci0
|
13
|
+
nike.district, 11260c314014392bdeb75302c072b300c145411ed674732e2c854178d8b15774i0
|
14
|
+
coca-cola.district, 2fa7c9aef9d10b126f06681d3165c772d4dc09ec797427b7d15d60f1c45c9e96i0
|
15
|
+
satoshinakamato.district, 86539aff946c437af8088955827b7e6ff48fc6192836d4071b697b5359b7a732i0
|
16
|
+
rare.district, d48e0c030b456fd2c259fd9fa012b39d7b342db19576dbb6f42cca616e9172ebi0
|
17
|
+
btc.district, e2ebd865f21bc6de0c2dfd6d44abba21e2ff469a15a4d51bdd0cd6b3d0873252i0
|
18
|
+
sats.district, 1da22fb096a512aae78b14ce0b73c7f353a1451e526387ee17e8ada666cc69c2i0
|
19
|
+
bitmap.district, 9336979338ff8204b6fec9cd88642c977656fb14f58846a71a5644b319dc908bi0
|
20
|
+
bitcoin.district, 3b84d2f5442c832d26ef0f9d408029b8b7c094a8d78b3a9e4f6e548aa908d8c3i0
|
21
|
+
btc.district, 95899189ffbcbfdf8a41be0f999c58db9b28717095769323f1c969203c2aa294i0
|
22
|
+
sats.district, eeb21e835b9eec57deca3ceed890f207e847ad5e259dd62fa3e93bf2de2fadddi0
|
23
|
+
bitmap.district, 50cc83a9402311b27fbd8ec4317ff3d03adfc11924db69f86a16a989eeed2678i0
|
24
|
+
opensea.district, 1832b1a758b40d787d15d6eb8359d7f1c3b9e4b639ac792daa8b241ccea2780ai0
|
25
|
+
nft.district, c00701af3ebfe96edc35dfbe426acc8f03947a4f43b73948fb83844911056e62i0
|
26
|
+
metaverse.district, f4b572241e97055e534e53fd4f86b1f40f1fa7f2f96184c07880212ef3738c54i0
|
27
|
+
apple.district, e0dfc286dbc1e461e88057ad82d6b8823ca637512d0d6b71e4ce0965b9f0268bi0
|
28
|
+
microsoft.district, 328b64b8abb8f34fdd1b778912895a8c35e9296c28645700fe1dac523ca3e7cai0
|
29
|
+
trade.district, f3ba848558f3b2bde03e74b02c79ac70d16f5cff79cf8651744d045b38adfa01i0
|
30
|
+
google.district, 91bd51d9fa335fcec6b0fb7cabf7aa070af086d2e50e388d4d61dadbc3d3cecfi0
|
31
|
+
elonmusk.district, 14839e28387999e82163be6365883ecd69173b88f03ffe798137564ec959a563i0
|
32
|
+
boredapeyachtclub.district, c5d436e3670a9701b9b5e124a812e769750a1a81220ec577f51446bb5a775cedi0
|
33
|
+
0.district, 96106153cb109862882b7a916984dbcaa7785d45ed902679b516e8908e68cd4di0
|
34
|
+
cryptopunks.district, c5d436e3670a9701b9b5e124a812e769750a1a81220ec577f51446bb5a775cedi0
|
35
|
+
azuki.district, a8615aafb600742377cf3de8554385b30fa481059911b89538c7940fdd757c97i0
|
36
|
+
bitcoinfrogs.district, ee0a773f1bed276f2c21b953a49d73c8ec1adfb3be046dca3b1fd676f8a758dai0
|
37
|
+
1.district, ee0a773f1bed276f2c21b953a49d73c8ec1adfb3be046dca3b1fd676f8a758dai0
|
38
|
+
boredapeyachtclub.district, 404a99de06e8296204a3738fad8c5319d9c8612d5effcca9d5d0e1aae243a467i0
|
39
|
+
vitalik.district, 7b71b6f9e1e66a8fa96ec5712e0561114c37d86fb317b4e9f80ef6eb4d9276b4i0
|
40
|
+
2.district, ee0a773f1bed276f2c21b953a49d73c8ec1adfb3be046dca3b1fd676f8a758dai0
|
41
|
+
4.district, ee0a773f1bed276f2c21b953a49d73c8ec1adfb3be046dca3b1fd676f8a758dai0
|
42
|
+
3.district, ee0a773f1bed276f2c21b953a49d73c8ec1adfb3be046dca3b1fd676f8a758dai0
|
43
|
+
5.district, ee0a773f1bed276f2c21b953a49d73c8ec1adfb3be046dca3b1fd676f8a758dai0
|
44
|
+
6.district, 9105eca609deec75586219d7487874e5064ef63fec6eff6f0787ff4a43c7ada2i0
|
45
|
+
7.district, 9105eca609deec75586219d7487874e5064ef63fec6eff6f0787ff4a43c7ada2i0
|
46
|
+
9.district, 9105eca609deec75586219d7487874e5064ef63fec6eff6f0787ff4a43c7ada2i0
|
47
|
+
1.district, 9105eca609deec75586219d7487874e5064ef63fec6eff6f0787ff4a43c7ada2i0
|
48
|
+
0.district, 9105eca609deec75586219d7487874e5064ef63fec6eff6f0787ff4a43c7ada2i0
|
49
|
+
8.district, 42e35206983eabfb09e0c1c8741e98c65a78a824f1550c7e1229b2e252bdf31fi0
|
50
|
+
6.district, 9105eca609deec75586219d7487874e5064ef63fec6eff6f0787ff4a43c7ada2i0
|
51
|
+
xen.district, 33c39cb8455e5c8f0b7d8f528a0cee0c1c6a75a7d91ef5502ecfc0f3131eb40ai0
|
52
|
+
punk.district, 33c39cb8455e5c8f0b7d8f528a0cee0c1c6a75a7d91ef5502ecfc0f3131eb40ai0
|
53
|
+
love.district, 33c39cb8455e5c8f0b7d8f528a0cee0c1c6a75a7d91ef5502ecfc0f3131eb40ai0
|
54
|
+
meta.district, 33c39cb8455e5c8f0b7d8f528a0cee0c1c6a75a7d91ef5502ecfc0f3131eb40ai0
|
55
|
+
fantasy.district, 33c39cb8455e5c8f0b7d8f528a0cee0c1c6a75a7d91ef5502ecfc0f3131eb40ai0
|
56
|
+
x.district, 33c39cb8455e5c8f0b7d8f528a0cee0c1c6a75a7d91ef5502ecfc0f3131eb40ai0
|
57
|
+
sex.district, 33c39cb8455e5c8f0b7d8f528a0cee0c1c6a75a7d91ef5502ecfc0f3131eb40ai0
|
58
|
+
pornhub.district, 33c39cb8455e5c8f0b7d8f528a0cee0c1c6a75a7d91ef5502ecfc0f3131eb40ai0
|
59
|
+
casino.district, 33c39cb8455e5c8f0b7d8f528a0cee0c1c6a75a7d91ef5502ecfc0f3131eb40ai0
|
60
|
+
crypto.district, 33c39cb8455e5c8f0b7d8f528a0cee0c1c6a75a7d91ef5502ecfc0f3131eb40ai0
|
61
|
+
spacex.district, 33c39cb8455e5c8f0b7d8f528a0cee0c1c6a75a7d91ef5502ecfc0f3131eb40ai0
|
62
|
+
crypto.district, 33c39cb8455e5c8f0b7d8f528a0cee0c1c6a75a7d91ef5502ecfc0f3131eb40ai0
|
63
|
+
area51.district, 33c39cb8455e5c8f0b7d8f528a0cee0c1c6a75a7d91ef5502ecfc0f3131eb40ai0
|
64
|
+
pepe.district, 729f382c4f051f4630306e23ff42838a7875a53d0aeca127031e7b6cedb5357fi0
|
65
|
+
695.district, d0d53577d7a4bebf1af82821709b3e9c97cab1560d85f26f9e184cbe6b395c4bi0
|
66
|
+
269.district, f77930be8e91a78fda80475c5e20deb8cb196d6a79cc36316b34d87c8cc81402i0
|
67
|
+
169.district, e09c240953946a571d2d751738f6f36d2dff35262d541ac707806d995ee17664i0
|
68
|
+
698.district, 2077a2557364c66579588bad8b8691f77eb757be621c8d0e07383783f57a4259i0
|
69
|
+
696.district, 72aebb005cdda245577e1b8c2c79f3aabd793f9f564a34d384ce6af26061ab53i0
|
70
|
+
690.district, c0276a11db1044a03ce91ae234e8e5e89dea8a98a1f860a067d4d62af5353b13i0
|
71
|
+
569.district, e999d02eb12ec7eeb3123844d97dd1304c681fdf111d934cd280085acd5b3c12i0
|
72
|
+
693.district, 0c3fe3e7849d739a998b78a07f1ab1555bc8a3e4b6e686367152d939816a3c3bi0
|
73
|
+
369.district, f9e7267f0a5042ab614dfcedadfee6f191df055289ac46951b1bd34fd4d13611i0
|
74
|
+
697.district, 51b3eaee9d44723754da36df7a6986d9554a84312b6f0ed566a19f032581a155i0
|
75
|
+
699.district, fe96437f9daf6cc163dba5a2bb5d1c1fbb095859e9e3af0dc8686024e733b063i0
|
76
|
+
694.district, 069a0275ad4319ec7b68007dc7ed4bec51f69ca2100c1acb31f2b5a3e1de683ci0
|
77
|
+
692.district, 69ce7427b0128491c82fcc0e39994cdf3289c17c3fd2a4a4078f9021c074f52ci0
|
78
|
+
691.district, 1c60741b4bfa523db6cc3e91546bbf6a41795225e2184007537f6be5ee900e19i0
|
79
|
+
369.district, 729f382c4f051f4630306e23ff42838a7875a53d0aeca127031e7b6cedb5357fi0
|
80
|
+
voice.district, 19d44ed58fcd6c92ab7c2d2a784f092c965cd9f693e9cbba421f59e34404be1bi0
|
81
|
+
pussy.district, c17dd02a7f216f4b438ab1a303f518abfc4d4d01dcff8f023cf87c4403cb54cai0
|
82
|
+
girls.district, 28a7b3fb5123334ca7db37d7b03e71de9db05abc71b3e59519527062090cbd58i0
|
83
|
+
moon.district, bda8e56cb55072bb8f01366babb0d7792bbd799005db2a599dbc7ccc0536efe2i0
|
84
|
+
exclusive.district, 537c973b1116a2ff667d3aa84d7c01ca9812719aff5946b49614703c3885a832i0
|
85
|
+
porno.district, 4882deb1bdcd00adcb4c178b03837fcaadd50dd0fa5d64ef1f6edb6d3861a329i0
|
86
|
+
beer.district, c02c7857ad16cb3b61e14c0e61e8a0efa29e72800cf1e03026a12dcb0930916bi0
|
87
|
+
769.district, a88a7a1157b5b9e9839ee64439e8d65d520799758a271e99af24ed0667fac568i0
|
88
|
+
942.district, 418fed76a4a3b9edf9f79160894366b050e31b153e9dfa8d620aff4de81904cei0
|
89
|
+
426.district, 6991159d352a9a202307eac68bb9696a391dc254510e3eb4c20951e612928025i0
|
90
|
+
427.district, 56f0b2e40456ab9dbce1b42a7b9e660734ec401a5d691f858785511dfaf1640ei0
|
91
|
+
425.district, a62a431d7e211caa04e912d17d74008df4c0ca348aa2d78dfafb426de3bbb20fi0
|
92
|
+
429.district, 430f78924d5250b36bfb132cde7e3c645a8299747903ff4198edd3ac7228b8fbi0
|
93
|
+
342.district, 3eee1b79b7c4a3153b646497b98ee659e627cddf8d3ce4c9149c991f27ff7e1ai0
|
94
|
+
421.district, a892a1ba8671b3cc7d0f90d1010a15f5acc7b22aae5af9c75832d0eccc1e3128i0
|
95
|
+
842.district, 4d5adf89ab26f906d02578057aa5f1f420d52be4c404147e4e67dacf4292e3bdi0
|
96
|
+
542.district, ff9cba1ce92146b964551ce8b3c5aa00f6eeed5016e05e68e7630b45539551fai0
|
97
|
+
642.district, 171fa9dba11b99da1da8d7d9d0ab429ee7aa27bb3d889d65651ca3df9652d9ebi0
|
98
|
+
869.district, aa0a6c09748dbddfaaf471b5a2919bac94157d97e8aff642e4aac8b5053e1e69i0
|
99
|
+
969.district, a94f4700253f2ec7b7a4827107bd6d50579cd3cb757b2346220910f79440e0b3i0
|
100
|
+
742.district, 166c3e4d571f93522c92946d323010a0be4bf5b64c570c74e4163ca9a3196bb4i0
|
101
|
+
423.district, c3b34f2cf6f9c13294c40da488c91f222ddfe839cec9f1d5433c6e4d0f269e10i0
|
102
|
+
428.district, 038f089dccaff9d07787220e604f578aea0f37dbbc6c3bee17e51adfde70b6fdi0
|
103
|
+
fuck.district, 536e693bdb62e4578b5e39409e0ca159bc8c248ff79749723fe7fac3624f8896i0
|
104
|
+
two.district, 389cdce119d159b6755d394a4f0527195d727b3cf31e4a79d9145c2052d89f19i0
|
105
|
+
moscow.district, 9ae2a095c9d5ba49840ade9b21d4018891542935c0c013982c1c3f19ff94110ei0
|
106
|
+
cameltoe.district, ff19ab5828e5f452541a75613c4611e2b2994bb5ec599eb303185319bf943e83i0
|
107
|
+
three.district, ede2d6466e6503cb1c78c3638185feefe930f85f5539abeac84db919f10b5253i0
|
108
|
+
hollywoodhills.district, 435813bee8153115f2402c6deaa09add537e2263f1683e71249b5d02932d6bbei0
|
109
|
+
hollywood.district, 87f5b3085ee958c71521cb4a976b6b3b2e5e0bece981a16ba3b061b3cdccbfbbi0
|
110
|
+
ferrari.district, 879e4084938e65b6c24e64310cb85efb7d8825a70e178506639b80bd4f4dcba4i0
|
111
|
+
LA.district, 4962ed9cd9060c2756759b0f06d534562f6a15f799d98c747746de6f0bf0151di0
|
112
|
+
losangeles.district, 61641e5c1b91e0d22fe5099e5c04ab7ca2bbcd9937cb0a763f901e52660cdac3i0
|
113
|
+
hongkong.district, 085781a300b846cbd4c14ef0d67875def3d8c1216724cd0e8c02d4879c2f2580i0
|
114
|
+
tokyo.district, 1eaa456acad442448828ef88148e6e1fe2eaa9ac3aaa9da3d6d92990bccc0e41i0
|
115
|
+
thaigirls.district, 8941d315420eb0638eedcdad80eea3642f5a63f9cba6bdcb74480b88ce0af9f3i0
|
116
|
+
soicowboy.district, 0a10bd4cab53a96a36e1cfb8dc62a9bd34ee48f36950bc90ea6880cc4f7e07adi0
|
117
|
+
bangkok.district, 843f6652fc6e83de77cec8692f4e8759caf8475158ea0b1acfce9523f57c39b7i0
|
118
|
+
pattaya.district, 6e1e4505f14f0159d3fa52b177145f884a1abdad9d177066c2984440ac875ed9i0
|
119
|
+
nanaplaza.district, d2344c42263d9a31d74aaf36b5349f98b4d43dad5e3193badecf4de738adecd0i0
|
120
|
+
tits.district, 838f91500b42f8312114b31b3a494128249d9998252ca53d5eda093dc22f19dai0
|
121
|
+
millionaire.district, 89043f597694cbee9ec5d5d2f216dfac380da90779579a1f280c74b2ab9e2ad7i0
|
122
|
+
business.district, 30fae46709e50b0c0fc052fa168a5b20c0c5c282be18e38dceb22f72e8df0613i0
|
123
|
+
nude.district, e104182a4300319f2e207a37f7f52d061700484a49d25259e34c39b910f76256i0
|
124
|
+
lasvegas.district, e2d4e485eaf46ff257cf91878c2bbffeea7fd1c2e8a2af70e7cad63e9a7bcf1ci0
|
125
|
+
vegas.district, 5972339bc0728d50ad86bdcb9b71ab6b67e4c949c92c523918d63ae6e56529b9i0
|
126
|
+
chinatown.district, 4a56b624d3af90c5a2105ca259fbf7aba3d9eae1cf99e66a945568e588b096dai0
|
127
|
+
newyork.district, df056e8af73cf03b8601e0f0b8f43d433fba6dd6a702cec80148ef0b55623ebbi0
|
128
|
+
sexy.district, 29fcb1dde36bef5e8638c18cfa7b24fe6ea475be2176cb5a138141720fe705ffi0
|
129
|
+
blockchain.district, 5e967d4b063781de0aa7c3d2e083c30d0f968c5a363ccb93d7d99f5116518b49i0
|
130
|
+
london.district, f8cf7618587b45736964ef70f4863c1ffd292a0d4a5da8cc3a553e725580290ai0
|
131
|
+
insurance.district, 120adf3fd8c955f2529297c5e1d75edb848e161c6783976f513dba2edd93ff13i0
|
132
|
+
secret.district, 9dff0185848825fc830dc07a8147d2067410a418907b4e7a1ad648a6c6dcfe1fi0
|
133
|
+
trailerpark.district, 6a63b9080b110f77157ee4270577d5d7ad4e0f96381541d6ce4c211a339f86b5i0
|
134
|
+
mystery.district, aad6acf9312dad56274392f2c2b5c1b18df523d26c087be287122fd5a351e9dci0
|
135
|
+
$kevin.district, 6e7cf34a1d17356aabdabe48c4ab7fe9f44d50bbb972670a4461c811523b0b6di0
|
136
|
+
lambo.district, 25d1f1e62951450f368d8a44977d58d143db799752cb32ca8836e54f35bda069i0
|
137
|
+
lambo.district, 25d1f1e62951450f368d8a44977d58d143db799752cb32ca8836e54f35bda069i0
|
138
|
+
financial.district, 12dd80da36242725a1c7b5f55d702570b4bd17140d0f5bd727ee8782d818e458i0
|
139
|
+
gangnam.district, 8c3c86af7f550ea769f55c139c0bd6e003787808c87bd3b057a0f3b109dd5e37i0
|
140
|
+
200btcfee.district, e73a72e1a81b0f2416860207dfbae88a4f35b6922bb9fe773e1c65682872cc40i0
|
141
|
+
frog.district, 7d65435f4cebec1d70a93d5b94f05ac87803e6be60d18b34e5175562df10f220i0
|
142
|
+
art.district, bcd4456633d304bce083d40f84df4f4f2d00a1667e26014dd51059d3cf40c2d4i0
|
143
|
+
291btcfee.district, 48f4bb7e866668fd1bb60e56bc5fbcdccd4478d9369b47f0e77e129f5db6514di0
|
144
|
+
jquery.js, 773e4865bcf3084e6d6ee5d49136fb5f7071d4c050ec4aeeaeb9c6d24fea5fc1i0
|
145
|
+
sato.district, a9ca46d99676f05888a3b337765cbd74d6e1b5875cdaa6355693a6a494cbf9f0i0
|
146
|
+
howcanwetrustyou.district, 8c583c362339c36fc082154030bf37cddcec4c2e4bec1ecb34c3ec563a1629d9i0
|
147
|
+
4elements.district, 91fa064f079b1bc413b341bd0a3cda0b8840d2f02a294e65ac1e800c4c35811di0
|
148
|
+
largest₿trade.district, 48f4bb7e866668fd1bb60e56bc5fbcdccd4478d9369b47f0e77e129f5db6514di0
|
149
|
+
manuel.district, 1347ded335577674db0380ff5687e55f111900f79c70ceb155aec6b3dd8f67f4i0
|
150
|
+
nexus.district, c39b5d21749e6c78e86c1bfb27200655a7b86d43948813c73ce63965ca51b57ei0
|
151
|
+
soapybooba.district, cae724cba2a203267fe42ab8a0a46889b61c3f9ada72eeb5512b0d43d0d33a27i0
|
152
|
+
fastfood.district, 46e652dcffaa4c1480e69fc2a1214ce0e39df0e1a2ba6590773d3e1e74b3aab1i0
|
153
|
+
frogs.district, 725a01e954a145ab7712bc8b6f83fdf3f6f51f81925987d3f4174574e0a5e24ei0
|
154
|
+
gambling.district, a5d11fc5d52d22b9bfe8960316c98e7cf269c42be63046adfde230420a63e58ai0
|
155
|
+
science.district, 5a3b8a1657cede4153aabce70eb2eee508309b23d7cb8a821329a6e358f7f9e8i0
|
156
|
+
gua.district, 4fa76da7ab52199be0556a8bd15040d1edf9ec256e07423e301c9260660131c1i0
|
157
|
+
f0ck.district, 6346e3429621ded8bb56a771d5c3e2e04843970614fbb76d2d6965e3f953561ei0
|
158
|
+
noun.district, e8c6fb2ce3082b43bdf835a2cec16ea25b55cfb3653b78c7f0ba524252f98d00i0
|
159
|
+
1.land, 1c9d808e10e89a36eb09f42c8d66700c09cdb303c5a65a2e25faa587055071f2i0
|
160
|
+
2.land, df9222a5c40334fb3166737d62798965dfc1084fe96671d9cef80d866643dbaci0
|
161
|
+
hello.bts, 83b77f64530771b7278867efb3b12e7184b4a65ce4bd0ba11134a6ee06b8ac6ai0
|
162
|
+
watch.movies, 83b77f64530771b7278867efb3b12e7184b4a65ce4bd0ba11134a6ee06b8ac6ai0
|
163
|
+
snake.game, 315198afb24aed9bc0b68f222eb6f2e976b7ab62bac456b30f26cbb8b893ae55i0
|
164
|
+
dogepunks.game, 2c02ae7e141821e83677026894d3e7ec1b9c263e7615eca0a0da5e5efef43d50i0
|
165
|
+
cypherpunk.paper, 8277fca13d0d5ccf70b5930e351494768ae6ed6759b318b403df229318984af3i0
|
166
|
+
bitcoin.paper, 85b10531435304cbe47d268106b58b57a4416c76573d4b50fa544432597ad670i0
|
167
|
+
breakout.game, 6cc328043c8e8837a421e2b869026363010fb10a5e50f89005187cadc429a821i0
|
168
|
+
2048.game, 2d7dcad13f149e82c5f2c77b003d55b3837df3710e30ed14aa3566625de28a53i0
|
169
|
+
flieka.joelle, 2f78bcf10a94b675aa744ecb4572b93b1ab2a0fb601799c5c47ecc17d95044fdi0
|
170
|
+
lasvegas.com, ce897ee6276815a18a925bcb08a3ac0420280008d608e1376a58f1c87b3da68fi0
|
@@ -0,0 +1,22 @@
|
|
1
|
+
|
2
|
+
module Sats
|
3
|
+
|
4
|
+
# sync version w/ sport.db n friends - why? why not?
|
5
|
+
MAJOR = 0 ## todo: namespace inside version or something - why? why not??
|
6
|
+
MINOR = 0
|
7
|
+
PATCH = 1
|
8
|
+
VERSION = [MAJOR,MINOR,PATCH].join('.')
|
9
|
+
|
10
|
+
def self.version
|
11
|
+
VERSION
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.banner
|
15
|
+
"satsnames/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] in >#{root}<"
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.root
|
19
|
+
File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
data/lib/satsnames.rb
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
|
2
|
+
require 'cocos'
|
3
|
+
|
4
|
+
|
5
|
+
require_relative 'satsnames/version'
|
6
|
+
|
7
|
+
|
8
|
+
module Sats
|
9
|
+
|
10
|
+
class Record
|
11
|
+
def self.directory() Sats.directory; end
|
12
|
+
|
13
|
+
def self.find( id ) directory.find_record( id ); end
|
14
|
+
def self.find_by( name: ) directory.find_record_by( name: name ); end
|
15
|
+
|
16
|
+
|
17
|
+
def self.parse( row )
|
18
|
+
id = row['id']
|
19
|
+
name = row['name']
|
20
|
+
|
21
|
+
new( id: id,
|
22
|
+
name: name )
|
23
|
+
end
|
24
|
+
|
25
|
+
attr_reader :id, :name
|
26
|
+
|
27
|
+
def initialize( id:,
|
28
|
+
name: )
|
29
|
+
@id = id
|
30
|
+
@name = name
|
31
|
+
end
|
32
|
+
end # class Record
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
class Directory
|
37
|
+
## let's you lookup up ethereum addresses by name
|
38
|
+
def self.read( *paths ) ## use load - why? why not?
|
39
|
+
dir = new
|
40
|
+
paths.each do |path|
|
41
|
+
rows= read_csv( path )
|
42
|
+
dir.add_rows( rows )
|
43
|
+
end
|
44
|
+
dir
|
45
|
+
end
|
46
|
+
|
47
|
+
def initialize
|
48
|
+
@recs = {} ## lookup (record) by (normalized) id
|
49
|
+
@reverse_table = {} ## lookup (id) by (normalized) name
|
50
|
+
end
|
51
|
+
|
52
|
+
|
53
|
+
def records() @recs.values; end
|
54
|
+
def size() @recs.size; end
|
55
|
+
|
56
|
+
def find_record( id )
|
57
|
+
@recs[ id ]
|
58
|
+
end
|
59
|
+
|
60
|
+
def find_record_by( name: )
|
61
|
+
@reverse_table[ name ]
|
62
|
+
end
|
63
|
+
|
64
|
+
|
65
|
+
def []( name )
|
66
|
+
rec = find_record_by( name: name )
|
67
|
+
rec ? rec.id : nil
|
68
|
+
end
|
69
|
+
|
70
|
+
|
71
|
+
def add_rows( rows )
|
72
|
+
rows.each do |row|
|
73
|
+
rec = Record.parse( row )
|
74
|
+
|
75
|
+
## todo/check for duplicates
|
76
|
+
@reverse_table[ rec.name ] = rec
|
77
|
+
@recs[rec.id] = rec
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end # class Directory
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
def self.dir
|
85
|
+
@dir ||= Directory.read( "#{root}/config/relays.2023.csv"
|
86
|
+
)
|
87
|
+
end
|
88
|
+
class << self
|
89
|
+
alias_method :directory, :dir
|
90
|
+
end
|
91
|
+
|
92
|
+
def self.[]( q )
|
93
|
+
dir[ q ]
|
94
|
+
end
|
95
|
+
end # module Sats
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
puts Sats.banner # say hello
|
metadata
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: satsnames
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Gerald Bauer
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-08-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: cocos
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rdoc
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '4.0'
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '7'
|
37
|
+
type: :development
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '4.0'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '7'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: hoe
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '4.0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '4.0'
|
61
|
+
description: satsnames - sats names helpers for bitcoin ordinal inscription names,
|
62
|
+
relays and more
|
63
|
+
email: gerald.bauer@gmail.com
|
64
|
+
executables: []
|
65
|
+
extensions: []
|
66
|
+
extra_rdoc_files:
|
67
|
+
- CHANGELOG.md
|
68
|
+
- Manifest.txt
|
69
|
+
- README.md
|
70
|
+
files:
|
71
|
+
- CHANGELOG.md
|
72
|
+
- Manifest.txt
|
73
|
+
- README.md
|
74
|
+
- Rakefile
|
75
|
+
- config/relays.2023.csv
|
76
|
+
- lib/satsnames.rb
|
77
|
+
- lib/satsnames/version.rb
|
78
|
+
homepage: https://github.com/ordbase/ordbase
|
79
|
+
licenses:
|
80
|
+
- Public Domain
|
81
|
+
metadata: {}
|
82
|
+
post_install_message:
|
83
|
+
rdoc_options:
|
84
|
+
- "--main"
|
85
|
+
- README.md
|
86
|
+
require_paths:
|
87
|
+
- lib
|
88
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '2.3'
|
93
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
requirements: []
|
99
|
+
rubygems_version: 3.4.10
|
100
|
+
signing_key:
|
101
|
+
specification_version: 4
|
102
|
+
summary: satsnames - sats names helpers for bitcoin ordinal inscription names, relays
|
103
|
+
and more
|
104
|
+
test_files: []
|