@reef-chain/react-lib 5.0.4 → 5.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,7 @@ import { Provider } from "@reef-chain/evm-provider";
2
2
  import { BigNumber } from "ethers";
3
3
  import { network as nw } from "@reef-chain/util-lib";
4
4
  import { ReefSigner } from "../state";
5
+ import { IFormoAnalytics } from "@formo/analytics";
5
6
  export type TxStatusHandler = (status: TxStatusUpdate) => void;
6
7
  type Network = nw.Network;
7
8
  export declare enum TX_STATUS_ERROR_CODE {
@@ -26,7 +27,7 @@ export interface TxStatusUpdate {
26
27
  export declare const handleErr: (e: {
27
28
  message: string;
28
29
  } | string, txIdent: string, txHash: string, txHandler: TxStatusHandler, signer: ReefSigner) => void;
29
- export declare const nativeTransfer: (amount: string, destinationAddress: string, provider: Provider, signer: ReefSigner) => Promise<void>;
30
+ export declare const nativeTransfer: (amount: string, destinationAddress: string, provider: Provider, signer: ReefSigner, analytics_formo?: IFormoAnalytics) => Promise<void>;
30
31
  export declare const sendToNativeAddress: (provider: Provider, signer: ReefSigner, toAmt: BigNumber, to: string, txHandler: TxStatusHandler) => string;
31
32
  export declare const getExtrinsicUrl: (extrinsic: {
32
33
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reef-chain/react-lib",
3
- "version": "5.0.4",
3
+ "version": "5.0.5",
4
4
  "description": "Reef React Library",
5
5
  "author": "Reef chain",
6
6
  "license": "MIT",
@@ -27,6 +27,7 @@
27
27
  "test:watch": "react-scripts test --env=jsdom"
28
28
  },
29
29
  "dependencies": {
30
+ "@formo/analytics": "^1.25.0",
30
31
  "@fortawesome/free-regular-svg-icons": "^6.1.0",
31
32
  "@fortawesome/free-solid-svg-icons": "^6.1.0",
32
33
  "@fortawesome/react-fontawesome": "^0.2.0",