@airgap/icp 0.13.11-beta.8 → 0.13.11
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/LICENSE.md +7 -7
- package/package.json +2 -2
- package/v1/module/ICPModule.d.ts +2 -2
- package/v1/module/ICPModule.js +3 -3
- package/v1/module/ICPModule.js.map +1 -1
- package/v1/protocol/ICPImplementation.d.ts +1 -1
- package/v1/protocol/ICPImplementation.js +3 -3
- package/v1/protocol/ICPImplementation.js.map +1 -1
- package/v1/protocol/ICPProtocol.js +4 -4
- package/v1/protocol/ICPProtocol.js.map +1 -1
- package/v1/protocol/icrc/CkBTCProtocol.d.ts +6 -9
- package/v1/protocol/icrc/CkBTCProtocol.js +115 -156
- package/v1/protocol/icrc/CkBTCProtocol.js.map +1 -1
- package/v1/protocol/icrc/ICRC1Protocol.d.ts +6 -8
- package/v1/protocol/icrc/ICRC1Protocol.js +32 -69
- package/v1/protocol/icrc/ICRC1Protocol.js.map +1 -1
- package/v1/serializer/v3/serializer-companion.js +8 -8
- package/v1/serializer/v3/serializer-companion.js.map +1 -1
- package/v1/types/protocol.d.ts +11 -2
- package/v1/utils/icrc1.js +8 -10
- package/v1/utils/icrc1.js.map +1 -1
|
@@ -61,41 +61,22 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
61
61
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
65
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
66
|
-
if (!m) return o;
|
|
67
|
-
var i = m.call(o), r, ar = [], e;
|
|
68
|
-
try {
|
|
69
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
70
|
-
}
|
|
71
|
-
catch (error) { e = { error: error }; }
|
|
72
|
-
finally {
|
|
73
|
-
try {
|
|
74
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
75
|
-
}
|
|
76
|
-
finally { if (e) throw e.error; }
|
|
77
|
-
}
|
|
78
|
-
return ar;
|
|
79
|
-
};
|
|
80
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
81
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
82
|
-
};
|
|
83
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
84
65
|
exports.createCkBTCOnlineProtocolOptions = exports.createCkBTCOfflineProtocolOptions = exports.CKBTC_MAINNET_PROTOCOL_NETWORK = exports.createCkBTCOnlineProtocol = exports.createCkBTCOfflineProtocol = void 0;
|
|
85
66
|
// tslint:disable: max-classes-per-file
|
|
86
67
|
var coinlib_core_1 = require("@airgap/coinlib-core");
|
|
87
|
-
var
|
|
68
|
+
var errors_1 = require("@airgap/coinlib-core/errors");
|
|
88
69
|
var module_kit_1 = require("@airgap/module-kit");
|
|
70
|
+
var auth_1 = require("../../utils/auth");
|
|
89
71
|
var icrc1_1 = require("../../utils/icrc1");
|
|
90
|
-
var ICPImplementation_1 = require("../ICPImplementation");
|
|
91
72
|
var ICRC1Protocol_1 = require("./ICRC1Protocol");
|
|
92
73
|
// Implementation
|
|
93
74
|
var CKBTC_METADATA = {
|
|
94
|
-
identifier: coinlib_core_1.
|
|
95
|
-
name: '
|
|
75
|
+
identifier: coinlib_core_1.MainProtocolSymbols.ICP_CKBTC,
|
|
76
|
+
name: 'Chain Key Bitcoin',
|
|
96
77
|
units: {
|
|
97
78
|
ckBTC: {
|
|
98
|
-
symbol: { value: 'ckBTC' },
|
|
79
|
+
symbol: { value: 'ckBTC', market: 'btc' },
|
|
99
80
|
decimals: 8
|
|
100
81
|
}
|
|
101
82
|
},
|
|
@@ -109,7 +90,7 @@ var CKBTC_METADATA = {
|
|
|
109
90
|
var CkBTCOfflineProtocolImpl = /** @class */ (function (_super) {
|
|
110
91
|
__extends(CkBTCOfflineProtocolImpl, _super);
|
|
111
92
|
function CkBTCOfflineProtocolImpl(options) {
|
|
112
|
-
var completeOptions = createCkBTCOfflineProtocolOptions(options.
|
|
93
|
+
var completeOptions = createCkBTCOfflineProtocolOptions(options.ledgerCanisterId);
|
|
113
94
|
return _super.call(this, __assign(__assign({}, completeOptions), CKBTC_METADATA)) || this;
|
|
114
95
|
}
|
|
115
96
|
return CkBTCOfflineProtocolImpl;
|
|
@@ -135,104 +116,41 @@ var CkBTCOnlineProtocolImpl = /** @class */ (function (_super) {
|
|
|
135
116
|
};
|
|
136
117
|
CkBTCOnlineProtocolImpl.prototype.getTransactionsForAddress = function (address, limit, cursor) {
|
|
137
118
|
return __awaiter(this, void 0, void 0, function () {
|
|
138
|
-
var actor,
|
|
119
|
+
var actor, account, defaultFee, getTransactionsResult, okResult, transactions, last, airGapTransactions, next, hasNext;
|
|
139
120
|
var _this = this;
|
|
140
121
|
return __generator(this, function (_a) {
|
|
141
122
|
switch (_a.label) {
|
|
142
123
|
case 0:
|
|
143
|
-
actor = this.
|
|
144
|
-
var IDL = _a.IDL;
|
|
145
|
-
var GetTransactionsRequest = IDL.Record({
|
|
146
|
-
start: IDL.Nat,
|
|
147
|
-
length: IDL.Nat
|
|
148
|
-
});
|
|
149
|
-
var Account = IDL.Record({
|
|
150
|
-
owner: IDL.Principal,
|
|
151
|
-
subaccount: IDL.Opt(IDL.Vec(IDL.Nat8))
|
|
152
|
-
});
|
|
153
|
-
var Burn = IDL.Record({
|
|
154
|
-
from: Account,
|
|
155
|
-
memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
156
|
-
created_at_time: IDL.Opt(IDL.Nat64),
|
|
157
|
-
amount: IDL.Nat
|
|
158
|
-
});
|
|
159
|
-
var Mint = IDL.Record({
|
|
160
|
-
to: Account,
|
|
161
|
-
memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
162
|
-
created_at_time: IDL.Opt(IDL.Nat64),
|
|
163
|
-
amount: IDL.Nat
|
|
164
|
-
});
|
|
165
|
-
var Transfer = IDL.Record({
|
|
166
|
-
to: Account,
|
|
167
|
-
fee: IDL.Opt(IDL.Nat),
|
|
168
|
-
from: Account,
|
|
169
|
-
memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
170
|
-
created_at_time: IDL.Opt(IDL.Nat64),
|
|
171
|
-
amount: IDL.Nat
|
|
172
|
-
});
|
|
173
|
-
var Transaction = IDL.Record({
|
|
174
|
-
burn: IDL.Opt(Burn),
|
|
175
|
-
kind: IDL.Text,
|
|
176
|
-
mint: IDL.Opt(Mint),
|
|
177
|
-
timestamp: IDL.Nat64,
|
|
178
|
-
transfer: IDL.Opt(Transfer)
|
|
179
|
-
});
|
|
180
|
-
var ArchivedTransactionRange = IDL.Record({
|
|
181
|
-
callback: IDL.Func([GetTransactionsRequest], [IDL.Record({ transactions: IDL.Vec(Transaction) })], ['query']),
|
|
182
|
-
start: IDL.Nat,
|
|
183
|
-
length: IDL.Nat
|
|
184
|
-
});
|
|
185
|
-
var GetTransactionsResponse = IDL.Record({
|
|
186
|
-
first_index: IDL.Nat,
|
|
187
|
-
log_length: IDL.Nat,
|
|
188
|
-
transactions: IDL.Vec(Transaction),
|
|
189
|
-
archived_transactions: IDL.Vec(ArchivedTransactionRange)
|
|
190
|
-
});
|
|
191
|
-
return IDL.Service({
|
|
192
|
-
get_transactions: IDL.Func([GetTransactionsRequest], [GetTransactionsResponse], ['query'])
|
|
193
|
-
});
|
|
194
|
-
});
|
|
195
|
-
start = cursor === null || cursor === void 0 ? void 0 : cursor.next;
|
|
196
|
-
if (!!start) return [3 /*break*/, 2];
|
|
197
|
-
return [4 /*yield*/, actor.get_transactions({
|
|
198
|
-
start: BigInt(0),
|
|
199
|
-
length: BigInt(0)
|
|
200
|
-
})];
|
|
201
|
-
case 1:
|
|
202
|
-
empty = _a.sent();
|
|
203
|
-
start = empty.first_index.toString();
|
|
204
|
-
_a.label = 2;
|
|
205
|
-
case 2:
|
|
206
|
-
next = new bignumber_1.default(start !== null && start !== void 0 ? start : 0);
|
|
207
|
-
hasNext = false;
|
|
124
|
+
actor = this.createIndexerActor();
|
|
208
125
|
account = (0, icrc1_1.getICRC1AccountFromAddress)(address);
|
|
209
|
-
mainAddress = (0, icrc1_1.getICRC1AddressFromPrincipal)(account.owner);
|
|
210
126
|
return [4 /*yield*/, this.fee()];
|
|
211
|
-
case
|
|
127
|
+
case 1:
|
|
212
128
|
defaultFee = _a.sent();
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
case
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
.
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
var
|
|
232
|
-
|
|
129
|
+
return [4 /*yield*/, actor.get_account_transactions({
|
|
130
|
+
account: (0, icrc1_1.encodeICRC1Account)(account),
|
|
131
|
+
start: (cursor === null || cursor === void 0 ? void 0 : cursor.next) ? [BigInt(cursor.next)] : [],
|
|
132
|
+
max_results: BigInt(limit + 1)
|
|
133
|
+
})];
|
|
134
|
+
case 2:
|
|
135
|
+
getTransactionsResult = _a.sent();
|
|
136
|
+
if (getTransactionsResult.Err) {
|
|
137
|
+
throw new errors_1.OperationFailedError(coinlib_core_1.Domain.ICP, "ICRC1 get transactions failed (".concat(getTransactionsResult.Err.message, ")"));
|
|
138
|
+
}
|
|
139
|
+
okResult = getTransactionsResult.Ok;
|
|
140
|
+
transactions = okResult.transactions;
|
|
141
|
+
last = okResult.oldest_tx_id && okResult.oldest_tx_id.length > 0 ? okResult.oldest_tx_id[0].toString() : undefined;
|
|
142
|
+
airGapTransactions = transactions
|
|
143
|
+
.map(function (transactionWithId) {
|
|
144
|
+
var transaction = transactionWithId.transaction;
|
|
145
|
+
var timestamp = Number(transaction.timestamp) / 1000000000; // ns to s
|
|
146
|
+
if (transaction.kind === 'transfer' && transaction.transfer[0]) {
|
|
147
|
+
var transfer = transaction.transfer[0];
|
|
148
|
+
var from = (0, icrc1_1.getICRC1AddressFromPrincipal)(transfer.from.owner, transfer.from.subaccount[0]);
|
|
149
|
+
var to = (0, icrc1_1.getICRC1AddressFromPrincipal)(transfer.to.owner, transfer.to.subaccount[0]);
|
|
150
|
+
return {
|
|
233
151
|
from: [from],
|
|
234
152
|
to: [to],
|
|
235
|
-
isInbound:
|
|
153
|
+
isInbound: to === address,
|
|
236
154
|
amount: (0, module_kit_1.newAmount)(transfer.amount.toString(), 'blockchain'),
|
|
237
155
|
fee: transfer.fee && transfer.fee[0]
|
|
238
156
|
? (0, module_kit_1.newAmount)(transfer.fee[0].toString(), 'blockchain')
|
|
@@ -241,18 +159,14 @@ var CkBTCOnlineProtocolImpl = /** @class */ (function (_super) {
|
|
|
241
159
|
status: {
|
|
242
160
|
type: 'applied'
|
|
243
161
|
},
|
|
244
|
-
timestamp:
|
|
162
|
+
timestamp: timestamp,
|
|
245
163
|
arbitraryData: transfer.memo && transfer.memo[0] ? Buffer.from(transfer.memo[0]).toString('hex') : undefined
|
|
246
164
|
};
|
|
247
165
|
}
|
|
248
|
-
else if (
|
|
249
|
-
var burn =
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
return undefined;
|
|
253
|
-
}
|
|
254
|
-
transaction = {
|
|
255
|
-
from: [(0, ICPImplementation_1.getAddressFromPrincipal)(burn.from.owner, burn.from.subaccount)],
|
|
166
|
+
else if (transaction.kind === 'burn' && transaction.burn[0]) {
|
|
167
|
+
var burn = transaction.burn[0];
|
|
168
|
+
return {
|
|
169
|
+
from: [(0, icrc1_1.getICRC1AddressFromPrincipal)(burn.from.owner, burn.from.subaccount[0])],
|
|
256
170
|
to: ['Burn'],
|
|
257
171
|
isInbound: false,
|
|
258
172
|
amount: (0, module_kit_1.newAmount)(burn.amount.toString(), 'blockchain'),
|
|
@@ -262,19 +176,15 @@ var CkBTCOnlineProtocolImpl = /** @class */ (function (_super) {
|
|
|
262
176
|
status: {
|
|
263
177
|
type: 'applied'
|
|
264
178
|
},
|
|
265
|
-
timestamp:
|
|
179
|
+
timestamp: timestamp,
|
|
266
180
|
arbitraryData: burn.memo && burn.memo[0] ? Buffer.from(burn.memo[0]).toString('hex') : undefined
|
|
267
181
|
};
|
|
268
182
|
}
|
|
269
|
-
else if (
|
|
270
|
-
var mint =
|
|
271
|
-
|
|
272
|
-
if (toOwner !== mainAddress) {
|
|
273
|
-
return undefined;
|
|
274
|
-
}
|
|
275
|
-
transaction = {
|
|
183
|
+
else if (transaction.kind === 'mint' && transaction.mint[0]) {
|
|
184
|
+
var mint = transaction.mint[0];
|
|
185
|
+
return {
|
|
276
186
|
from: ['Mint'],
|
|
277
|
-
to: [(0,
|
|
187
|
+
to: [(0, icrc1_1.getICRC1AddressFromPrincipal)(mint.to.owner, mint.to.subaccount[0])],
|
|
278
188
|
isInbound: false,
|
|
279
189
|
amount: (0, module_kit_1.newAmount)(mint.amount.toString(), 'blockchain'),
|
|
280
190
|
fee: (0, module_kit_1.newAmount)(0, 'blockchain'),
|
|
@@ -283,32 +193,22 @@ var CkBTCOnlineProtocolImpl = /** @class */ (function (_super) {
|
|
|
283
193
|
status: {
|
|
284
194
|
type: 'applied'
|
|
285
195
|
},
|
|
286
|
-
timestamp:
|
|
196
|
+
timestamp: timestamp,
|
|
287
197
|
arbitraryData: mint.memo && mint.memo[0] ? Buffer.from(mint.memo[0]).toString('hex') : undefined
|
|
288
198
|
};
|
|
289
199
|
}
|
|
290
|
-
return
|
|
200
|
+
return undefined;
|
|
291
201
|
})
|
|
292
202
|
.filter(function (tx) { return tx !== undefined; });
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
if (transactions.length === 0 && hasNext) return [3 /*break*/, 4];
|
|
303
|
-
_a.label = 7;
|
|
304
|
-
case 7: // TODO: collect requested (limit) number of transactions
|
|
305
|
-
return [2 /*return*/, {
|
|
306
|
-
transactions: transactions,
|
|
307
|
-
cursor: {
|
|
308
|
-
hasNext: hasNext,
|
|
309
|
-
next: next.toString()
|
|
310
|
-
}
|
|
311
|
-
}];
|
|
203
|
+
next = transactions.length > 0 ? transactions.slice(-1)[0].id.toString() : '';
|
|
204
|
+
hasNext = airGapTransactions.length > limit || next !== last;
|
|
205
|
+
return [2 /*return*/, {
|
|
206
|
+
transactions: airGapTransactions.length <= limit ? airGapTransactions : airGapTransactions.slice(0, -1),
|
|
207
|
+
cursor: {
|
|
208
|
+
hasNext: hasNext,
|
|
209
|
+
next: next
|
|
210
|
+
}
|
|
211
|
+
}];
|
|
312
212
|
}
|
|
313
213
|
});
|
|
314
214
|
});
|
|
@@ -333,8 +233,66 @@ var CkBTCOnlineProtocolImpl = /** @class */ (function (_super) {
|
|
|
333
233
|
});
|
|
334
234
|
});
|
|
335
235
|
};
|
|
236
|
+
// Custom
|
|
237
|
+
CkBTCOnlineProtocolImpl.prototype.createIndexerActor = function (identity) {
|
|
238
|
+
if (identity === void 0) { identity = new auth_1.AnonymousIdentity(); }
|
|
239
|
+
return this.createActor(this.options.network.indexerCanisterId, function (_a) {
|
|
240
|
+
var IDL = _a.IDL;
|
|
241
|
+
var TxId = IDL.Nat;
|
|
242
|
+
var Account = IDL.Record({
|
|
243
|
+
owner: IDL.Principal,
|
|
244
|
+
subaccount: IDL.Opt(IDL.Vec(IDL.Nat8))
|
|
245
|
+
});
|
|
246
|
+
var GetAccountTransactionsArgs = IDL.Record({
|
|
247
|
+
max_results: IDL.Nat,
|
|
248
|
+
start: IDL.Opt(TxId),
|
|
249
|
+
account: Account
|
|
250
|
+
});
|
|
251
|
+
var Transaction = IDL.Record({
|
|
252
|
+
burn: IDL.Opt(IDL.Record({
|
|
253
|
+
from: Account,
|
|
254
|
+
memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
255
|
+
created_at_time: IDL.Opt(IDL.Nat64),
|
|
256
|
+
amount: IDL.Nat
|
|
257
|
+
})),
|
|
258
|
+
kind: IDL.Text,
|
|
259
|
+
mint: IDL.Opt(IDL.Record({
|
|
260
|
+
to: Account,
|
|
261
|
+
memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
262
|
+
created_at_time: IDL.Opt(IDL.Nat64),
|
|
263
|
+
amount: IDL.Nat
|
|
264
|
+
})),
|
|
265
|
+
timestamp: IDL.Nat64,
|
|
266
|
+
transfer: IDL.Opt(IDL.Record({
|
|
267
|
+
to: Account,
|
|
268
|
+
fee: IDL.Opt(IDL.Nat),
|
|
269
|
+
from: Account,
|
|
270
|
+
memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
271
|
+
created_at_time: IDL.Opt(IDL.Nat64),
|
|
272
|
+
amount: IDL.Nat
|
|
273
|
+
}))
|
|
274
|
+
});
|
|
275
|
+
var TransactionWithId = IDL.Record({
|
|
276
|
+
id: TxId,
|
|
277
|
+
transaction: Transaction
|
|
278
|
+
});
|
|
279
|
+
var GetTransactions = IDL.Record({
|
|
280
|
+
transactions: IDL.Vec(TransactionWithId),
|
|
281
|
+
oldest_tx_id: IDL.Opt(TxId)
|
|
282
|
+
});
|
|
283
|
+
var GetTransactionsErr = IDL.Record({ message: IDL.Text });
|
|
284
|
+
var GetTransactionsResult = IDL.Variant({
|
|
285
|
+
Ok: GetTransactions,
|
|
286
|
+
Err: GetTransactionsErr
|
|
287
|
+
});
|
|
288
|
+
return IDL.Service({
|
|
289
|
+
get_account_transactions: IDL.Func([GetAccountTransactionsArgs], [GetTransactionsResult], [])
|
|
290
|
+
});
|
|
291
|
+
}, identity);
|
|
292
|
+
};
|
|
336
293
|
return CkBTCOnlineProtocolImpl;
|
|
337
294
|
}(ICRC1Protocol_1.ICRC1OnlineProtocolImpl));
|
|
295
|
+
// Factory
|
|
338
296
|
function createCkBTCOfflineProtocol(options) {
|
|
339
297
|
if (options === void 0) { options = {}; }
|
|
340
298
|
return new CkBTCOfflineProtocolImpl(options);
|
|
@@ -349,13 +307,14 @@ exports.CKBTC_MAINNET_PROTOCOL_NETWORK = {
|
|
|
349
307
|
name: 'Mainnet',
|
|
350
308
|
type: 'mainnet',
|
|
351
309
|
rpcUrl: 'https://boundary.ic0.app/',
|
|
352
|
-
|
|
310
|
+
ledgerCanisterId: 'mxzaz-hqaaa-aaaar-qaada-cai',
|
|
311
|
+
indexerCanisterId: 'n5wcd-faaaa-aaaar-qaaea-cai',
|
|
353
312
|
explorerUrl: 'https://ledger-api.internetcomputer.org'
|
|
354
313
|
};
|
|
355
314
|
var DEFAULT_CKBTC_PROTOCOL_NETWORK = exports.CKBTC_MAINNET_PROTOCOL_NETWORK;
|
|
356
|
-
function createCkBTCOfflineProtocolOptions(
|
|
315
|
+
function createCkBTCOfflineProtocolOptions(ledgerCanisterId) {
|
|
357
316
|
return {
|
|
358
|
-
|
|
317
|
+
ledgerCanisterId: ledgerCanisterId !== null && ledgerCanisterId !== void 0 ? ledgerCanisterId : DEFAULT_CKBTC_PROTOCOL_NETWORK.ledgerCanisterId
|
|
359
318
|
};
|
|
360
319
|
}
|
|
361
320
|
exports.createCkBTCOfflineProtocolOptions = createCkBTCOfflineProtocolOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CkBTCProtocol.js","sourceRoot":"","sources":["../../../../src/v1/protocol/icrc/CkBTCProtocol.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CkBTCProtocol.js","sourceRoot":"","sources":["../../../../src/v1/protocol/icrc/CkBTCProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAuC;AACvC,qDAAkE;AAClE,sDAAkE;AAClE,iDAQ2B;AAQ3B,yCAA8D;AAC9D,2CAAgH;AAEhH,iDAA8H;AAO9H,iBAAiB;AAEjB,IAAM,cAAc,GAMhB;IACF,UAAU,EAAE,kCAAmB,CAAC,SAAS;IACzC,IAAI,EAAE,mBAAmB;IACz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C3D,CAAA;AACH,CAAC;AAJD,4EAIC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, AirGapOfflineProtocol, AirGapOnlineProtocol, AirGapTransaction, AirGapTransactionsWithCursor, Amount, Balance, CryptoDerivative, KeyPair, ProtocolMetadata, PublicKey, SecretKey, TransactionConfiguration, TransactionDetails } from '@airgap/module-kit';
|
|
1
|
+
import { Address, AirGapOfflineProtocol, AirGapOnlineProtocol, AirGapTransaction, AirGapTransactionsWithCursor, Amount, Balance, CryptoDerivative, KeyPair, ProtocolAccountMetadata, ProtocolMetadata, PublicKey, SecretKey, TransactionConfiguration, TransactionDetails } from '@airgap/module-kit';
|
|
2
2
|
import { ICPCryptoConfiguration } from '../../types/crypto';
|
|
3
3
|
import { ICRC1Account } from '../../types/icrc/account';
|
|
4
4
|
import { ICRC1Metadata } from '../../types/icrc/metadata';
|
|
@@ -15,7 +15,7 @@ export interface ICRC1OfflineProtocol<_Units extends string = string> extends Ai
|
|
|
15
15
|
Units: _Units;
|
|
16
16
|
SignedTransaction: ICPSignedTransaction;
|
|
17
17
|
UnsignedTransaction: ICPUnsignedTransaction;
|
|
18
|
-
}
|
|
18
|
+
}> {
|
|
19
19
|
}
|
|
20
20
|
export interface ICRC1OnlineProtocol<_Units extends string = string, _ICRC1Metadata extends ICRC1Metadata = ICRC1Metadata, _ProtocolNetwork extends ICRC1ProtocolNetwork = ICRC1ProtocolNetwork> extends AirGapOnlineProtocol<{
|
|
21
21
|
AddressResult: Address;
|
|
@@ -25,7 +25,7 @@ export interface ICRC1OnlineProtocol<_Units extends string = string, _ICRC1Metad
|
|
|
25
25
|
SignedTransaction: ICPSignedTransaction;
|
|
26
26
|
UnsignedTransaction: ICPUnsignedTransaction;
|
|
27
27
|
TransactionCursor: ICPTransactionCursor;
|
|
28
|
-
}, '
|
|
28
|
+
}, 'FetchDataForAddress'> {
|
|
29
29
|
name(): Promise<string>;
|
|
30
30
|
symbol(): Promise<string>;
|
|
31
31
|
decimals(): Promise<number>;
|
|
@@ -36,13 +36,12 @@ export interface ICRC1OnlineProtocol<_Units extends string = string, _ICRC1Metad
|
|
|
36
36
|
balanceOf(account: ICRC1Account): Promise<string>;
|
|
37
37
|
transfer(privateKey: string, args: ICRC1TransferArgs): Promise<string>;
|
|
38
38
|
}
|
|
39
|
+
export declare const ICRC1_ACCOUNT_METADATA: ProtocolAccountMetadata;
|
|
39
40
|
export declare abstract class ICRC1OfflineProtocolImpl<_Units extends string = string> implements ICRC1OfflineProtocol<_Units> {
|
|
40
41
|
private readonly options;
|
|
41
42
|
private readonly commonImpl;
|
|
42
43
|
protected readonly icp: ICPProtocol;
|
|
43
44
|
protected constructor(options: ICRC1OfflineProtocolOptions<_Units>);
|
|
44
|
-
getType(): Promise<'token'>;
|
|
45
|
-
mainProtocol(): Promise<string>;
|
|
46
45
|
private readonly metadata;
|
|
47
46
|
getMetadata(): Promise<ProtocolMetadata<_Units>>;
|
|
48
47
|
getAddressFromPublicKey(publicKey: PublicKey): Promise<string>;
|
|
@@ -56,8 +55,6 @@ export declare abstract class ICRC1OnlineProtocolImpl<_Units extends string = st
|
|
|
56
55
|
private readonly commonImpl;
|
|
57
56
|
protected readonly icp: ICPProtocol;
|
|
58
57
|
protected constructor(options: ICRC1OnlineProtocolOptions<_ProtocolNetwork, _Units>);
|
|
59
|
-
getType(): Promise<'token'>;
|
|
60
|
-
mainProtocol(): Promise<string>;
|
|
61
58
|
private _metadata;
|
|
62
59
|
getMetadata(): Promise<ProtocolMetadata<_Units>>;
|
|
63
60
|
private getPartialMetadata;
|
|
@@ -90,5 +87,6 @@ export declare abstract class ICRC1OnlineProtocolImpl<_Units extends string = st
|
|
|
90
87
|
mintingAccount(): Promise<ICRC1Account | undefined>;
|
|
91
88
|
balanceOf(account: ICRC1Account): Promise<string>;
|
|
92
89
|
transfer(privateKey: string, args: ICRC1TransferArgs): Promise<string>;
|
|
93
|
-
protected
|
|
90
|
+
protected createLedgerActor(idlFactory?: IDL.InterfaceFactory, identity?: Identity): ActorSubclass;
|
|
91
|
+
protected createActor(canisterId: string, idlFactory?: IDL.InterfaceFactory, identity?: Identity): ActorSubclass;
|
|
94
92
|
}
|