trident_assistant 0.1.5 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4acb50cc313a7bb9bde2830d586acd3264ad6342d19db8f33c3771c2bc50960
4
- data.tar.gz: f1929e1fd73134237592eb08d8bc8297fb15ed5b44201deb411499880f4360d4
3
+ metadata.gz: 78044f2cab71b01faa20d88f6e46cc1231e6716d6f1a2e1c7f1ab4566c12a8c8
4
+ data.tar.gz: ffe521c1a183c2924ab38358bebe0e3e657f825b5b6e2be16a5c1962cc0beb8c
5
5
  SHA512:
6
- metadata.gz: 92abe8ed87e80f6a0b5733b31ebdc5393d615b3f8de846d5a68194c4e767faf9d516b57452d2733e3c068ba6b49e7e5513144a888a4bfa5ce2429f4780957636
7
- data.tar.gz: f3a8d65af73524216b60970cf98add0c2035bb8fc9c9f2d10d12e16719c8623fb243a1486ffc5e4925d8bfec4c77f39d2186126e148a40fab0bdd7ae9a302892
6
+ metadata.gz: 6a56b4a274b0e74f19d2dbeb4e04738ccd653dfaa33588482eb62f7a921537ee9dbb24ae36a042d691fb11f2e77c103a078b8002ba3d435362875894ed818d12
7
+ data.tar.gz: a60869ceb2bceb39c86b4dc57a9ef35fca14da6246472efe8856cf8acbb8af08a9c18a544e83c921c0f27d47608a2dbb4cf34174146521f16c98f8deb7105305
@@ -26,6 +26,7 @@ module TridentAssistant
26
26
  def deposit(collection, token)
27
27
  token_id = MixinBot::Utils::Nfo.new(collection: collection, token: token).unique_token_id
28
28
  collectible = find_collectible(:unspent, token_id)
29
+ collectible ||= find_collectible(:signed, token_id)
29
30
  raise ForbiddenError, "Cannot find collectible" if collectible.blank?
30
31
 
31
32
  nfo = MixinBot::Utils::Nfo.new(extra: "deposit".unpack1("H*")).encode.hex
@@ -72,13 +73,13 @@ module TridentAssistant
72
73
  )
73
74
  end
74
75
 
75
- def transfer(collection, token, recipient, **_kwargs)
76
+ def transfer(collection, token, recipient, **kwargs)
76
77
  token_id = MixinBot::Utils::Nfo.new(collection: collection, token: token).unique_token_id
77
78
  collectible = find_collectible(:unspent, token_id)
78
79
  collectible ||= find_collectible(:signed, token_id)
79
80
  raise ForbiddenError, "Cannot find collectible in wallet" if collectible.blank?
80
81
 
81
- memo = "TRANSFER"
82
+ memo = kwargs[:memo] || "TRANSFER"
82
83
  nfo = MixinBot::Utils::Nfo.new(extra: memo.unpack1("H*")).encode.hex
83
84
 
84
85
  _transfer_nft(
@@ -19,6 +19,7 @@ module TridentAssistant
19
19
  metahash: kwargs[:metahash],
20
20
  state: kwargs[:state],
21
21
  type: kwargs[:type],
22
+ maker_id: kwargs[:maker_id],
22
23
  page: kwargs[:page]
23
24
  }
24
25
  )
@@ -35,7 +35,7 @@ module TridentAssistant
35
35
  options[:headers]["Content-Type"] ||= "application/json"
36
36
 
37
37
  begin
38
- response = HTTP.timeout(connect: 5, write: 10, read: 10).request(verb, uri, options)
38
+ response = HTTP.timeout(connect: 5, write: 120, read: 60).request(verb, uri, options)
39
39
  rescue HTTP::Error => e
40
40
  raise HttpError, e.message
41
41
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TridentAssistant
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.7"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trident_assistant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - an-lee
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-24 00:00:00.000000000 Z
11
+ date: 2022-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixin_bot