All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.swmansion.starknet.extensions.ToFelt.kt Maven / Gradle / Ivy

There is a newer version: 0.13.0
Show newest version
package com.swmansion.starknet.extensions

import com.swmansion.starknet.data.types.Felt
import com.swmansion.starknet.data.types.NumAsHexBase
import java.math.BigInteger

@get:JvmSynthetic
val BigInteger.toFelt: Felt
    get() = Felt(this)

@get:JvmSynthetic
val String.toFelt: Felt
    get() = Felt.fromHex(this)

@get:JvmSynthetic
val Int.toFelt: Felt
    get() = Felt(this)

@get:JvmSynthetic
val Long.toFelt: Felt
    get() = Felt(this)

@get:JvmSynthetic
val NumAsHexBase.toFelt: Felt
    get() = Felt(this.value)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy