Skip to content

Commit

Permalink
chore: namada bump to 0.45.1 (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszjasiuk authored Nov 12, 2024
1 parent 799e84c commit 82357d4
Show file tree
Hide file tree
Showing 39 changed files with 351 additions and 289 deletions.
2 changes: 1 addition & 1 deletion apps/namadillo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"license": "MIT",
"private": true,
"dependencies": {
"@anomaorg/namada-indexer-client": "0.0.27",
"@chain-registry/client": "^1.53.5",
"@cosmjs/encoding": "^0.32.3",
"@keplr-wallet/types": "^0.12.136",
"@namada/indexer-client": "0.0.28",
"@tailwindcss/container-queries": "^0.1.1",
"@tanstack/query-core": "^5.40.0",
"@tanstack/react-query": "^5.40.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/App/Governance/AllProposalsTable.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Pagination } from "@anomaorg/namada-indexer-client";
import { Stack, StyledSelectBox, TableRow } from "@namada/components";
import { Pagination } from "@namada/indexer-client";
import { Proposal, isProposalStatus, proposalStatuses } from "@namada/types";
import { mapUndefined } from "@namada/utils";
import { Search } from "App/Common/Search";
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/App/Staking/ValidatorRank.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ValidatorStatus } from "@anomaorg/namada-indexer-client";
import { ValidatorStatus } from "@namada/indexer-client";
import clsx from "clsx";

type ValidatorRankProps = {
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/App/Staking/ValidatorThumb.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ValidatorStatus } from "@anomaorg/namada-indexer-client";
import { ValidatorStatus } from "@namada/indexer-client";
import clsx from "clsx";
import { CiServer } from "react-icons/ci";
import { PiStackBold } from "react-icons/pi";
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/atoms/accounts/services.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Balance, DefaultApi } from "@anomaorg/namada-indexer-client";
import { Balance, DefaultApi } from "@namada/indexer-client";
import { getIntegration } from "@namada/integrations";
import { Account } from "@namada/types";
import BigNumber from "bignumber.js";
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/atoms/api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Configuration, DefaultApi } from "@anomaorg/namada-indexer-client";
import { Configuration, DefaultApi } from "@namada/indexer-client";
import { Atom, atom, getDefaultStore } from "jotai";
import { indexerUrlAtom } from "./settings";

Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/atoms/balance/functions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IbcToken, NativeToken } from "@anomaorg/namada-indexer-client";
import { Asset, AssetList } from "@chain-registry/types";
import { IbcToken, NativeToken } from "@namada/indexer-client";
import { mapCoinsToAssets } from "atoms/integrations";
import BigNumber from "bignumber.js";
import { DenomTrace } from "cosmjs-types/ibc/applications/transfer/v1/transfer";
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/atoms/chain/functions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Parameters } from "@anomaorg/namada-indexer-client";
import { Parameters } from "@namada/indexer-client";
import { singleUnitDurationFromInterval } from "@namada/utils/helpers";

export const calculateUnbondingPeriod = (parameters: Parameters): string => {
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/atoms/chain/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
IbcToken,
NativeToken,
Parameters,
} from "@anomaorg/namada-indexer-client";
} from "@namada/indexer-client";

export const fetchRpcUrlFromIndexer = async (
api: DefaultApi
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/atoms/fees/atoms.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GasLimitTableInnerTxKindEnum as GasLimitTableIndexer } from "@anomaorg/namada-indexer-client";
import { GasLimitTableInnerTxKindEnum as GasLimitTableIndexer } from "@namada/indexer-client";
import { defaultAccountAtom } from "atoms/accounts";
import { indexerApiAtom } from "atoms/api";
import { nativeTokenAddressAtom } from "atoms/chain";
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/atoms/fees/services.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DefaultApi } from "@anomaorg/namada-indexer-client";
import { DefaultApi } from "@namada/indexer-client";
import BigNumber from "bignumber.js";
import invariant from "invariant";
import { GasTable } from "types";
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/atoms/proposals/atoms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
fetchVotedProposalsByAccount,
} from "./functions";

import { Bond as NamadaIndexerBond } from "@anomaorg/namada-indexer-client";
import { Bond as NamadaIndexerBond } from "@namada/indexer-client";
import { shouldUpdateProposalAtom } from "atoms/etc";

export const proposalFamily = atomFamily((id: bigint) =>
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/atoms/proposals/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
ProposalTypeEnum as IndexerProposalTypeEnum,
VotingPower as IndexerVotingPower,
Pagination,
} from "@anomaorg/namada-indexer-client";
} from "@namada/indexer-client";
import {
Account,
AddRemove,
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/atoms/settings/services.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Configuration, DefaultApi } from "@anomaorg/namada-indexer-client";
import { Configuration, DefaultApi } from "@namada/indexer-client";
import { isUrlValid } from "@namada/utils";
import toml from "toml";
import { SettingsTomlOptions } from "types";
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/atoms/staking/atoms.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Reward } from "@anomaorg/namada-indexer-client";
import { Reward } from "@namada/indexer-client";
import {
BondMsgValue,
ClaimRewardsMsgValue,
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/atoms/staking/services.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DefaultApi, Reward } from "@anomaorg/namada-indexer-client";
import { DefaultApi, Reward } from "@namada/indexer-client";
import {
Account,
BondMsgValue,
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/atoms/validators/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
Unbond as IndexerUnbond,
Validator as IndexerValidator,
VotingPower as IndexerVotingPower,
} from "@anomaorg/namada-indexer-client";
} from "@namada/indexer-client";
import { singleUnitDurationFromInterval } from "@namada/utils";
import BigNumber from "bignumber.js";
import { Address, MyValidator, UnbondEntry, Validator } from "types";
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/atoms/validators/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
MergedBond,
Unbond,
VotingPower,
} from "@anomaorg/namada-indexer-client";
} from "@namada/indexer-client";
import { Account } from "@namada/types";
import { ChainParameters, Validator } from "types";
import { toValidator } from "./functions";
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/hooks/useValidatorFilter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ValidatorStatus } from "@anomaorg/namada-indexer-client";
import { ValidatorStatus } from "@namada/indexer-client";
import { useMemo } from "react";
import { Validator, ValidatorFilterOptions } from "types";

Expand Down
4 changes: 2 additions & 2 deletions apps/namadillo/src/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { AssetList, Chain, IBCInfo } from "@chain-registry/types";
import {
Bond as IndexerBond,
Unbond as IndexerUnbond,
ValidatorStatus,
} from "@anomaorg/namada-indexer-client";
import { AssetList, Chain, IBCInfo } from "@chain-registry/types";
} from "@namada/indexer-client";
import { ChainKey, ClaimRewardsMsgValue, ExtensionKey } from "@namada/types";
import BigNumber from "bignumber.js";

Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/workers/ShieldWorker.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Configuration, DefaultApi } from "@anomaorg/namada-indexer-client";
import { Configuration, DefaultApi } from "@namada/indexer-client";
import { initMulticore } from "@namada/sdk/inline-init";
import { getSdk, Sdk } from "@namada/sdk/web";
import { ShieldingTransferMsgValue, TxResponseMsgValue } from "@namada/types";
Expand Down
10 changes: 5 additions & 5 deletions packages/sdk/docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@namada/sdk / [Exports](modules.md)

# sdk
# namada-sdk

The Namada SDK package

Expand All @@ -9,10 +9,10 @@ The Namada SDK package
### Installation

```bash
npm install @namada/sdk
npm install @heliaxdev/namada-sdk

# Or, via yarn
yarn add @namada/sdk
yarn add @heliaxdev/namada-sdk
```

### Initializing the SDK
Expand All @@ -21,8 +21,8 @@ As this package depends on Wasm compiled from Rust to integrate with Namada, thi
developing for the Web. The following is a quick overview of some of the features of the SDK package:

```typescript
import { Sdk, getSdk } from "@namada/sdk/web";
import sdkInit from "@namada/sdk/web-init";
import { Sdk, getSdk } from "@heliaxdev/namada-sdk/web";
import sdkInit from "@heliaxdev/namada-sdk/web-init";

// Load Tx props from types package
import { BondProps, WrapperTxProps } from "@namada/types";
Expand Down
14 changes: 7 additions & 7 deletions packages/sdk/docs/classes/Crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Class Crypto handles AES encryption tasks

#### Defined in

[sdk/src/crypto/crypto.ts:20](https://github.com/anoma/namada-interface/blob/f4c1ee3fc8f46d98479687b9b4b0b2ae8ecd87bd/packages/sdk/src/crypto/crypto.ts#L20)
[sdk/src/crypto/crypto.ts:20](https://github.com/anoma/namada-interface/blob/08d7e68aa81c77115b4753e6531ec58175ea84a2/packages/sdk/src/crypto/crypto.ts#L20)

## Properties

Expand All @@ -52,7 +52,7 @@ WebAssembly Memory for crypto

#### Defined in

[sdk/src/crypto/crypto.ts:20](https://github.com/anoma/namada-interface/blob/f4c1ee3fc8f46d98479687b9b4b0b2ae8ecd87bd/packages/sdk/src/crypto/crypto.ts#L20)
[sdk/src/crypto/crypto.ts:20](https://github.com/anoma/namada-interface/blob/08d7e68aa81c77115b4753e6531ec58175ea84a2/packages/sdk/src/crypto/crypto.ts#L20)

## Methods

Expand All @@ -75,7 +75,7 @@ decrypted text

#### Defined in

[sdk/src/crypto/crypto.ts:115](https://github.com/anoma/namada-interface/blob/f4c1ee3fc8f46d98479687b9b4b0b2ae8ecd87bd/packages/sdk/src/crypto/crypto.ts#L115)
[sdk/src/crypto/crypto.ts:115](https://github.com/anoma/namada-interface/blob/08d7e68aa81c77115b4753e6531ec58175ea84a2/packages/sdk/src/crypto/crypto.ts#L115)

___

Expand All @@ -100,7 +100,7 @@ crypto record

#### Defined in

[sdk/src/crypto/crypto.ts:61](https://github.com/anoma/namada-interface/blob/f4c1ee3fc8f46d98479687b9b4b0b2ae8ecd87bd/packages/sdk/src/crypto/crypto.ts#L61)
[sdk/src/crypto/crypto.ts:61](https://github.com/anoma/namada-interface/blob/08d7e68aa81c77115b4753e6531ec58175ea84a2/packages/sdk/src/crypto/crypto.ts#L61)

___

Expand All @@ -126,7 +126,7 @@ array of encrypted bytes

#### Defined in

[sdk/src/crypto/crypto.ts:98](https://github.com/anoma/namada-interface/blob/f4c1ee3fc8f46d98479687b9b4b0b2ae8ecd87bd/packages/sdk/src/crypto/crypto.ts#L98)
[sdk/src/crypto/crypto.ts:98](https://github.com/anoma/namada-interface/blob/08d7e68aa81c77115b4753e6531ec58175ea84a2/packages/sdk/src/crypto/crypto.ts#L98)

___

Expand All @@ -153,7 +153,7 @@ crypto record used for storage

#### Defined in

[sdk/src/crypto/crypto.ts:30](https://github.com/anoma/namada-interface/blob/f4c1ee3fc8f46d98479687b9b4b0b2ae8ecd87bd/packages/sdk/src/crypto/crypto.ts#L30)
[sdk/src/crypto/crypto.ts:30](https://github.com/anoma/namada-interface/blob/08d7e68aa81c77115b4753e6531ec58175ea84a2/packages/sdk/src/crypto/crypto.ts#L30)

___

Expand All @@ -178,4 +178,4 @@ encryption parameters

#### Defined in

[sdk/src/crypto/crypto.ts:73](https://github.com/anoma/namada-interface/blob/f4c1ee3fc8f46d98479687b9b4b0b2ae8ecd87bd/packages/sdk/src/crypto/crypto.ts#L73)
[sdk/src/crypto/crypto.ts:73](https://github.com/anoma/namada-interface/blob/08d7e68aa81c77115b4753e6531ec58175ea84a2/packages/sdk/src/crypto/crypto.ts#L73)
Loading

1 comment on commit 82357d4

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.