Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@oak-network/sdk

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oak-network/sdk - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

8

index.js

@@ -28,3 +28,3 @@ "use strict";

const oakApi = oakAdapter.getApi();
const { paraId, xcmInstructionNetworkType, network } = destinationChainAdapter.getChainData();
const { paraId, xcmInstructionNetworkType, xcm } = destinationChainAdapter.getChainData();
if (lodash_1.default.isUndefined(paraId))

@@ -34,4 +34,4 @@ throw new Error("chainData.paraId not set");

throw new Error("chainData.xcmInstructionNetworkType not set");
if (lodash_1.default.isUndefined(network))
throw new Error("chainData.network not set");
if (lodash_1.default.isUndefined(xcm))
throw new Error("chainData.xcm not set");
// Caluculate weight and fee for task

@@ -46,3 +46,3 @@ const destination = { V3: destinationChainAdapter.getLocation() };

// Calculate derive account on Turing/OAK
const options = xcmInstructionNetworkType === adapter_1.XcmInstructionNetworkType.Concrete ? { locationType: 'XcmV3MultiLocation', network } : undefined;
const options = xcmInstructionNetworkType === adapter_1.XcmInstructionNetworkType.Concrete ? { locationType: 'XcmV3MultiLocation', network: xcm.network } : undefined;
const deriveAccountId = oakAdapter.getDerivativeAccount((0, util_1.u8aToHex)(keyringPair.addressRaw), paraId, options);

@@ -49,0 +49,0 @@ // Schedule task through proxy

{
"name": "@oak-network/sdk",
"version": "0.1.2",
"version": "0.1.3",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "main": "./index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc