sacredrealm-sdk 1.0.9 → 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.9",
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.9"
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: '0x5Ffcf5bf7F5aC61242ef8203C16F25E10D6330E0',
7
+ ST: '0x6F706319C46D1b28508E8e4bCaA59e47D15e028C',
8
8
  SR: '0x',
9
9
  BUSD: '0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56',
10
10
  WBNB: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c',
@@ -26,8 +26,8 @@ export function contract(env?: string) {
26
26
  if (environment === 'production') {
27
27
  return {
28
28
  Inviting: '0x',
29
- BondDepository: '0x',
30
29
  STStaking: '0x',
30
+ BondDepository: '0x',
31
31
  Market: '0x',
32
32
  SRDeposit: '0x',
33
33
  SRWithdraw: '0x',
@@ -35,9 +35,9 @@ export function contract(env?: string) {
35
35
  };
36
36
  } else {
37
37
  return {
38
- Inviting: '0x',
39
- BondDepository: '0x',
40
- STStaking: '0x',
38
+ Inviting: '0x1e875755d65fddC53d0995ADD06b257e736cD3B0',
39
+ STStaking: '0x2bd2c749BD7326d1af9a45Dd4C56d64A35eA8d1D',
40
+ BondDepository: '0x00f8389bfB557cDb4D0CA17aED080ea3109099b5',
41
41
  Market: '0x',
42
42
  SRDeposit: '0x2e8d3785b157104Fa0cF8436499367A64bE0caf1',
43
43
  SRWithdraw: '0x2Bb766e8b9C14Ea8C8aD182D5861cc8D809B77c6',
@@ -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';