@zebec-network/zebec-vault-sdk 1.1.0 → 3.0.0

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/README.md CHANGED
@@ -56,7 +56,7 @@ const service = await ZebecVaultService.create(provider, network);
56
56
  const vaultKeypair = Keypair.generate();
57
57
  console.log("Vault Keypair:", vaultKeypair.publicKey.toBase58());
58
58
  const payload = await service.createVault({
59
- vaultKeypair,
59
+ vaultKeypair,
60
60
  });
61
61
 
62
62
  const signature = await payload.execute({ commitment: "finalized" });
@@ -1,3 +1,7 @@
1
- import { ZebecVault as ZebecVaultIdlV1 } from "./zebec_vault";
2
- declare const ZEBEC_VAULT_IDL_V1: ZebecVaultIdlV1;
3
- export { ZEBEC_VAULT_IDL_V1, ZebecVaultIdlV1 };
1
+ import { ZebecInstantCard as ZebecCardV2Idl } from "./zebec_instant_card";
2
+ import { ZebecStream as ZebecStreamIdl } from "./zebec_stream";
3
+ import { ZebecVault as ZebecVaultV1Idl } from "./zebec_vault";
4
+ declare const ZEBEC_VAULT_V1_IDL: ZebecVaultV1Idl;
5
+ declare const ZEBEC_CARD_V2_IDL: ZebecCardV2Idl;
6
+ declare const ZEBEC_STREAM_IDL: ZebecStreamIdl;
7
+ export { ZEBEC_CARD_V2_IDL, ZEBEC_STREAM_IDL, ZEBEC_VAULT_V1_IDL, ZebecCardV2Idl, ZebecStreamIdl, ZebecVaultV1Idl };
@@ -3,7 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ZEBEC_VAULT_IDL_V1 = void 0;
6
+ exports.ZEBEC_VAULT_V1_IDL = exports.ZEBEC_STREAM_IDL = exports.ZEBEC_CARD_V2_IDL = void 0;
7
+ const zebec_instant_card_json_1 = __importDefault(require("./zebec_instant_card.json"));
8
+ const zebec_stream_json_1 = __importDefault(require("./zebec_stream.json"));
7
9
  const zebec_vault_json_1 = __importDefault(require("./zebec_vault.json"));
8
- const ZEBEC_VAULT_IDL_V1 = zebec_vault_json_1.default;
9
- exports.ZEBEC_VAULT_IDL_V1 = ZEBEC_VAULT_IDL_V1;
10
+ const ZEBEC_VAULT_V1_IDL = zebec_vault_json_1.default;
11
+ exports.ZEBEC_VAULT_V1_IDL = ZEBEC_VAULT_V1_IDL;
12
+ const ZEBEC_CARD_V2_IDL = zebec_instant_card_json_1.default;
13
+ exports.ZEBEC_CARD_V2_IDL = ZEBEC_CARD_V2_IDL;
14
+ const ZEBEC_STREAM_IDL = zebec_stream_json_1.default;
15
+ exports.ZEBEC_STREAM_IDL = ZEBEC_STREAM_IDL;