@learncard/core 7.0.0 → 7.0.3

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.
@@ -42117,7 +42117,7 @@ var IdentifierEntryValidator = mod.object({
42117
42117
  });
42118
42118
  var ProfileValidator = mod.string().or(mod.object({
42119
42119
  id: mod.string().optional(),
42120
- type: mod.string().array().nonempty().optional(),
42120
+ type: mod.string().or(mod.string().array().nonempty().optional()),
42121
42121
  name: mod.string().optional(),
42122
42122
  url: mod.string().optional(),
42123
42123
  phone: mod.string().optional(),
@@ -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,