jsMain.jslibs.secretjs.wallet_metamask.module_secretjs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client Show documentation
Show all versions of client Show documentation
A Kotlin multiplatform REST client utilizing secret network's gRPC gateway endpoints.
@file:Suppress(
"INTERFACE_WITH_SUPERCLASS",
"OVERRIDING_FINAL_MEMBER",
"RETURN_TYPE_MISMATCH_ON_OVERRIDE",
"CONFLICTING_OVERLOADS"
)
@file:JsModule("secretjs")
@file:JsNonModule
package jslibs.secretjs
import org.khronos.webgl.Uint8Array
import kotlin.js.Promise
open external class MetaMaskWallet {
open var ethProvider: Any
open var ethAddress: String
open var publicKey: Uint8Array
open var address: String
open fun getAccounts(): Promise>
open fun getSignMode(): Promise
open fun signAmino(address: String, signDoc: StdSignDoc): Promise
companion object {
fun create(ethProvider: Any, ethAddress: String): Promise
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy