yajsapi - Java Script high-level API
Yagna Contributor Guide

Class: OfferProposal

yajsapi / Exports / rest/market / OfferProposal

Class: OfferProposal

rest/market.OfferProposal

Hierarchy

  • OfferProposal

Table of contents

Constructors

Properties

Methods

Constructors

constructor

Parameters:

Name

Type

subscription

Subscription

proposal

ProposalEvent

Returns: OfferProposal

Defined in: yajsapi/rest/market.ts:118

Properties

_proposal

Private _proposal: ProposalEvent

Defined in: yajsapi/rest/market.ts:117

_subscription

Private _subscription: Subscription

Defined in: yajsapi/rest/market.ts:118

Methods

create_agreement

create_agreement(timeout?: number): Promise<Agreement>

Parameters:

Name

Type

Default value

timeout

number

3600

Returns: Promise<Agreement>

Defined in: yajsapi/rest/market.ts:170

id

id(): string

Returns: string

Defined in: yajsapi/rest/market.ts:129

is_draft

is_draft(): boolean

Returns: boolean

Defined in: yajsapi/rest/market.ts:141

issuer

issuer(): string

Returns: string

Defined in: yajsapi/rest/market.ts:125

props

props(): object

Returns: object

Defined in: yajsapi/rest/market.ts:133

reject

reject(_reason?: null | string): Promise<void>

Parameters:

Name

Type

Default value

_reason

null | string

null

Returns: Promise<void>

Defined in: yajsapi/rest/market.ts:147

respond

respond(props: object, constraints: string): Promise<string>

Parameters:

Name

Type

props

object

constraints

string

Returns: Promise<string>

Defined in: yajsapi/rest/market.ts:154

state

state(): ProposalAllOfStateEnum

Returns: ProposalAllOfStateEnum

Defined in: yajsapi/rest/market.ts:137