26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/trident_assistant/api/collectible.rb', line 26
def deposit(collection, token)
token_id = MixinBot::Utils::Nfo.new(collection: collection, token: token).unique_token_id
collectible = find_collectible(:unspent, token_id)
collectible ||= find_collectible(:signed, token_id)
raise ForbiddenError, "Cannot find collectible" if collectible.blank?
nfo = MixinBot::Utils::Nfo.new(extra: "deposit".unpack1("H*")).encode.hex
_transfer_nft(
collectible,
nfo,
receivers: TridentAssistant::Utils::TRIDENT_MTG[:members],
threshold: TridentAssistant::Utils::TRIDENT_MTG[:threshold]
)
end
|