Updated on 2026-08-14
This commit is contained in:
parent
f25889d1a0
commit
dcc3bb6c97
10 changed files with 52 additions and 2 deletions
|
|
@ -85,6 +85,7 @@ internal object BlockchainSDKConfigConverter : Converter<ConfigValueModel, Block
|
|||
zkSyncEra = GetBlockAccessToken(jsonRpc = accessTokens.zksync?.jsonRPC),
|
||||
polygonZkEvm = GetBlockAccessToken(jsonRpc = accessTokens.polygonZkevm?.jsonRPC),
|
||||
base = GetBlockAccessToken(jsonRpc = accessTokens.base?.jsonRPC),
|
||||
blast = GetBlockAccessToken(jsonRpc = accessTokens.blast?.jsonRPC),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -119,6 +119,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"joystream" -> Blockchain.Joystream
|
||||
"bittensor" -> Blockchain.Bittensor
|
||||
"filecoin" -> Blockchain.Filecoin
|
||||
"blast" -> Blockchain.Blast
|
||||
"blast/test" -> Blockchain.BlastTestnet
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -239,6 +241,8 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.Joystream -> "joystream"
|
||||
Blockchain.Bittensor -> "bittensor"
|
||||
Blockchain.Filecoin -> "filecoin"
|
||||
Blockchain.Blast -> "blast"
|
||||
Blockchain.BlastTestnet -> "blast/test"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -316,6 +320,7 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Joystream -> "joystream"
|
||||
Blockchain.Bittensor -> "bittensor"
|
||||
Blockchain.Filecoin -> "filecoin"
|
||||
Blockchain.Blast, Blockchain.BlastTestnet -> "blast"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue