Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction recovery typings #26

Merged
merged 12 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/transaction-recovery/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
node_modules/
build/
/cosmosSigner
/services

*.d.ts
*.js

Expand Down
31 changes: 31 additions & 0 deletions packages/transaction-recovery/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# @axelarjs/transaction-recovery

## 0.0.7

### Patch Changes

- changing default to named exports for addGas method

## 0.0.6

### Patch Changes

- adding typesVersions to transaction-recovery package.json

## 0.0.5

### Patch Changes

- adding files to package.json

## 0.0.4

### Patch Changes

- adding declaractions flag to tsconfig

## 0.0.3

### Patch Changes

- 97affdf: including typings in package.json
- include typings in package.json

## 0.0.2

### Patch Changes
Expand Down
27 changes: 25 additions & 2 deletions packages/transaction-recovery/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@axelarjs/transaction-recovery",
"version": "0.0.2",
"version": "0.0.7",
"publishConfig": {
"access": "public"
},
Expand All @@ -9,7 +9,30 @@
"type": "git",
"url": "git+https://github.com/axelarnetwork/axelarjs"
},
"main": "index.js",
"files": [
"./build",
"./cosmosSigner",
"./services",
"./addGas.js",
"./index.js"
],
"typesVersions": {
"*": {
"*": [
"./build/module/*"
]
}
},
"exports": {
".": {
"import": "./build/module/index.js",
"require": "./build/commonjs/index.js"
},
"./*": {
"import": "./build/module/*.js",
"require": "./build/commonjs/*.js"
}
},
"scripts": {
"build": "./scripts/build.sh",
"clean": "./scripts/clean.sh",
Expand Down
2 changes: 1 addition & 1 deletion packages/transaction-recovery/scripts/clean.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

npx rimraf build *.js *.d.ts
npx rimraf build cosmosSigner services *.js *.d.ts
2 changes: 1 addition & 1 deletion packages/transaction-recovery/src/addGas.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ENVIRONMENTS } from "@axelarjs/core";

import { vi } from "vitest";

import addGas, { SendOptions } from "./addGas";
import { addGas, SendOptions } from "./addGas";

const MOCK_ADD_GAS_RESPONSE = {
code: 0,
Expand Down
4 changes: 1 addition & 3 deletions packages/transaction-recovery/src/addGas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type SendOptions = {
cosmosWalletMnemonic: string;
};

async function addGas(
export async function addGas(
txHash: string,
token: Coin | "autocalculate",
sendOptions: SendOptions
Expand Down Expand Up @@ -69,5 +69,3 @@ async function addGas(
sendOptions.txFee
);
}

export default addGas;
6 changes: 1 addition & 5 deletions packages/transaction-recovery/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
import addGas from "./addGas";

export default {
addGas,
};
export * from "./addGas";
Loading