com.swmansion.starknet.extensions.ToUint256.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of starknet Show documentation
Show all versions of starknet Show documentation
Starknet SDK for JVM languages
package com.swmansion.starknet.extensions
import com.swmansion.starknet.data.types.NumAsHexBase
import com.swmansion.starknet.data.types.Uint256
import java.math.BigInteger
@get:JvmSynthetic
val BigInteger.toUint256: Uint256
get() = Uint256(this)
@get:JvmSynthetic
val String.toUint256: Uint256
get() = Uint256.fromHex(this)
@get:JvmSynthetic
val Int.toUint256: Uint256
get() = Uint256(this)
@get:JvmSynthetic
val Long.toUint256: Uint256
get() = Uint256(this)
@get:JvmSynthetic
val NumAsHexBase.toUint256: Uint256
get() = Uint256(this.value)
© 2015 - 2024 Weber Informatics LLC | Privacy Policy