@y0unghe/core-sdk
v0.1.18
Published
## core-sdk
Downloads
234
Readme
Publish NPM packages
core-sdk
INIT_CODE_HASH
src/constants/legacy.ts
. 否则在生成LP Pair地址的地方会出错,My Positions里会是空的,不会显示已经创建的pairSUSHI_ADDRESS, FACTORY_ADDRESS, ROUTER_ADDRESS, MASTERCHEF_ADDRESS, USD_ADDRESS
src/constants/addresses.ts
Package naming convention: @yourUsername/pkgName
The first time publish a package:
npm login
npm publish --access public
Publish updated packages:
yarn // if failed use npm
yarn build // if failed use npm run build
npm update @y0unghe/core-sdk
npm publish
npm run build && npm update @y0unghe/core-sdk && npm publish
Error: Cannot find module 'src/entities/Native/Shibarium'
如果在entities/Native
目录下新建了Native Token。那么要在src/constants/natives.ts
里导入
`import {Shibarium} from '../entities/Native'``
如果提示找不到Native/Zeta
,那么需要在src/entities/Native/index.ts
里面导入export { Zeta } from './Zeta'
在src/constants/native.ts
下面如果有类似import { Shardeum } from 'src/entities/Native/Shardeum'
那么需要删除掉,这样interface那边会报错: Error: Cannot find module 'src/entities/Native/Shardeum'
正确的做法是,update import {Shibarium} from '../entities/Native'
添加在这里面