-
Notifications
You must be signed in to change notification settings - Fork 14
Contracts
The basic profile for solidity dapps.

Defines class a a library.
extends ===> :Class
A class tagged with this stereotype will be generated as a contract.
extends ===> :Class
| name | type | doc |
|---|---|---|
| ConstructorCode | String | Code for the contructor. |
| ConstructorArgs | String | The arguments of the constructor. |
A class tagged with this stereotype will be generated as a struct. So normally it is models as an inner class.
extends ===> :Class
An operation will be rendered as function with the functionCode value as code.
extends ===> :Operation
| name | type | doc |
|---|---|---|
| functionCode | String | you could add the code also here |
| returnType | FunctionType | the return type of the function |
| modifier | Constraint | Applies the constrain an a modifier to the method. |
Let the generator produce delegate operations defined in the type of the property.
extends ===> :Property
An operation tagged as Event will define an Event in the Contract.
extends ===> :Operation
Defines the mapping type. The value is defined by the 'value' property.
extends ===> :Property
| name | type | doc |
|---|---|---|
| value | Classifier | Define the value of the map. |
Creates a getter and/or setter for an tagged property.
extends ===> :Property
| name | type | doc |
|---|---|---|
| getter | Boolean | Set to true will generate a getter method. |
| setter | Boolean | Set to true generates a setter method for the property. |
An interface tagged by this stereotype define an SCA. A contract implementing such an interface will take only the defines methods and not explicitly inherited this interface.
extends ===> :Interface
Defines a return parameter as constant.
extends ===> :Property
Defines an import for this model. It links the package to import.
extends ===> :Import
| name | type | doc |
|---|---|---|
| importFilter | String | A filter for the imports. |