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

VM for smart contracts #5

Closed
4 tasks done
nearprotocol opened this issue Oct 11, 2018 · 0 comments
Closed
4 tasks done

VM for smart contracts #5

nearprotocol opened this issue Oct 11, 2018 · 0 comments
Assignees
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.
Milestone

Comments

@nearprotocol
Copy link

nearprotocol commented Oct 11, 2018

  • WebAssembly
  • Interaction with state
  • Transaction format for running functions
  • Example of payment contract
@evgenykuzyakov evgenykuzyakov self-assigned this Oct 30, 2018
@ilblackdragon ilblackdragon added this to the MVB milestone Nov 21, 2018
@ilblackdragon ilblackdragon added the C-enhancement Category: An issue proposing an enhancement or a PR with one. label Nov 21, 2018
chefsale added a commit that referenced this issue Mar 15, 2021
Test Plan:
```
sandi@sandi-ThinkPad-X1-Carbon-7th ~/w/n/n/t/i/example (master)> cargo run -p indexer-example run
   Compiling indexer-example v0.1.0 (/home/sandi/workspace/near/nearcore/tools/indexer/example)
    Finished dev [unoptimized + debuginfo] target(s) in 34.21s
     Running `/home/sandi/workspace/near/nearcore/target/debug/indexer-example run`
Mar 15 15:15:15.352  INFO indexer: Starting Streamer...
Mar 15 15:15:15.363  INFO stats: Server listening at ed25519:HumL9eo6ZHmNNkwmB6LpswH3YP7AA2RCjPR476LErS1i@0.0.0.0:24567
Mar 15 15:15:17.385  INFO indexer_example: #1 HNA6J8v6LHv6Ak3uD4X81GPS2sfvDgMHZhoy69AXJwkr Chunks: 0, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:18.401  INFO indexer_example: #2 5K2rKMqBUAua9eCA3uP46t3yntNZ8vbEFRLnBazBB6wH Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:18.913  INFO indexer_example: #3 C6mu4VXWerLBr1gBnBGexz2q5nMdLNbNbsw6Md2uxLWE Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:19.422  INFO indexer_example: #4 4Jh9G9WRWA3YuqCtRPrE8WuSWxvcyDfmLAPKU3YxPyvM Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:19.930  INFO indexer_example: #5 3MaretjoFgfcUoAcA7x9SvfvJf7Bi7mSjtXC9o1Z2RZB Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:20.461  INFO indexer_example: #6 644pcD9ZSz6dwjKpgc184RfnuXG6xB5pgwKT732ndRdt Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:21.489  INFO indexer_example: #7 rj8gRGK9n7SiLLsbsBnoFhnMNtrP424JQzaaWFE3mEo Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:21.997  INFO indexer_example: #8 2mQDVeaZZ12o68DSZA9mwxeCRBpKfZ2PqripV9tT9CGC Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:22.510  INFO indexer_example: #9 6sF7tWNLP9YCD2hxzicVHVwXVccQXn1xmXepKBcWJEGS Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:23.024  INFO indexer_example: #10 5yCfSrTKq51XMKhDKCHTJ9foEvNiNWwWmeMF16nCft19 Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
^CMar 15 15:15:23.565  INFO indexer_example: #11 6cW7QqzYBsUwNzJPUAXS5QPEtrEn4LFUFWtNNLyKtMF9 Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
```
chefsale added a commit that referenced this issue Mar 15, 2021
Test Plan:
```
sandi@sandi-ThinkPad-X1-Carbon-7th ~/w/n/n/t/i/example (master)> cargo run -p indexer-example run
   Compiling indexer-example v0.1.0 (/home/sandi/workspace/near/nearcore/tools/indexer/example)
    Finished dev [unoptimized + debuginfo] target(s) in 34.21s
     Running `/home/sandi/workspace/near/nearcore/target/debug/indexer-example run`
Mar 15 15:15:15.352  INFO indexer: Starting Streamer...
Mar 15 15:15:15.363  INFO stats: Server listening at ed25519:HumL9eo6ZHmNNkwmB6LpswH3YP7AA2RCjPR476LErS1i@0.0.0.0:24567
Mar 15 15:15:17.385  INFO indexer_example: #1 HNA6J8v6LHv6Ak3uD4X81GPS2sfvDgMHZhoy69AXJwkr Chunks: 0, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:18.401  INFO indexer_example: #2 5K2rKMqBUAua9eCA3uP46t3yntNZ8vbEFRLnBazBB6wH Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:18.913  INFO indexer_example: #3 C6mu4VXWerLBr1gBnBGexz2q5nMdLNbNbsw6Md2uxLWE Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:19.422  INFO indexer_example: #4 4Jh9G9WRWA3YuqCtRPrE8WuSWxvcyDfmLAPKU3YxPyvM Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:19.930  INFO indexer_example: #5 3MaretjoFgfcUoAcA7x9SvfvJf7Bi7mSjtXC9o1Z2RZB Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:20.461  INFO indexer_example: #6 644pcD9ZSz6dwjKpgc184RfnuXG6xB5pgwKT732ndRdt Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:21.489  INFO indexer_example: #7 rj8gRGK9n7SiLLsbsBnoFhnMNtrP424JQzaaWFE3mEo Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:21.997  INFO indexer_example: #8 2mQDVeaZZ12o68DSZA9mwxeCRBpKfZ2PqripV9tT9CGC Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:22.510  INFO indexer_example: #9 6sF7tWNLP9YCD2hxzicVHVwXVccQXn1xmXepKBcWJEGS Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:23.024  INFO indexer_example: #10 5yCfSrTKq51XMKhDKCHTJ9foEvNiNWwWmeMF16nCft19 Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
^CMar 15 15:15:23.565  INFO indexer_example: #11 6cW7QqzYBsUwNzJPUAXS5QPEtrEn4LFUFWtNNLyKtMF9 Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
```
near-bulldozer bot pushed a commit that referenced this issue Mar 15, 2021
Test Plan:
```
sandi@sandi-ThinkPad-X1-Carbon-7th ~/w/n/n/t/i/example (master)> cargo run -p indexer-example run
   Compiling indexer-example v0.1.0 (/home/sandi/workspace/near/nearcore/tools/indexer/example)
    Finished dev [unoptimized + debuginfo] target(s) in 34.21s
     Running `/home/sandi/workspace/near/nearcore/target/debug/indexer-example run`
Mar 15 15:15:15.352  INFO indexer: Starting Streamer...
Mar 15 15:15:15.363  INFO stats: Server listening at ed25519:HumL9eo6ZHmNNkwmB6LpswH3YP7AA2RCjPR476LErS1i@0.0.0.0:24567
Mar 15 15:15:17.385  INFO indexer_example: #1 HNA6J8v6LHv6Ak3uD4X81GPS2sfvDgMHZhoy69AXJwkr Chunks: 0, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:18.401  INFO indexer_example: #2 5K2rKMqBUAua9eCA3uP46t3yntNZ8vbEFRLnBazBB6wH Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:18.913  INFO indexer_example: #3 C6mu4VXWerLBr1gBnBGexz2q5nMdLNbNbsw6Md2uxLWE Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:19.422  INFO indexer_example: #4 4Jh9G9WRWA3YuqCtRPrE8WuSWxvcyDfmLAPKU3YxPyvM Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:19.930  INFO indexer_example: #5 3MaretjoFgfcUoAcA7x9SvfvJf7Bi7mSjtXC9o1Z2RZB Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:20.461  INFO indexer_example: #6 644pcD9ZSz6dwjKpgc184RfnuXG6xB5pgwKT732ndRdt Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:21.489  INFO indexer_example: #7 rj8gRGK9n7SiLLsbsBnoFhnMNtrP424JQzaaWFE3mEo Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:21.997  INFO indexer_example: #8 2mQDVeaZZ12o68DSZA9mwxeCRBpKfZ2PqripV9tT9CGC Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:22.510  INFO indexer_example: #9 6sF7tWNLP9YCD2hxzicVHVwXVccQXn1xmXepKBcWJEGS Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:23.024  INFO indexer_example: #10 5yCfSrTKq51XMKhDKCHTJ9foEvNiNWwWmeMF16nCft19 Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
^CMar 15 15:15:23.565  INFO indexer_example: #11 6cW7QqzYBsUwNzJPUAXS5QPEtrEn4LFUFWtNNLyKtMF9 Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
```
near-bulldozer bot pushed a commit that referenced this issue Dec 6, 2021
#5637)

…224)" (#5473)"

This comment commits the change for "Request chunks for multiple blocks simultaneously again".

Initially I reverted the change because testnet canary ran into OOM issues and we suspect that change caused the issue. However, I couldn't reproduce the issue when I started a new testnet rpc node (I restarted the node several times to test when it was behind). I am going to revert this commit because 1) testnet release is finished 2) it's good to test the change in betanet before the next testnet release

I also discovered a few other issues in the current implementation regarding requesting chunks, some of them will help with reducing network requests if that was the culprit. I will address them in separate PRs. After this, I will work with @nikurt to start a mocknet testing all these changes together.
mzhangmzz added a commit that referenced this issue Dec 17, 2021
#5637)

…224)" (#5473)"

This comment commits the change for "Request chunks for multiple blocks simultaneously again".

Initially I reverted the change because testnet canary ran into OOM issues and we suspect that change caused the issue. However, I couldn't reproduce the issue when I started a new testnet rpc node (I restarted the node several times to test when it was behind). I am going to revert this commit because 1) testnet release is finished 2) it's good to test the change in betanet before the next testnet release

I also discovered a few other issues in the current implementation regarding requesting chunks, some of them will help with reducing network requests if that was the culprit. I will address them in separate PRs. After this, I will work with @nikurt to start a mocknet testing all these changes together.
mzhangmzz added a commit that referenced this issue Jan 7, 2022
#5637)

…224)" (#5473)"

This comment commits the change for "Request chunks for multiple blocks simultaneously again".

Initially I reverted the change because testnet canary ran into OOM issues and we suspect that change caused the issue. However, I couldn't reproduce the issue when I started a new testnet rpc node (I restarted the node several times to test when it was behind). I am going to revert this commit because 1) testnet release is finished 2) it's good to test the change in betanet before the next testnet release

I also discovered a few other issues in the current implementation regarding requesting chunks, some of them will help with reducing network requests if that was the culprit. I will address them in separate PRs. After this, I will work with @nikurt to start a mocknet testing all these changes together.
mooori added a commit to mooori/nearcore that referenced this issue Apr 4, 2023
* Move GasCounter to Wasmer2SubmoduleState

* Add docs regarding SAFETY

* Add `gas` host function for submodules

* Reference github issues in TODOs

* Fix typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

2 participants