@polkadot/types/interfaces#Bounty TypeScript Examples

The following examples show how to use @polkadot/types/interfaces#Bounty. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: bountiesPage.tsx    From crust-apps with Apache License 2.0 5 votes vote down vote up
renderOne (bounty: Bounty, proposals: DeriveCollectiveProposal[] = [], description = '', index = this.aBountyIndex()): RenderedBountiesPage {
    return this.renderMany({ bounties: [{ bounty, description, index, proposals }] });
  }
Example #2
Source File: bountiesPage.tsx    From crust-apps with Apache License 2.0 5 votes vote down vote up
aBounty: ({ status, value }?: Partial<Bounty>) => Bounty;
Example #3
Source File: bountiesPage.tsx    From crust-apps with Apache License 2.0 5 votes vote down vote up
bountyWith: ({ status, value }: { status?: string, value?: number }) => Bounty;
Example #4
Source File: bountyFactory.ts    From crust-apps with Apache License 2.0 5 votes vote down vote up
public defaultBounty = (): Bounty =>
    this.#registry.createType('Bounty');
Example #5
Source File: bountyFactory.ts    From crust-apps with Apache License 2.0 5 votes vote down vote up
public bountyWith = ({ status = 'Proposed', value = 1 } = {}): Bounty =>
    this.aBounty({ status: this.aBountyStatus(status), value: balanceOf(value) })
Example #6
Source File: bountyFactory.ts    From crust-apps with Apache License 2.0 5 votes vote down vote up
public aBounty = ({ fee = balanceOf(10), status = this.aBountyStatus('Proposed'), value = balanceOf(500) }: Partial<Bounty> = {}): Bounty =>
    this.#registry.createType('Bounty', { fee, status, value });