-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #188 from input-output-hk/hrajchert/runtime-lifecy…
…cle-refactor New runtime lifecycle contracts API & Initial Account Deposits (runtime v1.0.0)
- Loading branch information
Showing
36 changed files
with
1,327 additions
and
1,407 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
changelog.d/20240511_113958_nicolas.henin_runtime_lifecycle_refactor.md
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,43 @@ | ||
### General | ||
|
||
- Feat: **Initial Account Deposits Feature Integration (Runtime v1.0.0):** | ||
|
||
- **Purpose:** This update introduces the capability for users to make initial deposits into their accounts upon creation. This feature aims to streamline the account setup process and enhance user experience. | ||
- **Benefits:** This feature squashes the Contract Creation and Initial Input Deposits into 1 transaction instead of multiple ones. | ||
|
||
- Feat: **Introduction of a New Contract API in the Runtime Lifecycle API:** | ||
- **Purpose:** The addition of a new Contract API is designed to provide developers with more flexibility and control (contract instance concept) over smart contract management within the runtime environment. | ||
- **Benefits:** Developers can now leverage enhanced functionalities for deploying, updating, and interacting with smart contracts. This API simplifies complex contract operations and supports more robust smart contract development. | ||
|
||
### @marlowe.io/runtime-rest-client | ||
|
||
- Feat: `initial account deposits` (runtime v1.0.0) for Contract Creation (`BuildCreateContractTxRequest` via `buildCreateContractTx`):([PR-188](https://github.com/input-output-hk/marlowe-ts-sdk/pull/188)) | ||
|
||
### @marlowe.io/runtime-core | ||
|
||
- Feat: `initial account deposits` (runtime v1.0.0) for Contract Creation ([PR-188](https://github.com/input-output-hk/marlowe-ts-sdk/pull/188)): | ||
- Added `export type AccountDeposits = { [key in AddressOrRole]: AssetsMap };` and associated utility functions. | ||
|
||
### @marlowe.io/runtime-lifecycle | ||
|
||
- Feat: New Contract API `packages/runtime/lifecycle/src/generic/new-contract-api.ts` ([PR-188](https://github.com/input-output-hk/marlowe-ts-sdk/pull/188)): | ||
- Generic `waitConfirmation()` : same for contract creation and apply inputs | ||
- Seamless Integration of Applicable Actions API | ||
- simplfied interface (`create` and `load` with a concept of `ContractInstance` object) | ||
- see end-to-end tests for examples (e.g : `swap.ada.token.e2e.spec.ts`) | ||
- Feat: `initial account deposits` feature (runtime v1.0.0) for Contract Creation ([PR-188](https://github.com/input-output-hk/marlowe-ts-sdk/pull/188)): | ||
- new parameter field `accountDeposits` in | ||
- e.g. | ||
|
||
```ts | ||
const sellerContractInstance = await sellerLifecycle.newContractAPI.create({ | ||
contract: swapContract, | ||
roles: { [scheme.ask.buyer.role_token]: mintRole("OpenRole") }, | ||
accountDeposits: mkaccountDeposits([[scheme.offer.seller, seller.assetsProvisioned]]), | ||
}); | ||
``` | ||
|
||
### @marlowe.io/language-examples | ||
|
||
- Feat: `Atomic swap v2` : Simplified version using the new runtime `v1.0.0` feature (`initial account deposits`) | ||
- see end-to-end tests for examples (e.g : `swap.ada.token.e2e.spec.ts`) |
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.