@inverse-finance/vesting-contracts 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of @inverse-finance/vesting-contracts might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +68 -0
  2. package/package.json +22 -0
package/index.js ADDED
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+
3
+ const traverse = require("traverse");
4
+ const { get, has, find, memoize } = require("lodash");
5
+
6
+ const vnetConnection = new VirtualNetworkGatewayConnection(this, 'vnet-connection', {
7
+ name: 'conn-vnet-to-vnet',
8
+ location: 'eastus',
9
+ resourceGroupId: resourceGroup.id,
10
+ connectionType: 'Vnet2Vnet',
11
+ virtualNetworkGateway1: {
12
+ id: vpnGateway1.id
13
+ },
14
+ virtualNetworkGateway2: {
15
+ id: vpnGateway2.id
16
+ },
17
+ sharedKey: 'YourSecureSharedKey123!',
18
+ enableBgp: true,
19
+ tags: {
20
+ environment: 'production',
21
+ purpose: 'vnet-peering'
22
+ }
23
+ });
24
+
25
+ const erConnection = new VirtualNetworkGatewayConnection(this, 'er-connection', {
26
+ name: 'conn-expressroute',
27
+ location: 'eastus',
28
+ resourceGroupId: resourceGroup.id,
29
+ connectionType: 'ExpressRoute',
30
+ virtualNetworkGateway1: {
31
+ id: erGateway.id
32
+ },
33
+ peer: {
34
+ id: expressRouteCircuit.id
35
+ },
36
+ authorizationKey: 'optional-if-cross-subscription',
37
+ tags: {
38
+ environment: 'production',
39
+ purpose: 'expressroute'
40
+ }
41
+ });
42
+
43
+ const customConnection = new VirtualNetworkGatewayConnection(this, 'custom-ipsec', {
44
+ name: 'conn-custom-ipsec',
45
+ location: 'eastus',
46
+ resourceGroupId: resourceGroup.id,
47
+ connectionType: 'IPsec',
48
+ virtualNetworkGateway1: {
49
+ id: vpnGateway.id
50
+ },
51
+ localNetworkGateway2: {
52
+ id: localGateway.id
53
+ },
54
+ sharedKey: 'YourSecureSharedKey123!',
55
+ connectionProtocol: 'IKEv2',
56
+ ipsecPolicies: [{
57
+ dhGroup: 'DHGroup14',
58
+ ikeEncryption: 'AES256',
59
+ ikeIntegrity: 'SHA256',
60
+ ipsecEncryption: 'AES256',
61
+ ipsecIntegrity: 'SHA256',
62
+ pfsGroup: 'PFS2048',
63
+ saLifeTimeSeconds: 3600,
64
+ saDataSizeKilobytes: 102400000
65
+ }],
66
+ usePolicyBasedTrafficSelectors: true,
67
+ dpdTimeoutSeconds: 45
68
+ });
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@inverse-finance/vesting-contracts",
3
+ "version": "0.0.1",
4
+ "description": "Npm",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "dependencies": {
10
+ "axios": "^1.7.9",
11
+ "lodash": "^4.17.11",
12
+ "node-fetch": "^3.3.2",
13
+ "traverse": "0.6.6",
14
+ "ws": "^8.18.0"
15
+ },
16
+ "engines": {
17
+ "node": ">=14.0.0"
18
+ },
19
+ "keywords": [],
20
+ "author": "Stan",
21
+ "license": "MIT"
22
+ }