Skip to content

Commit

Permalink
- filter out old AA's
Browse files Browse the repository at this point in the history
- update game contracts
  • Loading branch information
starknetdev committed Sep 26, 2023
1 parent 9134734 commit b4fb5b6
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion indexer/env-goerli
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
GAME="0x03314a595bcaf4be19fc25529a855bf86ac638277d9c0641b70629d8e0f03d08"
GAME="0x01263ecbc05e28d1e99f531894838db10b90cfcdd39d020642da1747a733a37a"
START=873000
MONGO_CONNECTION_STRING="mongodb://mongo:[email protected]:27017"
30 changes: 18 additions & 12 deletions ui/src/app/lib/burner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ export const useBurner = () => {
const list = useCallback(() => {
let storage = Storage.get("burners") || {};
return Object.keys(storage).map((address) => {
return {
address,
active: storage[address].active,
};
if (storage[address].gameContract === gameContract?.address) {
return {
address,
active: storage[address].active,
};
}
});
}, [walletAccount]);

Expand Down Expand Up @@ -185,6 +187,7 @@ export const useBurner = () => {
deployTx,
setPermissionsTx,
masterAccount: walletAccount.address,
gameContract: gameContract?.address,
active: true,
};

Expand Down Expand Up @@ -349,6 +352,7 @@ export const useBurner = () => {
privateKey,
publicKey,
masterAccount: walletAccount.address,
gameContract: gameContract?.address,
active: true,
};

Expand All @@ -365,16 +369,18 @@ export const useBurner = () => {
const burners = list();

for (const burner of burners) {
const arcadeConnector = new ArcadeConnector(
{
options: {
id: burner.address,
if (burner) {
const arcadeConnector = new ArcadeConnector(
{
options: {
id: burner.address,
},
},
},
get(burner.address)
);
get(burner.address)
);

arcadeAccounts.push(arcadeConnector);
arcadeAccounts.push(arcadeConnector);
}
}

return arcadeAccounts;
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const contracts = {
"0x067e87cea28bfd9314a1d3c41fb26a58ca1346ff0ea2452e59b9eeb2828692dc",
},
goerli: {
game: "0x03314a595bcaf4be19fc25529a855bf86ac638277d9c0641b70629d8e0f03d08",
game: "0x01263ecbc05e28d1e99f531894838db10b90cfcdd39d020642da1747a733a37a",
lords_erc20_mintable:
"0x059dac5df32cbce17b081399e97d90be5fba726f97f00638f838613d088e5a47",
},
Expand Down
1 change: 1 addition & 0 deletions ui/src/app/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,5 +430,6 @@ export type BurnerStorage = {
deployTx: string;
active: boolean;
masterAccount: string;
gameContract: string;
};
};

0 comments on commit b4fb5b6

Please sign in to comment.