Skip to content
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: support generic erc20votes #3

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
"eslint": "^8.28.0",
"prettier": "^2.8.0"
}
}
}
90 changes: 90 additions & 0 deletions src/abis/ContractFactory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
[
{
"type": "impl",
"name": "Factory",
"interface_name": "sx::factory::factory::IFactory"
},
{
"type": "struct",
"name": "core::array::Span::<core::felt252>",
"members": [
{
"name": "snapshot",
"type": "@core::array::Array::<core::felt252>"
}
]
},
{
"type": "enum",
"name": "core::result::Result::<core::starknet::contract_address::ContractAddress, core::array::Array::<core::felt252>>",
"variants": [
{
"name": "Ok",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "Err",
"type": "core::array::Array::<core::felt252>"
}
]
},
{
"type": "interface",
"name": "sx::factory::factory::IFactory",
"items": [
{
"type": "function",
"name": "deploy",
"inputs": [
{
"name": "class_hash",
"type": "core::starknet::class_hash::ClassHash"
},
{
"name": "initialize_calldata",
"type": "core::array::Span::<core::felt252>"
},
{
"name": "salt_nonce",
"type": "core::felt252"
}
],
"outputs": [
{
"type": "core::result::Result::<core::starknet::contract_address::ContractAddress, core::array::Array::<core::felt252>>"
}
],
"state_mutability": "external"
}
]
},
{
"type": "event",
"name": "sx::factory::factory::Factory::NewContractDeployed",
"kind": "struct",
"members": [
{
"name": "class_hash",
"type": "core::starknet::class_hash::ClassHash",
"kind": "data"
},
{
"name": "contract_address",
"type": "core::starknet::contract_address::ContractAddress",
"kind": "data"
}
]
},
{
"type": "event",
"name": "sx::factory::factory::Factory::Event",
"kind": "enum",
"variants": [
{
"name": "NewContractDeployed",
"type": "sx::factory::factory::Factory::NewContractDeployed",
"kind": "nested"
}
]
}
]
Loading