https://smartpy.io/ https://twitter.com/smartpy_io
You can copy the one in the origination page rather than the one in the IDE.
In the bottom of the origination page you have the code and storage.
The difference is the comments that are added in the IDE (they are not taken into account when originating but better call dev is unhappy)
Deployed on ghostnet with a Temple test wallet but my main wallet is tied to Kukai
Читать полностью…I have also to pair my wallet using the QRcode with the mobile Kukai wallet app and get an error
Читать полностью…The way to call an entrypoint from an entrypoint is to do a transfer, but that's not what you want.
Have you tried to call the mint entrypoint from a test scenario?
What mint logic do you want to have?
so, it's only in the @add_test block that we can call the mint method ?
Читать полностью…jumba.py:44: SyntaxError: Not an expression: self.mint([sp.record(metadata=token_metadata, to_=self.data.owner)], _sender=self.data.owner)
Traceback (most recent call last):
File "/home/neudjieu/Documents/projects/jumba-art/JumbaArt/minting/tezos/jumba.py", line 11, in <module>
@sp.module
ParseError: jumba.py:44: SyntaxError: Not an expression: self.mint([sp.record(metadata=token_metadata, to_=self.data.owner)], _sender=self.data.owner)
Hello, inheriting from main.Nft
provides you the three entrypoints.
Then you can choose to also inherit from main.MintNft
(this requires to inherit from main.Admin
). By doing that you also have a mint entrypoint that will only accept mint from admin.
This can be convenient as you can create another contract, a "minter" to hold all the logic about minting instead of having it in the FA2 contract. The minter will be the "admin" of the FA2.
Or you can write your own entrypoint to have a specific mint entrypoint directly in the contract.
Have you seen the example here?
https://smartpy.io/ide?template=fa2_lib_nft.py
Why don't I get the HTML output even if the HTML flag is true?
Читать полностью…I have tried this but it ends up being 1.9Mb and BCD has a limit of 1Mb, I may be doing something wrong
Читать полностью…I you cannot wait, I think https://better-call.dev/deploy supports kukai.
You can copy / save your .tz of the contract and storage and upload them there.
Hi, I am using SmartPy.io to deploy a tezos smart contract and I've run into an issue using the Kukai wallet to sign the transactions.
I am able to connect my Kukai wallet to SmartPy for the wallet connect but when I go to deploy the contract it returns an error
V0.22 is out:
- Improved Jupyter Notebook
- Modules auto-import
- Origination + call results access
- #Tezos Rio
- Instructions for LLMs / Cursor
👉 Release notes (https://smartpy.tezos.com/releases.html)
👉 Interactive release notes (https://smartpy.io/experimental-notebook/lab/index.html?path=releases%2F0.22.ipynb)
📚 New #SmartPy docs are live!
• FA2 tutorial: https://smartpy.tezos.com/tutorials/fa2-fungible.html
• Complete types reference: https://smartpy.tezos.com/manual/data-types/types.html
🛠 #SmartPy development just got easier!
• Local development guide (notably Cursor): https://smartpy.tezos.com/manual/introduction/local_development.html
• LLMs integration rules: https://smartpy.tezos.com/llm.txt
guys, what about creating smartcontract inheriting from sp.Contract ?🧐
i'm losing .....
following the example at this link : https://smartpy.io/ide?template=fa2_lib_nft.py
i tried to modify, that 's the error i got.
ok thank's.
it is the tutorial i followed 😊
ok i will try something.
i would like to write a smartcontract that mint NFT, using SmartPy.
so, on reading the docs of smartpy, i unterstand that a contract of type FA2 must have tree standard entry points (transfer, update_operator, and balance_of).
my first question : those entry points are already implemented, or the dev will do it itself ?
second question : the only way to mint a NFT is to inherit my class from the main.Nft classe ?
I just received this error. Cannot find any meaningful references as to what this means.
Any ideas?
yes, my main question was does it require 'return' statement?
Читать полностью…Does @sp.private EP need to return something? Or can I use it to perform operations when called by other EPs?
Читать полностью…Also, an update in the example shown in doc is needed.
https://smartpy.tezos.com/manual/scenarios/testing_contracts.html