Replies: 4 comments 2 replies
-
Contract namesCurrent stateMain contractclass C(gl.Contract):
...Untyped internal contractContractAt(Address("0xaddr"))Typed internal contract@gl.contract_interface
class MyContract:
class View:
def view_meth(self, i: int) -> int: ...
class Write:
def write_meth(self, i: int) -> None: ...External contracts@gl.eth_contract
class Ghost:
class View:
pass
class Write:
def test(self, x: u256, /) -> None: ...Issues
ChangesNamesFor external (eth) contracts:
Main contract:
Untyped internal contract:
Typed internal contract:
Implementation limitationsIt seems that it is impossible to keep syntax with nested classes with deriving instead of decorators |
Beta Was this translation helpful? Give feedback.
1 reply
-
Web module reworksee #137 Proposed syntax: gl.web.get('http://example.org', headers=dict[str, str])
gl.web.post('http://example.org', body=bytes|dict)
...
gl.web.render('http://example.org', mode='html|text|screenshot') |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Separate "namespace" for eq_principle |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ideas for better names (and other "syntactic" changes) for entities provided for Python contracts
Currently exposed methods: https://sdk.genlayer.com/api/public/index.html
Beta Was this translation helpful? Give feedback.
All reactions