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: Improve ContractNetworksConfig #1149

Draft
wants to merge 2 commits into
base: development
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Make all contracts optional
  • Loading branch information
yagopv committed Feb 21, 2025
commit cf20381122c36b6a4ce91b563815bb5588312061
20 changes: 10 additions & 10 deletions packages/protocol-kit/src/types/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,25 +85,25 @@ export type GetContractProps = {

export type ContractNetworkConfig = {
/** safeSingletonAddress - Address of the Safe Singleton contract deployed on a specific network */
safeSingletonAddress: string
safeSingletonAddress?: string
/** safeProxyFactoryAddress - Address of the SafeProxyFactory contract deployed on a specific network */
safeProxyFactoryAddress: string
safeProxyFactoryAddress?: string
/** multiSendAddress - Address of the MultiSend contract deployed on a specific network */
multiSendAddress: string
multiSendAddress?: string
/** multiSendCallOnlyAddress - Address of the MultiSendCallOnly contract deployed on a specific network */
multiSendCallOnlyAddress: string
multiSendCallOnlyAddress?: string
/** fallbackHandlerAddress - Address of the Fallback Handler contract deployed on a specific network */
fallbackHandlerAddress: string
fallbackHandlerAddress?: string
/** signMessageLibAddress - Address of the SignMessageLib contract deployed on a specific network */
signMessageLibAddress: string
signMessageLibAddress?: string
/** createCallAddress - Address of the CreateCall contract deployed on a specific network */
createCallAddress: string
createCallAddress?: string
/** simulateTxAccessorAddress - Address of the SimulateTxAccessor contract deployed on a specific network */
simulateTxAccessorAddress: string
simulateTxAccessorAddress?: string
/** safeWebAuthnSignerFactoryAddress - Address of the SafeWebAuthnSignerFactory contract deployed on a specific network */
safeWebAuthnSignerFactoryAddress: string
safeWebAuthnSignerFactoryAddress?: string
/** safeWebAuthnSharedSignerAddress - Address of the SafeWebAuthnSharedSigner contract deployed on a specific network */
safeWebAuthnSharedSignerAddress: string
safeWebAuthnSharedSignerAddress?: string
}

export type ContractNetworksConfig = {
Expand Down
20 changes: 10 additions & 10 deletions packages/testing-kit/src/utils/setupContractNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@ import {

export type ContractNetworkConfig = {
/** safeSingletonAddress - Address of the Safe Singleton contract deployed on a specific network */
safeSingletonAddress: string
safeSingletonAddress?: string
/** safeProxyFactoryAddress - Address of the SafeProxyFactory contract deployed on a specific network */
safeProxyFactoryAddress: string
safeProxyFactoryAddress?: string
/** multiSendAddress - Address of the MultiSend contract deployed on a specific network */
multiSendAddress: string
multiSendAddress?: string
/** multiSendCallOnlyAddress - Address of the MultiSendCallOnly contract deployed on a specific network */
multiSendCallOnlyAddress: string
multiSendCallOnlyAddress?: string
/** fallbackHandlerAddress - Address of the Fallback Handler contract deployed on a specific network */
fallbackHandlerAddress: string
fallbackHandlerAddress?: string
/** signMessageLibAddress - Address of the SignMessageLib contract deployed on a specific network */
signMessageLibAddress: string
signMessageLibAddress?: string
/** createCallAddress - Address of the CreateCall contract deployed on a specific network */
createCallAddress: string
createCallAddress?: string
/** simulateTxAccessorAddress - Address of the SimulateTxAccessor contract deployed on a specific network */
simulateTxAccessorAddress: string
simulateTxAccessorAddress?: string
/** safeWebAuthnSignerFactoryAddress - Address of the SafeWebAuthnSignerFactory contract deployed on a specific network */
safeWebAuthnSignerFactoryAddress: string
safeWebAuthnSignerFactoryAddress?: string
/** safeWebAuthnSharedSignerAddress - Address of the SafeWebAuthnSharedSigner contract deployed on a specific network */
safeWebAuthnSharedSignerAddress: string
safeWebAuthnSharedSignerAddress?: string
}

export type ContractNetworksConfig = {
Expand Down
Loading