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 +4 -4
- data/lib/.DS_Store +0 -0
- data/lib/{safe → safe_eth_ruby}/abi/proxy.rb +1 -1
- data/lib/{safe → safe_eth_ruby}/contract.rb +2 -2
- data/lib/{safe → safe_eth_ruby}/eip712.rb +1 -1
- data/lib/{safe → safe_eth_ruby}/protocol.rb +3 -1
- data/lib/{safe → safe_eth_ruby}/transaction_service_api.rb +1 -1
- data/lib/{safe → safe_eth_ruby}/util.rb +1 -1
- data/lib/safe_eth_ruby/version.rb +5 -0
- data/lib/safe_eth_ruby.rb +12 -0
- metadata +11 -12
- data/lib/safe/utils/.DS_Store +0 -0
- data/lib/safe/version.rb +0 -5
- data/lib/safe.rb +0 -12
- /data/lib/{safe → safe_eth_ruby}/.DS_Store +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9f6782a98acc38d02b3d612aeb59ab07886105d0263694b8bc277274aec1a1f
|
4
|
+
data.tar.gz: 7346280aff7390504efde693f0fa98f3485a8990b70ca7a03dbd8e1c1d4e0023
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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:
|
14
|
+
abi: SafeEthRuby::ABI::PROXY,
|
15
15
|
)
|
16
16
|
end
|
17
17
|
|
@@ -1,11 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "abi_coder_rb"
|
4
|
-
|
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
|
@@ -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.
|
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-
|
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/
|
82
|
-
- lib/
|
83
|
-
- lib/
|
84
|
-
- lib/
|
85
|
-
- lib/
|
86
|
-
- lib/
|
87
|
-
- lib/
|
88
|
-
- lib/
|
89
|
-
- lib/
|
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
|
data/lib/safe/utils/.DS_Store
DELETED
Binary file
|
data/lib/safe/version.rb
DELETED
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
|