@learncard/core 7.0.1 → 7.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -56925,7 +56925,8 @@ var issueCredential2 = /* @__PURE__ */ __name((initWallet) => {
56925
56925
  throw new Error("Cannot issue credential: Could not get subject keypair");
56926
56926
  const options = __spreadValues({
56927
56927
  verificationMethod: yield initWallet.pluginMethods.keyToVerificationMethod("key", kp),
56928
- proofPurpose: "assertionMethod"
56928
+ proofPurpose: "assertionMethod",
56929
+ type: "Ed25519Signature2020"
56929
56930
  }, signingOptions);
56930
56931
  return initWallet.pluginMethods.issueCredential(credential, options, kp);
56931
56932
  });
@@ -56946,7 +56947,8 @@ var issuePresentation2 = /* @__PURE__ */ __name((initWallet) => {
56946
56947
  throw new Error("Cannot issue credential: Could not get subject keypair");
56947
56948
  const options = __spreadValues({
56948
56949
  verificationMethod: yield initWallet.pluginMethods.keyToVerificationMethod("key", kp),
56949
- proofPurpose: "assertionMethod"
56950
+ proofPurpose: "assertionMethod",
56951
+ type: "Ed25519Signature2020"
56950
56952
  }, signingOptions);
56951
56953
  return initWallet.pluginMethods.issuePresentation(presentation, options, kp);
56952
56954
  });
@@ -57126,6 +57128,9 @@ var getEthereumPlugin = /* @__PURE__ */ __name((initWallet, config2) => {
57126
57128
  const tokenContract = new import_ethers2.ethers.Contract(tokenAddress, ERC20ABI, ethersWallet);
57127
57129
  return (yield tokenContract.transfer(toAddress, yield parseUnits(amount.toString(), tokenContract.address, defaultTokenList, yield getChainIdFromProvider(provider)))).hash;
57128
57130
  }),
57131
+ getGasPrice: () => __async(void 0, null, function* () {
57132
+ return import_ethers2.ethers.utils.formatUnits(yield provider.getGasPrice());
57133
+ }),
57129
57134
  getCurrentNetwork: () => {
57130
57135
  return network;
57131
57136
  },
@@ -60392,6 +60397,7 @@ var walletFromKey = /* @__PURE__ */ __name((_0, ..._1) => __async(void 0, [_0, .
60392
60397
  getBalance: wallet.pluginMethods.getBalance,
60393
60398
  getBalanceForAddress: wallet.pluginMethods.getBalanceForAddress,
60394
60399
  transferTokens: wallet.pluginMethods.transferTokens,
60400
+ getGasPrice: wallet.pluginMethods.getGasPrice,
60395
60401
  getCurrentNetwork: wallet.pluginMethods.getCurrentNetwork,
60396
60402
  changeNetwork: wallet.pluginMethods.changeNetwork,
60397
60403
  addInfuraProjectId: wallet.pluginMethods.addInfuraProjectId,