Skip to content

Commit

Permalink
Remove old zkEVM params
Browse files Browse the repository at this point in the history
  • Loading branch information
OBrezhniev committed Sep 11, 2024
1 parent 16aecb6 commit fdf6af9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 deletions.
2 changes: 0 additions & 2 deletions chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ var chainIDs = map[chainIDKey]ChainID{
{Polygon, Amoy}: 80002,
{Polygon, Zkevm}: 1101,
{Polygon, Cardona}: 1442,
{ZkEVM, Main}: 1101,
{ZkEVM, Test}: 1442,
{Privado, Main}: 21000,
{Privado, Test}: 21001,
{Linea, Main}: 59144,
Expand Down
9 changes: 1 addition & 8 deletions did.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ const (
Ethereum Blockchain = "eth"
// Polygon is polygon blockchain network
Polygon Blockchain = "polygon"
// ZkEVM is zkEVM blockchain network
// Note: deprecated in favor of a zkEVM network of Polygon, will be removed in the future
ZkEVM Blockchain = "zkevm"
// Privado is Privado blockchain network
Privado Blockchain = "privado"
// Linea is Linea blockchain network
Expand All @@ -80,8 +77,8 @@ const (
var blockchains = map[Blockchain]Blockchain{
Ethereum: Ethereum,
Polygon: Polygon,
ZkEVM: ZkEVM,
Privado: Privado,
Linea: Linea,
UnknownChain: UnknownChain,
ReadOnly: ReadOnly,
NoChain: NoChain,
Expand Down Expand Up @@ -216,10 +213,6 @@ var blockchainNetworkMap = map[DIDNetworkFlag]byte{
{Blockchain: Ethereum, NetworkID: Goerli}: 0b0010_0000 | 0b0000_0010,
{Blockchain: Ethereum, NetworkID: Sepolia}: 0b0010_0000 | 0b0000_0011,

// deprecated in favor of a zkEVM network of Polygon, will be removed in the future
{Blockchain: ZkEVM, NetworkID: Main}: 0b0011_0000 | 0b0000_0001,
{Blockchain: ZkEVM, NetworkID: Test}: 0b0011_0000 | 0b0000_0010,

{Blockchain: Privado, NetworkID: Main}: 0b1010_0000 | 0b0000_0001,
{Blockchain: Privado, NetworkID: Test}: 0b1010_0000 | 0b0000_0010,

Expand Down
14 changes: 0 additions & 14 deletions did_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,20 +187,6 @@ func TestDID_Build_From_Types(t *testing.T) {
net: Amoy,
wantDID: "did:polygonid:polygon:amoy:2qQ68JkRcf3xrHPQPWZei3YeVzHPP58wYNxx2mEouR",
},
{
title: "Polygon | zkEVM chain, main",
method: DIDMethodPolygonID,
chain: ZkEVM,
net: Main,
wantDID: "did:polygonid:zkevm:main:2wQjmkL1SsgqC7AuZdUcaXsUVfEi1i58VEhm3r2r8F",
},
{
title: "Polygon | zkEVM chain, test",
method: DIDMethodPolygonID,
chain: ZkEVM,
net: Test,
wantDID: "did:polygonid:zkevm:test:2wcMpvr8NgWTfqN6ChaFEx1qRnLREXhjeoJ45pFyw5",
},
{
title: "Iden3 | Polygon chain, zkEVM chain, main",
method: DIDMethodIden3,
Expand Down

0 comments on commit fdf6af9

Please sign in to comment.