Skip to content

Commit

Permalink
Merge pull request #25 from masa-finance/feature/new-contracts
Browse files Browse the repository at this point in the history
New Smart Contracts
  • Loading branch information
H34D committed Oct 10, 2022
2 parents 76302a8 + 1df96a6 commit 5acd232
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 13 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@masa-finance/tools",
"version": "0.5.5",
"version": "0.6.1",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down Expand Up @@ -65,7 +65,7 @@
}
],
"dependencies": {
"@masa-finance/masa-contracts-identity": "0.2.0",
"@masa-finance/masa-contracts-identity": "0.2.1",
"ethers": "^5.7.0",
"react": "^17.0.2",
"react-query": "^3.39.1",
Expand Down
17 changes: 12 additions & 5 deletions src/common/helpers/axios/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@ const env = process.env.REACT_APP_MASA_TOOLS_ENV || 'local';
const backendPort = process.env.REACT_APP_MASA_TOOLS_BACKEND_PORT;
const backendApiUrl = process.env.REACT_APP_MASA_TOOLS_BACKEND_API_URL;

console.log('INITIALIZING API', {
env,
backendPort,
backendApiUrl,
});
console.log(
'INITIALIZING API',
JSON.stringify(
{
env,
backendPort,
backendApiUrl,
},
null,
2
)
);

export const URL = (apiURL?: string) =>
apiURL
Expand Down
5 changes: 5 additions & 0 deletions src/common/helpers/contracts/goerli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ export { address as SoulboundCreditReportAddress } from '@masa-finance/masa-cont
export { address as SoulNameAddress } from '@masa-finance/masa-contracts-identity/deployments/goerli/SoulName.json';
export { address as SoulStoreAddress } from '@masa-finance/masa-contracts-identity/deployments/goerli/SoulStore.json';
export { address as SoulLinkerAddress } from '@masa-finance/masa-contracts-identity/deployments/goerli/SoulLinker.json';
export {
MASA_GOERLI as MASA,
USDC_GOERLI as USDC,
WETH_GOERLI as WETH,
} from '@masa-finance/masa-contracts-identity/dist/src/constants';
2 changes: 1 addition & 1 deletion src/common/helpers/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { ethers } from 'ethers';
import * as goerli from './goerli';

const addresses = {
export const addresses = {
goerli,
};

Expand Down
6 changes: 5 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { masaToolsProvider, useMasaToolsHook } from './common/helpers/provider';
import { masaRestClient } from './common/rest';

export { useContractCall, loadContracts } from './common/helpers/contracts';
export {
useContractCall,
loadContracts,
addresses,
} from './common/helpers/contracts';

export interface Props {
/** custom content, defaults to 'the snozzberries taste like snozzberries' */
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1988,10 +1988,10 @@
"@jridgewell/resolve-uri" "^3.0.3"
"@jridgewell/sourcemap-codec" "^1.4.10"

"@masa-finance/masa-contracts-identity@0.2.0":
version "0.2.0"
resolved "https://registry.yarnpkg.com/@masa-finance/masa-contracts-identity/-/masa-contracts-identity-0.2.0.tgz#42e9c8f2904c95d79d1df5a7b1a923b9cd8896f1"
integrity sha512-JzXnroDP9sVJr6ctY1NnT0HFaeERHzEHvjxOh3vOWcsBv4g0uysaj896JtGMioRLdSiYnjP2NZoidzFZgMvP3w==
"@masa-finance/masa-contracts-identity@0.2.1":
version "0.2.1"
resolved "https://registry.yarnpkg.com/@masa-finance/masa-contracts-identity/-/masa-contracts-identity-0.2.1.tgz#f55cf417c117e18a73c25ad61b13679959b9d6aa"
integrity sha512-dljgb9R9J5cv/ZTf23j4Piwghqfmi9yqNEt/HmcSWWTngdaOWoHZmYQJ0+BK8vA+8cP3dDcBprtRWGVRSEZ17A==
dependencies:
ethers "^5.6.9"

Expand Down

0 comments on commit 5acd232

Please sign in to comment.