-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Parse jsdoc comments where available and include them in AWST
- Loading branch information
1 parent
dfad42c
commit 7845ca1
Showing
22 changed files
with
1,936 additions
and
29 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 |
---|---|---|
@@ -1,18 +1,31 @@ | ||
import { arc4, log } from '@algorandfoundation/algorand-typescript' | ||
import { arc4 } from '@algorandfoundation/algorand-typescript' | ||
|
||
/** | ||
* An abstract base class for a simple example contract | ||
*/ | ||
abstract class Intermediate extends arc4.Contract { | ||
/** | ||
* sayBananas method | ||
* @returns The string "Bananas" | ||
*/ | ||
@arc4.abimethod({ allowActions: ['NoOp'], readonly: true }) | ||
public sayBananas(): string { | ||
const result = `Bananas` | ||
log(result) | ||
return result | ||
return `Bananas` | ||
} | ||
} | ||
|
||
/** | ||
* A simple hello world example contract | ||
*/ | ||
export default class HelloWorldContract extends Intermediate { | ||
/** | ||
* sayHello method | ||
* @param firstName The first name of the person to greet | ||
* @param lastName THe last name of the person to greet | ||
* @returns The string "Hello {firstName} {lastName"} | ||
*/ | ||
public sayHello(firstName: string, lastName: string): string { | ||
const result = `Hello ${firstName} ${lastName}` | ||
log(result) | ||
return result | ||
} | ||
} |
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
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
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.