mirror of
https://github.com/alexgo-io/alex-sdk.git
synced 2026-04-29 02:05:42 +08:00
fix: missing Contracts type
This commit is contained in:
@@ -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],
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user