-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from hypersign-protocol/develop
Develop
- Loading branch information
Showing
216 changed files
with
55,555 additions
and
9,519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 12, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-var-requires": 0 | ||
} | ||
"ignorePatterns": ["node_modules/", "build/"], | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 12, | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["@typescript-eslint"], | ||
"rules": { | ||
"@typescript-eslint/no-var-requires": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | ||
|
||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ "main","develop" ] | ||
pull_request: | ||
branches: [ "main","develop" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- run: npm ci | ||
- run: npm run build --if-present | ||
- run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
node_modules | ||
libs | ||
dist | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Writer, Reader } from "protobufjs/minimal"; | ||
export declare const protobufPackage = "hypersignprotocol.hidnode.ssi"; | ||
export interface ClientSpec { | ||
type: string; | ||
adr036SignerAddress: string; | ||
} | ||
export declare const ClientSpec: { | ||
encode(message: ClientSpec, writer?: Writer): Writer; | ||
decode(input: Reader | Uint8Array, length?: number): ClientSpec; | ||
fromJSON(object: any): ClientSpec; | ||
toJSON(message: ClientSpec): unknown; | ||
fromPartial(object: DeepPartial<ClientSpec>): ClientSpec; | ||
}; | ||
type Builtin = Date | Function | Uint8Array | string | number | undefined; | ||
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { | ||
[K in keyof T]?: DeepPartial<T[K]>; | ||
} : Partial<T>; | ||
export {}; | ||
//# sourceMappingURL=clientSpec.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ClientSpec = exports.protobufPackage = void 0; | ||
/* eslint-disable */ | ||
const minimal_1 = require("protobufjs/minimal"); | ||
exports.protobufPackage = "hypersignprotocol.hidnode.ssi"; | ||
const baseClientSpec = { type: "", adr036SignerAddress: "" }; | ||
exports.ClientSpec = { | ||
encode(message, writer = minimal_1.Writer.create()) { | ||
if (message.type !== "") { | ||
writer.uint32(10).string(message.type); | ||
} | ||
if (message.adr036SignerAddress !== "") { | ||
writer.uint32(18).string(message.adr036SignerAddress); | ||
} | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof Uint8Array ? new minimal_1.Reader(input) : input; | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = Object.assign({}, baseClientSpec); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.type = reader.string(); | ||
break; | ||
case 2: | ||
message.adr036SignerAddress = reader.string(); | ||
break; | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
const message = Object.assign({}, baseClientSpec); | ||
if (object.type !== undefined && object.type !== null) { | ||
message.type = String(object.type); | ||
} | ||
else { | ||
message.type = ""; | ||
} | ||
if (object.adr036SignerAddress !== undefined && | ||
object.adr036SignerAddress !== null) { | ||
message.adr036SignerAddress = String(object.adr036SignerAddress); | ||
} | ||
else { | ||
message.adr036SignerAddress = ""; | ||
} | ||
return message; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
message.type !== undefined && (obj.type = message.type); | ||
message.adr036SignerAddress !== undefined && | ||
(obj.adr036SignerAddress = message.adr036SignerAddress); | ||
return obj; | ||
}, | ||
fromPartial(object) { | ||
const message = Object.assign({}, baseClientSpec); | ||
if (object.type !== undefined && object.type !== null) { | ||
message.type = object.type; | ||
} | ||
else { | ||
message.type = ""; | ||
} | ||
if (object.adr036SignerAddress !== undefined && | ||
object.adr036SignerAddress !== null) { | ||
message.adr036SignerAddress = object.adr036SignerAddress; | ||
} | ||
else { | ||
message.adr036SignerAddress = ""; | ||
} | ||
return message; | ||
}, | ||
}; |
Oops, something went wrong.