-
Notifications
You must be signed in to change notification settings - Fork 19
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
Cairo 2.4.3 + components + starknet.go (RPC v0.6, tx v3) #343
Merged
Merged
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
154c016
nix: Update flake dependencies
archseer 65859b4
Upgrade scarb and cairo to 2.4.3
archseer 402abd9
Pass tests apart from erc677
archseer b79b6bb
Rewrite ERC677 as a component
archseer d95e565
Refactor Ownable as a component
archseer 385ccc4
Upgradeaable: remove broken test
archseer 468eb8c
Refactor AccessControl into a component
archseer 0530156
Use latest upstream sdk: starknet.go
archseer 10edfb8
Remove venv
archseer d72c069
Switch to new starknet-devnet
archseer 8d0feb7
fix a couple go tests
archseer 5ed6cb7
Fix nonce manager so it passes tests
archseer a644512
txm: Fix integration tests
archseer b63a621
Fix devnet startup wait
archseer 56e5a38
Switch to v3 transactions for future compat
archseer 3e320e1
scarb fmt
archseer 2f61b87
node-gyp requires python
archseer c49eca4
Update starknet.js
archseer c5c3f5f
Use the external devnet over startNetwork()
archseer 0f8be32
Stop relying on venv during e2e test prep
archseer d7693b1
Spin up devnet before test-integration-go
archseer 31a8467
test: fix devnet seed 0 account information
archseer 0cc29bd
test: fix multisig signer constants
archseer 5ffb88b
Update to starkgate 2.0 interface
archseer 8d40514
Fix compiled artifact suffixes for latest scarb
archseer 6544e20
Disable starknet-hardhat-plugin tests so they don't waste CI time
archseer 0d99566
ts: token test: Reuse devnet constants in test
archseer b69db46
test: Remove unused file
archseer bf07476
fix e2e linter + standardize gomodtidy (#352)
aalu1418 717f9b7
Fixing E2E
smickovskid f39ea79
Removed improper escape chars
smickovskid d23946a
Trying devnet max fee fix
smickovskid 89e7ff0
Changed min gas fee
smickovskid b51240f
devnet: Set gas-price to 1
archseer ff5c6c4
devnet: Set gas-price to 1 in helm chart too
archseer c5a4481
txm: Revert back to V1 transactions
archseer bcdfd83
Bumping deps
smickovskid a9bd40d
Fixed missing go file reference
smickovskid 841faf5
Reverted CI job
smickovskid d68066e
Fixing CI
smickovskid b780c8e
Adding logging
smickovskid 89cea5b
Added formatting to CI
smickovskid 9a6f211
Fixing pipeline
smickovskid ff9f60d
Fixing pipeline
smickovskid 0bc77e4
Added logging
smickovskid e6f7597
Import OZ 0.8.1 Account preset, remove reliance on an old package
archseer 58d9847
Fix account deployment test
archseer 49f4177
devnet: Pin to commit, manually downloading cairo not needed anymore
archseer 660cfc5
tests: Rewrite to drop k3d, use same setup as chainlink-cosmos
archseer 4d112f9
tests: Slight cleanup
archseer 3bbc56c
update relayer
augustbleeds 168491a
adds recursive multisig cairo tests
chris-de-leon-cll c20ef0f
bump chainlink version
augustbleeds 9d6d994
working local soaktests (#357)
augustbleeds f9153e4
dropping packages-ts/integration-multisig
chris-de-leon-cll 00cac1d
Merge pull request #359 from smartcontractkit/feat/BCI-2027-multisig-…
archseer e1051e3
BCI-2625: add TypeAndVersion interface and usage (#353)
augustbleeds 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,3 +164,5 @@ integration-tests/soak/logs | |
remote.test | ||
ztarrepo.tar.gz | ||
eslint-report.json | ||
.run.id | ||
.local-mock-server |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Code generated by scarb DO NOT EDIT. | ||
version = 1 | ||
|
||
[[package]] | ||
name = "chainlink" | ||
version = "0.1.0" | ||
dependencies = [ | ||
"openzeppelin", | ||
] | ||
|
||
[[package]] | ||
name = "openzeppelin" | ||
version = "0.8.0" | ||
source = "git+https://github.com/OpenZeppelin/cairo-contracts.git?tag=v0.8.0#c23e8e96de60e6e3159b1ff8591a1187269c0eb7" |
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
Empty file.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// copied from https://github.com/OpenZeppelin/cairo-contracts/blob/v0.8.1/src/presets/account.cairo | ||
|
||
// SPDX-License-Identifier: MIT | ||
// OpenZeppelin Contracts for Cairo v0.8.1 (presets/account.cairo) | ||
|
||
/// # Account Preset | ||
/// | ||
/// OpenZeppelin's basic account which can change its public key and declare, deploy, or call contracts. | ||
#[starknet::contract(account)] | ||
mod Account { | ||
use openzeppelin::account::AccountComponent; | ||
use openzeppelin::introspection::src5::SRC5Component; | ||
|
||
component!(path: AccountComponent, storage: account, event: AccountEvent); | ||
component!(path: SRC5Component, storage: src5, event: SRC5Event); | ||
|
||
// Account | ||
#[abi(embed_v0)] | ||
impl SRC6Impl = AccountComponent::SRC6Impl<ContractState>; | ||
#[abi(embed_v0)] | ||
impl SRC6CamelOnlyImpl = AccountComponent::SRC6CamelOnlyImpl<ContractState>; | ||
#[abi(embed_v0)] | ||
impl PublicKeyImpl = AccountComponent::PublicKeyImpl<ContractState>; | ||
#[abi(embed_v0)] | ||
impl PublicKeyCamelImpl = AccountComponent::PublicKeyCamelImpl<ContractState>; | ||
#[abi(embed_v0)] | ||
impl DeclarerImpl = AccountComponent::DeclarerImpl<ContractState>; | ||
#[abi(embed_v0)] | ||
impl DeployableImpl = AccountComponent::DeployableImpl<ContractState>; | ||
impl AccountInternalImpl = AccountComponent::InternalImpl<ContractState>; | ||
|
||
// SRC5 | ||
#[abi(embed_v0)] | ||
impl SRC5Impl = SRC5Component::SRC5Impl<ContractState>; | ||
|
||
#[storage] | ||
struct Storage { | ||
#[substorage(v0)] | ||
account: AccountComponent::Storage, | ||
#[substorage(v0)] | ||
src5: SRC5Component::Storage | ||
} | ||
|
||
#[event] | ||
#[derive(Drop, starknet::Event)] | ||
enum Event { | ||
#[flat] | ||
AccountEvent: AccountComponent::Event, | ||
#[flat] | ||
SRC5Event: SRC5Component::Event | ||
} | ||
|
||
#[constructor] | ||
fn constructor(ref self: ContractState, public_key: felt252) { | ||
self.account.initializer(public_key); | ||
} | ||
} |
Oops, something went wrong.
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.
in the future, we can create a scarb nix package and have CI use the nix shell
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.
We can also get rid of the cairo and scarb git submodules if we nixify. (scarb comes with cairo so i think we can also avoid the need to install cairo seperately from scarb).
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.
also, we should add the new scarb version in .tool-versions file
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.
hi! maybe this could help:
https://github.com/cairo-nix/cairo-nix