sacredrealm-sdk 1.0.7 → 1.0.11

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.7",
3
+ "version": "1.0.11",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
@@ -23,7 +23,7 @@
23
23
  "@walletconnect/web3-provider": "^1.7.5",
24
24
  "ethers": "^5.6.1",
25
25
  "graphql": "^16.3.0",
26
- "sacredrealm-core": "^1.0.7"
26
+ "sacredrealm-core": "^1.0.11"
27
27
  },
28
28
  "devDependencies": {
29
29
  "tsdx": "^0.14.1"
package/src/constant.ts CHANGED
@@ -4,7 +4,7 @@ export function token(env?: string) {
4
4
  return {
5
5
  SB: '0x',
6
6
  SN: '0x',
7
- ST: '0x',
7
+ ST: '0x6F706319C46D1b28508E8e4bCaA59e47D15e028C',
8
8
  SR: '0x',
9
9
  BUSD: '0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56',
10
10
  WBNB: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c',
@@ -13,7 +13,7 @@ export function token(env?: string) {
13
13
  return {
14
14
  SB: '0xa844b28aBf7aF74438131A1aF642Ef0CCAa8C166',
15
15
  SN: '0xb2761cd8EFD9f436Efa1b205dEB1dC957300Ede5',
16
- ST: '0x',
16
+ ST: '0x4597B8D3Ac4514A6c64A7D48eec71567f013951a',
17
17
  SR: '0x7c3323f3d283b46514600cD9AD3F5e821F679b7f',
18
18
  BUSD: '0x78867BbEeF44f2326bF8DDd1941a4439382EF2A7',
19
19
  WBNB: '0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd',
@@ -28,15 +28,19 @@ export function contract(env?: string) {
28
28
  Inviting: '0x',
29
29
  STStaking: '0x',
30
30
  BondDepository: '0x',
31
+ Market: '0x',
31
32
  SRDeposit: '0x',
33
+ SRWithdraw: '0x',
32
34
  PancakeRouter: '0x10ED43C718714eb63d5aA57B78B54704E256024E',
33
35
  };
34
36
  } else {
35
37
  return {
36
- Inviting: '0x',
37
- STStaking: '0x',
38
- BondDepository: '0x',
38
+ Inviting: '0x1e875755d65fddC53d0995ADD06b257e736cD3B0',
39
+ STStaking: '0x2bd2c749BD7326d1af9a45Dd4C56d64A35eA8d1D',
40
+ BondDepository: '0x00f8389bfB557cDb4D0CA17aED080ea3109099b5',
41
+ Market: '0x',
39
42
  SRDeposit: '0x2e8d3785b157104Fa0cF8436499367A64bE0caf1',
43
+ SRWithdraw: '0x2Bb766e8b9C14Ea8C8aD182D5861cc8D809B77c6',
40
44
  PancakeRouter: '0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3',
41
45
  };
42
46
  }
@@ -0,0 +1,7 @@
1
+ import { Inviting__factory } from 'sacredrealm-core/typechain-types'
2
+ import { rpcProvider } from '../utils';
3
+ import { contract } from '../constant';
4
+
5
+ export function inviting() {
6
+ return Inviting__factory.connect(contract().Inviting, rpcProvider);
7
+ }
@@ -0,0 +1,7 @@
1
+ import { STStaking__factory } from 'sacredrealm-core/typechain-types'
2
+ import { rpcProvider } from '../utils';
3
+ import { contract } from '../constant';
4
+
5
+ export function stStaking() {
6
+ return STStaking__factory.connect(contract().STStaking, rpcProvider);
7
+ }
package/src/pool/index.ts CHANGED
@@ -1 +1,3 @@
1
- export * from './BondDepository';
1
+ export * from './BondDepository';
2
+ export * from './Inviting';
3
+ export * from './STStaking';
@@ -0,0 +1,7 @@
1
+ import { SRWithdraw__factory } from 'sacredrealm-core/typechain-types'
2
+ import { rpcProvider } from '../utils';
3
+ import { contract } from '../constant';
4
+
5
+ export function srWithdraw() {
6
+ return SRWithdraw__factory.connect(contract().SRWithdraw, rpcProvider);
7
+ }
package/src/tool/index.ts CHANGED
@@ -1 +1,2 @@
1
- export * from './SRDeposit';
1
+ export * from './SRDeposit';
2
+ export * from './SRWithdraw';