@aurigami/sdk 1.11.0-beta5 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.11.0-beta5",
2
+ "version": "1.11.0",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -62,7 +62,7 @@
62
62
  "typescript": "^4.5.4"
63
63
  },
64
64
  "dependencies": {
65
- "@aurigami/contracts": "3.12.0-beta-3",
65
+ "@aurigami/contracts": "3.12.0-beta-4",
66
66
  "axios": "^0.26.1",
67
67
  "bignumber.js": "^9.0.2",
68
68
  "ethers": "^5.6.4"
@@ -90,7 +90,7 @@ export const networkAddresses: NetworkAddresses = {
90
90
  PLY_TOKEN_LOCK: MAINNET_ADDRESSES.plyTokenLock.toLowerCase(),
91
91
  REFERRAL: MAINNET_ADDRESSES.referralDirectory.toLowerCase(),
92
92
  AURI_INTERNAL_LENS: MAINNET_ADDRESSES.auriInternalLens.toLowerCase(),
93
- PLYGAME: '0x60bf668CA101060BD83BD644531a38719586B89f'.toLowerCase(), // TODO: FIX THIS AFTER PLY GAME IS DEPLOYED
93
+ PLYGAME: MAINNET_ADDRESSES.plyGame.toLowerCase(),
94
94
  },
95
95
  tokens: {
96
96
  AURORA: '0x8bec47865ade3b172a928df8f990bc7f2a3b9f79'.toLowerCase(),
@@ -76,10 +76,6 @@ export class PlyGameRead extends BlockchainEntityRead {
76
76
  return new TokenAmount(this.plyToken, jackpot.toString());
77
77
  }
78
78
 
79
- public async nextJackpotRevealTime(): Promise<number> {
80
- return 0; // TODO: TBD
81
- }
82
-
83
79
  public async earlyUnlockedPulpAmount(user: Address): Promise<TokenAmount> {
84
80
  let earlyUnlockedPulpAmount = await this.env.plygame.totalPlyUnlockedEarly(user);
85
81
  return new TokenAmount(this.pulpToken, earlyUnlockedPulpAmount.toString());
@@ -115,15 +111,6 @@ export class PlyGameRead extends BlockchainEntityRead {
115
111
  }
116
112
 
117
113
  export class PlyGameReadWrite extends PlyGameRead {
118
- /**
119
- * makes "times" independent bets, but consecutively, of the same amount
120
- */
121
- public async makeBetMultiple(amount: TokenAmount, times: number): Promise<TransactionResponse> {
122
- return this.env.plygame
123
- .connect(this._networkConnection.signer!)
124
- .makeBetMultiple(amount.rawAmount(), times);
125
- }
126
-
127
114
  /**
128
115
  * Make a single bet
129
116
  */
@@ -132,6 +119,7 @@ export class PlyGameReadWrite extends PlyGameRead {
132
119
  .connect(this._networkConnection.signer!)
133
120
  .makeBetOnce(amount.rawAmount());
134
121
  }
122
+
135
123
  public async approve(amount: TokenAmount): Promise<TransactionResponse> {
136
124
  return this.env.ply
137
125
  .connect(this._networkConnection.signer!)