Skip to content

Commit

Permalink
Return version info from installPact function
Browse files Browse the repository at this point in the history
  • Loading branch information
salamaashoush committed Apr 28, 2024
1 parent 84e352f commit 1c2a14f
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 2 deletions.
29 changes: 29 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Todo

## Wallets

- [ ] Spirekey Web/Node wallet
- [ ] Metamask wallet
- [ ] Ledger Web/Node Wallet
- [ ] Wallet Connect Wallet
- [ ] Wallet and script integration

## Generators

- [ ] Generate gas station
- [ ] Generate NFT
- [ ] Generate Coin

## Devtools

## Client utils

- [ ] Support switching networks at runtime.
- [ ] Support switching wallets at runtime.


## Examples

- [ ] NFT dApp
- [ ] Multi network example
- [ ] Multi wallet example
7 changes: 7 additions & 0 deletions apps/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# pact-toolbox

## 0.0.11

### Patch Changes

- Updated dependencies
- @pact-toolbox/installer@0.0.8

## 0.0.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pact-toolbox",
"version": "0.0.10",
"version": "0.0.11",
"description": "A tool to help you build, test and deploy your Pact smart contracts",
"keywords": [
"pact",
Expand Down
6 changes: 6 additions & 0 deletions packages/installer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @pact-toolbox/installer

## 0.0.8

### Patch Changes

- Return version info from installPact function

## 0.0.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/installer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pact-toolbox/installer",
"version": "0.0.7",
"version": "0.0.8",
"repository": "kadena-community/pact-toolbox",
"author": "Salama Ashoush <[email protected]>",
"license": "MIT",
Expand Down
6 changes: 6 additions & 0 deletions packages/installer/src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ export async function installPact({
await activatePactVersion(assetInfo.version);
}
await updateShellProfileScript();

return {
binaryPath: join(versionDir, binary ?? 'pact'),
files,
...assetInfo,
};
}

export async function removePactVersion(version: string) {
Expand Down

0 comments on commit 1c2a14f

Please sign in to comment.