Skip to content

Commit

Permalink
Add missing dependencies to protocol pkgs (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
artursapek authored Apr 17, 2024
1 parent 4a1788f commit f407989
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 18 deletions.
5 changes: 3 additions & 2 deletions platforms/cosmwasm/protocols/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
"@wormhole-foundation/sdk-connect": "0.5.3-beta.5",
"@wormhole-foundation/sdk-cosmwasm": "0.5.3-beta.5",
"@cosmjs/cosmwasm-stargate": "^0.32.0",
"@cosmjs/stargate": "^0.32.0"
"@cosmjs/stargate": "^0.32.0",
"@injectivelabs/sdk-ts": "^1.14.4"
},
"type": "module",
"exports": {
Expand All @@ -70,4 +71,4 @@
}
}
}
}
}
3 changes: 2 additions & 1 deletion platforms/cosmwasm/protocols/ibc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"@cosmjs/cosmwasm-stargate": "^0.32.0",
"@cosmjs/stargate": "^0.32.0",
"cosmjs-types": "^0.9.0",
"@injectivelabs/sdk-ts": "^1.14.4",
"@wormhole-foundation/sdk-connect": "0.5.3-beta.5",
"@wormhole-foundation/sdk-cosmwasm": "0.5.3-beta.5",
"@wormhole-foundation/sdk-cosmwasm-core": "0.5.3-beta.5"
Expand All @@ -73,4 +74,4 @@
}
}
}
}
}
3 changes: 2 additions & 1 deletion platforms/cosmwasm/protocols/tokenBridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"prettier": "prettier --write ./src"
},
"dependencies": {
"@injectivelabs/sdk-ts": "^1.14.4",
"@cosmjs/cosmwasm-stargate": "^0.32.0",
"@wormhole-foundation/sdk-connect": "0.5.3-beta.5",
"@wormhole-foundation/sdk-cosmwasm": "0.5.3-beta.5"
Expand All @@ -69,4 +70,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@ import type {
} from '@solana/web3.js';
import {
PublicKey,
SystemProgram,
SYSVAR_INSTRUCTIONS_PUBKEY,
SYSVAR_RENT_PUBKEY,
SystemProgram,
} from '@solana/web3.js';
import {
getGuardianSet,
deriveGuardianSetKey,
getWormholeBridgeData,
} from './../accounts/index.js';
import { createReadOnlyWormholeProgramInterface } from '../program.js';
import type { VAA } from '@wormhole-foundation/sdk-connect';
import { createReadOnlyWormholeProgramInterface } from '../program.js';
import { deriveGuardianSetKey, getGuardianSet } from './../accounts/index.js';
import { createSecp256k1Instruction } from './secp256k1.js';

const MAX_LEN_GUARDIAN_KEYS = 19;
Expand Down Expand Up @@ -49,11 +45,6 @@ export async function createVerifySignaturesInstructions(
commitment?: Commitment,
): Promise<TransactionInstruction[]> {
const guardianSetIndex = vaa.guardianSet;
const info = await getWormholeBridgeData(connection, wormholeProgramId);

if (guardianSetIndex != info.guardianSetIndex)
throw new Error('guardianSetIndex != config.guardianSetIndex');

const guardianSetData = await getGuardianSet(
connection,
wormholeProgramId,
Expand Down
3 changes: 2 additions & 1 deletion platforms/sui/protocols/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"prettier": "prettier --write ./src"
},
"dependencies": {
"@mysten/sui.js": "^0.50.1",
"@wormhole-foundation/sdk-connect": "0.5.3-beta.5",
"@wormhole-foundation/sdk-sui": "0.5.3-beta.5"
},
Expand All @@ -61,4 +62,4 @@
}
}
}
}
}
3 changes: 2 additions & 1 deletion platforms/sui/protocols/tokenBridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"prettier": "prettier --write ./src"
},
"dependencies": {
"@mysten/sui.js": "^0.50.1",
"@wormhole-foundation/sdk-connect": "0.5.3-beta.5",
"@wormhole-foundation/sdk-sui": "0.5.3-beta.5",
"@wormhole-foundation/sdk-sui-core": "0.5.3-beta.5"
Expand All @@ -62,4 +63,4 @@
}
}
}
}
}

0 comments on commit f407989

Please sign in to comment.