-
Notifications
You must be signed in to change notification settings - Fork 293
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
feat!: aztec binary #3927
Merged
Merged
feat!: aztec binary #3927
Changes from 15 commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
64c08b6
WIP 'aztec' CLI & renaming sandbox
spypsy 47f2bcf
finish renaming
spypsy 89ec92c
add standalone archiver
spypsy 8e81b10
add p2p bootstrap node
spypsy 68daf3d
command descriptions
spypsy 516256c
merge with master
spypsy 5dc0208
typing fixes
spypsy d64ca3f
update scripts
spypsy d732330
remove old sandbox bin
spypsy a1d1c14
add 'aztec cli' call
spypsy 7f70ca3
merge with master
spypsy d685c04
fix compose files
spypsy 48edee5
fix ports
spypsy d5659e2
merge with master
spypsy 2950770
fix typo
spypsy 72ade94
fix more imports
spypsy 52457ae
merge with master
spypsy 7056584
fix build
spypsy 755cb60
fix imports
spypsy 1db41cc
remove openDB fn from kv-store
spypsy 8d4cf64
undo formatting
spypsy 1531044
move rpc clients
spypsy 1181167
multi-class rpc server
spypsy 524d9d2
WIP using multi json rpc server
spypsy 67d9e06
JSON RPC fixes
spypsy 0a1ac9f
Merge branch 'master' into spy/aztec-package
spypsy a118638
debug logging
spypsy e1aa2d6
update lmdb
spypsy 859743b
fix: pxe notes crashing spuriously (#4049)
alexghr 90a4dc4
multi-jsonRPC server fixes
spypsy 1c04047
export types
spypsy 01133af
Merge branch 'master' into spy/aztec-package
spypsy 07d890a
update tests
spypsy d924b25
fix formatting
spypsy 6d357eb
remove json-rpc logs
spypsy 7245c72
fix: notes database
alexghr c7e29f5
skip return conversion as well in multi rpc
spypsy 825f61f
merge with master
spypsy 40288a7
update boxes yarn.lock
spypsy 556c5de
fix: give mock Notes an index
alexghr 05ec40d
fix blank box webpack
spypsy 6f12784
fix json-rpc conversion
spypsy 5754f1b
Merge branch 'master' into spy/aztec-package
spypsy eb83d0f
update terraforms
spypsy c964387
Merge branch 'master' into spy/aztec-package
spypsy 04a45b3
remove openDb util
spypsy 4bfae4e
yarn prepare
spypsy d550007
update sandbox reference
spypsy b9db631
Addressing PR comments
spypsy 884b402
Remove lodash.pick from aztec package
spypsy 2c3605a
allow 0x private keys in aztec-cli
spypsy ed84f92
Fix archiver client + contract address requirements
spypsy 45b41b6
namespace rpc server by default, remove unused 'useApi' option
spypsy af7d63d
'aztec sandbox' starts the full sandbox
spypsy 374664d
remove 'sandbox' command
spypsy 94d67a4
Merge branch 'master' into spy/aztec-package
spypsy eb28fdc
PR Fixes
spypsy bca525b
fix typo
spypsy 157af11
Merge branch 'master' into spy/aztec-package
spypsy 72139a2
update lmdb store method
spypsy 1bd1700
remove unused packages from aztec
spypsy f9b5858
merge with master
spypsy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
$(dirname $0)/.aztec-run aztecprotocol/aztec-sandbox $@ | ||
# Call cli image if used with `aztec cli ...args` | ||
if [ "$1" == "cli" ]; then | ||
shift | ||
$(dirname $0)/.aztec-run aztecprotocol/cli $@ | ||
else | ||
$(dirname $0)/.aztec-run aztecprotocol/aztec $@ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
yarn-project/archiver/src/archiver/archiver_http_server.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { | ||
ContractData, | ||
EncodedContractFunction, | ||
ExtendedContractData, | ||
ExtendedUnencryptedL2Log, | ||
L1ToL2Message, | ||
L2Block, | ||
L2BlockL2Logs, | ||
} from '@aztec/circuit-types'; | ||
import { EthAddress, Fr } from '@aztec/circuits.js'; | ||
import { JsonRpcServer } from '@aztec/foundation/json-rpc/server'; | ||
|
||
import { Archiver } from './archiver.js'; | ||
|
||
/** | ||
* Wrap an Archiver instance with a JSON RPC HTTP server. | ||
* @param archiverService - The Archiver instance | ||
* @returns An JSON-RPC HTTP server | ||
*/ | ||
export function createArchiverRpcServer(archiverService: Archiver): JsonRpcServer { | ||
return new JsonRpcServer( | ||
archiverService, | ||
{ | ||
ContractData, | ||
EncodedContractFunction, | ||
EthAddress, | ||
ExtendedContractData, | ||
ExtendedUnencryptedL2Log, | ||
Fr, | ||
L1ToL2Message, | ||
L2Block, | ||
L2BlockL2Logs, | ||
}, | ||
{}, | ||
false, | ||
['start', 'stop'], | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aztec node shouldn't need an aztec.js dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yes, removed the code, forgot to uninstall