File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 88} from "../tokens/constants.js" ;
99export { createToken } from "../tokens/create-token.js" ;
1010export { distributeToken } from "../tokens/distribute-token.js" ;
11- export { getEntrypointERC20 } from "../tokens/get-entrypoint-erc20.js" ;
11+ export { getDeployedEntrypointERC20 } from "../tokens/get-entrypoint-erc20.js" ;
1212export { isPoolRouterEnabled } from "../tokens/is-router-enabled.js" ;
1313export {
1414 generateSalt ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { createdEvent } from "../extensions/tokens/__generated__/ERC20Entrypoint
55import { create } from "../extensions/tokens/__generated__/ERC20Entrypoint/write/create.js" ;
66import { sendAndConfirmTransaction } from "../transaction/actions/send-and-confirm-transaction.js" ;
77import { DEFAULT_REFERRER_ADDRESS } from "./constants.js" ;
8- import { getEntrypointERC20 } from "./get-entrypoint-erc20.js" ;
8+ import { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js" ;
99import {
1010 encodeInitParams ,
1111 encodePoolConfig ,
@@ -25,7 +25,7 @@ export async function createToken(options: CreateTokenOptions) {
2525
2626 const salt : Hex = generateSalt ( options . salt || bytesToHex ( randomBytes ( 31 ) ) ) ;
2727
28- const entrypoint = await getEntrypointERC20 ( options ) ;
28+ const entrypoint = await getDeployedEntrypointERC20 ( options ) ;
2929
3030 let hookData : Hex = "0x" ;
3131 if ( launchConfig ?. kind === "pool" ) {
Original file line number Diff line number Diff line change 11import { distribute } from "../extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.js" ;
22import type { ClientAndChain } from "../utils/types.js" ;
33import { toUnits } from "../utils/units.js" ;
4- import { getEntrypointERC20 } from "./get-entrypoint-erc20.js" ;
4+ import { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js" ;
55import type { DistributeContent } from "./types.js" ;
66
77type DistrbuteTokenParams = ClientAndChain & {
@@ -10,7 +10,7 @@ type DistrbuteTokenParams = ClientAndChain & {
1010} ;
1111
1212export async function distributeToken ( options : DistrbuteTokenParams ) {
13- const entrypoint = await getEntrypointERC20 ( options ) ;
13+ const entrypoint = await getDeployedEntrypointERC20 ( options ) ;
1414
1515 if ( ! entrypoint ) {
1616 throw new Error ( `Entrypoint not found on chain: ${ options . chain . id } ` ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { getContract } from "../contract/contract.js";
22import type { ClientAndChain } from "../utils/types.js" ;
33import { IMPLEMENTATIONS } from "./constants.js" ;
44
5- export async function getEntrypointERC20 ( options : ClientAndChain ) {
5+ export async function getDeployedEntrypointERC20 ( options : ClientAndChain ) {
66 const implementations = IMPLEMENTATIONS [ options . chain . id ] ;
77
88 if ( implementations ?. EntrypointERC20 ) {
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ import { getContract } from "../contract/contract.js";
33import { getPoolRouter } from "../extensions/tokens/__generated__/ERC20Entrypoint/read/getPoolRouter.js" ;
44import { getAdapter } from "../extensions/tokens/__generated__/PoolRouter/read/getAdapter.js" ;
55import type { ClientAndChain } from "../utils/types.js" ;
6- import { getEntrypointERC20 } from "./get-entrypoint-erc20.js" ;
6+ import { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js" ;
77
88export async function isPoolRouterEnabled (
99 options : ClientAndChain ,
1010) : Promise < boolean > {
11- const entrypoint = await getEntrypointERC20 ( options ) ;
11+ const entrypoint = await getDeployedEntrypointERC20 ( options ) ;
1212 if ( ! entrypoint ) {
1313 return false ;
1414 }
You can’t perform that action at this time.
0 commit comments