smartpy_io | Unsorted

Telegram-канал smartpy_io - SmartPy

429

https://smartpy.io/ https://twitter.com/smartpy_io

Subscribe to a channel

SmartPy

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)

Читать полностью…

SmartPy

How do I save it as a tz out of smartpy?

Читать полностью…

SmartPy

Deployed on ghostnet with a Temple test wallet but my main wallet is tied to Kukai

Читать полностью…

SmartPy

I have also to pair my wallet using the QRcode with the mobile Kukai wallet app and get an error

Читать полностью…

SmartPy

Еva has been banned! Reason: CAS ban.

Читать полностью…

SmartPy

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?

Читать полностью…

SmartPy

so, it's only in the @add_test block that we can call the mint method ?

Читать полностью…

SmartPy

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)

Читать полностью…

SmartPy

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

Читать полностью…

SmartPy

hello guys hope you are doing well...

Читать полностью…

SmartPy

Not necessarily
Its upto you

Читать полностью…

SmartPy

You can use it to perform operations as well.

Читать полностью…

SmartPy

Why don't I get the HTML output even if the HTML flag is true?

Читать полностью…

SmartPy

I'll have a look soon.

Читать полностью…

SmartPy

That works.
Thank you 🫡

Читать полностью…

SmartPy

I have tried this but it ends up being 1.9Mb and BCD has a limit of 1Mb, I may be doing something wrong

Читать полностью…

SmartPy

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.

Читать полностью…

SmartPy

I'll have a look.
You're deploying on mainnet ?

Читать полностью…

SmartPy

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

Читать полностью…

SmartPy

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

Читать полностью…

SmartPy

guys, what about creating smartcontract inheriting from sp.Contract ?🧐
i'm losing .....

Читать полностью…

SmartPy

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.

Читать полностью…

SmartPy

ok thank's.

it is the tutorial i followed 😊
ok i will try something.

Читать полностью…

SmartPy

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 ?

Читать полностью…

SmartPy

I just received this error. Cannot find any meaningful references as to what this means.
Any ideas?

Читать полностью…

SmartPy

yes, my main question was does it require 'return' statement?

Читать полностью…

SmartPy

Does @sp.private EP need to return something? Or can I use it to perform operations when called by other EPs?

Читать полностью…

SmartPy

Also, an update in the example shown in doc is needed.

https://smartpy.tezos.com/manual/scenarios/testing_contracts.html

Читать полностью…

SmartPy

I definitely need to update that. Sorry for that.

Читать полностью…

SmartPy

Can you try with now instead of _now?

Читать полностью…
Subscribe to a channel