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

jsMain.jslibs.cosmjs.amino.signdoc.module_@cosmjs_amino.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"
)

package jslibs.cosmjs.amino

import org.khronos.webgl.Uint8Array

external interface AminoMsg {
    var type: String
    var value: Any
}

external interface StdFee {
    var amount: Array
    var gas: String
    var granter: String?
        get() = definedExternally
        set(value) = definedExternally
    var payer: String?
        get() = definedExternally
        set(value) = definedExternally
}

external interface StdSignDoc {
    var chain_id: String
    var account_number: String
    var sequence: String
    var fee: StdFee
    var msgs: Array
    var memo: String
}

external fun makeSignDoc(
    msgs: Array,
    fee: StdFee,
    chainId: String,
    memo: String?,
    accountNumber: Number,
    sequence: Number
): StdSignDoc

external fun makeSignDoc(
    msgs: Array,
    fee: StdFee,
    chainId: String,
    memo: String?,
    accountNumber: Number,
    sequence: String
): StdSignDoc

external fun makeSignDoc(
    msgs: Array,
    fee: StdFee,
    chainId: String,
    memo: String?,
    accountNumber: String,
    sequence: Number
): StdSignDoc

external fun makeSignDoc(
    msgs: Array,
    fee: StdFee,
    chainId: String,
    memo: String?,
    accountNumber: String,
    sequence: String
): StdSignDoc

external fun serializeSignDoc(signDoc: StdSignDoc): Uint8Array




© 2015 - 2025 Weber Informatics LLC | Privacy Policy