smartpy_io | Unsorted

Telegram-канал smartpy_io - SmartPy

429

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

Subscribe to a channel

SmartPy

Hi,
can I check your module import deps are B <- A <- test code ?

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

SmartPy

Will a storage var be enough to just store the params in the beginning and then access it in the last call? Hopefully this storage var cannot be updated by another contract call before this tx ends?

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

SmartPy

User(params)->A->B->A <--- (how do I get the users context/params in this last call accurately)

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

SmartPy

I didn't understand the 2nd question, could you elaborate?

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

SmartPy

And how do we map the context between calls like do I store it in the storage?

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

SmartPy

The callback from (B -> A) will already execute on the new storage of A after (A -> B).

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

SmartPy

I see so the contract call is not a blocking call and basically it always happens at the end of the execution of the current entrypoint?

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

SmartPy

It is not possible. Why would you need that?

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

SmartPy

The documentation is here: https://smartpy.io/reference.html

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

SmartPy

Hello all, I code in python and have been using import hashlip . Is there an outline for Tezos ? Thanks

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

SmartPy

We have used compile only FFF , Looking forward for the upgrade in interface, I'll update the Bundle accordingly 😄

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

SmartPy

😢would SmartPy.sh compile work instead? @CryptoScroller

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

SmartPy

@BhaskarKS please check.

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

SmartPy

Dear all, is anyone using SmartPy.sh run? We are thinking of getting rid of it and only keep compile and test. Also, we'll possibly change the compile interface but it's still being discussed.

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

SmartPy

(as Raphaël said in fact)

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

SmartPy

Like no mapping but a simple dump into a var self.data.storageVar=params

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

SmartPy

You can have a big map (requestId => requestBody) in A, then you call B with the requestId and then B calls you with the same requestId. That way, you can get the requested parameters without much cost.

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

SmartPy

The second question is mostly about maintaining the context between the initial and last call to A. Like if a user calls A with some set of params how do I maintain that context when B calls back to A at the end/

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

SmartPy

About the first question. Yes, B would call A and then A would do some action depending on the value provided from B.

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

SmartPy

I meant like if contract A wants to access contract B's storage and do some operation depending on it how is it achieved in this model? Is it like the new entrypoint of A will have to handle the actual execution after B calls back to that entrypoint?

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

SmartPy

There was some use case I wanted to test. But if this is not possible how do we generally handle callbacks or view function calls from a contract?

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

SmartPy

Once B calls A, A can do anything you want. Anyway, the first call from A is fully evaluated before calling any other contract.

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

SmartPy

I have 2 contracts A and B. A calls B and B calls another entrypoint of A and modifies the storage in that last call. Is it possible to access that modified storage in the initial call from A? My initial entrypoint in A looks something like this :

def entrypointA(self):
# some operation
sp.transfer(......) #call to B
# access modified storage

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

SmartPy

https://smartpy.io/ide?template=testHashFunctions.py

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

SmartPy

we aren't dependent on SmartPy.sh run script for the cryptocodeschool so it shouldn't be a problem.

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

SmartPy

What I expect: whenever you use run, you can replace it by compile.

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

SmartPy

Yes we are using SmartPy.sh FFF , Let us know the updates coming forward so that we can improvise on our products

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

SmartPy

@CryptoScroller it is being used in bundle,

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

SmartPy

Thank you for your help Raphaël and FFF !

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

SmartPy

I think the issue is here:

# send tickets
# finds the ticket from the sender
PAIR ;
DUP ;
UNPAIR ;

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