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

jsMain.jslibs.secretjs.wallet_metamask.module_secretjs.kt Maven / Gradle / Ivy

Go to download

A Kotlin multiplatform REST client utilizing secret network's gRPC gateway endpoints.

There is a newer version: 6.4.1-rc
Show newest version
@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