From 99d5652e9f93bf6fb70807f45c7be1d5b4e5a40c Mon Sep 17 00:00:00 2001 From: Malatrax <71888134+zmalatrax@users.noreply.github.com> Date: Tue, 16 Apr 2024 00:04:25 +0200 Subject: [PATCH] feat: oz 0.8.1.0, 0.9.0 and 0.10.0 account class hashes (#82) --- src/account.rs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/account.rs b/src/account.rs index 811c266..3308ede 100644 --- a/src/account.rs +++ b/src/account.rs @@ -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, @@ -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] = &[