Updated on 2026-08-14
This commit is contained in:
commit
2a5e3fa7eb
220 changed files with 5932 additions and 1815 deletions
|
|
@ -85,6 +85,8 @@ 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),
|
||||
filecoin = GetBlockAccessToken(jsonRpc = accessTokens.filecoin?.jsonRPC),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -118,6 +118,9 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"koinos/test" -> Blockchain.KoinosTestnet
|
||||
"joystream" -> Blockchain.Joystream
|
||||
"bittensor" -> Blockchain.Bittensor
|
||||
"filecoin" -> Blockchain.Filecoin
|
||||
"blast" -> Blockchain.Blast
|
||||
"blast/test" -> Blockchain.BlastTestnet
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -237,6 +240,9 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.KoinosTestnet -> "koinos/test"
|
||||
Blockchain.Joystream -> "joystream"
|
||||
Blockchain.Bittensor -> "bittensor"
|
||||
Blockchain.Filecoin -> "filecoin"
|
||||
Blockchain.Blast -> "blast"
|
||||
Blockchain.BlastTestnet -> "blast/test"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -313,6 +319,8 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Koinos, Blockchain.KoinosTestnet -> "koinos"
|
||||
Blockchain.Joystream -> "joystream"
|
||||
Blockchain.Bittensor -> "bittensor"
|
||||
Blockchain.Filecoin -> "filecoin"
|
||||
Blockchain.Blast, Blockchain.BlastTestnet -> "blast"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -325,7 +333,9 @@ fun Blockchain.amountToCreateAccount(token: Token? = null): BigDecimal? {
|
|||
Blockchain.Stellar -> if (token?.symbol == NODL) BigDecimal(NODL_AMOUNT_TO_CREATE_ACCOUNT) else BigDecimal.ONE
|
||||
Blockchain.XRP -> BigDecimal.TEN
|
||||
Blockchain.Near, Blockchain.NearTestnet -> 0.00182.toBigDecimal()
|
||||
Blockchain.Aptos, Blockchain.AptosTestnet -> BigDecimal.ZERO
|
||||
Blockchain.Aptos, Blockchain.AptosTestnet,
|
||||
Blockchain.Filecoin,
|
||||
-> BigDecimal.ZERO
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -341,6 +351,5 @@ private val excludedBlockchains = listOf(
|
|||
Blockchain.Unknown,
|
||||
Blockchain.Nexa,
|
||||
Blockchain.NexaTestnet,
|
||||
Blockchain.Mantle,
|
||||
Blockchain.MantleTestnet,
|
||||
Blockchain.Filecoin,
|
||||
)
|
||||
|
|
@ -18,4 +18,10 @@ sealed interface ProxyFee {
|
|||
override val fee: ProxyAmount,
|
||||
val minAdaValue: BigDecimal,
|
||||
) : ProxyFee
|
||||
|
||||
data class Filecoin(
|
||||
override val gasLimit: BigInteger,
|
||||
override val fee: ProxyAmount,
|
||||
val gasPremium: Long,
|
||||
) : ProxyFee
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue