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
See example [here](https://github.com/wormhole-foundation/connect-sdk/blob/main/examples/src/index.ts#L15)
58
+
See example [here](https://github.com/wormhole-foundation/wormhole-sdk-ts/blob/main/examples/src/index.ts#L15)
59
59
<!--EXAMPLE_WORMHOLE_INIT-->
60
60
61
61
With a configured Wormhole object, we have the ability to do things like; parse addresses for the platforms we passed, get a [ChainContext](#chain-context) object, or fetch VAAs.
@@ -65,7 +65,7 @@ With a configured Wormhole object, we have the ability to do things like; parse
65
65
// Grab a ChainContext object from our configured Wormhole instance
66
66
const ctx =wh.getChain("Solana");
67
67
```
68
-
See example [here](https://github.com/wormhole-foundation/connect-sdk/blob/main/examples/src/index.ts#L19)
68
+
See example [here](https://github.com/wormhole-foundation/wormhole-sdk-ts/blob/main/examples/src/index.ts#L19)
69
69
<!--EXAMPLE_WORMHOLE_CHAIN-->
70
70
71
71
<!--EXAMPLE_WORMHOLE_VAA-->
@@ -80,7 +80,7 @@ See example [here](https://github.com/wormhole-foundation/connect-sdk/blob/main/
80
80
60_000,
81
81
);
82
82
```
83
-
See example [here](https://github.com/wormhole-foundation/connect-sdk/blob/main/examples/src/index.ts#L48)
83
+
See example [here](https://github.com/wormhole-foundation/wormhole-sdk-ts/blob/main/examples/src/index.ts#L48)
84
84
<!--EXAMPLE_WORMHOLE_VAA-->
85
85
86
86
@@ -101,7 +101,7 @@ Optionally, the default configuration may be overriden in the case that you want
101
101
},
102
102
});
103
103
```
104
-
See example [here](https://github.com/wormhole-foundation/connect-sdk/blob/main/examples/src/config.ts#L6)
104
+
See example [here](https://github.com/wormhole-foundation/wormhole-sdk-ts/blob/main/examples/src/config.ts#L6)
105
105
<!--EXAMPLE_CONFIG_OVERRIDE-->
106
106
107
107
## Concepts
@@ -268,7 +268,7 @@ The protocol that underlies all Wormhole activity is the Core protocol. This pro
See example [here](https://github.com/wormhole-foundation/connect-sdk/blob/main/examples/src/cctp.ts#L130)
515
+
See example [here](https://github.com/wormhole-foundation/wormhole-sdk-ts/blob/main/examples/src/cctp.ts#L130)
516
516
<!--EXAMPLE_RECOVER_TRANSFER-->
517
517
518
518
### Routes
@@ -532,7 +532,7 @@ To provide a more flexible and generic interface, the `Wormhole` class provides
532
532
routes.AutomaticPorticoRoute, // Native eth transfers
533
533
]);
534
534
```
535
-
See example [here](https://github.com/wormhole-foundation/connect-sdk/blob/main/examples/src/router.ts#L23)
535
+
See example [here](https://github.com/wormhole-foundation/wormhole-sdk-ts/blob/main/examples/src/router.ts#L23)
536
536
<!--EXAMPLE_RESOLVER_CREATE-->
537
537
538
538
Once created, the resolver can be used to provide a list of input and possible output tokens.
@@ -553,7 +553,7 @@ Once created, the resolver can be used to provide a list of input and possible o
553
553
destTokens.map((t) =>canonicalAddress(t)),
554
554
);
555
555
```
556
-
See example [here](https://github.com/wormhole-foundation/connect-sdk/blob/main/examples/src/router.ts#L34)
556
+
See example [here](https://github.com/wormhole-foundation/wormhole-sdk-ts/blob/main/examples/src/router.ts#L34)
557
557
<!--EXAMPLE_RESOLVER_LIST_TOKENS-->
558
558
559
559
Once the tokens are selected, a `RouteTransferRequest` may be created to provide a list of routes that can fulfil the request
@@ -573,7 +573,7 @@ Once the tokens are selected, a `RouteTransferRequest` may be created to provide
573
573
const foundRoutes =awaitresolver.findRoutes(tr);
574
574
console.log("For the transfer parameters, we found these routes: ", foundRoutes);
575
575
```
576
-
See example [here](https://github.com/wormhole-foundation/connect-sdk/blob/main/examples/src/router.ts#L50)
576
+
See example [here](https://github.com/wormhole-foundation/wormhole-sdk-ts/blob/main/examples/src/router.ts#L50)
577
577
<!--EXAMPLE_REQUEST_CREATE-->
578
578
579
579
Choosing the best route is currently left to the developer but strategies might include sorting by output amount or expected time to complete the transfer (no estimate currently provided).
@@ -601,7 +601,7 @@ After choosing the best route, extra parameters like `amount`, `nativeGasDropoff
601
601
if (!quote.success) throwquote.error;
602
602
console.log("Best route quote: ", quote);
603
603
```
604
-
See example [here](https://github.com/wormhole-foundation/connect-sdk/blob/main/examples/src/router.ts#L70)
604
+
See example [here](https://github.com/wormhole-foundation/wormhole-sdk-ts/blob/main/examples/src/router.ts#L70)
605
605
<!--EXAMPLE_REQUEST_VALIDATE-->
606
606
607
607
@@ -614,7 +614,7 @@ Finally, assuming the quote looks good, the route can initiate the request with
0 commit comments