Skip to content

Commit

Permalink
add testnet refs
Browse files Browse the repository at this point in the history
  • Loading branch information
simke9445 committed Nov 10, 2023
1 parent 3ee8421 commit 4dd0a23
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@mui/material": "^5.10.2",
"@terra-money/feather.js": "^1.0.11",
"@terra-money/wallet-kit": "^1.0.11",
"@terra-money/warp-sdk": "^0.1.63",
"@terra-money/warp-sdk": "^0.1.64",
"assert": "^2.0.0",
"big.js": "^6.2.1",
"buffer": "^6.0.3",
Expand Down
2 changes: 1 addition & 1 deletion apps/warp-protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@popperjs/core": "^2.11.6",
"@terra-money/feather.js": "^1.0.11",
"@terra-money/wallet-kit": "^1.0.11",
"@terra-money/warp-sdk": "^0.1.63",
"@terra-money/warp-sdk": "^0.1.64",
"assert": "^2.0.0",
"big.js": "^6.2.1",
"brace": "^0.11.1",
Expand Down
2 changes: 1 addition & 1 deletion indexers/warp-protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@aws-sdk/client-dynamodb": "^3.159.0",
"@aws-sdk/util-dynamodb": "^3.159.0",
"@terra-money/feather.js": "^1.0.11",
"@terra-money/warp-sdk": "^0.1.63",
"@terra-money/warp-sdk": "^0.1.64",
"@types/node": "^16.11.56",
"axios": "^1.1.2",
"big.js": "^6.2.1",
Expand Down
10 changes: 10 additions & 0 deletions indexers/warp-protocol/src/utils/Environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ export class Environment {
};
}
}

if (chainName === 'migaloo') {
if (process.env.NETWORK === 'testnet') {
// testnet
return {
height: 4415456,
timestamp: 1699648200,
};
}
}
};

static getContractAddress(chainName: string, contract: keyof ContractAddresses) {
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4322,7 +4322,7 @@ __metadata:
"@mui/material": ^5.10.2
"@terra-money/feather.js": ^1.0.11
"@terra-money/wallet-kit": ^1.0.11
"@terra-money/warp-sdk": ^0.1.63
"@terra-money/warp-sdk": ^0.1.64
"@testing-library/jest-dom": ^5.16.5
"@testing-library/react": ^13.3.0
"@testing-library/user-event": ^13.5.0
Expand Down Expand Up @@ -4468,9 +4468,9 @@ __metadata:
languageName: node
linkType: hard

"@terra-money/warp-sdk@npm:^0.1.63":
version: 0.1.63
resolution: "@terra-money/warp-sdk@npm:0.1.63"
"@terra-money/warp-sdk@npm:^0.1.64":
version: 0.1.64
resolution: "@terra-money/warp-sdk@npm:0.1.64"
dependencies:
"@terra-money/feather.js": ^1.0.11
"@types/node": ^16.11.56
Expand All @@ -4483,7 +4483,7 @@ __metadata:
lodash: ^4.17.21
pino: ^8.4.2
typescript: ^4.8.2
checksum: f8e5fd9bf8f87421008a4bb195ef4b78c5649e52c0bbe17dea136759a2514bb98e1357ff8a7d8116b1629bb1b4c482d7c3170228fd22825da1877dba094f2cfa
checksum: 49fff55129aff3d8865d3a9d5d43cfcac61a62d6b7522c3388e1ca96ba26c06ae7466fbef13f700a3eb0ade974ca324e7c9ec31b8e59b7c337fb43e1f7a3db14
languageName: node
linkType: hard

Expand Down Expand Up @@ -5406,7 +5406,7 @@ __metadata:
"@popperjs/core": ^2.11.6
"@terra-money/feather.js": ^1.0.11
"@terra-money/wallet-kit": ^1.0.11
"@terra-money/warp-sdk": ^0.1.63
"@terra-money/warp-sdk": ^0.1.64
"@testing-library/jest-dom": ^5.16.5
"@testing-library/react": ^13.3.0
"@testing-library/user-event": ^13.5.0
Expand Down Expand Up @@ -5483,7 +5483,7 @@ __metadata:
"@aws-sdk/client-dynamodb": ^3.159.0
"@aws-sdk/util-dynamodb": ^3.159.0
"@terra-money/feather.js": ^1.0.11
"@terra-money/warp-sdk": ^0.1.63
"@terra-money/warp-sdk": ^0.1.64
"@types/d3-array": ^3.0.3
"@types/node": ^16.11.56
axios: ^1.1.2
Expand Down

0 comments on commit 4dd0a23

Please sign in to comment.