Skip to content
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

rgb import rgb20-simplest.rgb Command Errors #251

Open
TanWanBenWan opened this issue Sep 15, 2024 · 8 comments
Open

rgb import rgb20-simplest.rgb Command Errors #251

TanWanBenWan opened this issue Sep 15, 2024 · 8 comments

Comments

@TanWanBenWan
Copy link

After successfully generating the contract file using cargo run, I encountered an error while executing the command rgb import examples/rgb20-simplest.rgb. The error messages stated 'stock file is damaged, failing' and 'Error: entity not found'. I'm quite frustrated and need guidance on what to do next

@zoedberg
Copy link
Contributor

The file examples/rgb20-simplest.rgb doesn't exist. Moreover on beta 8 there is an issue on how a missing stock error is handled, #248 fixes that.

@dr-orlovsky
Copy link
Member

You should also remove contents of the old ~/.lnp-bp first

@romancerny
Copy link

romancerny commented Sep 24, 2024

deleted .lnp-bp folder content & using .rgb files from https://github.com/RGB-WG/rgb-schemata/tree/v0.11/schemata
but still get:

❯ rgb import rgb-schemata/schemata/NonInflatableAssets.rgb
stock file is damaged, failing
Error: entity not found

❯ rgb -V
rgb-wallet 0.11.0-beta.8

created wallet using:

❯ rgb create my_wallet --esplora --wpkh "[cc9c869f/86'/1'/0']tpubDDsWDHKVH1kcnup7RQHLBQWGi2JZ75QE31FDojXceVZr8DW9NrrES2xLA2jKyUYs25t4YRz7SqkMeV5KqVoPSrAQTPo9Hj8ccZWAmXq2FnM/<0;1;9;10>/*"
Loading descriptor from command-line argument
SyncingSyncing keychain 0 . keychain 1 . keychain 9 . keychain 10 . partial, some requests has failed:

please advise, thanks

@dr-orlovsky
Copy link
Member

@romancerny I believe you are experiencing #254

Can you please try using the code from that PR?

@romancerny
Copy link

romancerny commented Sep 25, 2024

@dr-orlovsky that worked with following output. Thanks very much :-)

Importing kit rgb:kit:$Rniyeda-KT4Rnce-aN9gKgA-xkhhVMC-y4SEO8L-KQd9DYI:

  • interface RGB20Fixed $iUnO9aO-1xhqUd6-1Jm5S5!-wM3ngby-5GVEylQ-ZTAMYDk#tornado-pioneer-bucket
  • schema NonInflatableAsset RDYhMTR!9gv8Y2GLv9UNBEK1hcrCmdLDFk9Qd5fnO8k#brave-dinner-banana
  • implementation of RGB20Fixed for NonInflatableAsset
  • script library alu:q$CZ0ovt-UN9eBlc-VMn86mz-Kfd3ywu-f7$9jTB-k6A8tiY#japan-nylon-center
  • strict types: 89 definitions
    Kit is imported

(I've locally compiled that PR branch)

@romancerny
Copy link

romancerny commented Sep 25, 2024

is this gonna be in rgb-wallet 0.11.0-beta.9 release?

@dr-orlovsky
Copy link
Member

Yes

@romancerny
Copy link

romancerny commented Sep 25, 2024

If anyone finds this thread helpful: running the following gives '!9: event not found' error which can be solved the same way as above :-)

rgb issue rgb:sch:RDYhMTR!9gv8Y2GLv9UNBEK1hcrCmdLDFk9Qd5fnO8k#brave-dinner-banana tprv8ZgxMBicQKsPeuLFQ6Ej8pKSxv7K1A4VwbAGBSTFwTyxkioeGKwV3nthVSnwJ41bWafzFoKPGQyNLnYcrEpsbWMUNKdwTtDRaWgGf1n38v5 /home/roman/.lnp-bp/rgb-examples/examples/rgb20-demo.yaml

Also, running it on the PR, there is 1 new argument (comparing to .md)

sorry to ask here, what is 'Issuer identity string'? is it public key or private key? what format is it in? example string would be greatly appreciated :-)


Usage: rgb issue [OPTIONS] SCHEMA ISSUER CONTRACT

Arguments:
SCHEMA Schema name to use for the contract
ISSUER Issuer identity string
CONTRACT File containing contract genesis description in YAML format


Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants