Skip to content

Commit df9f6d1

Browse files
committed
暫存
1 parent 9ee45f6 commit df9f6d1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+599
-437
lines changed

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ In the interest of fostering an open and welcoming environment, we as
66
contributors and maintainers pledge to making participation in our project and
77
our community a harassment-free experience for everyone, regardless of age, body
88
size, disability, ethnicity, sex characteristics, gender identity and expression,
9-
level of experience, education, socio-economic status, nationality, personal
9+
level of experience, education, socio-economic statusCode, nationality, personal
1010
appearance, race, religion, or sexual identity and orientation.
1111

1212
## Our Standards

packages/core/src/apdu/backup.ts

Lines changed: 0 additions & 46 deletions
This file was deleted.

packages/core/src/apdu/coin.ts

Lines changed: 0 additions & 46 deletions
This file was deleted.

packages/core/src/config/apduStatus/code.ts renamed to packages/core/src/apdu/config/status/code.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { CodeList } from './pattern'
22
export const CODE: CodeList = {
33
_9000: '9000',
4+
_9999: '9999',
45
_6E00: '6E00',
56
_6D00: '6D00',
67
_6982: '6982',

packages/core/src/config/apduStatus/msg.ts renamed to packages/core/src/apdu/config/status/msg.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { CodeList } from './pattern'
22
export const MSG: CodeList = {
33
_9000: 'success',
4+
_9999: 'unknow error',
45
_6E00: 'cls not supported',
56
_6D00: 'ins not supported',
6-
_6982: 'security status not satisfied',
7+
_6982: 'security statusCode not satisfied',
78
_6F00: 'unknown error',
89
_6700: 'wrong length',
910
_6A86: 'incorrect p1 & p2',

packages/core/src/config/apduStatus/pattern.ts renamed to packages/core/src/apdu/config/status/pattern.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1+
export type executeResult = {
2+
statusCode: string,
3+
msg: string,
4+
outputData: string
5+
}
6+
7+
18
export interface CodeList {
29
[key: string]: string, // TODO
310
_9000: string,
11+
_9999: string,
412
_6E00: string,
513
_6D00: string,
614
_6982: string,
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export enum target{
2+
SE = 'SE', MCU = 'MCU'
3+
}

packages/core/src/apdu/control.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)