Skip to content

Commit

Permalink
feat: oz 0.8.1.0, 0.9.0 and 0.10.0 account class hashes (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmalatrax committed Apr 15, 2024
1 parent 3ef7b56 commit 99d5652
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::signer::{AnySigner, SignerArgs, SignerResolutionTask};

const BRAAVOS_SIGNER_TYPE_STARK: FieldElement = FieldElement::ONE;

pub const KNOWN_ACCOUNT_CLASSES: [KnownAccountClass; 10] = [
pub const KNOWN_ACCOUNT_CLASSES: [KnownAccountClass; 13] = [
KnownAccountClass {
class_hash: felt!("0x048dd59fabc729a5db3afdf649ecaf388e931647ab2f53ca3c6183fa480aa292"),
variant: AccountVariantType::OpenZeppelinLegacy,
Expand Down Expand Up @@ -71,6 +71,21 @@ pub const KNOWN_ACCOUNT_CLASSES: [KnownAccountClass; 10] = [
variant: AccountVariantType::OpenZeppelin,
description: "OpenZeppelin account contract v0.8.0 compiled with cairo v2.3.1",
},
KnownAccountClass {
class_hash: felt!("0x061dac032f228abef9c6626f995015233097ae253a7f72d68552db02f2971b8f"),
variant: AccountVariantType::OpenZeppelin,
description: "OpenZeppelin account contract v0.8.1 compiled with cairo v2.4.1",
},
KnownAccountClass {
class_hash: felt!("0x01148c31dfa5c4708a4e9cf1eb0fd3d4d8ad9ccf09d0232cd6b56bee64a7de9d"),
variant: AccountVariantType::OpenZeppelin,
description: "OpenZeppelin account contract v0.9.0 compiled with cairo v2.5.3",
},
KnownAccountClass {
class_hash: felt!("0x004ca5c0b1af6115858708bd1fabd2e9bb306012b31a741acbf69b8a9f35d688"),
variant: AccountVariantType::OpenZeppelin,
description: "OpenZeppelin account contract v0.10.0 compiled with cairo v2.5.3",
},
];

pub const BUILTIN_ACCOUNTS: &[BuiltinAccount] = &[
Expand Down

0 comments on commit 99d5652

Please sign in to comment.