UNPKG

@glitterprotocol/glitter-sdk

Version:

The JavaScript SDK for Glitter

41 lines (40 loc) 1.66 kB
import { JSONSerializable } from '../../util/json'; import { Any } from '@glitterprotocol/glitter.proto/google/protobuf/any'; import { ReleasePledgeRequest } from '@glitterprotocol/glitter.proto/glitterchain/consumer/tx'; /** * Executes a market swap between 2 denominations at the exchange rate registered by the * Oracle module. The account will lose the amount of coins offered, and receive funds * in the requested denomination after a swap fee has been applied. */ export declare class ReleasePledge extends JSONSerializable<ReleasePledge.Amino, ReleasePledge.Data, ReleasePledge.Proto> { params: ReleasePledgeRequest; /** * @param value SQLExecRequest */ constructor(params: ReleasePledgeRequest); static fromAmino(data: ReleasePledge.Amino, _?: boolean): ReleasePledge; toAmino(_?: boolean): ReleasePledge.Amino; static fromProto(proto: ReleasePledge.Proto, _?: boolean): ReleasePledge; toProto(_?: boolean): ReleasePledge.Proto; packAny(isClassic?: boolean): Any; static unpackAny(msgAny: Any, isClassic?: boolean): ReleasePledge; static fromData(data: ReleasePledge.Data, _?: boolean): ReleasePledge; toData(_?: boolean): ReleasePledge.Data; } export declare namespace ReleasePledge { interface Amino { type: 'transfer/ReleasePledge'; value: { fromAddress: string; datasetName: string; amount: string; }; } interface Data { '@type': '/glitterchain.consumer.ReleasePledgeRequest'; fromAddress: string; datasetName: string; amount: string; } type Proto = ReleasePledgeRequest; }