@airgap/acurast 0.13.26-beta.0 → 0.13.26
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.
- package/package.json +5 -5
- package/v1/protocol/AcurastProtocol.js +11 -25
- package/v1/protocol/AcurastProtocol.js.map +1 -1
- package/v1/serializer/v3/schemas/generated/transaction-sign-request-acurast.json +8 -15
- package/v1/serializer/v3/schemas/generated/transaction-sign-response-acurast.json +1 -1
- package/v1/types/protocol.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@airgap/acurast",
|
|
3
|
-
"version": "0.13.26
|
|
3
|
+
"version": "0.13.26",
|
|
4
4
|
"description": "The @airgap/acurast is an Acurast implementation of the ICoinProtocol interface from @airgap/coinlib-core.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"airgap",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
},
|
|
32
32
|
"author": "Papers AG <contact@papers.ch> (https://papers.ch)",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@airgap/coinlib-core": "^0.13.26
|
|
35
|
-
"@airgap/module-kit": "^0.13.26
|
|
36
|
-
"@airgap/serializer": "^0.13.26
|
|
37
|
-
"@airgap/substrate": "^0.13.26
|
|
34
|
+
"@airgap/coinlib-core": "^0.13.26",
|
|
35
|
+
"@airgap/module-kit": "^0.13.26",
|
|
36
|
+
"@airgap/serializer": "^0.13.26",
|
|
37
|
+
"@airgap/substrate": "^0.13.26",
|
|
38
38
|
"@polkadot/util": "2.0.1",
|
|
39
39
|
"@polkadot/wasm-crypto": "0.20.1"
|
|
40
40
|
},
|
|
@@ -34,34 +34,18 @@ exports.ACURAST_METADATA = {
|
|
|
34
34
|
identifier: coinlib_core_1.MainProtocolSymbols.ACURAST,
|
|
35
35
|
name: 'Acurast',
|
|
36
36
|
units: {
|
|
37
|
-
|
|
38
|
-
symbol: { value: '
|
|
37
|
+
cACU: {
|
|
38
|
+
symbol: { value: 'cACU' },
|
|
39
39
|
decimals: 12
|
|
40
|
-
},
|
|
41
|
-
mcaCU: {
|
|
42
|
-
symbol: { value: 'mdaCU' },
|
|
43
|
-
decimals: 9
|
|
44
|
-
},
|
|
45
|
-
ucaCU: {
|
|
46
|
-
symbol: { value: 'udaCU' },
|
|
47
|
-
decimals: 6
|
|
48
|
-
},
|
|
49
|
-
ncaCU: {
|
|
50
|
-
symbol: { value: 'ncaCU' },
|
|
51
|
-
decimals: 3
|
|
52
|
-
},
|
|
53
|
-
pcaCU: {
|
|
54
|
-
symbol: { value: 'pcaCU' },
|
|
55
|
-
decimals: 0
|
|
56
40
|
}
|
|
57
41
|
},
|
|
58
|
-
mainUnit: '
|
|
42
|
+
mainUnit: 'cACU',
|
|
59
43
|
account: {
|
|
60
44
|
standardDerivationPath: "m/44'/434'/0'/0/0",
|
|
61
45
|
address: {
|
|
62
46
|
isCaseSensitive: true,
|
|
63
|
-
placeholder: "
|
|
64
|
-
regex: '^[
|
|
47
|
+
placeholder: "5ABC...",
|
|
48
|
+
regex: '^5[a-km-zA-HJ-NP-Z1-9]+$'
|
|
65
49
|
}
|
|
66
50
|
}
|
|
67
51
|
};
|
|
@@ -93,10 +77,12 @@ function createAcurastProtocol(options) {
|
|
|
93
77
|
}
|
|
94
78
|
exports.createAcurastProtocol = createAcurastProtocol;
|
|
95
79
|
exports.ACURAST_MAINNET_PROTOCOL_NETWORK = {
|
|
96
|
-
name: '
|
|
97
|
-
type: '
|
|
98
|
-
rpcUrl: 'https://
|
|
99
|
-
|
|
80
|
+
name: 'Mainnet',
|
|
81
|
+
type: 'mainnet',
|
|
82
|
+
rpcUrl: 'https://acurast-canarynet-node.prod.gke.acurast.com',
|
|
83
|
+
// rpcUrl: 'https://rpc.collator-1.acurast.papers.tech', //testnet
|
|
84
|
+
blockExplorerUrl: 'https://polkadot.js.org/apps/?rpc=wss://acurast-canarynet-ws.prod.gke.papers.tech#/explorer',
|
|
85
|
+
// blockExplorerUrl: 'https://polkadot.js.org/apps/?rpc=wss.collator-1.acurast.papers.tech#/explorer',
|
|
100
86
|
blockExplorerApi: ''
|
|
101
87
|
};
|
|
102
88
|
var DEFAULT_ACURAST_PROTOCOL_NETWORK = exports.ACURAST_MAINNET_PROTOCOL_NETWORK;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcurastProtocol.js","sourceRoot":"","sources":["../../../src/v1/protocol/AcurastProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAA0D;AAK1D,6DAAoF;AAKpF,iBAAiB;AAEJ,QAAA,gBAAgB,GAAmC;IAC9D,UAAU,EAAE,kCAAmB,CAAC,OAAO;IACvC,IAAI,EAAE,SAAS;IAEf,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;YACzB,QAAQ,EAAE,EAAE;SACb;
|
|
1
|
+
{"version":3,"file":"AcurastProtocol.js","sourceRoot":"","sources":["../../../src/v1/protocol/AcurastProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAA0D;AAK1D,6DAAoF;AAKpF,iBAAiB;AAEJ,QAAA,gBAAgB,GAAmC;IAC9D,UAAU,EAAE,kCAAmB,CAAC,OAAO;IACvC,IAAI,EAAE,SAAS;IAEf,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;YACzB,QAAQ,EAAE,EAAE;SACb;KACF;IACD,QAAQ,EAAE,MAAM;IAEhB,OAAO,EAAE;QACP,sBAAsB,EAAE,mBAAmB;QAC3C,OAAO,EAAE;YACP,eAAe,EAAE,IAAI;YACrB,WAAW,EAAE,SAAS;YACtB,KAAK,EAAE,0BAA0B;SAClC;KACF;CACF,CAAA;AAEY,QAAA,qBAAqB,GAAiC;IACjE,OAAO,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,EAAE;KACX;IACD,WAAW,EAAE;QACX,KAAK,EAAE,EAAE;KACV;CACF,CAAA;AAED;IAAyC,uCAAqC;IAC5E,6BAAmB,OAAsD;QAAtD,wBAAA,EAAA,YAAsD;QACvE,IAAM,eAAe,GAA2B,4BAA4B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;QAE7F,IAAM,QAAQ,GAAmC,wBAAgB,CAAA;QACjE,IAAM,aAAa,GAAiC,6BAAqB,CAAA;eAEzE,kBAAM,EAAE,QAAQ,UAAA,EAAE,aAAa,eAAA,EAAE,OAAO,EAAE,eAAe,CAAC,OAAO,EAAE,CAAC;IACtE,CAAC;IACH,0BAAC;AAAD,CAAC,AATD,CAAyC,6CAAuB,GAS/D;AATY,kDAAmB;AAWhC,UAAU;AAEV,SAAgB,qBAAqB,CAAC,OAAsD;IAAtD,wBAAA,EAAA,YAAsD;IAC1F,OAAO,IAAI,mBAAmB,CAAC,OAAO,CAAC,CAAA;AACzC,CAAC;AAFD,sDAEC;AAEY,QAAA,gCAAgC,GAA2B;IACtE,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,qDAAqD;IAC7D,kEAAkE;IAClE,gBAAgB,EAAE,6FAA6F;IAC/G,sGAAsG;IACtG,gBAAgB,EAAE,EAAE;CACrB,CAAA;AAED,IAAM,gCAAgC,GAA2B,wCAAgC,CAAA;AAEjG,SAAgB,4BAA4B,CAAC,OAA6C;IAA7C,wBAAA,EAAA,YAA6C;IACxF,OAAO;QACL,OAAO,wBAAO,gCAAgC,GAAK,OAAO,CAAE;KAC7D,CAAA;AACH,CAAC;AAJD,oEAIC"}
|
|
@@ -12,25 +12,18 @@
|
|
|
12
12
|
"type": "string"
|
|
13
13
|
},
|
|
14
14
|
"transaction": {
|
|
15
|
-
"
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"properties": {
|
|
17
|
+
"encoded": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": ["encoded"],
|
|
22
|
+
"type": "object"
|
|
16
23
|
}
|
|
17
24
|
},
|
|
18
25
|
"required": ["publicKey", "transaction"],
|
|
19
26
|
"type": "object"
|
|
20
|
-
},
|
|
21
|
-
"SubstrateUnsignedTransaction": {
|
|
22
|
-
"additionalProperties": false,
|
|
23
|
-
"properties": {
|
|
24
|
-
"encoded": {
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
"type": {
|
|
28
|
-
"enum": ["unsigned"],
|
|
29
|
-
"type": "string"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"required": ["encoded", "type"],
|
|
33
|
-
"type": "object"
|
|
34
27
|
}
|
|
35
28
|
}
|
|
36
29
|
}
|
package/v1/types/protocol.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SubstrateProtocolNetwork, SubstrateProtocolOptions } from '@airgap/substrate/v1';
|
|
2
2
|
import { AcurastProtocolConfiguration } from './configuration';
|
|
3
|
-
export declare type AcurastUnits = '
|
|
3
|
+
export declare type AcurastUnits = 'cACU';
|
|
4
4
|
export interface AcurastProtocolNetwork extends SubstrateProtocolNetwork {
|
|
5
5
|
blockExplorerApi: string;
|
|
6
6
|
}
|