@airgap/icp 0.13.15-beta.4 → 0.13.15-beta.6
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/index.d.ts +2 -1
- package/v1/index.js +3 -1
- package/v1/index.js.map +1 -1
- package/v1/protocol/ICPGovernance.d.ts +25 -24
- package/v1/protocol/ICPGovernance.js +183 -134
- package/v1/protocol/ICPGovernance.js.map +1 -1
- package/v1/protocol/ICPImplementation.d.ts +6 -4
- package/v1/protocol/ICPImplementation.js +17 -55
- package/v1/protocol/ICPImplementation.js.map +1 -1
- package/v1/protocol/ICPProtocol.d.ts +48 -25
- package/v1/protocol/ICPProtocol.js +389 -166
- package/v1/protocol/ICPProtocol.js.map +1 -1
- package/v1/serializer/v3/schemas/generated/transaction-sign-request-icp.json +13 -16
- package/v1/types/governance.d.ts +29 -0
- package/v1/types/governance.js +15 -1
- package/v1/types/governance.js.map +1 -1
- package/v1/types/transaction.d.ts +5 -4
- package/v1/types/transaction.js +24 -14
- package/v1/types/transaction.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@airgap/icp",
|
|
3
|
-
"version": "0.13.15-beta.
|
|
3
|
+
"version": "0.13.15-beta.6",
|
|
4
4
|
"description": "The @airgap/icp is an ICP implementation of the ICoinProtocol interface from @airgap/coinlib-core.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"airgap",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
},
|
|
31
31
|
"author": "Papers AG <contact@papers.ch> (https://papers.ch)",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@airgap/coinlib-core": "^0.13.15-beta.
|
|
34
|
-
"@airgap/crypto": "^0.13.15-beta.
|
|
35
|
-
"@airgap/module-kit": "^0.13.15-beta.
|
|
36
|
-
"@airgap/serializer": "^0.13.15-beta.
|
|
33
|
+
"@airgap/coinlib-core": "^0.13.15-beta.6",
|
|
34
|
+
"@airgap/crypto": "^0.13.15-beta.6",
|
|
35
|
+
"@airgap/module-kit": "^0.13.15-beta.6",
|
|
36
|
+
"@airgap/serializer": "^0.13.15-beta.6",
|
|
37
37
|
"@dfinity/agent": "^0.15.4",
|
|
38
38
|
"@dfinity/identity-secp256k1": "^0.15.4",
|
|
39
39
|
"@dfinity/nns": "^0.14.0",
|
package/v1/index.d.ts
CHANGED
|
@@ -5,10 +5,11 @@ import { CkBTCOfflineProtocol, CkBTCOnlineProtocol, createCkBTCOfflineProtocol,
|
|
|
5
5
|
import { ICPTransactionSignRequest } from './serializer/v3/schemas/definitions/transaction-sign-request-icp';
|
|
6
6
|
import { ICPTransactionSignResponse } from './serializer/v3/schemas/definitions/transaction-sign-response-icp';
|
|
7
7
|
import { ICPCryptoConfiguration } from './types/crypto';
|
|
8
|
+
import { ICPDelegateeDetails, ICPDelegationDetails, ICPDelegatorDetails, ICPStakingActionType } from './types/governance';
|
|
8
9
|
import { ICPProtocolNetwork, ICPProtocolOptions, ICPUnits } from './types/protocol';
|
|
9
10
|
import { ICPActionType, ICPSignedTransaction, ICPUnsignedTransaction } from './types/transaction';
|
|
10
11
|
export { ICPModule };
|
|
11
12
|
export { ICPProtocol, createICPProtocol, createICPProtocolOptions, CkBTCOfflineProtocol, CkBTCOnlineProtocol, createCkBTCOfflineProtocol, createCkBTCOnlineProtocol };
|
|
12
13
|
export { ICPBlockExplorer };
|
|
13
|
-
export { ICPCryptoConfiguration, ICPUnits, ICPProtocolOptions, ICPProtocolNetwork, ICPUnsignedTransaction, ICPSignedTransaction, ICPActionType };
|
|
14
|
+
export { ICPCryptoConfiguration, ICPUnits, ICPProtocolOptions, ICPProtocolNetwork, ICPUnsignedTransaction, ICPSignedTransaction, ICPActionType, ICPStakingActionType, ICPDelegatorDetails, ICPDelegateeDetails, ICPDelegationDetails };
|
|
14
15
|
export { ICPTransactionSignRequest, ICPTransactionSignResponse };
|
package/v1/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ICPActionType = exports.ICPBlockExplorer = exports.createCkBTCOnlineProtocol = exports.createCkBTCOfflineProtocol = exports.createICPProtocolOptions = exports.createICPProtocol = exports.ICPModule = void 0;
|
|
3
|
+
exports.ICPStakingActionType = exports.ICPActionType = exports.ICPBlockExplorer = exports.createCkBTCOnlineProtocol = exports.createCkBTCOfflineProtocol = exports.createICPProtocolOptions = exports.createICPProtocol = exports.ICPModule = void 0;
|
|
4
4
|
const ICPBlockExplorer_1 = require("./block-explorer/ICPBlockExplorer");
|
|
5
5
|
Object.defineProperty(exports, "ICPBlockExplorer", { enumerable: true, get: function () { return ICPBlockExplorer_1.ICPBlockExplorer; } });
|
|
6
6
|
const ICPModule_1 = require("./module/ICPModule");
|
|
@@ -11,6 +11,8 @@ Object.defineProperty(exports, "createICPProtocolOptions", { enumerable: true, g
|
|
|
11
11
|
const CkBTCProtocol_1 = require("./protocol/icrc/CkBTCProtocol");
|
|
12
12
|
Object.defineProperty(exports, "createCkBTCOfflineProtocol", { enumerable: true, get: function () { return CkBTCProtocol_1.createCkBTCOfflineProtocol; } });
|
|
13
13
|
Object.defineProperty(exports, "createCkBTCOnlineProtocol", { enumerable: true, get: function () { return CkBTCProtocol_1.createCkBTCOnlineProtocol; } });
|
|
14
|
+
const governance_1 = require("./types/governance");
|
|
15
|
+
Object.defineProperty(exports, "ICPStakingActionType", { enumerable: true, get: function () { return governance_1.ICPStakingActionType; } });
|
|
14
16
|
const transaction_1 = require("./types/transaction");
|
|
15
17
|
Object.defineProperty(exports, "ICPActionType", { enumerable: true, get: function () { return transaction_1.ICPActionType; } });
|
|
16
18
|
//# sourceMappingURL=index.js.map
|
package/v1/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":";;;AAAA,wEAAoE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":";;;AAAA,wEAAoE;AAkC3D,iGAlCA,mCAAgB,OAkCA;AAjCzB,kDAA8C;AAiBrC,0FAjBA,qBAAS,OAiBA;AAhBlB,wDAAiG;AAsB/F,kGAtBO,+BAAiB,OAsBP;AACjB,yGAvB0B,sCAAwB,OAuB1B;AAtB1B,iEAKsC;AAoBpC,2GAtBA,0CAA0B,OAsBA;AAC1B,0GAtBA,yCAAyB,OAsBA;AAjB3B,mDAAyH;AAkCvH,qGAlCuE,iCAAoB,OAkCvE;AAhCtB,qDAAiG;AA+B/F,8FA/BO,2BAAa,OA+BP"}
|
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
import { AirGapTransaction } from '@airgap/module-kit';
|
|
2
2
|
import { ICPProtocolNetwork, ICPUnits, ICPUnsignedTransaction } from '../module';
|
|
3
|
-
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function
|
|
9
|
-
export declare function
|
|
10
|
-
export declare function
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function
|
|
13
|
-
export declare function
|
|
14
|
-
export declare function
|
|
3
|
+
import { ICPTransaction } from '../types/transaction';
|
|
4
|
+
export declare function prepareGetNeuronInfo(): Promise<ICPTransaction>;
|
|
5
|
+
export declare function getDetailsFromUnsignedGetNeuronInfo(publicKey: string, network: ICPProtocolNetwork): AirGapTransaction<ICPUnits>[];
|
|
6
|
+
export declare function signGetNeuronInfo(unsignedTransaction: string, privateKey: string, canisterId: string): Promise<string>;
|
|
7
|
+
export declare function getDetailsFromSignedGetNeuronInfo(publicKey: string, network: ICPProtocolNetwork): AirGapTransaction<ICPUnits>[];
|
|
8
|
+
export declare function prepareTransferToSubaccount(publicKey: string, canisterId: string, amount: bigint, fee: bigint): Promise<ICPTransaction>;
|
|
9
|
+
export declare function getDetailsFromUnsignedTransferToSubaccount(unsignedTransaction: string, publicKey: string, network: ICPProtocolNetwork): AirGapTransaction<ICPUnits>[];
|
|
10
|
+
export declare function signTransferToSubaccount(unsignedTransaction: string, privateKey: string, canisterId: string): Promise<string>;
|
|
11
|
+
export declare function getDetailsFromSignedTransferToSubaccount(signedTransaction: string, publicKey: string, network: ICPProtocolNetwork): AirGapTransaction<ICPUnits>[];
|
|
12
|
+
export declare function prepareClaimOrRefreshNeuron(publicKey: string): Promise<ICPTransaction>;
|
|
13
|
+
export declare function getDetailsFromUnsignedClaimGovernance(publicKey: string, network: ICPProtocolNetwork): AirGapTransaction<ICPUnits>[];
|
|
14
|
+
export declare function signClaimGovernance(unsignedTransaction: string, privateKey: string, canisterId: string): Promise<string>;
|
|
15
|
+
export declare function getDetailsFromTransactionClaimGovernance(publicKey: string, network: ICPProtocolNetwork): AirGapTransaction<ICPUnits>[];
|
|
15
16
|
export declare function createUnsignedTransactionIncreaseDelay(publicKey: string, delaySeconds: number): Promise<ICPUnsignedTransaction>;
|
|
16
17
|
export declare function getDetailsFromUnsignedTransactionIncreaseDelay(publicKey: string, network: ICPProtocolNetwork): AirGapTransaction<ICPUnits>[];
|
|
17
18
|
export declare function signTransactionIncreaseDelay(unsignedTransaction: string, privateKey: string, canisterId: string): Promise<string>;
|
|
18
19
|
export declare function getDetailsFromSignedTransactionIncreaseDelay(publicKey: string, network: ICPProtocolNetwork): AirGapTransaction<ICPUnits>[];
|
|
19
|
-
export declare function
|
|
20
|
-
export declare function
|
|
21
|
-
export declare function
|
|
22
|
-
export declare function
|
|
20
|
+
export declare function prepareStartDissolving(publicKey: string): Promise<ICPTransaction>;
|
|
21
|
+
export declare function getDetailsFromUnsignedStartDissolving(publicKey: string, network: ICPProtocolNetwork): AirGapTransaction<ICPUnits>[];
|
|
22
|
+
export declare function signStartDissolving(unsignedTransaction: string, privateKey: string, canisterId: string): Promise<string>;
|
|
23
|
+
export declare function getDetailsFromSignedStartDissolving(publicKey: string, network: ICPProtocolNetwork): AirGapTransaction<ICPUnits>[];
|
|
23
24
|
export declare function createUnsignedTransactionStopDissolving(publicKey: string): Promise<ICPUnsignedTransaction>;
|
|
24
25
|
export declare function getDetailsFromUnsignedTransactionStopDissolving(publicKey: string, network: ICPProtocolNetwork): AirGapTransaction<ICPUnits>[];
|
|
25
26
|
export declare function signTransactionStopDissolving(unsignedTransaction: string, privateKey: string, canisterId: string): Promise<string>;
|
|
26
27
|
export declare function getDetailsFromSignedTransactionStopDissolving(publicKey: string, network: ICPProtocolNetwork): AirGapTransaction<ICPUnits>[];
|
|
27
|
-
export declare function
|
|
28
|
-
export declare function
|
|
29
|
-
export declare function
|
|
30
|
-
export declare function
|
|
28
|
+
export declare function prepareFollowNeuron(publicKey: string, neuronId: number): Promise<ICPTransaction>;
|
|
29
|
+
export declare function getDetailsFromUnsignedFollowNeuron(publicKey: string, network: ICPProtocolNetwork): AirGapTransaction<ICPUnits>[];
|
|
30
|
+
export declare function signFollowNeuron(unsignedTransaction: string, privateKey: string, canisterId: string): Promise<string>;
|
|
31
|
+
export declare function getDetailsFromSignedFollowNeuron(publicKey: string, network: ICPProtocolNetwork): AirGapTransaction<ICPUnits>[];
|
|
31
32
|
export declare function createUnsignedTransactionRestakeMaturity(publicKey: string, percentageStake: number): Promise<ICPUnsignedTransaction>;
|
|
32
33
|
export declare function getDetailsFromUnsignedTransactionRestakeMaturity(publicKey: string, network: ICPProtocolNetwork): AirGapTransaction<ICPUnits>[];
|
|
33
34
|
export declare function signTransactionRestakeMaturity(unsignedTransaction: string, privateKey: string, canisterId: string): Promise<string>;
|
|
34
35
|
export declare function getDetailsFromSignedTransactionRestakeMaturity(publicKey: string, network: ICPProtocolNetwork): AirGapTransaction<ICPUnits>[];
|
|
35
|
-
export declare function
|
|
36
|
-
export declare function
|
|
37
|
-
export declare function
|
|
38
|
-
export declare function
|
|
36
|
+
export declare function prepareDisburse(publicKey: string): Promise<ICPTransaction>;
|
|
37
|
+
export declare function getDetailsFromUnsignedDisburse(publicKey: string, network: ICPProtocolNetwork): AirGapTransaction<ICPUnits>[];
|
|
38
|
+
export declare function signDisburse(unsignedTransaction: string, privateKey: string, canisterId: string): Promise<string>;
|
|
39
|
+
export declare function getDetailsFromSignedDisburse(publicKey: string, network: ICPProtocolNetwork): AirGapTransaction<ICPUnits>[];
|