safe_eth_ruby 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4a269d233ad578f2ea74711bea6067fe154f4ad56a9abcb79591d0d15ba1662
4
- data.tar.gz: 3b362180a72f75b731f556816eda8b17a833983183744509e23d0b34e84785c4
3
+ metadata.gz: b9f6782a98acc38d02b3d612aeb59ab07886105d0263694b8bc277274aec1a1f
4
+ data.tar.gz: 7346280aff7390504efde693f0fa98f3485a8990b70ca7a03dbd8e1c1d4e0023
5
5
  SHA512:
6
- metadata.gz: c36336e21942f731570933e3ceded214c8a1cdc3a7bf64ed0b079bc4398dbb48c930318d8a351279639755f8b4519f8c1874455a122e2d5418d89532fa33faed
7
- data.tar.gz: 8e7fc62e2f63af6d151de81a2339933ddc612e16498c6341be59ec27f6c83d41ae9b13123a7a510f90154c3173f23201c2ceaaa5bd553955ed18c6cceb7cbe3a
6
+ metadata.gz: 03e1093d1ad9944a8bd8609a1dcf115357b526b1c615435f6b72068fdf50cfb513da9d9df24e7d5914e5db999f7d86c5dbbabe2c9de65fb6c8aa0725c4bd5d2e
7
+ data.tar.gz: b5d9e5d6531ff1d43046fbe951bc603e0f58cae774ee90293d121f10c569e18b2ebd517718b3572667febb81da51411e2ed1ebf0d2c7205663752513054a2ce4
data/lib/.DS_Store CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # rubocop:disable Layout/LineLength
4
- module Safe
4
+ module SafeEthRuby
5
5
  module ABI
6
6
  PROXY = '[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"AddedOwner","type":"event"},' \
7
7
  '{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"approvedHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"ApproveHash","type":"event"},' \
@@ -2,7 +2,7 @@
2
2
 
3
3
  require "eth"
4
4
 
5
- module Safe
5
+ module SafeEthRuby
6
6
  class Contract
7
7
  attr_reader :client, :safe_contract
8
8
 
@@ -11,7 +11,7 @@ module Safe
11
11
  @safe_contract = Eth::Contract.from_abi(
12
12
  name: "SafeContract",
13
13
  address: safe_address,
14
- abi: Safe::ABI::PROXY,
14
+ abi: SafeEthRuby::ABI::PROXY,
15
15
  )
16
16
  end
17
17
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Safe
3
+ module SafeEthRuby
4
4
  module Eip712
5
5
  class << self
6
6
  def build(transaction, chain_id, verifying_contract)
@@ -1,11 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "abi_coder_rb"
4
- module Safe
4
+
5
+ module SafeEthRuby
5
6
  class Protocol
6
7
  attr_reader :safe_api, :signer, :chain_id, :safe_address
7
8
 
8
9
  def initialize(signer:, chain_id:, safe_address:, rpc:)
10
+ puts SafeEthRuby.inspect
9
11
  @signer = signer
10
12
  @chain_id = chain_id
11
13
  @safe_address = safe_address
@@ -4,7 +4,7 @@ require "net/http"
4
4
  require "json"
5
5
  require "uri"
6
6
 
7
- module Safe
7
+ module SafeEthRuby
8
8
  class TransactionServiceApi
9
9
  VERSION = "v1/"
10
10
  attr_reader :safe_address, :base_url
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Safe
3
+ module SafeEthRuby
4
4
  module Util
5
5
  class << self
6
6
  include AbiCoderRb
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SafeEthRuby
4
+ VERSION = "0.0.3"
5
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SafeEthRuby
4
+ end
5
+
6
+ # Loads the {SafeEthRuby} module classes.
7
+ require "safe_eth_ruby/transaction_service_api"
8
+ require "safe_eth_ruby/protocol"
9
+ require "safe_eth_ruby/contract"
10
+ require "safe_eth_ruby/util"
11
+ require "safe_eth_ruby/eip712"
12
+ require "safe_eth_ruby/abi/proxy"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: safe_eth_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bolo Michelin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-29 00:00:00.000000000 Z
11
+ date: 2024-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -78,16 +78,15 @@ files:
78
78
  - LICENSE.txt
79
79
  - README.md
80
80
  - lib/.DS_Store
81
- - lib/safe.rb
82
- - lib/safe/.DS_Store
83
- - lib/safe/abi/proxy.rb
84
- - lib/safe/contract.rb
85
- - lib/safe/eip712.rb
86
- - lib/safe/protocol.rb
87
- - lib/safe/transaction_service_api.rb
88
- - lib/safe/util.rb
89
- - lib/safe/utils/.DS_Store
90
- - lib/safe/version.rb
81
+ - lib/safe_eth_ruby.rb
82
+ - lib/safe_eth_ruby/.DS_Store
83
+ - lib/safe_eth_ruby/abi/proxy.rb
84
+ - lib/safe_eth_ruby/contract.rb
85
+ - lib/safe_eth_ruby/eip712.rb
86
+ - lib/safe_eth_ruby/protocol.rb
87
+ - lib/safe_eth_ruby/transaction_service_api.rb
88
+ - lib/safe_eth_ruby/util.rb
89
+ - lib/safe_eth_ruby/version.rb
91
90
  homepage: https://github.com/scionx-io/safe-eth-ruby
92
91
  licenses:
93
92
  - MIT
Binary file
data/lib/safe/version.rb DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Safe
4
- VERSION = "0.0.2"
5
- end
data/lib/safe.rb DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Safe
4
- end
5
-
6
- # Loads the {Safe} module classes.
7
- require "safe/protocol"
8
- require "safe/transaction_service_api"
9
- require "safe/contract"
10
- require "safe/util"
11
- require "safe/eip712"
12
- require "safe/abi/proxy"
File without changes