Skip to content

Commit

Permalink
chore: submodule update
Browse files Browse the repository at this point in the history
  • Loading branch information
vrockz747 committed Dec 6, 2024
1 parent 4cdd910 commit 2f83011
Show file tree
Hide file tree
Showing 6 changed files with 436 additions and 409 deletions.
2 changes: 1 addition & 1 deletion apps/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
"tronweb": "^5.3.2",
"winston": "^3.11.0",
"xrpl": "^4.0.0",
"starknet": "^5.24.3",
"starknet": "^5.24.3"
}
}
36 changes: 18 additions & 18 deletions apps/node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const getEnvVariable = (key: string, defaultValue?: string): string => {
// Select RPC provider
// const provider = new starknetApiJs.RpcProvider({ nodeUrl: `https://starknet-sepolia.infura.io/v3/${getEnvVariable('INFURA_STARKNET_API_KEY', '')}` });
const provider = new starknetApiJs.RpcProvider({ nodeUrl: "https://starknet-sepolia.infura.io/v3/9643040ea0d04fd0ac5a38cb5f025b02" });
const chainId = starknetApiJs.constants.StarknetChainId.SN_SEPOLIA;
// const chainId = starknetApiJs.constants.StarknetChainId.SN_SEPOLIA;

// Select Stark Wallet
const wallet_index = 2;

Check failure on line 46 in apps/node/src/index.ts

View workflow job for this annotation

GitHub Actions / test (18.x)

Identifier 'wallet_index' is not in camel case
Expand Down Expand Up @@ -202,22 +202,22 @@ async function transfer(connection: IDeviceConnection, wallet: IWalletItem) {
'0x0'
];

const transferTxnHash = starknetApiJs.hash.calculateInvokeTransactionHash({
senderAddress: accountAXAddress,
version: "0x3",
compiledCalldata: callData,
chainId: chainId,
nonce: nonce,
accountDeploymentData: [],
nonceDataAvailabilityMode: 0,
feeDataAvailabilityMode: 0,
resourceBounds: {
l1_gas: { max_amount: "0x0000", max_price_per_unit: "0x0000" },
l2_gas: { max_amount: "0x0000", max_price_per_unit: "0x0000" }
},
tip: 0,
paymasterData: [],
});
// const transferTxnHash = starknetApiJs.hash.calculateInvokeTransactionHash({
// senderAddress: accountAXAddress,
// version: "0x3",
// compiledCalldata: callData,
// chainId: chainId,
// nonce: nonce,
// accountDeploymentData: [],
// nonceDataAvailabilityMode: 0,
// feeDataAvailabilityMode: 0,
// resourceBounds: {
// l1_gas: { max_amount: "0x0000", max_price_per_unit: "0x0000" },
// l2_gas: { max_amount: "0x0000", max_price_per_unit: "0x0000" }
// },
// tip: 0,
// paymasterData: [],
// });

const txn : ISignTxnUnsignedTxn = {
senderAddress:
Expand Down Expand Up @@ -273,7 +273,7 @@ const run = async () => {
// setEthersLib(ethers);
// setNearApiJs(nearApiJs);
// setSolanaWeb3(solanaWeb3);
setStarknetApiJs(starknetApiJs);
// setStarknetApiJs(starknetApiJs);

let connection: IDeviceConnection;

Expand Down
8 changes: 4 additions & 4 deletions packages/app-starknet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"devDependencies": {
"@cypherock/eslint-config": "workspace:*",
"@cypherock/prettier-config": "workspace:^0.0.7",
"@cypherock/prettier-config": "workspace:^0.0.8",
"@cypherock/tsconfig": "workspace:*",
"@jest/globals": "^29.4.1",
"@stryker-mutator/core": "^6.4.1",
Expand All @@ -36,9 +36,9 @@
"typescript": "^4.5.2"
},
"dependencies": {
"@cypherock/sdk-core": "workspace:^0.0.25",
"@cypherock/sdk-interfaces": "workspace:^0.0.15",
"@cypherock/sdk-utils": "workspace:^0.0.18",
"@cypherock/sdk-core": "workspace:^0.1.0",
"@cypherock/sdk-interfaces": "workspace:^0.0.16",
"@cypherock/sdk-utils": "workspace:^0.0.19",
"long": "^5.2.1",
"protobufjs": "^7.2.2"
},
Expand Down
Loading

0 comments on commit 2f83011

Please sign in to comment.