New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@darwinia/types

Package Overview
Dependencies
Maintainers
4
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@darwinia/types - npm Package Compare versions

Comparing version 2.6.100 to 2.7.2

6

interfaces/augment-api-rpc.d.ts

@@ -5,3 +5,3 @@ import type { Metadata } from '@polkadot/metadata';

import type { UsableBalance } from '@darwinia/types/interfaces/balances';
import type { Fee } from '@darwinia/types/interfaces/fee';
import type { Fee, InProcessOrders } from '@darwinia/types/interfaces/fee';
import type { MMRProofResult } from '@darwinia/types/interfaces/headerMMR';

@@ -363,2 +363,6 @@ import type { PowerOf } from '@darwinia/types/interfaces/staking';

/**
* fee_inProcessOrders
**/
inProcessOrders: AugmentedRpc<() => Observable<InProcessOrders>>;
/**
* fee_marketFee

@@ -365,0 +369,0 @@ **/

7

interfaces/bridges/definitions.d.ts
declare const _default: {
rpc: {};
types: {
BridgeMessageId: string;
MessageId: string;
OutboundLaneData: {
oldestUnprunedNonce: string;
latestGeneratedNonce: string;
latestReceivedNonce: string;
};
SpecVersion: string;
};
};
export default _default;

@@ -15,12 +15,5 @@ "use strict";

types: {
BridgeMessageId: '(LaneId, MessageNonce)',
MessageId: '(LaneId, MessageNonce)',
OutboundLaneData: {
oldestUnprunedNonce: 'MessageNonce',
latestGeneratedNonce: 'MessageNonce',
latestReceivedNonce: 'MessageNonce'
},
SpecVersion: 'u32'
MessageId: '(LaneId, MessageNonce)'
}
};
exports.default = _default;

@@ -1,19 +0,6 @@

import type { Struct, U8aFixed, u32 } from '@polkadot/types';
import type { ITuple } from '@polkadot/types/types';
import { LaneId, MessageNonce } from '../darwiniaInject';
/** @name BridgeMessageId */
export interface BridgeMessageId extends U8aFixed {
}
/** @name MessageId */
export interface MessageId extends ITuple<[LaneId, MessageNonce]> {
}
/** @name OutboundLaneData */
export interface OutboundLaneData extends Struct {
readonly oldestUnprunedNonce: MessageNonce;
readonly latestGeneratedNonce: MessageNonce;
readonly latestReceivedNonce: MessageNonce;
}
/** @name SpecVersion */
export interface SpecVersion extends u32 {
}
export declare type PHANTOM_BRIDGES = 'bridges';

@@ -223,5 +223,15 @@ declare const _default: {

};
Fee: {
amount: string;
PriorRelayer: {
id: string;
fee: string;
validRange: string;
};
TokenMessageId: string;
TokenMetadata: {
tokenType: string;
address: string;
name: string;
symbol: string;
decimal: string;
};
Order: {

@@ -232,9 +242,5 @@ lane: string;

confirmTime: string;
lockedCollateral: string;
assignedRelayers: string;
};
PriorRelayer: {
id: string;
fee: string;
validRange: string;
};
};

@@ -241,0 +247,0 @@ rpc: {};

@@ -234,5 +234,15 @@ "use strict";

},
Fee: {
amount: 'Balance'
PriorRelayer: {
id: 'AccountId',
fee: 'Balance',
validRange: 'BlockNumber'
},
TokenMessageId: '[u8; 16; TokenMessageId]',
TokenMetadata: {
tokenType: 'u32',
address: 'H160',
name: 'Vec<u8>',
symbol: 'Vec<u8>',
decimal: 'u8'
},
Order: {

@@ -243,8 +253,4 @@ lane: 'LaneId',

confirmTime: 'BlockNumber',
lockedCollateral: 'Balance',
assignedRelayers: 'Vec<PriorRelayer>'
},
PriorRelayer: {
id: 'AccountId',
fee: 'Balance',
validRange: 'BlockNumber'
}

@@ -251,0 +257,0 @@ },

@@ -227,3 +227,3 @@ import type { Bytes, Compact, Enum, Option, Struct, Text, u128, U256, u32, u64, u8, U8aFixed, Vec } from '@polkadot/types';

readonly fee: Balance;
readonly valid_range: BlockNumber;
readonly validRange: BlockNumber;
}

@@ -310,16 +310,5 @@ /** @name RedeemFor */

}
/** @name Token */
export interface Token extends Enum {
readonly isInvalidToken: boolean;
readonly isNative: boolean;
readonly asNative: TokenInfo;
readonly isErc20: boolean;
readonly asErc20: TokenInfo;
/** @name TokenMessageId */
export interface TokenMessageId extends U8aFixed {
}
/** @name TokenInfo */
export interface TokenInfo extends Struct {
readonly address: H160;
readonly value: Option<U256>;
readonly option: Option<TokenMetadata>;
}
/** @name TokenMetadata */

@@ -326,0 +315,0 @@ export interface TokenMetadata extends Struct {

@@ -9,2 +9,8 @@ declare const _default: {

};
inProcessOrders: {
alias: string[];
description: string;
params: never[];
type: string;
};
};

@@ -15,4 +21,7 @@ types: {

};
InProcessOrders: {
orders: string;
};
};
};
export default _default;

@@ -20,2 +20,8 @@ "use strict";

type: 'Fee'
},
inProcessOrders: {
alias: ['fee_inProcessOrders'],
description: 'fee_inProcessOrders',
params: [],
type: 'InProcessOrders'
}

@@ -26,2 +32,5 @@ },

amount: 'Balance'
},
InProcessOrders: {
orders: 'Vec<LaneId, MessageNonce>'
}

@@ -28,0 +37,0 @@ }

@@ -1,3 +0,5 @@

import type { Struct } from '@polkadot/types';
import type { Struct, Vec } from '@polkadot/types';
import type { Balance } from '@polkadot/types/interfaces/runtime';
import type { ITuple } from '@polkadot/types/types';
import type { LaneId, MessageNonce } from '../darwiniaInject';
/** @name Fee */

@@ -7,2 +9,6 @@ export interface Fee extends Struct {

}
/** @name InProcessOrders */
export interface InProcessOrders extends Struct {
readonly orders: Vec<ITuple<[LaneId, MessageNonce]>>;
}
export declare type PHANTOM_FEE = 'fee';
{
"name": "@darwinia/types",
"version": "2.6.100",
"version": "2.7.2",
"description": "Implementation of the Parity codec",

@@ -25,4 +25,4 @@ "main": "index.js",

"dependencies": {
"@darwinia/types-known": "^2.6.100"
"@darwinia/types-known": "^2.7.2"
}
}

Sorry, the diff of this file is too big to display

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