@vetro-protocol/gateway 1.3.0 → 1.3.1
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.
- package/_esm/actions/index.js +49 -21
- package/_esm/actions/index.js.map +7 -1
- package/_esm/chunk-ZE4YZMXK.js +1326 -0
- package/_esm/chunk-ZE4YZMXK.js.map +7 -0
- package/_esm/index.js +57 -31
- package/_esm/index.js.map +7 -1
- package/_types/actions/index.d.ts +18 -18
- package/_types/actions/public/getGateway.d.ts.map +1 -1
- package/_types/actions/public/getMaxMint.d.ts.map +1 -1
- package/_types/actions/public/getMaxWithdraw.d.ts.map +1 -1
- package/_types/actions/public/getMintFee.d.ts.map +1 -1
- package/_types/actions/public/getPeggedToken.d.ts.map +1 -1
- package/_types/actions/public/getRedeemFee.d.ts.map +1 -1
- package/_types/actions/public/getRedeemRequest.d.ts.map +1 -1
- package/_types/actions/public/getTreasury.d.ts.map +1 -1
- package/_types/actions/public/getWithdrawalDelay.d.ts.map +1 -1
- package/_types/actions/public/getWithdrawalDelayEnabled.d.ts.map +1 -1
- package/_types/actions/public/index.d.ts +14 -14
- package/_types/actions/public/isInstantRedeemWhitelisted.d.ts.map +1 -1
- package/_types/actions/public/previewDeposit.d.ts.map +1 -1
- package/_types/actions/public/previewRedeem.d.ts.map +1 -1
- package/_types/actions/public/previewWithdraw.d.ts.map +1 -1
- package/_types/actions/wallet/cancelRedeemRequest.d.ts +1 -1
- package/_types/actions/wallet/deposit.d.ts +1 -1
- package/_types/actions/wallet/redeem.d.ts +1 -1
- package/_types/actions/wallet/requestRedeem.d.ts +1 -1
- package/_types/gatewayAddresses.d.ts.map +1 -1
- package/_types/index.d.ts +12 -12
- package/package.json +7 -5
- package/src/actions/index.ts +18 -18
- package/src/actions/public/getGateway.ts +2 -2
- package/src/actions/public/getMaxMint.ts +2 -2
- package/src/actions/public/getMaxWithdraw.ts +2 -2
- package/src/actions/public/getMintFee.ts +2 -2
- package/src/actions/public/getPeggedToken.ts +2 -2
- package/src/actions/public/getRedeemFee.ts +2 -2
- package/src/actions/public/getRedeemRequest.ts +2 -2
- package/src/actions/public/getTreasury.ts +2 -2
- package/src/actions/public/getWithdrawalDelay.ts +2 -2
- package/src/actions/public/getWithdrawalDelayEnabled.ts +2 -2
- package/src/actions/public/index.ts +14 -14
- package/src/actions/public/isInstantRedeemWhitelisted.ts +2 -2
- package/src/actions/public/previewDeposit.ts +2 -2
- package/src/actions/public/previewRedeem.ts +2 -2
- package/src/actions/public/previewWithdraw.ts +2 -2
- package/src/actions/wallet/cancelRedeemRequest.ts +2 -2
- package/src/actions/wallet/deposit.ts +2 -2
- package/src/actions/wallet/redeem.ts +6 -6
- package/src/actions/wallet/requestRedeem.ts +3 -3
- package/src/gatewayAddresses.ts +6 -17
- package/src/index.ts +8 -8
- package/_esm/abi/gatewayAbi.js +0 -223
- package/_esm/abi/gatewayAbi.js.map +0 -1
- package/_esm/abi/peggedTokenAbi.js +0 -10
- package/_esm/abi/peggedTokenAbi.js.map +0 -1
- package/_esm/actions/public/getGateway.js +0 -30
- package/_esm/actions/public/getGateway.js.map +0 -1
- package/_esm/actions/public/getMaxMint.js +0 -23
- package/_esm/actions/public/getMaxMint.js.map +0 -1
- package/_esm/actions/public/getMaxWithdraw.js +0 -28
- package/_esm/actions/public/getMaxWithdraw.js.map +0 -1
- package/_esm/actions/public/getMintFee.js +0 -28
- package/_esm/actions/public/getMintFee.js.map +0 -1
- package/_esm/actions/public/getPeggedToken.js +0 -23
- package/_esm/actions/public/getPeggedToken.js.map +0 -1
- package/_esm/actions/public/getRedeemFee.js +0 -28
- package/_esm/actions/public/getRedeemFee.js.map +0 -1
- package/_esm/actions/public/getRedeemRequest.js +0 -28
- package/_esm/actions/public/getRedeemRequest.js.map +0 -1
- package/_esm/actions/public/getTreasury.js +0 -23
- package/_esm/actions/public/getTreasury.js.map +0 -1
- package/_esm/actions/public/getWithdrawalDelay.js +0 -23
- package/_esm/actions/public/getWithdrawalDelay.js.map +0 -1
- package/_esm/actions/public/getWithdrawalDelayEnabled.js +0 -23
- package/_esm/actions/public/getWithdrawalDelayEnabled.js.map +0 -1
- package/_esm/actions/public/index.js +0 -15
- package/_esm/actions/public/index.js.map +0 -1
- package/_esm/actions/public/isInstantRedeemWhitelisted.js +0 -28
- package/_esm/actions/public/isInstantRedeemWhitelisted.js.map +0 -1
- package/_esm/actions/public/previewDeposit.js +0 -35
- package/_esm/actions/public/previewDeposit.js.map +0 -1
- package/_esm/actions/public/previewRedeem.js +0 -35
- package/_esm/actions/public/previewRedeem.js.map +0 -1
- package/_esm/actions/public/previewWithdraw.js +0 -35
- package/_esm/actions/public/previewWithdraw.js.map +0 -1
- package/_esm/actions/wallet/cancelRedeemRequest.js +0 -89
- package/_esm/actions/wallet/cancelRedeemRequest.js.map +0 -1
- package/_esm/actions/wallet/deposit.js +0 -193
- package/_esm/actions/wallet/deposit.js.map +0 -1
- package/_esm/actions/wallet/redeem.js +0 -226
- package/_esm/actions/wallet/redeem.js.map +0 -1
- package/_esm/actions/wallet/requestRedeem.js +0 -153
- package/_esm/actions/wallet/requestRedeem.js.map +0 -1
- package/_esm/gatewayAddresses.js +0 -18
- package/_esm/gatewayAddresses.js.map +0 -1
- package/_esm/types.js +0 -2
- package/_esm/types.js.map +0 -1
- package/_esm/utils/isAddressValid.js +0 -3
- package/_esm/utils/isAddressValid.js.map +0 -1
- package/_types/utils/isAddressValid.d.ts +0 -3
- package/_types/utils/isAddressValid.d.ts.map +0 -1
- package/src/utils/isAddressValid.ts +0 -4
package/src/actions/index.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
// Export all public actions
|
|
2
|
-
export * from "./public/getGateway.
|
|
3
|
-
export * from "./public/getMaxMint.
|
|
4
|
-
export * from "./public/getMaxWithdraw.
|
|
5
|
-
export * from "./public/getPeggedToken.
|
|
6
|
-
export * from "./public/getMintFee.
|
|
7
|
-
export * from "./public/getRedeemFee.
|
|
8
|
-
export * from "./public/getRedeemRequest.
|
|
9
|
-
export * from "./public/getTreasury.
|
|
10
|
-
export * from "./public/getWithdrawalDelayEnabled.
|
|
11
|
-
export * from "./public/getWithdrawalDelay.
|
|
12
|
-
export * from "./public/isInstantRedeemWhitelisted.
|
|
13
|
-
export * from "./public/previewDeposit.
|
|
14
|
-
export * from "./public/previewRedeem.
|
|
15
|
-
export * from "./public/previewWithdraw.
|
|
2
|
+
export * from "./public/getGateway.ts";
|
|
3
|
+
export * from "./public/getMaxMint.ts";
|
|
4
|
+
export * from "./public/getMaxWithdraw.ts";
|
|
5
|
+
export * from "./public/getPeggedToken.ts";
|
|
6
|
+
export * from "./public/getMintFee.ts";
|
|
7
|
+
export * from "./public/getRedeemFee.ts";
|
|
8
|
+
export * from "./public/getRedeemRequest.ts";
|
|
9
|
+
export * from "./public/getTreasury.ts";
|
|
10
|
+
export * from "./public/getWithdrawalDelayEnabled.ts";
|
|
11
|
+
export * from "./public/getWithdrawalDelay.ts";
|
|
12
|
+
export * from "./public/isInstantRedeemWhitelisted.ts";
|
|
13
|
+
export * from "./public/previewDeposit.ts";
|
|
14
|
+
export * from "./public/previewRedeem.ts";
|
|
15
|
+
export * from "./public/previewWithdraw.ts";
|
|
16
16
|
|
|
17
17
|
// Export all wallet actions
|
|
18
|
-
export * from "./wallet/cancelRedeemRequest.
|
|
19
|
-
export * from "./wallet/deposit.
|
|
20
|
-
export * from "./wallet/redeem.
|
|
21
|
-
export * from "./wallet/requestRedeem.
|
|
18
|
+
export * from "./wallet/cancelRedeemRequest.ts";
|
|
19
|
+
export * from "./wallet/deposit.ts";
|
|
20
|
+
export * from "./wallet/redeem.ts";
|
|
21
|
+
export * from "./wallet/requestRedeem.ts";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isAddressValid } from "@vetro-protocol/core";
|
|
1
2
|
import { type Address, type Client } from "viem";
|
|
2
3
|
import { readContract } from "viem/actions";
|
|
3
4
|
|
|
4
|
-
import { peggedTokenAbi } from "../../abi/peggedTokenAbi.
|
|
5
|
-
import { isAddressValid } from "../../utils/isAddressValid.js";
|
|
5
|
+
import { peggedTokenAbi } from "../../abi/peggedTokenAbi.ts";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Reads the gateway address for a given pegged token.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isAddressValid } from "@vetro-protocol/core";
|
|
1
2
|
import { type Address, type Client } from "viem";
|
|
2
3
|
import { readContract } from "viem/actions";
|
|
3
4
|
|
|
4
|
-
import { gatewayAbi } from "../../abi/gatewayAbi.
|
|
5
|
-
import { isAddressValid } from "../../utils/isAddressValid.js";
|
|
5
|
+
import { gatewayAbi } from "../../abi/gatewayAbi.ts";
|
|
6
6
|
|
|
7
7
|
export async function getMaxMint(
|
|
8
8
|
client: Client,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isAddressValid } from "@vetro-protocol/core";
|
|
1
2
|
import { type Address, type Client } from "viem";
|
|
2
3
|
import { readContract } from "viem/actions";
|
|
3
4
|
|
|
4
|
-
import { gatewayAbi } from "../../abi/gatewayAbi.
|
|
5
|
-
import { isAddressValid } from "../../utils/isAddressValid.js";
|
|
5
|
+
import { gatewayAbi } from "../../abi/gatewayAbi.ts";
|
|
6
6
|
|
|
7
7
|
export async function getMaxWithdraw(
|
|
8
8
|
client: Client,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isAddressValid } from "@vetro-protocol/core";
|
|
1
2
|
import { type Address, type Client } from "viem";
|
|
2
3
|
import { readContract } from "viem/actions";
|
|
3
4
|
|
|
4
|
-
import { gatewayAbi } from "../../abi/gatewayAbi.
|
|
5
|
-
import { isAddressValid } from "../../utils/isAddressValid.js";
|
|
5
|
+
import { gatewayAbi } from "../../abi/gatewayAbi.ts";
|
|
6
6
|
|
|
7
7
|
export async function getMintFee(
|
|
8
8
|
client: Client,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isAddressValid } from "@vetro-protocol/core";
|
|
1
2
|
import { type Address, type Client } from "viem";
|
|
2
3
|
import { readContract } from "viem/actions";
|
|
3
4
|
|
|
4
|
-
import { gatewayAbi } from "../../abi/gatewayAbi.
|
|
5
|
-
import { isAddressValid } from "../../utils/isAddressValid.js";
|
|
5
|
+
import { gatewayAbi } from "../../abi/gatewayAbi.ts";
|
|
6
6
|
|
|
7
7
|
export async function getPeggedToken(
|
|
8
8
|
client: Client,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isAddressValid } from "@vetro-protocol/core";
|
|
1
2
|
import { type Address, type Client } from "viem";
|
|
2
3
|
import { readContract } from "viem/actions";
|
|
3
4
|
|
|
4
|
-
import { gatewayAbi } from "../../abi/gatewayAbi.
|
|
5
|
-
import { isAddressValid } from "../../utils/isAddressValid.js";
|
|
5
|
+
import { gatewayAbi } from "../../abi/gatewayAbi.ts";
|
|
6
6
|
|
|
7
7
|
export async function getRedeemFee(
|
|
8
8
|
client: Client,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isAddressValid } from "@vetro-protocol/core";
|
|
1
2
|
import { type Address, type Client } from "viem";
|
|
2
3
|
import { readContract } from "viem/actions";
|
|
3
4
|
|
|
4
|
-
import { gatewayAbi } from "../../abi/gatewayAbi.
|
|
5
|
-
import { isAddressValid } from "../../utils/isAddressValid.js";
|
|
5
|
+
import { gatewayAbi } from "../../abi/gatewayAbi.ts";
|
|
6
6
|
|
|
7
7
|
export async function getRedeemRequest(
|
|
8
8
|
client: Client,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isAddressValid } from "@vetro-protocol/core";
|
|
1
2
|
import { type Address, type Client } from "viem";
|
|
2
3
|
import { readContract } from "viem/actions";
|
|
3
4
|
|
|
4
|
-
import { gatewayAbi } from "../../abi/gatewayAbi.
|
|
5
|
-
import { isAddressValid } from "../../utils/isAddressValid.js";
|
|
5
|
+
import { gatewayAbi } from "../../abi/gatewayAbi.ts";
|
|
6
6
|
|
|
7
7
|
export async function getTreasury(
|
|
8
8
|
client: Client,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isAddressValid } from "@vetro-protocol/core";
|
|
1
2
|
import { type Address, type Client } from "viem";
|
|
2
3
|
import { readContract } from "viem/actions";
|
|
3
4
|
|
|
4
|
-
import { gatewayAbi } from "../../abi/gatewayAbi.
|
|
5
|
-
import { isAddressValid } from "../../utils/isAddressValid.js";
|
|
5
|
+
import { gatewayAbi } from "../../abi/gatewayAbi.ts";
|
|
6
6
|
|
|
7
7
|
export async function getWithdrawalDelay(
|
|
8
8
|
client: Client,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isAddressValid } from "@vetro-protocol/core";
|
|
1
2
|
import { type Address, type Client } from "viem";
|
|
2
3
|
import { readContract } from "viem/actions";
|
|
3
4
|
|
|
4
|
-
import { gatewayAbi } from "../../abi/gatewayAbi.
|
|
5
|
-
import { isAddressValid } from "../../utils/isAddressValid.js";
|
|
5
|
+
import { gatewayAbi } from "../../abi/gatewayAbi.ts";
|
|
6
6
|
|
|
7
7
|
export async function getWithdrawalDelayEnabled(
|
|
8
8
|
client: Client,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from "./getGateway.
|
|
2
|
-
export * from "./getMaxMint.
|
|
3
|
-
export * from "./getMaxWithdraw.
|
|
4
|
-
export * from "./getMintFee.
|
|
5
|
-
export * from "./getPeggedToken.
|
|
6
|
-
export * from "./getRedeemFee.
|
|
7
|
-
export * from "./getRedeemRequest.
|
|
8
|
-
export * from "./getTreasury.
|
|
9
|
-
export * from "./getWithdrawalDelay.
|
|
10
|
-
export * from "./getWithdrawalDelayEnabled.
|
|
11
|
-
export * from "./isInstantRedeemWhitelisted.
|
|
12
|
-
export * from "./previewDeposit.
|
|
13
|
-
export * from "./previewRedeem.
|
|
14
|
-
export * from "./previewWithdraw.
|
|
1
|
+
export * from "./getGateway.ts";
|
|
2
|
+
export * from "./getMaxMint.ts";
|
|
3
|
+
export * from "./getMaxWithdraw.ts";
|
|
4
|
+
export * from "./getMintFee.ts";
|
|
5
|
+
export * from "./getPeggedToken.ts";
|
|
6
|
+
export * from "./getRedeemFee.ts";
|
|
7
|
+
export * from "./getRedeemRequest.ts";
|
|
8
|
+
export * from "./getTreasury.ts";
|
|
9
|
+
export * from "./getWithdrawalDelay.ts";
|
|
10
|
+
export * from "./getWithdrawalDelayEnabled.ts";
|
|
11
|
+
export * from "./isInstantRedeemWhitelisted.ts";
|
|
12
|
+
export * from "./previewDeposit.ts";
|
|
13
|
+
export * from "./previewRedeem.ts";
|
|
14
|
+
export * from "./previewWithdraw.ts";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isAddressValid } from "@vetro-protocol/core";
|
|
1
2
|
import { type Address, type Client } from "viem";
|
|
2
3
|
import { readContract } from "viem/actions";
|
|
3
4
|
|
|
4
|
-
import { gatewayAbi } from "../../abi/gatewayAbi.
|
|
5
|
-
import { isAddressValid } from "../../utils/isAddressValid.js";
|
|
5
|
+
import { gatewayAbi } from "../../abi/gatewayAbi.ts";
|
|
6
6
|
|
|
7
7
|
export async function isInstantRedeemWhitelisted(
|
|
8
8
|
client: Client,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isAddressValid } from "@vetro-protocol/core";
|
|
1
2
|
import { type Address, type Client } from "viem";
|
|
2
3
|
import { readContract } from "viem/actions";
|
|
3
4
|
|
|
4
|
-
import { gatewayAbi } from "../../abi/gatewayAbi.
|
|
5
|
-
import { isAddressValid } from "../../utils/isAddressValid.js";
|
|
5
|
+
import { gatewayAbi } from "../../abi/gatewayAbi.ts";
|
|
6
6
|
|
|
7
7
|
export async function previewDeposit(
|
|
8
8
|
client: Client,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isAddressValid } from "@vetro-protocol/core";
|
|
1
2
|
import { type Address, type Client } from "viem";
|
|
2
3
|
import { readContract } from "viem/actions";
|
|
3
4
|
|
|
4
|
-
import { gatewayAbi } from "../../abi/gatewayAbi.
|
|
5
|
-
import { isAddressValid } from "../../utils/isAddressValid.js";
|
|
5
|
+
import { gatewayAbi } from "../../abi/gatewayAbi.ts";
|
|
6
6
|
|
|
7
7
|
export async function previewRedeem(
|
|
8
8
|
client: Client,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isAddressValid } from "@vetro-protocol/core";
|
|
1
2
|
import { type Address, type Client } from "viem";
|
|
2
3
|
import { readContract } from "viem/actions";
|
|
3
4
|
|
|
4
|
-
import { gatewayAbi } from "../../abi/gatewayAbi.
|
|
5
|
-
import { isAddressValid } from "../../utils/isAddressValid.js";
|
|
5
|
+
import { gatewayAbi } from "../../abi/gatewayAbi.ts";
|
|
6
6
|
|
|
7
7
|
export async function previewWithdraw(
|
|
8
8
|
client: Client,
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
} from "viem";
|
|
12
12
|
import { waitForTransactionReceipt, writeContract } from "viem/actions";
|
|
13
13
|
|
|
14
|
-
import { gatewayAbi } from "../../abi/gatewayAbi.
|
|
15
|
-
import type { CancelRedeemRequestEvents } from "../../types.
|
|
14
|
+
import { gatewayAbi } from "../../abi/gatewayAbi.ts";
|
|
15
|
+
import type { CancelRedeemRequestEvents } from "../../types.ts";
|
|
16
16
|
|
|
17
17
|
export type CancelRedeemRequestParams = {
|
|
18
18
|
gatewayAddress: Address;
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
import { waitForTransactionReceipt, writeContract } from "viem/actions";
|
|
13
13
|
import { allowance, approve } from "viem-erc20/actions";
|
|
14
14
|
|
|
15
|
-
import { gatewayAbi } from "../../abi/gatewayAbi.
|
|
16
|
-
import type { DepositEvents } from "../../types.
|
|
15
|
+
import { gatewayAbi } from "../../abi/gatewayAbi.ts";
|
|
16
|
+
import type { DepositEvents } from "../../types.ts";
|
|
17
17
|
|
|
18
18
|
export type DepositParams = {
|
|
19
19
|
amountIn: bigint;
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
import { waitForTransactionReceipt, writeContract } from "viem/actions";
|
|
13
13
|
import { allowance, approve } from "viem-erc20/actions";
|
|
14
14
|
|
|
15
|
-
import { gatewayAbi } from "../../abi/gatewayAbi.
|
|
16
|
-
import type { RedeemEvents } from "../../types.
|
|
17
|
-
import { getMaxWithdraw } from "../public/getMaxWithdraw.
|
|
18
|
-
import { getPeggedToken } from "../public/getPeggedToken.
|
|
19
|
-
import { getWithdrawalDelayEnabled } from "../public/getWithdrawalDelayEnabled.
|
|
20
|
-
import { isInstantRedeemWhitelisted } from "../public/isInstantRedeemWhitelisted.
|
|
15
|
+
import { gatewayAbi } from "../../abi/gatewayAbi.ts";
|
|
16
|
+
import type { RedeemEvents } from "../../types.ts";
|
|
17
|
+
import { getMaxWithdraw } from "../public/getMaxWithdraw.ts";
|
|
18
|
+
import { getPeggedToken } from "../public/getPeggedToken.ts";
|
|
19
|
+
import { getWithdrawalDelayEnabled } from "../public/getWithdrawalDelayEnabled.ts";
|
|
20
|
+
import { isInstantRedeemWhitelisted } from "../public/isInstantRedeemWhitelisted.ts";
|
|
21
21
|
|
|
22
22
|
export type RedeemParams = {
|
|
23
23
|
approveAmount?: bigint;
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
import { waitForTransactionReceipt, writeContract } from "viem/actions";
|
|
13
13
|
import { allowance, approve } from "viem-erc20/actions";
|
|
14
14
|
|
|
15
|
-
import { gatewayAbi } from "../../abi/gatewayAbi.
|
|
16
|
-
import type { RequestRedeemEvents } from "../../types.
|
|
17
|
-
import { getPeggedToken } from "../public/getPeggedToken.
|
|
15
|
+
import { gatewayAbi } from "../../abi/gatewayAbi.ts";
|
|
16
|
+
import type { RequestRedeemEvents } from "../../types.ts";
|
|
17
|
+
import { getPeggedToken } from "../public/getPeggedToken.ts";
|
|
18
18
|
|
|
19
19
|
export type RequestRedeemParams = {
|
|
20
20
|
approveAmount?: bigint;
|
package/src/gatewayAddresses.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
gatewayAddresses as coreGatewayAddresses,
|
|
3
|
+
gateways as coreGateways,
|
|
4
|
+
} from "@vetro-protocol/core";
|
|
1
5
|
import type { Address } from "viem";
|
|
2
6
|
|
|
3
7
|
export type Gateway = {
|
|
@@ -7,21 +11,6 @@ export type Gateway = {
|
|
|
7
11
|
pegBaseSymbol: string;
|
|
8
12
|
};
|
|
9
13
|
|
|
10
|
-
|
|
11
|
-
// peg unit (e.g. WBTC/BTC for the vetBTC gateway, USDT/USD for the VUSD gateway),
|
|
12
|
-
// so the USD price for any whitelisted token is `oracle × portal[pegBaseSymbol]`.
|
|
13
|
-
// See `web/src/fetchers/fetchPrices.ts` for the merge.
|
|
14
|
-
export const gateways: Gateway[] = [
|
|
15
|
-
// VUSD
|
|
16
|
-
{
|
|
17
|
-
address: "0xDaD503f8B9d42bb7af3AfC588358D30163e4416F",
|
|
18
|
-
pegBaseSymbol: "USD",
|
|
19
|
-
},
|
|
20
|
-
// vetBTC
|
|
21
|
-
{
|
|
22
|
-
address: "0xCBA2Ffa0AC52d7871a4221a871793Eb788013faB",
|
|
23
|
-
pegBaseSymbol: "BTC",
|
|
24
|
-
},
|
|
25
|
-
];
|
|
14
|
+
export const gateways: Gateway[] = coreGateways;
|
|
26
15
|
|
|
27
|
-
export const gatewayAddresses: Address[] =
|
|
16
|
+
export const gatewayAddresses: Address[] = coreGatewayAddresses;
|
package/src/index.ts
CHANGED
|
@@ -15,26 +15,26 @@ import {
|
|
|
15
15
|
previewDeposit,
|
|
16
16
|
previewRedeem,
|
|
17
17
|
previewWithdraw,
|
|
18
|
-
} from "./actions/public/index.
|
|
18
|
+
} from "./actions/public/index.ts";
|
|
19
19
|
import {
|
|
20
20
|
type CancelRedeemRequestParams,
|
|
21
21
|
cancelRedeemRequest,
|
|
22
|
-
} from "./actions/wallet/cancelRedeemRequest.
|
|
23
|
-
import { type DepositParams, deposit } from "./actions/wallet/deposit.
|
|
24
|
-
import { type RedeemParams, redeem } from "./actions/wallet/redeem.
|
|
22
|
+
} from "./actions/wallet/cancelRedeemRequest.ts";
|
|
23
|
+
import { type DepositParams, deposit } from "./actions/wallet/deposit.ts";
|
|
24
|
+
import { type RedeemParams, redeem } from "./actions/wallet/redeem.ts";
|
|
25
25
|
import {
|
|
26
26
|
type RequestRedeemParams,
|
|
27
27
|
requestRedeem,
|
|
28
|
-
} from "./actions/wallet/requestRedeem.
|
|
28
|
+
} from "./actions/wallet/requestRedeem.ts";
|
|
29
29
|
|
|
30
30
|
// Export ABI
|
|
31
|
-
export { gatewayAbi } from "./abi/gatewayAbi.
|
|
31
|
+
export { gatewayAbi } from "./abi/gatewayAbi.ts";
|
|
32
32
|
// Export gateway addresses and per-gateway peg-base metadata
|
|
33
33
|
export {
|
|
34
34
|
type Gateway,
|
|
35
35
|
gatewayAddresses,
|
|
36
36
|
gateways,
|
|
37
|
-
} from "./gatewayAddresses.
|
|
37
|
+
} from "./gatewayAddresses.ts";
|
|
38
38
|
|
|
39
39
|
export type { CancelRedeemRequestParams };
|
|
40
40
|
|
|
@@ -43,7 +43,7 @@ export {
|
|
|
43
43
|
type DepositEvents,
|
|
44
44
|
type RedeemEvents,
|
|
45
45
|
type RequestRedeemEvents,
|
|
46
|
-
} from "./types.
|
|
46
|
+
} from "./types.ts";
|
|
47
47
|
|
|
48
48
|
// Export factory functions for .extend() pattern
|
|
49
49
|
export const gatewayPublicActions = () => (client: Client) => ({
|
package/_esm/abi/gatewayAbi.js
DELETED
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
export const gatewayAbi = [
|
|
2
|
-
{
|
|
3
|
-
inputs: [],
|
|
4
|
-
name: "PEGGED_TOKEN",
|
|
5
|
-
outputs: [{ type: "address" }],
|
|
6
|
-
stateMutability: "view",
|
|
7
|
-
type: "function",
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
inputs: [{ name: "token_", type: "address" }],
|
|
11
|
-
name: "mintFee",
|
|
12
|
-
outputs: [{ type: "uint256" }],
|
|
13
|
-
stateMutability: "view",
|
|
14
|
-
type: "function",
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
inputs: [],
|
|
18
|
-
name: "mintLimit",
|
|
19
|
-
outputs: [{ type: "uint256" }],
|
|
20
|
-
stateMutability: "view",
|
|
21
|
-
type: "function",
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
inputs: [],
|
|
25
|
-
name: "owner",
|
|
26
|
-
outputs: [{ type: "address" }],
|
|
27
|
-
stateMutability: "view",
|
|
28
|
-
type: "function",
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
inputs: [{ name: "token_", type: "address" }],
|
|
32
|
-
name: "redeemFee",
|
|
33
|
-
outputs: [{ type: "uint256" }],
|
|
34
|
-
stateMutability: "view",
|
|
35
|
-
type: "function",
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
inputs: [],
|
|
39
|
-
name: "treasury",
|
|
40
|
-
outputs: [{ type: "address" }],
|
|
41
|
-
stateMutability: "view",
|
|
42
|
-
type: "function",
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
inputs: [],
|
|
46
|
-
name: "withdrawalDelayEnabled",
|
|
47
|
-
outputs: [{ type: "bool" }],
|
|
48
|
-
stateMutability: "view",
|
|
49
|
-
type: "function",
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
inputs: [],
|
|
53
|
-
name: "withdrawalDelay",
|
|
54
|
-
outputs: [{ type: "uint256" }],
|
|
55
|
-
stateMutability: "view",
|
|
56
|
-
type: "function",
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
inputs: [{ name: "user_", type: "address" }],
|
|
60
|
-
name: "getRedeemRequest",
|
|
61
|
-
outputs: [
|
|
62
|
-
{ name: "amountLocked", type: "uint256" },
|
|
63
|
-
{ name: "claimableAt", type: "uint256" },
|
|
64
|
-
],
|
|
65
|
-
stateMutability: "view",
|
|
66
|
-
type: "function",
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
inputs: [{ name: "account_", type: "address" }],
|
|
70
|
-
name: "isInstantRedeemWhitelisted",
|
|
71
|
-
outputs: [{ type: "bool" }],
|
|
72
|
-
stateMutability: "view",
|
|
73
|
-
type: "function",
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
inputs: [],
|
|
77
|
-
name: "maxMint",
|
|
78
|
-
outputs: [{ type: "uint256" }],
|
|
79
|
-
stateMutability: "view",
|
|
80
|
-
type: "function",
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
inputs: [{ name: "tokenOut_", type: "address" }],
|
|
84
|
-
name: "maxWithdraw",
|
|
85
|
-
outputs: [{ type: "uint256" }],
|
|
86
|
-
stateMutability: "view",
|
|
87
|
-
type: "function",
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
inputs: [{ name: "account_", type: "address" }],
|
|
91
|
-
name: "addToInstantRedeemWhitelist",
|
|
92
|
-
outputs: [],
|
|
93
|
-
stateMutability: "nonpayable",
|
|
94
|
-
type: "function",
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
inputs: [{ name: "account_", type: "address" }],
|
|
98
|
-
name: "removeFromInstantRedeemWhitelist",
|
|
99
|
-
outputs: [],
|
|
100
|
-
stateMutability: "nonpayable",
|
|
101
|
-
type: "function",
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
inputs: [
|
|
105
|
-
{ name: "tokenIn_", type: "address" },
|
|
106
|
-
{ name: "amountIn_", type: "uint256" },
|
|
107
|
-
],
|
|
108
|
-
name: "previewDeposit",
|
|
109
|
-
outputs: [{ type: "uint256" }],
|
|
110
|
-
stateMutability: "view",
|
|
111
|
-
type: "function",
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
inputs: [
|
|
115
|
-
{ name: "tokenOut_", type: "address" },
|
|
116
|
-
{ name: "peggedTokenIn_", type: "uint256" },
|
|
117
|
-
],
|
|
118
|
-
name: "previewRedeem",
|
|
119
|
-
outputs: [{ type: "uint256" }],
|
|
120
|
-
stateMutability: "view",
|
|
121
|
-
type: "function",
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
inputs: [
|
|
125
|
-
{ name: "tokenOut_", type: "address" },
|
|
126
|
-
{ name: "amountOut_", type: "uint256" },
|
|
127
|
-
],
|
|
128
|
-
name: "previewWithdraw",
|
|
129
|
-
outputs: [{ type: "uint256" }],
|
|
130
|
-
stateMutability: "view",
|
|
131
|
-
type: "function",
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
inputs: [],
|
|
135
|
-
name: "cancelRedeemRequest",
|
|
136
|
-
outputs: [],
|
|
137
|
-
stateMutability: "nonpayable",
|
|
138
|
-
type: "function",
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
inputs: [
|
|
142
|
-
{ name: "tokenIn_", type: "address" },
|
|
143
|
-
{ name: "amountIn_", type: "uint256" },
|
|
144
|
-
{ name: "minPeggedTokenOut_", type: "uint256" },
|
|
145
|
-
{ name: "receiver_", type: "address" },
|
|
146
|
-
],
|
|
147
|
-
name: "deposit",
|
|
148
|
-
outputs: [{ type: "uint256" }],
|
|
149
|
-
stateMutability: "nonpayable",
|
|
150
|
-
type: "function",
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
inputs: [
|
|
154
|
-
{ name: "tokenOut_", type: "address" },
|
|
155
|
-
{ name: "peggedTokenIn_", type: "uint256" },
|
|
156
|
-
{ name: "minAmountOut_", type: "uint256" },
|
|
157
|
-
{ name: "receiver_", type: "address" },
|
|
158
|
-
],
|
|
159
|
-
name: "redeem",
|
|
160
|
-
outputs: [{ type: "uint256" }],
|
|
161
|
-
stateMutability: "nonpayable",
|
|
162
|
-
type: "function",
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
inputs: [{ name: "peggedTokenAmount_", type: "uint256" }],
|
|
166
|
-
name: "requestRedeem",
|
|
167
|
-
outputs: [],
|
|
168
|
-
stateMutability: "nonpayable",
|
|
169
|
-
type: "function",
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
inputs: [{ name: "enabled_", type: "bool" }],
|
|
173
|
-
name: "setWithdrawalDelayEnabled",
|
|
174
|
-
outputs: [],
|
|
175
|
-
stateMutability: "nonpayable",
|
|
176
|
-
type: "function",
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
inputs: [
|
|
180
|
-
{ name: "token_", type: "address" },
|
|
181
|
-
{ name: "newMintFee_", type: "uint256" },
|
|
182
|
-
],
|
|
183
|
-
name: "updateMintFee",
|
|
184
|
-
outputs: [],
|
|
185
|
-
stateMutability: "nonpayable",
|
|
186
|
-
type: "function",
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
inputs: [{ name: "newMintLimit_", type: "uint256" }],
|
|
190
|
-
name: "updateMintLimit",
|
|
191
|
-
outputs: [],
|
|
192
|
-
stateMutability: "nonpayable",
|
|
193
|
-
type: "function",
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
inputs: [
|
|
197
|
-
{ name: "token_", type: "address" },
|
|
198
|
-
{ name: "newRedeemFee_", type: "uint256" },
|
|
199
|
-
],
|
|
200
|
-
name: "updateRedeemFee",
|
|
201
|
-
outputs: [],
|
|
202
|
-
stateMutability: "nonpayable",
|
|
203
|
-
type: "function",
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
inputs: [{ name: "newDelay_", type: "uint256" }],
|
|
207
|
-
name: "updateWithdrawalDelay",
|
|
208
|
-
outputs: [],
|
|
209
|
-
stateMutability: "nonpayable",
|
|
210
|
-
type: "function",
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
anonymous: false,
|
|
214
|
-
inputs: [
|
|
215
|
-
{ indexed: true, name: "user", type: "address" },
|
|
216
|
-
{ indexed: false, name: "amount", type: "uint256" },
|
|
217
|
-
{ indexed: false, name: "claimableAt", type: "uint256" },
|
|
218
|
-
],
|
|
219
|
-
name: "RedeemRequested",
|
|
220
|
-
type: "event",
|
|
221
|
-
},
|
|
222
|
-
];
|
|
223
|
-
//# sourceMappingURL=gatew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