ic_agent 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1f7c8e2c2b92f692a20ba38898f78dd76a854367369a905e8553c162c3a0238c
4
+ data.tar.gz: 51885b2b8966bae6a23b4dc5e775c7fd3ee864b4452cafa2213e54aa1fdddeae
5
+ SHA512:
6
+ metadata.gz: 3369b673094b4b7416f1a5125f440d5b5ad4fd9b8878d58564165b50bbd33b503e0653220fb92ac617fdc25890cb20efe2429c3f7f64340f8305134162f58a95
7
+ data.tar.gz: 0e8e47383437dfd4a1de1d05ac8975faed0fb1cff4e56ea9c2006450fd7036dbff578cb4bbbbea2f635e4a41dbf05e0f25ce178a8978e5f6bdd2e79a7d644d22
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.7.7
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at tuminfei1981@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Dockerfile ADDED
@@ -0,0 +1,17 @@
1
+ FROM ruby:2.7.8-alpine3.16
2
+
3
+ ENV BUILD_PACKAGES curl-dev build-base automake autoconf libtool libffi-dev python3-dev
4
+
5
+ RUN apk update && \
6
+ apk upgrade && \
7
+ apk add git curl $BUILD_PACKAGES
8
+
9
+ WORKDIR /usr/src/app
10
+
11
+ COPY . .
12
+
13
+ RUN gem install bundler:2.2.13 && \
14
+ bundle install && \
15
+ rake install:local
16
+
17
+ CMD ["sh"]
data/Gemfile ADDED
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in ic_agent.gemspec
6
+ gemspec
7
+
8
+ gem 'base32', '~> 0.3.4'
9
+ gem 'bitcoin-ruby', '~> 0.0.20'
10
+ gem 'byebug', '~> 11.1', '>= 11.1.3'
11
+ gem 'cbor', '~> 0.5.9.6'
12
+ gem 'ctf-party', '~> 2.3'
13
+ gem 'ecdsa', '~> 1.2'
14
+ gem 'ed25519', '~> 1.3'
15
+ gem 'faraday', '~> 2.7', '>= 2.7.4'
16
+ gem 'leb128', '~> 1.0'
17
+ gem 'pry'
18
+ gem 'rake', '~> 13.0'
19
+ gem 'rbsecp256k1', '~> 6.0'
20
+ gem 'ruby-enum', '~> 0.9.0'
21
+ gem 'rubytree', '~> 2.0'
22
+ gem 'treetop', '~> 1.6', '>= 1.6.12'
23
+
data/Gemfile.lock ADDED
@@ -0,0 +1,108 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ ic_agent (0.1.1)
5
+ base32 (~> 0.3.4)
6
+ bitcoin-ruby (~> 0.0.20)
7
+ cbor (~> 0.5.9.6)
8
+ ctf-party (~> 2.3)
9
+ ecdsa (~> 1.2)
10
+ ed25519 (~> 1.3)
11
+ faraday (~> 2.7)
12
+ leb128 (~> 1.0)
13
+ rbsecp256k1 (~> 6.0)
14
+ ruby-enum (~> 0.9.0)
15
+ rubytree (~> 2.0)
16
+ treetop (~> 1.6)
17
+
18
+ GEM
19
+ remote: https://rubygems.org/
20
+ specs:
21
+ base32 (0.3.4)
22
+ bitcoin-ruby (0.0.20)
23
+ eventmachine
24
+ ffi
25
+ scrypt
26
+ byebug (11.1.3)
27
+ cbor (0.5.9.6)
28
+ coderay (1.1.3)
29
+ concurrent-ruby (1.2.2)
30
+ ctf-party (2.3.0)
31
+ docopt (~> 0.6)
32
+ diff-lcs (1.5.0)
33
+ docopt (0.6.1)
34
+ ecdsa (1.2.0)
35
+ ed25519 (1.3.0)
36
+ eventmachine (1.2.7)
37
+ faraday (2.7.4)
38
+ faraday-net_http (>= 2.0, < 3.1)
39
+ ruby2_keywords (>= 0.0.4)
40
+ faraday-net_http (3.0.2)
41
+ ffi (1.15.5)
42
+ ffi-compiler (1.0.1)
43
+ ffi (>= 1.0.0)
44
+ rake
45
+ i18n (1.12.0)
46
+ concurrent-ruby (~> 1.0)
47
+ json (2.6.3)
48
+ leb128 (1.0.0)
49
+ method_source (1.0.0)
50
+ mini_portile2 (2.8.2)
51
+ pkg-config (1.5.1)
52
+ polyglot (0.3.5)
53
+ pry (0.14.2)
54
+ coderay (~> 1.1)
55
+ method_source (~> 1.0)
56
+ rake (13.0.6)
57
+ rbsecp256k1 (6.0.0)
58
+ mini_portile2 (~> 2.8)
59
+ pkg-config (~> 1.5)
60
+ rubyzip (~> 2.3)
61
+ rspec (3.12.0)
62
+ rspec-core (~> 3.12.0)
63
+ rspec-expectations (~> 3.12.0)
64
+ rspec-mocks (~> 3.12.0)
65
+ rspec-core (3.12.1)
66
+ rspec-support (~> 3.12.0)
67
+ rspec-expectations (3.12.2)
68
+ diff-lcs (>= 1.2.0, < 2.0)
69
+ rspec-support (~> 3.12.0)
70
+ rspec-mocks (3.12.5)
71
+ diff-lcs (>= 1.2.0, < 2.0)
72
+ rspec-support (~> 3.12.0)
73
+ rspec-support (3.12.0)
74
+ ruby-enum (0.9.0)
75
+ i18n
76
+ ruby2_keywords (0.0.5)
77
+ rubytree (2.0.0)
78
+ json (~> 2.0, > 2.3.1)
79
+ rubyzip (2.3.2)
80
+ scrypt (3.0.7)
81
+ ffi-compiler (>= 1.0, < 2.0)
82
+ treetop (1.6.12)
83
+ polyglot (~> 0.3)
84
+
85
+ PLATFORMS
86
+ arm64-darwin-22
87
+
88
+ DEPENDENCIES
89
+ base32 (~> 0.3.4)
90
+ bitcoin-ruby (~> 0.0.20)
91
+ byebug (~> 11.1, >= 11.1.3)
92
+ cbor (~> 0.5.9.6)
93
+ ctf-party (~> 2.3)
94
+ ecdsa (~> 1.2)
95
+ ed25519 (~> 1.3)
96
+ faraday (~> 2.7, >= 2.7.4)
97
+ ic_agent!
98
+ leb128 (~> 1.0)
99
+ pry
100
+ rake (~> 13.0)
101
+ rbsecp256k1 (~> 6.0)
102
+ rspec (~> 3.2)
103
+ ruby-enum (~> 0.9.0)
104
+ rubytree (~> 2.0)
105
+ treetop (~> 1.6, >= 1.6.12)
106
+
107
+ BUNDLED WITH
108
+ 2.4.10
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Terry.Tu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,217 @@
1
+ # IcAgent
2
+
3
+ ## Ruby Agent Library for the Internet Computer
4
+
5
+ `ic_agent` provides basic modules to interact with canisters on the DFINITY Internet Computer.
6
+
7
+
8
+ ## Installation
9
+
10
+ ```
11
+ gem install ic_agent
12
+ ```
13
+
14
+ ### Features
15
+
16
+ 1. candid types encode & decode
17
+ 2. support secp256k1 & ed25519 identity
18
+ 3. canister DID file parsing
19
+ 4. canister class, initialized with canister id and DID file
20
+ 5. common canister interfaces: ledger, management, nns, cycles wallet
21
+ 6. BLS Verify
22
+
23
+ ### Modules & Usage
24
+
25
+ #### 1. Principal
26
+
27
+ Create an instance:
28
+
29
+ ```ruby
30
+ require "lib/ic_agent/principal"
31
+ p = IcAgent::Principal.new # default is management canister id `aaaaa-aa`
32
+ p1 = IcAgent::Principal.new(bytes: '') # create an instance from bytes
33
+ p2 = IcAgent::Principal.anonymous() # create anonymous principal
34
+ p3 = IcAgent::Principal.self_authenticating(pubkey) # create a principal from public key
35
+ p4 = IcAgent::Principal.from_str('aaaaa-aa') # create an instance from string
36
+ p5 = IcAgent::Principal.from_hex('xxx') # create an instance from hex
37
+ ```
38
+
39
+ Class methods:
40
+
41
+ ```ruby
42
+ p.bytes # principal bytes
43
+ p.len # byte array length
44
+ p.to_str() # convert to string
45
+ ```
46
+
47
+ #### 2. Identity
48
+
49
+ Create an instance:
50
+
51
+ ```ruby
52
+ require "lib/ic_agent/identity"
53
+ i = IcAgent::Identity.new # create an identity instance, key is randomly generated
54
+ i1 = IcAgent::Identity.new(privkey = '833fe62409237b9d62ec77587520911e9a759cec1d19755b7da901b96dca3d42') # create an instance from private key
55
+ i2 = IcAgent::Identity.new(privkey = '833fe62409237b9d62ec77587520911e9a759cec1d19755b7da901b96dca3d42', type = 'secp256k1')
56
+ ```
57
+
58
+ Sign a message and Verify:
59
+
60
+ ```ruby
61
+ msg = "ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f"
62
+ sig = i.sign(msg) # sig = (der_encoded_pubkey, signature)
63
+ ver = i.verify(msg, sig[1])
64
+ ```
65
+
66
+ #### 3. Client
67
+
68
+ Create an instance:
69
+
70
+ ```ruby
71
+ client = IcAgent::Client.new(url = "https://ic0.app")
72
+ client.status
73
+ ```
74
+
75
+ #### 4. Candid
76
+
77
+ Encode parameters:
78
+
79
+ ```ruby
80
+ # params is an array, return value is encoded bytes
81
+ params = [{'type': IcAgent::Candid::BaseTypes.nat, 'value': 10}]
82
+ data = IcAgent::Candid.encode(params)
83
+
84
+ params = [{'type': IcAgent::Candid::BaseTypes.null, 'value': nil}]
85
+ data = IcAgent::Candid.encode(params)
86
+ ```
87
+
88
+ Decode parameters:
89
+
90
+ ```ruby
91
+ # data is bytes, return value is an parameter array
92
+ params = IcAgent::Candid.decode(data)
93
+ ```
94
+
95
+ #### 5. Agent
96
+
97
+ Create an instance:
98
+
99
+ ```ruby
100
+ # Identity and Client are dependencies of Agent
101
+ iden = IcAgent::Identity.new
102
+ client = IcAgent::Client.new
103
+ agent = IcAgent::Agent.new(iden, client)
104
+ ```
105
+
106
+ Query call:
107
+
108
+ ```ruby
109
+ # query the name of token canister `gvbup-jyaaa-aaaah-qcdwa-cai`
110
+ name = agent.query_raw("gvbup-jyaaa-aaaah-qcdwa-cai", "name", IcAgent::Candid.encode([]))
111
+ ```
112
+
113
+ Update call:
114
+
115
+ ```ruby
116
+ # transfer 100 token to blackhole address `aaaaa-aa`
117
+ params = [
118
+ { 'type': IcAgent::Candid::BaseTypes.principal, 'value': 'aaaaa-aa' },
119
+ { 'type': IcAgent::Candid::BaseTypes.nat, 'value': 10000000000 }
120
+ ]
121
+ result = agent.update_raw("gvbup-jyaaa-aaaah-qcdwa-cai", "transfer", IcAgent::Candid.encode(params))
122
+ ```
123
+
124
+ #### 6. Read System State
125
+
126
+ Create an instance:
127
+
128
+ ```ruby
129
+ # Identity and Client are dependencies of Agent
130
+ iden = IcAgent::Identity.new
131
+ client = IcAgent::Client.new
132
+ agent = IcAgent::Agent.new(iden, client)
133
+
134
+ time = IcAgent::SyetemState.time(agent, "gvbup-jyaaa-aaaah-qcdwa-cai")
135
+
136
+ subnet_public_key = IcAgent::SyetemState.subnet_public_key(agent, "gvbup-jyaaa-aaaah-qcdwa-cai", "pjljw-kztyl-46ud4-ofrj6-nzkhm-3n4nt-wi3jt-ypmav-ijqkt-gjf66-uae")
137
+ ```
138
+
139
+ #### 7. Canister
140
+
141
+ Create a canister instance with candid interface file and canister id, and call canister method with canister instance:
142
+
143
+ ```ruby
144
+ gov_canister = IcAgent::Canister.new(@agent, @gov_canister_id, @gov_didl)
145
+ res = gov_canister.get_neuron_ids()
146
+ ```
147
+
148
+ #### 8. canister: ledger, management, cycles wallet ..
149
+
150
+ canister common tools:
151
+
152
+ ```ruby
153
+ ledger = IcAgent::Common::Ledger.new
154
+ ledger.canister.name()
155
+ ```
156
+
157
+ ## UNIT TEST
158
+
159
+ ```
160
+ bundle exec rspec
161
+ ```
162
+
163
+ ## Docker
164
+
165
+ 1. update to latest image
166
+
167
+ `docker pull tuminfei1981/ruby_ic_agent:latest`
168
+
169
+ 2. Run image:
170
+
171
+ `docker run -it tuminfei1981/ruby_ic_agent:latest`
172
+
173
+ This will enter the container with a linux shell opened.
174
+
175
+ ```shell
176
+ /usr/src/app #
177
+ ```
178
+
179
+ 3. Type `rspec` to run all tests
180
+
181
+ ```shell
182
+ /usr/src/app # bundle exec rspec
183
+ .............................
184
+
185
+ Finished in 5.56 seconds (files took 0.12067 seconds to load)
186
+ 29 examples, 0 failures
187
+
188
+ ```
189
+
190
+ 4. Or, type `./bin/console` to enter the ruby interactive environment and run any ic_agent code
191
+
192
+ ```shell
193
+ /usr/src/app # ./bin/console
194
+ [1] pry(main)> p = IcAgent::Principal.new
195
+ => #<IcAgent::Principal:0x000000013a54a548 @bytes="", @hex="", @is_principal=true, @len=0>
196
+ [2] pry(main)> p.to_s
197
+ => "aaaaa-aa"
198
+ [3] pry(main)>
199
+ ```
200
+
201
+ ## Development
202
+
203
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
204
+
205
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
206
+
207
+ ## Contributing
208
+
209
+ Bug reports and pull requests are welcome on GitHub at https://github.com/tuminfei/ic_agent. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/tuminfei/ic_agent/blob/main/CODE_OF_CONDUCT.md).
210
+
211
+ ## License
212
+
213
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
214
+
215
+ ## Code of Conduct
216
+
217
+ Everyone interacting in the IcAgent project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/tuminfei/ic_agent/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
data/ic_agent.gemspec ADDED
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/ic_agent/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'ic_agent'
7
+ spec.version = IcAgent::VERSION
8
+ spec.authors = ['Terry.Tu']
9
+ spec.email = ['tuminfei1981@gmail.com']
10
+
11
+ spec.summary = 'ICP Agent'
12
+ spec.description = 'ICP Agent.'
13
+ spec.homepage = 'https://github.com/tuminfei/ic_agent'
14
+ spec.license = 'MIT'
15
+ spec.required_ruby_version = '>= 2.6.0'
16
+
17
+ spec.metadata['homepage_uri'] = spec.homepage
18
+ spec.metadata['source_code_uri'] = spec.homepage
19
+ spec.metadata['changelog_uri'] = spec.homepage
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(__dir__) do
24
+ `git ls-files -z`.split("\x0").reject do |f|
25
+ (File.expand_path(f) == __FILE__) || f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor])
26
+ end
27
+ end
28
+ spec.bindir = 'exe'
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ['lib']
31
+
32
+ # Uncomment to register a new dependency of your gem
33
+ # spec.add_dependency "example-gem", "~> 1.0"
34
+ spec.add_dependency 'base32', '~> 0.3.4'
35
+ spec.add_dependency 'bitcoin-ruby', '~> 0.0.20'
36
+ spec.add_dependency 'cbor', '~> 0.5.9.6'
37
+ spec.add_dependency 'ctf-party', '~> 2.3'
38
+ spec.add_dependency 'ecdsa', '~> 1.2'
39
+ spec.add_dependency 'ed25519', '~> 1.3'
40
+ spec.add_dependency 'faraday', '~> 2.7'
41
+ spec.add_dependency 'leb128', '~> 1.0'
42
+ spec.add_dependency 'rbsecp256k1', '~> 6.0'
43
+ spec.add_dependency 'ruby-enum', '~> 0.9.0'
44
+ spec.add_dependency 'rubytree', '~> 2.0'
45
+ spec.add_dependency 'treetop', '~> 1.6'
46
+
47
+ spec.add_development_dependency 'byebug', '~> 11.1'
48
+ spec.add_development_dependency 'pry'
49
+ spec.add_development_dependency 'rspec', '~> 3.2'
50
+
51
+ # For more information and examples about making a new gem, check out our
52
+ # guide at: https://bundler.io/guides/creating_gem.html
53
+ end