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

Programmability - prep for merge #213

Merged
merged 51 commits into from
Aug 1, 2023
Merged

Programmability - prep for merge #213

merged 51 commits into from
Aug 1, 2023

Conversation

AlexRamRam
Copy link
Contributor

No description provided.

metalicjames and others added 17 commits March 6, 2023 16:06
Signed-off-by: James Lovejoy <[email protected]>
Co-authored-by: Gert-Jaap Glasbergen <[email protected]>
Signed-off-by: James Lovejoy <[email protected]>
Signed-off-by: James Lovejoy <[email protected]>
Signed-off-by: James Lovejoy <[email protected]>
Co-authored-by: Gert-Jaap Glasbergen <[email protected]>
Signed-off-by: James Lovejoy <[email protected]>
Signed-off-by: James Lovejoy <[email protected]>
Co-authored-by: Gert-Jaap Glasbergen <[email protected]>
Signed-off-by: James Lovejoy <[email protected]>
Signed-off-by: James Lovejoy <[email protected]>
Co-authored-by: Gert-Jaap Glasbergen <[email protected]>
Signed-off-by: James Lovejoy <[email protected]>
Signed-off-by: James Lovejoy <[email protected]>
Co-authored-by: Gert-Jaap Glasbergen <[email protected]>
Signed-off-by: James Lovejoy <[email protected]>
Signed-off-by: James Lovejoy <[email protected]>
Co-authored-by: Gert-Jaap Glasbergen <[email protected]>
Signed-off-by: James Lovejoy <[email protected]>
Signed-off-by: Gert-Jaap Glasbergen <[email protected]>
Signed-off-by: James Lovejoy <[email protected]>
@maurermi maurermi force-pushed the programmability branch 2 times, most recently from 38fa499 to 40c92fd Compare April 5, 2023 18:56
@maurermi maurermi force-pushed the programmability branch 4 times, most recently from ce7e857 to 45f19cc Compare April 6, 2023 19:55
@AlexRamRam AlexRamRam force-pushed the programmability branch 3 times, most recently from b60d8e1 to b51f20c Compare April 10, 2023 14:35
@AlexRamRam AlexRamRam force-pushed the programmability branch 2 times, most recently from c4d0fd0 to e13f056 Compare May 1, 2023 18:18
Copy link
Collaborator

@HalosGhost HalosGhost left a comment

Choose a reason for hiding this comment

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

I have a few very small style/typo nits, none of which are particularly high-priority.

Assuming the final bits of documentation follow all the same criteria current docs have gone through, that the renaming goes without a hitch (@maurermi and I chatted about strategy for this a bit offline, and I think there's a good plan in-place), and that the commits are squashed appropriately, I think this is set to merge. 👍

AlexRamRam and others added 8 commits June 20, 2023 16:59
- Restructure primary README
- Move Atomizer/2PC run the code section to a separate doc
- Add programmability architecture writeup and diagrams
- Add placeholder for user manual

Signed-off-by: Alexander Jung <[email protected]>
Also document to clarify native value transfers in evm_host

Fix #214

Signed-off-by: Alexander Jung <[email protected]>
Adds a sample ERC20 contract and deploy script to
go along with the programmability user guide. Adds a
script to run 3PC locally, and updates the 3pc
docker-compose file to reflect OpenCBDC image naming
convention.

Signed-off-by: Michael Maurer <[email protected]>
Introduces a user guide for interacting with 3PC, based off a guide
written by @wadagso-gertjaap.

Update lint.sh to ignore .md files for trailing whitespace.

Signed-off-by: Michael Maurer <[email protected]>

Co-authored-by: Gert-Jaap Glasbergen <[email protected]>
…sactions

Also:
- Rename agent state code `function_error` -> `function_exception` to
  distinguish from `function_failed`. `function_exception` conveys an
  unexpected system error
- `agent::impl::do_try_lock_request()` & `broker::impl::try_lock()` - clarify
  that false return value is returned only upon unexpected exceptions

Fix #216

Signed-off-by: Alexander Jung <[email protected]>
Cleanup re [[fallthrough]] in switch statements (Fix #220)
  - src/3pc/agent/impl.cpp
  - src/3pc/broker/impl.cpp
  - src/uhs/twophase/coordinator/format.cpp
src/3pc/agent/impl.cpp
  - do_commit(): remove unused code block in lambda callback passed to m_broker->commit()
src/3pc/agent/runners/interface.hpp
& src/3pc/agent/runners/lua/impl.hpp
& src/3pc/agent/runners/evm/impl.hpp
  - runner::interface::run(): add [[nodiscard]] and comments
src/3pc/agent/runners/evm/init_addresses.hpp
  - rename init_addresses → init_addresses_for_testing
src/3pc/agent/runners/evm/serialization.hpp
  - fix broken doc comments
src/3pc/directory/impl.cpp
& src/3pc/directory/impl.hpp:
  - key_location(): note that using modulo operation creates a (very) small bias from a uniform distribution
src/util/rpc/http/kqueue_event_handler.cpp
  - init(): fix if statement containing assignment
tests/unit/3pc/agent/runners/evm/evm_test.cpp
  - Direct reader to origins of bytecode

Signed-off-by: Alexander Jung <[email protected]>

temp

Signed-off-by: Alexander Jung <[email protected]>
Removes the large bytecode string for the Lua pay contract
and generates bytecode at runtime. Now expects that the
.lua file containing the contract code is provided as a
config input in lua_bench.

Makes similar change in account_test.cpp to generate
bytecode at runtime. Moves location of and slightly
modifies gen_bytecode.lua to better integrate within
c++ source code.

Signed-off-by: Michael Maurer <[email protected]>
Adds doc comments to evm_bench and tools/bench/3pc/evm/rpc_client.
Also addresses lack of doc comments in host.hpp by pointing upstream.

Signed-off-by: Michael Maurer <[email protected]>
Copy link
Collaborator

@maurermi maurermi left a comment

Choose a reason for hiding this comment

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

T-ACK. I think this is set to merge pending the name change.

AlexRamRam and others added 2 commits July 21, 2023 16:05
In evm_host::create(), the evmc::result return object must have the
create_address member set to the new contract address (the VM does
not set it)

If left as 0x0, deployment of contracts by another contract (i.e. at
depth>0) is likely to fail such as in UniswapV3Factory.createPool()

Signed-off-by: Alexander Jung <[email protected]>
Rename all instances of 3PC to PArSEC.

Signed-off-by: Michael Maurer <[email protected]>
Co-authored-by: Alexander Jung <[email protected]>
Co-authored-by: Anders Brownworth <[email protected]>
@HalosGhost HalosGhost mentioned this pull request Jul 31, 2023
@HalosGhost HalosGhost force-pushed the programmability branch 2 times, most recently from c6d273e to 6ed25e4 Compare August 1, 2023 00:13
@HalosGhost
Copy link
Collaborator

HalosGhost commented Aug 1, 2023

Finalized reconciliation of rename, and updated docs. 👍 from me. Ready for merge.

@HalosGhost HalosGhost merged commit 859dd62 into trunk Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants