generated from PolymeshAssociation/typescript-boilerplate
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ad5b06
commit 02238ed
Showing
9 changed files
with
98 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { issueTokens } from '~/api/procedures'; | ||
import { Namespace, TransactionQueue } from '~/base'; | ||
import { IssuanceData } from '~/types'; | ||
|
||
import { SecurityToken } from '.'; | ||
|
||
/** | ||
* Handles all Security Token Issuance related functionality | ||
*/ | ||
export class Issuance extends Namespace<SecurityToken> { | ||
/** | ||
* Issue a certain amount of tokens to one or multiple identities. The receiving identities must comply with any receiver rules set on the token | ||
* | ||
* @param args.issuanceData - array that specifies who to issue tokens to and which amounts | ||
*/ | ||
public issue(args: { issuanceData: IssuanceData[] }): Promise<TransactionQueue<SecurityToken>> { | ||
const { | ||
parent: { ticker }, | ||
context, | ||
} = this; | ||
return issueTokens.prepare({ ticker, ...args }, context); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.