-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metadata update fail #139
Comments
+1 for looking at fixing this issue. Using this api call for FatStx to deal with tokens I don't have in my predefined array is one of the features in my plans for FatStx tool so obviously it needs to be up to date for that feature to make sense :) |
+1 just created a new token via the launchpad and it’s not displaying correctly across wallets. Appreciate everyone’s time on this 🙌 |
Thanks for the detailed report @kjchiang3 , I'll take a look at this |
This has been manually fixed for now: https://api.hiro.so/metadata/ft/SP1Z92MPDQEWZXW36VX71Q25HKF5K2EPCJ304F275.stsw-token-v4a I'll look into the underlying cause for the SIP-019 notification error |
Hello - I have the same issue with my fan token MartyParty created by the fan community - it won’t show in their wallets and can’t be sent or received. Used the Launchpad - if you swap on Stackswap it shows in the drop-down but not in Hiro wallet - thanks |
hi @martinfolb can you provide more info about your token? Contract name or deploy transaction ID would be sufficient |
Token Name : MartyParty
Tx ID: https://explorer.stacks.co/txid/0x3eab4af21bd830b0d8bc33a7f2faafa83feb32a5f53cc6be48e30a3d4f77ac9c?chain=mainnet <https://explorer.stacks.co/txid/0x3eab4af21bd830b0d8bc33a7f2faafa83feb32a5f53cc6be48e30a3d4f77ac9c?chain=mainnet>
Shows in Stackswap like this
Shows in Hiro like this
Cant be send or received and name is wrong.
Thanks!
… On Mar 21, 2023, at 4:18 PM, Rafael Cárdenas ***@***.***> wrote:
hi @martinfolb <https://github.com/martinfolb> can you provide more info about your token? Contract name or deploy transaction ID would be sufficient
—
Reply to this email directly, view it on GitHub <#139 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJTZNXH32S6OTUFFWZIGFDTW5IEJJANCNFSM6AAAAAAV6M3LAA>.
You are receiving this because you were mentioned.
|
Any news on this issue?
… On Mar 21, 2023, at 6:50 PM, Martin Folb ***@***.***> wrote:
Token Name : MartyParty
Tx ID: https://explorer.stacks.co/txid/0x3eab4af21bd830b0d8bc33a7f2faafa83feb32a5f53cc6be48e30a3d4f77ac9c?chain=mainnet <https://explorer.stacks.co/txid/0x3eab4af21bd830b0d8bc33a7f2faafa83feb32a5f53cc6be48e30a3d4f77ac9c?chain=mainnet>
Shows in Stackswap like this
<PastedGraphic-2.png>
Shows in Hiro like this
<PastedGraphic-1.png>
Cant be send or received and name is wrong.
Thanks!
<PastedGraphic-3.png>
> On Mar 21, 2023, at 4:18 PM, Rafael Cárdenas ***@***.*** ***@***.***>> wrote:
>
>
> hi @martinfolb <https://github.com/martinfolb> can you provide more info about your token? Contract name or deploy transaction ID would be sufficient
>
> —
> Reply to this email directly, view it on GitHub <#139 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJTZNXH32S6OTUFFWZIGFDTW5IEJJANCNFSM6AAAAAAV6M3LAA>.
> You are receiving this because you were mentioned.
>
|
Hi @martinfolb I can't see the pictures you shared in #139 (comment) After debugging on the API it looks like the transaction you shared deployed this contract which should contain your However, when the API tries to fetch metadata for it, the token metadata URI returned by the contract is an empty string |
Hi @rafaelcr, we can look into this URI issue. For clarity, could you provide what URI conforms to SIP-010? Also, is there any other part of the metadata that isn't in line with SIP-010? If this is the reason for the SIP-019 contract call, we should be able to attend to it. Thank you! |
Sure @kjchiang3 , basically, the contract should implement this trait function correctly: https://github.com/stacksgov/sips/blob/main/sips/sip-010/sip-010-fungible-token-standard.md#token-uri The returned JSON should also follow the standard specified here: https://github.com/stacksgov/sips/blob/main/sips/sip-016/sip-016-token-metadata.md#json-scheme-of-metadata Once you update URIs for contracts, you could emit a SIP-019 notification to have it be refreshed in the API automatically: stacksgov/sips#72 I'm going to close this issue but please feel free to continue asking questions here or to reopen if you find anything else. |
Thanks @rafaelcr, will report back. |
I used the Stackswap launch pad.
I have been talking with them - any way you can talk to them?
I talk to @StackswapJames on Telegram.
He says the meta data is correct but the API on Hiro is not reading it correctly.
… On Mar 27, 2023, at 10:54 AM, Rafael Cárdenas ***@***.***> wrote:
Hi @martinfolb <https://github.com/martinfolb> I can't see the pictures you shared in #139 (comment) <#139 (comment)>
After debugging on the API it looks like the transaction you shared deployed this contract which should contain your STSW-MARTYPARTY token: https://explorer.stacks.co/txid/0x293ca94ccf17001cefda85bb376a5335a0a25dda5bd84888879cffd717a3aa24?chain=mainnet <https://explorer.stacks.co/txid/0x293ca94ccf17001cefda85bb376a5335a0a25dda5bd84888879cffd717a3aa24?chain=mainnet>
However, when the API tries to fetch metadata for it, the token metadata URI returned by the contract is an empty string "". Can you check if there's a way to update this token metadata URI? As it stands today, it does not conform to SIP-010 and as a consequence it's not supported by the API.
—
Reply to this email directly, view it on GitHub <#139 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJTZNXDJ72RSUQIHRIET5O3W6GS3BANCNFSM6AAAAAAV6M3LAA>.
You are receiving this because you were mentioned.
|
I used the Stackswap launch pad.
I have been talking with them - any way you can talk to them?
I talk to @StackswapJames on Telegram.
He says the meta data is correct but the API on Hiro is not reading it correctly.
… On Mar 27, 2023, at 10:54 AM, Rafael Cárdenas ***@***.***> wrote:
Hi @martinfolb <https://github.com/martinfolb> I can't see the pictures you shared in #139 (comment) <#139 (comment)>
After debugging on the API it looks like the transaction you shared deployed this contract which should contain your STSW-MARTYPARTY token: https://explorer.stacks.co/txid/0x293ca94ccf17001cefda85bb376a5335a0a25dda5bd84888879cffd717a3aa24?chain=mainnet <https://explorer.stacks.co/txid/0x293ca94ccf17001cefda85bb376a5335a0a25dda5bd84888879cffd717a3aa24?chain=mainnet>
However, when the API tries to fetch metadata for it, the token metadata URI returned by the contract is an empty string "". Can you check if there's a way to update this token metadata URI? As it stands today, it does not conform to SIP-010 and as a consequence it's not supported by the API.
—
Reply to this email directly, view it on GitHub <#139 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJTZNXDJ72RSUQIHRIET5O3W6GS3BANCNFSM6AAAAAAV6M3LAA>.
You are receiving this because you were mentioned.
|
hi @rafaelcr, The token that Martin linked to was the LP token for the STSW-MARTY pool. I think we want to take a look at this instead: We tried notifying again: And are still here: MARTY token on our end: On the subject of token URI, we already had that json schema previously (as seen above on the MARTY json on our end) before attempting to following the xUSD json schema. And, on viewing the SIP-016 examples, there are many variations of json scheme. Would you be able to let us know a definite way that you have been able to notify the database on your end? Perhaps we can follow that path. |
Done! @martinfolb @kjchiang3 https://api.hiro.so/metadata/v1/ft/SP1Z92MPDQEWZXW36VX71Q25HKF5K2EPCJ304F275.tokensoft-token-v4ksopvchts Let me know if more token contracts need refreshing while we fix the underlying re-org issue in #131 |
Can I provide you with a list of the tokens that require updating for the time being? @rafaelcr |
Sure, go ahead @kjchiang3 |
v 4.14.0 just spins now?
… On Mar 28, 2023, at 10:45 AM, Rafael Cárdenas ***@***.***> wrote:
Done! @martinfolb <https://github.com/martinfolb> @kjchiang3 <https://github.com/kjchiang3> https://api.hiro.so/metadata/v1/ft/SP1Z92MPDQEWZXW36VX71Q25HKF5K2EPCJ304F275.tokensoft-token-v4ksopvchts <https://api.hiro.so/metadata/v1/ft/SP1Z92MPDQEWZXW36VX71Q25HKF5K2EPCJ304F275.tokensoft-token-v4ksopvchts>
Let me know if more token contracts need refreshing while we fix the underlying re-org issue in #131 <#131>
—
Reply to this email directly, view it on GitHub <#139 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJTZNXGJXRNBQCJMGP53E4LW6L2PHANCNFSM6AAAAAAV6M3LAA>.
You are receiving this because you were mentioned.
|
Firefox works!
Any way we can insert the profile logo?
Before I broadcast to my fans I want it really well tested - Ill start testing this side and feed back.
Thanks all.
… On Mar 28, 2023, at 12:33 PM, Rafael Cárdenas ***@***.***> wrote:
Sure, go ahead @kjchiang3 <https://github.com/kjchiang3>
—
Reply to this email directly, view it on GitHub <#139 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJTZNXHA2L5ORZBBUQYK4C3W6MHD5ANCNFSM6AAAAAAV6M3LAA>.
You are receiving this because you were mentioned.
|
You'll need to adjust the JSON file so that |
Hiro wallet still not displaying on Chrome - Just spins doesnt show the wallt details.
This is a known issue in 4.14.0?
… On Mar 28, 2023, at 12:31 PM, James ***@***.***> wrote:
Can I provide you with a list of the tokens that require updating for the time being? @rafaelcr <https://github.com/rafaelcr>
Really appreciate the help.
—
Reply to this email directly, view it on GitHub <#139 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJTZNXFIEEDLUZXKF5QINWDW6MG6JANCNFSM6AAAAAAV6M3LAA>.
You are receiving this because you were mentioned.
|
Any news guys?
… On Mar 28, 2023, at 6:10 PM, Rafael Cárdenas ***@***.***> wrote:
Any way we can insert the profile logo?
You'll need to adjust the JSON file so that image is a first-level value (as specified in SIP-016), see this example: https://cdn.citycoins.co/metadata/miamicoin.json <https://cdn.citycoins.co/metadata/miamicoin.json>
—
Reply to this email directly, view it on GitHub <#139 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJTZNXFXYNOZFKVTP3ZOPELW6NOVJANCNFSM6AAAAAAV6M3LAA>.
You are receiving this because you were mentioned.
|
@rafaelcr, i have a list of tokens that need updating on Hiro API database. would you please let me know what format you would prefer so as to save as much work as possible on your end? thank you. |
This musty be removed for any success.
… On Mar 31, 2023, at 1:33 AM, James ***@***.***> wrote:
@rafaelcr <https://github.com/rafaelcr>, i have a list of tokens that need updating on Hiro API database. would you please let me know what format you would prefer so as to save as much work as possible on your end? thank you.
—
Reply to this email directly, view it on GitHub <#139 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJTZNXGU6EHGZNXHXJH4BX3W6ZUDPANCNFSM6AAAAAAV6M3LAA>.
You are receiving this because you were mentioned.
|
Trying to add a STX-MARTYPARTY pool but interface doesnt let me?
… On Mar 31, 2023, at 1:33 AM, James ***@***.***> wrote:
@rafaelcr <https://github.com/rafaelcr>, i have a list of tokens that need updating on Hiro API database. would you please let me know what format you would prefer so as to save as much work as possible on your end? thank you.
—
Reply to this email directly, view it on GitHub <#139 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJTZNXGU6EHGZNXHXJH4BX3W6ZUDPANCNFSM6AAAAAAV6M3LAA>.
You are receiving this because you were mentioned.
|
Are there any plans to make charts for the Stacks tokens?
If not maybe I can start a project to do it - how would we get the price - from the contracts?
… On Mar 31, 2023, at 1:33 AM, James ***@***.***> wrote:
@rafaelcr <https://github.com/rafaelcr>, i have a list of tokens that need updating on Hiro API database. would you please let me know what format you would prefer so as to save as much work as possible on your end? thank you.
—
Reply to this email directly, view it on GitHub <#139 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJTZNXGU6EHGZNXHXJH4BX3W6ZUDPANCNFSM6AAAAAAV6M3LAA>.
You are receiving this because you were mentioned.
|
Obviously this is getting away from the topic of this issue but. . . I already have code which obtains historical (meaning for any completed swap transactions) prices for tokens from Arkadiko and Alex swaps by looking at transaction Hiro API. Would be easy enough to extend it to Stackswap as well. main problem is that it is in C# since that's my primary programming language and is designed just to populate a local database on my machine. But I'm happy to share it somehow if a project to create charts ops up. If I were to create one (no plans to do so) I would consider using stacksonchain as an alternative to the Hiro API, depending on how I designed it. |
nfpstudio.io from Despread is up and running as well. |
hi @rafaelcr, here's a list of current tokens launched from the Launchpad: thank you so much! |
Hi guys.
Yes but it does not show MartyParty chart = can we get MartyParty into all these lists etc? on Despread and stackswap front page?
Thanks!
… On Apr 3, 2023, at 4:12 AM, James ***@***.***> wrote:
nfpstudio.io from Despread is up and running as well.
—
Reply to this email directly, view it on GitHub <#139 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJTZNXFSAKZA4MJWF6SB5PTW7KBALANCNFSM6AAAAAAV6M3LAA>.
You are receiving this because you were mentioned.
|
I've started refreshing some of these but FYI images are not being consumed given that they don't appear as a first level https://api.hiro.so/metadata/ft/SP1Z92MPDQEWZXW36VX71Q25HKF5K2EPCJ304F275.tokensoft-token-v4kmazs39bv Can these JSONs be updated so they have the correct |
we've updated the JSONs accordingly: thanks! |
James - seems the Mary party price dropped significantly last night -
without charts I want to know how we can track this
- how do we see all the tax on MartyParty in the explorer ? Thanks!
On Tue, Apr 4, 2023 at 1:13 AM James ***@***.***> wrote:
@rafaelcr <https://github.com/rafaelcr>,
we've updated the JSONs accordingly:
https://stackswap-launchpad.s3.amazonaws.com/64d0f0d8-3d20-4b1a-bca5-f459e44e142a.json
image is now at a first level property.
thanks!
—
Reply to this email directly, view it on GitHub
<#139 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJTZNXDTSYB2LZ2EUCSKHMLW7OUYLANCNFSM6AAAAAAV6M3LAA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
…-----------------------------------
***@***.***
|
What’s the best way to track buys and sells in the explorer?
…On Tue, Apr 4, 2023 at 8:16 AM Martin Folb ***@***.***> wrote:
James - seems the Mary party price dropped significantly last night -
without charts I want to know how we can track this
- how do we see all the tax on MartyParty in the explorer ? Thanks!
On Tue, Apr 4, 2023 at 1:13 AM James ***@***.***> wrote:
> @rafaelcr <https://github.com/rafaelcr>,
>
> we've updated the JSONs accordingly:
>
> https://stackswap-launchpad.s3.amazonaws.com/64d0f0d8-3d20-4b1a-bca5-f459e44e142a.json
> image is now at a first level property.
>
> thanks!
>
> —
> Reply to this email directly, view it on GitHub
> <#139 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AJTZNXDTSYB2LZ2EUCSKHMLW7OUYLANCNFSM6AAAAAAV6M3LAA>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
--
-----------------------------------
***@***.***
--
-----------------------------------
***@***.***
|
Done @kjchiang3 , all tokens are now refreshed and I can confirm that they show up correctly. If you need any more help, feel free to open a new issue. Please refrain from discussing token prices and market activity in this thread, thank you. |
@buxor could it be cache on Xverse's side? This is the response from the API {
"name": "Ordinance",
"symbol": "ORD",
"decimals": 6,
"total_supply": "1000000000000000",
"token_uri": "https://stackswap-launchpad.s3.amazonaws.com/7ef29bcf-eae4-4e4d-bafd-54a83deb0c46.json",
"description": "Social credits for the Ordinals community, administered by the Bureaucrats.",
"image_uri": "http://s3-us-east-2.amazonaws.com/stackswap-launchpad/d37555bc-b4e7-47e9-b1e1-b3797467d924.png",
"image_canonical_uri": "http://s3-us-east-2.amazonaws.com/stackswap-launchpad/d37555bc-b4e7-47e9-b1e1-b3797467d924.png",
"tx_id": "0xf6b48220f4d23ca265e62a9f5458adbb0534081dab1cb9465fb7820023901edc",
"sender_address": "SP1Z92MPDQEWZXW36VX71Q25HKF5K2EPCJ304F275",
"metadata": {
"sip": 16,
"name": "Ordinance",
"description": "Social credits for the Ordinals community, administered by the Bureaucrats.",
"image": "http://s3-us-east-2.amazonaws.com/stackswap-launchpad/d37555bc-b4e7-47e9-b1e1-b3797467d924.png",
"cached_image": "http://s3-us-east-2.amazonaws.com/stackswap-launchpad/d37555bc-b4e7-47e9-b1e1-b3797467d924.png"
}
} |
Okay I’ll try moving some to hiro and check there, many thanks 🙌 |
Guys got 4.15.0 Hiro it shows the profile but looks like this.
should look like this
… On Apr 4, 2023, at 10:50 AM, James ***@***.***> wrote:
Just did a sample transaction on Stackswap, and the Hiro popup shows the following:
<https://user-images.githubusercontent.com/26572964/229831169-752c3de8-28bc-435d-8eb1-80198bbfb774.png>
However, if I right-click the broken image to open image in new tab, it shows up correctly.
—
Reply to this email directly, view it on GitHub <#139 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJTZNXB5IGT7RRGTGBOGBVLW7QYNDANCNFSM6AAAAAAV6M3LAA>.
You are receiving this because you were mentioned.
|
We had our token metadata in the SIP-010 format as follows:
We then updated it to check if we just had the wrong JSON schema, and followed the wrapped USD token information and schema:
stsw json: https://app.stackswap.org/token/stsw.json
xusd json link : https://wrapped.com/xusd.json
xusd hiro link : https://api.hiro.so/metadata/v1/ft/SP2TZK01NKDC89J6TA56SA47SDF7RTHYEQ79AAB9A.Wrapped-USD
{“name”:“Wrapped USD”,“symbol”:“xUSD”,“decimals”:8,“total_supply”:“31881338771272”,“token_uri”:“https://wrapped.com/xusd.json”,“description”:“Wrapped USD on Stacks (xUSD) is a 1:1 equivalent of stable-backed USD on the Stacks network.“,”image_uri”:“https://wrapped.com/images/xusd.png”,“image_canonical_uri”:“https://wrapped.com/images/xusd.png”,“tx_id”:“0xfe7848716ba423dfaf664a975771f75763720b0be8a0759a56b2d80a45692ca7”,“sender_address”:“SP2TZK01NKDC89J6TA56SA47SDF7RTHYEQ79AAB9A”,“metadata”:{“sip”:16,“name”:“Wrapped USD”,“description”:“Wrapped USD on Stacks (xUSD) is a 1:1 equivalent of stable-backed USD on the Stacks network.“,”image”:“https://wrapped.com/images/xusd.png”,“cached_image”:“https://wrapped.com/images/xusd.png”}}
We ran the contract call to update the metadata as follows:
tx: https://explorer.stacks.co/txid/0x9a3b332e85a34aeb32a5f5144a53e9ccbfde3dca6d1b1b303f20372429a7fc89?chain=mainnet
However, we are still left with the same information on the Hiro side:
stsw hiro: https://api.hiro.so/metadata/v1/ft/SP1Z92MPDQEWZXW36VX71Q25HKF5K2EPCJ304F275.stsw-token-v4a
{“name”:“STACKSWAP”,“symbol”:“STSW”,“decimals”:6,“total_supply”:“1000000000000000”,“token_uri”:“https://app.stackswap.org/token/stsw.json”,“tx_id”:“0x3edffbd025ca2c29cfde8c583c0e0babacd4aa21075d10307d37c64ae78d579e”,“sender_address”:“SP1Z92MPDQEWZXW36VX71Q25HKF5K2EPCJ304F275”}
Is there anything we are missing on how to carry this out correctly? We have also previously included both json scheme in the SIP-010 versions and the SIP-019 example in the documentation to cover all bases, but so far this hasn't worked. This is also important for us on the end of helping users quickly and easily create their tokens on the Stackswap Token Launchpad, so we have a few users, entrepreneurs, and project leaders keeping up with this issue so they may see their tokens show up correctly on the Hiro Wallet extension.
Thank you for your work on SIP-019 @rafaelcr ! Hope we can find a solution here.
The text was updated successfully, but these errors were encountered: