Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .env.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
RPC_HOLESKY=RPC_HOLESKY
RPC_MAINNET=RPC_MAINNET
RPC_GNOSIS=RPC_GNOSIS
RPC_SEPOLIA=RPC_SEPOLIA
RPC_SEPOLIA=RPC_SEPOLIA
RPC_HOODI=RPC_HOODI
1 change: 1 addition & 0 deletions .github/workflows/build-deploy-obol-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@ jobs:
RPC_MAINNET: ${{ secrets.RPC_MAINNET }}
RPC_GNOSIS: ${{ secrets.RPC_GNOSIS }}
RPC_SEPOLIA: ${{ secrets.RPC_SEPOLIA }}
RPC_HOODI: ${{ secrets.RPC_HOODI }}
HUSKY: 0
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
RPC_MAINNET: ${{ secrets.RPC_MAINNET }}
RPC_GNOSIS: ${{ secrets.RPC_GNOSIS }}
RPC_SEPOLIA: ${{ secrets.RPC_SEPOLIA }}

RPC_HOODI: ${{ secrets.RPC_HOODI }}

- name: Install e2e dependencies
working-directory: ./test/sdk-package
run: yarn install --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ If you're integrating this SDK with a **backend** (e.g., in Node.js), and you st

## ⚡️ Integration with Safe Wallet

When integrating the Obol SDK with a **Safe Wallet**, you can either pass an RPC URL OR provide the `RPC_MAINNET` or `RPC_HOLESKY` or `RPC_GNOSIS` or `RPC_SEPOLIA` environment variable, pointing to the correct network's RPC URL. This is required to interact with Safe kit.
When integrating the Obol SDK with a **Safe Wallet**, you can either pass an RPC URL OR provide the `RPC_MAINNET` or `RPC_HOLESKY` or `RPC_GNOSIS` or `RPC_SEPOLIA` or `RPC_HOODI` environment variable, pointing to the correct network's RPC URL. This is required to interact with Safe kit.


## Contributing
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"compile": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json",
"build:clean": "rm -rf ./dist",
"build": "npm-run-all build:clean compile",
"test": "jest test/**/*.spec.ts --testPathIgnorePatterns=test/sdk-package/",
"test": "jest",
"generate-typedoc": "typedoc",
"npm:publish": "npm publish --tag latest",
"release": "release-it",
Expand Down
1 change: 1 addition & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ export const PROVIDER_MAP: Record<number, string> = {
17000: `${process.env.RPC_HOLESKY}`, // Holesky
11155111: `${process.env.RPC_SEPOLIA}`, // Sepolia
100: `${process.env.RPC_GNOSIS}`, // Gnosis
560048: `${process.env.RPC_HOODI}`, // Hoodi
};

/**
Expand Down
4 changes: 4 additions & 0 deletions src/verification/signature-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ export const validateSmartContractSignature = async ({
}): Promise<boolean> => {
try {
const safeProvider = safeRpcUrl ?? PROVIDER_MAP[chainId];
console.log("ll"+safeProvider+"safeProviderrrrrrr")
console.log("ll"+address+"address")

const protocolKit = await Safe.init({
provider: safeProvider,
Expand All @@ -96,6 +98,8 @@ export const validateSmartContractSignature = async ({

return isValidSignature;
} catch (err: any) {
console.log(err, "whyyyyyyyy")

throw new Error(
`Error validating smart contract signature: ${err.message}`,
);
Expand Down
Loading
Loading