sacredrealm-sdk 1.0.4 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sacredrealm-sdk",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
package/src/constant.ts CHANGED
@@ -11,8 +11,8 @@ export function token(env?: string) {
11
11
  }
12
12
  } else {
13
13
  return {
14
- SB: '0x',
15
- SN: '0x',
14
+ SB: '0xa844b28aBf7aF74438131A1aF642Ef0CCAa8C166',
15
+ SN: '0xb2761cd8EFD9f436Efa1b205dEB1dC957300Ede5',
16
16
  ST: '0x',
17
17
  SR: '0x',
18
18
  BUSD: '0x78867BbEeF44f2326bF8DDd1941a4439382EF2A7',
@@ -0,0 +1,6 @@
1
+ import { ERC20__factory } from 'sacredrealm-core/typechain-types'
2
+ import { rpcProvider } from '../utils';
3
+
4
+ export function erc20(tokenAddr: string) {
5
+ return ERC20__factory.connect(tokenAddr, rpcProvider);
6
+ }
@@ -1,3 +1,4 @@
1
+ export * from './ERC20';
1
2
  export * from './SB';
2
3
  export * from './SN';
3
4
  export * from './ST';