Skip to content

Commit

Permalink
Update contracts to build with 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Aug 8, 2023
1 parent 2aaa6f1 commit 3d931bb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion contracts/src/emergency/sequencer_uptime_feed.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ mod SequencerUptimeFeed {
use starknet::Felt252TryIntoEthAddress;
use starknet::EthAddressZeroable;
use starknet::ContractAddress;
use starknet::StorageAccess;
use starknet::StorageBaseAddress;
use starknet::SyscallResult;
use starknet::storage_read_syscall;
Expand Down
3 changes: 1 addition & 2 deletions contracts/src/multisig.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn _assert_unique_values_loop<
_assert_unique_values_loop(a, len, j, k + 1_usize);
}

#[derive(Copy, Drop, Serde, storage_access::StorageAccess)]
#[derive(Copy, Drop, Serde, starknet::Store)]
struct Transaction {
to: ContractAddress,
function_selector: felt252,
Expand Down Expand Up @@ -82,7 +82,6 @@ mod Multisig {
use starknet::ContractAddress;
use starknet::ContractAddressIntoFelt252;
use starknet::Felt252TryIntoContractAddress;
use starknet::StorageAccess;
use starknet::StorageBaseAddress;
use starknet::SyscallResult;
use starknet::call_contract_syscall;
Expand Down
6 changes: 3 additions & 3 deletions contracts/src/ocr2/aggregator.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ struct Round {
updated_at: u64,
}

#[derive(Copy, Drop, Serde, storage_access::StorageAccess)]
#[derive(Copy, Drop, Serde, starknet::Store)]
struct Transmission {
answer: u128,
block_num: u64,
Expand Down Expand Up @@ -237,7 +237,7 @@ mod Aggregator {
reimbursement: u128
}

#[derive(Copy, Drop, Serde, storage_access::StorageAccess)]
#[derive(Copy, Drop, Serde, starknet::Store)]
struct Oracle {
index: usize,
// entire supply of LINK always fits into u96, so u128 is safe to use
Expand Down Expand Up @@ -932,7 +932,7 @@ mod Aggregator {

// --- Billing Config

#[derive(Copy, Drop, Serde, storage_access::StorageAccess)]
#[derive(Copy, Drop, Serde, starknet::Store)]
struct BillingConfig {
observation_payment_gjuels: u32,
transmission_payment_gjuels: u32,
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/ocr2/aggregator_proxy.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ mod AggregatorProxy {
const SHIFT: felt252 = 0x100000000000000000000000000000000;
const MAX_ID: felt252 = 0xffffffffffffffffffffffffffffffff;

#[derive(Copy, Drop, Serde, storage_access::StorageAccess)]
#[derive(Copy, Drop, Serde, starknet::Store)]
struct Phase {
id: u128,
aggregator: ContractAddress
Expand Down

0 comments on commit 3d931bb

Please sign in to comment.