You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main/guides/orchestration/getting-started/contract-walkthrough/cross-chain-unbond.md
+7-9
Original file line number
Diff line number
Diff line change
@@ -12,18 +12,16 @@ Cosmos-based chain and transferring them to another chain using IBC (Inter-Block
12
12
13
13
## Overview
14
14
15
-
The Unbond Contract leverages the Agoric orchestration to interact with external chains, like Osmosis and Stride, to facilitate unbonding and transferring assets from one chain to another.
15
+
The Unbond Contract leverages the Agoric Orchestration API to interact with external chains, like Osmosis and Stride, to facilitate unbonding and transferring assets from one chain to another.
16
16
17
17
The contract consists of two main parts:
18
18
19
19
-**Contract File (`unbond.contract.js`)**: Defines the contract structure, and public-facing APIs.
20
20
-**Flows File (`unbond.flows.js`)**: Implements the logic for the unbonding and transfer operations.
21
21
22
-
---
23
-
24
22
## Contract: `unbond.contract.js`
25
23
26
-
This file contains the main orchestration contract, which is wrapped using the `withOrchestration` helper for Zoe. It exposes a public facet that allows users to initiate the unbonding process and transfer assets to another chain.
24
+
This file contains the main Orchestration contract, which is wrapped using the `withOrchestration` helper for Zoe. It exposes a public facet that allows users to initiate the unbonding process and transfer assets to another chain.
27
25
28
26
### Imports
29
27
@@ -42,7 +40,7 @@ The `contract` function when wrapped inside `withOrchestration` defines the [`st
42
40
-`zcf`: Zoe Contract Facet.
43
41
-`privateArgs`: Object containing remote references to various services.
44
42
-`zone`: A `Zone` object with access to storage for persistent data.
45
-
-`OrchestrationTools`: A set of orchestration related tools needed by the contract.
43
+
-`OrchestrationTools`: A set of Orchestration related tools needed by the contract.
46
44
47
45
```js
48
46
constcontract=async (
@@ -74,17 +72,17 @@ const contract = async (
74
72
75
73
The `orchestrateAll` function links the flows from the flows file to the contract logic. In this case, it links the `unbondAndTransfer` flow. The `publicFacet` exposes the `makeUnbondAndTransferInvitation` method, which creates a Zoe invitation to allow users to make an offer for the unbonding and transferring process.
76
74
77
-
The following code defines the `start` function of the contract that is returned by a call to `withOrchestration` with [`contract` function](#contract-function) as a parameter. In essence `contract` function is the entry point or `start` function of this contract with some orchestration setup.
75
+
### `start` function
76
+
77
+
The following code defines the `start` function of the contract that is returned by a call to `withOrchestration` with [`contract` function](#contract-function) as a parameter. In essence `contract` function is the entry point or `start` function of this contract with some Orchestration setup.
78
78
79
79
```js
80
80
exportconststart=withOrchestration(contract);
81
81
```
82
82
83
-
---
84
-
85
83
## Flows: `unbond.flows.js`
86
84
87
-
This file contains the orchestration flow that performs the unbonding and transferring of assets across chains.
85
+
This file contains the Orchestration flow that performs the unbonding and transferring of assets across chains.
0 commit comments