321
https://smartpy.io/ https://twitter.com/smartpy_io
Hey all, just a quick heads up, tomorrow morning UK time the devops team will be updating the nameservers for the smartpy RPCs - so they might be down temporarily.
If you need it there is a list of other nodes here: https://docs.tezos.com/architecture/nodes
Hi, In which version does the transition from the version marked as 'legacy' to the modern version take place?
Читать полностью…
hey @cosmycoder - nice to meet you, we're not looking for devs right now on smartpy but if you want to dm me your linkedin or cv I can pass it on?
Читать полностью…
Could you let me know which name you would prefer to be referred to by?
Читать полностью…
Yes as soon as the final version is ready i will send you a copy
Читать полностью…
Sure, do you want to send it ? We may give you feedback if you want.
Читать полностью…
If your goal is to compile from Python code instead of invoking python3 contract.py, you can do it through a test scenario: instantiate the contract, add it to the scenario, and then read the compiled code and initial storage from origination_result. Like that:
import smartpy as sp
@sp.module
def main():
class C(sp.Contract):
def __init__(self, x: sp.int):
self.data.x = x
@sp.entrypoint
def ep(self):
pass
def compile_contract(contract_ref, *args):
scenario = sp.test_scenario()
contract = contract_ref(*args)
scenario += contract
return {
"code_json": contract.origination_result["code_json"],
"storage_json": contract.origination_result["storage_json"],
"code_tz": contract.origination_result["code_tz"],
"storage_tz": contract.origination_result["storage_tz"],
}
result = compile_contract(main.C, 0)
compile_contract, you have to build it yourself.
Читать полностью…
📣🚀😍 Announcing SmartPy v0.25 🔥🎉
https://smartpy.tezos.com/
The latest SmartPy update for Ushuaia and TezosX. Rio has left the building.
New features:
* Ushuaia is the default protocol, Rio has been removed.
* The Web IDE is rebuilt for TezosX: Previewnet is a first-class choice, the wallet uses octez.connect, Shadownet replaces Ghostnet, and the origination page is a stepped flow with editable code, fee estimation, and a ready-to-copy octez-client command.
* The names of entrypoints, onchain views and offchain views are now properly namespaced. Names can be distinguished by specifying contract.entrypoints, contract.onchain_views, or contract.offchain_views.
* contract.get_onchain_views() lists the on-chain views. get_offchain_views() no longer smuggles them into TZIP-16 metadata.
* Failures now say what failed, and a protocol error is no longer dressed up as a FAILWITH.
And more...
Please see https://smartpy.tezos.com/releases.html
Also available as a Jupyter notebook: https://smartpy.io/experimental-notebook/lab/index.html
The RPCs were successfully updated yesterday.
Please let us know if there are any RPC problems going forward.
Yekaterinatrofi Grrtend has been banned! Reason: CAS ban.
Читать полностью…
@sp.moduleЧитать полностью…
def main():
import smartpy.stdlib.utils as utils
📣🚀😍 And yet more improvements to the 0.25 alpha release 🔥🎉🙌
https://releases.smartpy.io/0.25.0a7/
This alpha includes some major improvements to the contract origination UX and also updates the protocol choices to include Ushuaia and remove Rio.
Please see the releases page for more info:
https://releases.smartpy.io/0.25.0a7/releases#v0-25-0a7
hey @TheMastroDev - it's a bit before my time with SmartPy but I think the first "new" version was 0.17.0 https://smartpy.tezos.com/releases.html#v0-17-0
maybe Jordan can verify?
📣🚀😍Announcing - SmartPy alpha release v0.25.0 🔥🎉🙌
https://releases.smartpy.io/0.25.0a4/
New Features
* New network selection choices for contract origination and wallet pages
* Introduce TezLink (Beta) Shadownet and Community node choices
* Much improved UX for test contract to origination journey
* Improved feedback on origination status by waiting for two block confirmations before showing success
* Updated Vite and related packages
* Clicking on compile contract now loads SmartPy IDE reliably
* New implementation of the SmartPy parser in Python - behind the SMARTPY_PYTHON_PARSER env var
Bug fixes:
* Improve parser error for contract's non-decorated method
* Fix for inline Michelson type error message
* Colorize and render traceback in a standard way
* Improve source code printing in exceptions for scenarios
* Auto-estimating gas costs which fixes corresponding origination failures
and more ...
Please see https://releases.smartpy.io/0.25.0a4/releases - also available as a Jupyter Notebook: https://releases.smartpy.io/0.25.0a4/experimental-notebook/lab/index.html?path=releases%2F0.25.ipynb
Great!
Let me say that on our side we're more than thankfull for the attention you're giving to SmartPy. Thank you!
Hi Jordan and @karoshibee, can I mention you in my Master’s thesis on SmartPy? For the support you’ve given me
Читать полностью…
Oh thanks, because i'm working on a toolchain for automatic execution and testing and through python code I was calling the bash for compiling code
Читать полностью…
It's possible to compile a smartpy contract via library function instead of calling it with 'python3 contract.py' ?
Читать полностью…