fix: missing Contracts type

This commit is contained in:
Kyle Fang
2023-03-15 09:35:31 +08:00
parent 4ce2500fec
commit cd606de78b
2 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,3 @@
import { Contracts } from '../index';
import { AMMSwapPool } from '../utils/ammPool';
import { AlexVault, transfer } from '../utils/postConditions';
import {
@@ -25,6 +24,8 @@ export type TxToBroadCast = {
postConditions: Array<FungiblePostCondition | STXPostCondition>;
};
type Contracts = typeof AlexContracts;
const composeTx: <
T extends keyof Contracts,
F extends keyof Contracts[T],

View File

@@ -1,4 +1,3 @@
import { Contracts } from '../index';
import { callReadOnlyFunction, ClarityValue } from '@stacks/transactions';
import { API_HOST, CONTRACT_DEPLOYER } from '../config';
import { StacksMainnet } from '@stacks/network';
@@ -10,6 +9,8 @@ import {
import { AlexContracts } from '../generated/smartContract/contracts_Alex';
import { ReadOnlyFunctionOptions } from '@stacks/transactions/src/builders';
type Contracts = typeof AlexContracts;
type ReadonlyCallExecutor = (
options: Pick<
ReadOnlyFunctionOptions,