File tree 1 file changed +37
-0
lines changed
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ class Iota < Formula
2
+ desc "Bringing the real world to Web3 with a scalable, decentralized and programmable DLT infrastructure"
3
+ homepage "https://www.iota.org"
4
+ url "https://github.com/iotaledger/iota/archive/refs/tags/v0.8.1-rc.tar.gz"
5
+ sha256 "57990aa4982e1421cfd0c50106f2037bc1a9116d545f579188892e13371eccf3"
6
+ license "Apache-2.0"
7
+
8
+ livecheck do
9
+ url :stable
10
+ regex ( /^v(\d +(?:\. \d +)+)-rc$/i )
11
+ end
12
+
13
+ depends_on "cmake" => :build
14
+ depends_on "libpq" => :build
15
+ depends_on "rust" => :build
16
+
17
+ on_linux do
18
+ depends_on "llvm" => :build
19
+ end
20
+
21
+ def install
22
+ ENV [ "GIT_REVISION" ] = ""
23
+ system "cargo" , "install" , *std_cargo_args ( path : "crates/iota" )
24
+ end
25
+
26
+ test do
27
+ assert_match version . to_s , shell_output ( "#{ bin } /iota --version" )
28
+
29
+ ( testpath /"test.keystore" ) . write <<~EOS
30
+ [
31
+ "iotaprivkey1qrg9875hq63wqnya0hy3khlkfjvarp009chky42uu2gu9c2dsv32qk8r7ae"
32
+ ]
33
+ EOS
34
+ keystore_output = shell_output ( "#{ bin } /iota keytool --keystore-path test.keystore list" )
35
+ assert_match "0x7f21a048ec0e1d82d2e4a89a3b304e12813cafce1e8410f7a8d3be33c214c422" , keystore_output
36
+ end
37
+ end
You can’t perform that action at this time.
0 commit comments