-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add serialization env to OwnerMigration (#212)
* Make redeem flow handlers open (#199) * Make redeem flow handlers open to allow adding custom processing logic for redeemed tokens on the issuer`s side. Make ObserverAwareFinalityFlowHandler return a SignedTransaction if one was received. * Undo removing a flow Co-authored-by: Stefano Franz <[email protected]> * Put Workflows Jar on a diet - exclude all corda runtime files (#206) * keep * put workflows jar on a bit of a diet * Add serialization env to OwnerMigration * fix migration for 4.6 Co-authored-by: Andrius Dagys <[email protected]> Co-authored-by: Stefano Franz <[email protected]> Co-authored-by: Stefano Franz <[email protected]>
- Loading branch information
1 parent
379d568
commit decdcbe
Showing
25 changed files
with
335 additions
and
174 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
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
17 changes: 17 additions & 0 deletions
17
contracts/src/test/kotlin/com/r3/corda/lib/tokens/contracts/CommonTokens.kt
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,17 @@ | ||
package com.r3.corda.lib.tokens.contracts | ||
|
||
import com.r3.corda.lib.tokens.contracts.types.TokenType | ||
import net.corda.core.contracts.Amount | ||
|
||
class CommonTokens { | ||
|
||
companion object { | ||
val USD = TokenType("USD", 2) | ||
val GBP = TokenType("GBP", 2) | ||
} | ||
|
||
} | ||
|
||
fun Number.ofType(tt: TokenType): Amount<TokenType> { | ||
return Amount(this.toLong(), tt) | ||
} |
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.