Skip to content

Commit

Permalink
Deploy EntryPoint contract
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal authored and dusannosovic-ethernal committed Jul 3, 2024
1 parent 9ec8c57 commit 51154aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions command/genesis/polybft_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@ func (p *genesisParams) deployContracts(rewardTokenByteCode []byte,
artifact: contractsapi.ChildTimelock,
address: contracts.ChildTimelockContractV1,
},
{
artifact: contractsapi.EntryPoint,
address: contracts.EntryPointContractV1,
},
}

if !params.nativeTokenConfig.IsMintable {
Expand Down
8 changes: 7 additions & 1 deletion contracts/system_addresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ var (
NetworkParamsContractV1 = types.StringToAddress("0x100e1")
// ForkParamsContract is an address of ForkParams contract which holds data of enabled forks
ForkParamsContract = types.StringToAddress("0x100f")
// ForkParamsContract is the proxy address of ForkParams contract which holds data of enabled forks
// ForkParamsContract is an address of ForkParams contract which holds data of enabled forks
ForkParamsContractV1 = types.StringToAddress("0x100f1")

// SystemCaller is address of account, used for system calls to smart contracts
Expand All @@ -111,6 +111,11 @@ var (
AllowListBridgeAddr = types.StringToAddress("0x0200000000000000000000000000000000000004")
// BlockListBridgeAddr is the address of the bridge block list
BlockListBridgeAddr = types.StringToAddress("0x0300000000000000000000000000000000000004")

// EntryPointContract is the proxy address of EntryPoint contract which is a center point of account abstraction
EntryPointContract = types.StringToAddress("0x2001")
// EntryPointContract is an address of EntryPoint contract which is a center point of account abstraction
EntryPointContractV1 = types.StringToAddress("0x20011")
)

// GetProxyImplementationMapping retrieves the addresses of proxy contracts that should be deployed unconditionally
Expand All @@ -133,5 +138,6 @@ func GetProxyImplementationMapping() map[types.Address]types.Address {
ForkParamsContract: ForkParamsContractV1,
ChildTimelockContract: ChildTimelockContractV1,
ChildGovernorContract: ChildGovernorContractV1,
EntryPointContract: EntryPointContractV1,
}
}

0 comments on commit 51154aa

Please sign in to comment.