Module: MixinBot::API::Multisig
- Included in:
- MixinBot::API
- Defined in:
- lib/mixin_bot/api/multisig.rb
Instance Method Summary collapse
- #create_safe_multisig_request(request_id, raw, access_token: nil) ⇒ Object
- #safe_multisig_request(request_id, access_token: nil) ⇒ Object
- #sign_safe_multisig_request(request_id, raw, access_token: nil) ⇒ Object
- #unlock_safe_multisig_request(request_id, access_token: nil) ⇒ Object
Instance Method Details
#create_safe_multisig_request(request_id, raw, access_token: nil) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/mixin_bot/api/multisig.rb', line 6 def create_safe_multisig_request(request_id, raw, access_token: nil) path = '/safe/multisigs' payload = [{ request_id:, raw: }] client.post path, *payload, access_token: end |
#safe_multisig_request(request_id, access_token: nil) ⇒ Object
32 33 34 35 36 |
# File 'lib/mixin_bot/api/multisig.rb', line 32 def safe_multisig_request(request_id, access_token: nil) path = format('/safe/multisigs/%<request_id>s', request_id:) client.get path, access_token: end |
#sign_safe_multisig_request(request_id, raw, access_token: nil) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/mixin_bot/api/multisig.rb', line 16 def sign_safe_multisig_request(request_id, raw, access_token: nil) path = format('/safe/multisigs/%<request_id>s/sign', request_id:) payload = { raw: } client.post path, **payload, access_token: end |
#unlock_safe_multisig_request(request_id, access_token: nil) ⇒ Object
26 27 28 29 30 |
# File 'lib/mixin_bot/api/multisig.rb', line 26 def unlock_safe_multisig_request(request_id, access_token: nil) path = format('/safe/multisigs/%<request_id>s/unlock', request_id:) client.post path, access_token: end |