Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds crypto smart tokens and extends the smart contract model #2462

Merged
merged 6 commits into from Nov 16, 2021

Conversation

invisig0th
Copy link
Contributor

No description provided.

@invisig0th invisig0th changed the title WIP Adds crypto currency tokens and extends the contract model WIP Adds crypto smart tokens and extends the smart contract model Nov 10, 2021
@invisig0th invisig0th changed the title WIP Adds crypto smart tokens and extends the smart contract model Adds crypto smart tokens and extends the smart contract model Nov 15, 2021
@codecov
Copy link

codecov bot commented Nov 15, 2021

Codecov Report

Merging #2462 (d8223a7) into master (b2d2655) will decrease coverage by 0.11%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2462      +/-   ##
==========================================
- Coverage   97.16%   97.04%   -0.12%     
==========================================
  Files         194      194              
  Lines       36098    36098              
==========================================
- Hits        35076    35033      -43     
- Misses       1022     1065      +43     
Flag Coverage Δ
linux 97.04% <ø> (ø)
linux_replay ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
synapse/models/crypto.py 100.00% <ø> (ø)
synapse/tests/utils.py 94.00% <0.00%> (-2.05%) ⬇️
synapse/lib/hiveauth.py 96.22% <0.00%> (-0.72%) ⬇️
synapse/cortex.py 96.37% <0.00%> (-0.66%) ⬇️
synapse/lib/view.py 94.27% <0.00%> (-0.64%) ⬇️
synapse/lib/trigger.py 94.88% <0.00%> (-0.40%) ⬇️
synapse/lib/lmdbslab.py 99.51% <0.00%> (-0.20%) ⬇️
synapse/lib/hive.py 98.31% <0.00%> (+0.24%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b2d2655...d8223a7. Read the comment docs.

vEpiphyte
vEpiphyte previously approved these changes Nov 16, 2021
synapse/models/crypto.py Outdated Show resolved Hide resolved
synapse/models/crypto.py Outdated Show resolved Hide resolved
@vEpiphyte vEpiphyte merged commit 56fb5c2 into master Nov 16, 2021
@vEpiphyte vEpiphyte deleted the visi-model-20211110 branch November 16, 2021 21:01
@vEpiphyte vEpiphyte added this to the v2.7x.x milestone Nov 16, 2021
]''')
self.len(1, nodes)
node = nodes[0]
self.eq(node.get('coin'), 'btc')
self.eq(node.get('offset'), 12345)
self.eq(node.get('hash'), '0x01020304')
self.eq(node.get('time'), 1638230400000)

nodes = await core.nodes('''
[
crypto:smart:contract=*
:transaction=*
:bytecode=$input
:address = (btc, 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2)
Copy link

@iphelix iphelix Nov 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think 'btc' has smart contracts, 'eth' may be a better example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants