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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78044f2cab71b01faa20d88f6e46cc1231e6716d6f1a2e1c7f1ab4566c12a8c8
|
4
|
+
data.tar.gz: ffe521c1a183c2924ab38358bebe0e3e657f825b5b6e2be16a5c1962cc0beb8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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, **
|
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(
|
@@ -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:
|
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
|
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.
|
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-
|
11
|
+
date: 2022-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixin_bot
|