@ar.io/sdk 1.2.1 → 2.0.0-alpha.1

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.
Files changed (48) hide show
  1. package/README.md +5 -1
  2. package/bundles/web.bundle.min.js +101 -333
  3. package/lib/cjs/common/ant.js +1 -351
  4. package/lib/cjs/common/index.js +0 -4
  5. package/lib/cjs/common/io.js +1 -1
  6. package/lib/cjs/types.js +0 -1
  7. package/lib/cjs/utils/arweave.js +1 -15
  8. package/lib/cjs/utils/graphql/index.js +0 -1
  9. package/lib/cjs/utils/index.js +0 -1
  10. package/lib/cjs/version.js +1 -1
  11. package/lib/esm/common/ant.js +2 -350
  12. package/lib/esm/common/index.js +0 -4
  13. package/lib/esm/common/io.js +1 -1
  14. package/lib/esm/types.js +0 -1
  15. package/lib/esm/utils/arweave.js +0 -12
  16. package/lib/esm/utils/graphql/index.js +0 -1
  17. package/lib/esm/utils/index.js +0 -1
  18. package/lib/esm/version.js +1 -1
  19. package/lib/types/common/ant.d.ts +1 -274
  20. package/lib/types/common/index.d.ts +0 -3
  21. package/lib/types/common.d.ts +1 -138
  22. package/lib/types/types.d.ts +0 -1
  23. package/lib/types/utils/arweave.d.ts +0 -5
  24. package/lib/types/utils/graphql/index.d.ts +0 -1
  25. package/lib/types/utils/index.d.ts +0 -1
  26. package/lib/types/version.d.ts +1 -1
  27. package/package.json +5 -10
  28. package/lib/cjs/arns-service.js +0 -2
  29. package/lib/cjs/common/ar-io.js +0 -741
  30. package/lib/cjs/common/contracts/remote-contract.js +0 -55
  31. package/lib/cjs/common/contracts/warp-contract.js +0 -176
  32. package/lib/cjs/common/warp.js +0 -25
  33. package/lib/cjs/utils/graphql/smartweave.js +0 -309
  34. package/lib/cjs/utils/smartweave.js +0 -58
  35. package/lib/esm/arns-service.js +0 -1
  36. package/lib/esm/common/ar-io.js +0 -735
  37. package/lib/esm/common/contracts/remote-contract.js +0 -51
  38. package/lib/esm/common/contracts/warp-contract.js +0 -172
  39. package/lib/esm/common/warp.js +0 -22
  40. package/lib/esm/utils/graphql/smartweave.js +0 -303
  41. package/lib/esm/utils/smartweave.js +0 -50
  42. package/lib/types/arns-service.d.ts +0 -23
  43. package/lib/types/common/ar-io.d.ts +0 -551
  44. package/lib/types/common/contracts/remote-contract.d.ts +0 -38
  45. package/lib/types/common/contracts/warp-contract.d.ts +0 -43
  46. package/lib/types/common/warp.d.ts +0 -1
  47. package/lib/types/utils/graphql/smartweave.d.ts +0 -47
  48. package/lib/types/utils/smartweave.d.ts +0 -41
@@ -1,41 +0,0 @@
1
- /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc. All Rights Reserved.
3
- *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
- */
17
- import Arweave from 'arweave';
18
- import { EvaluationManifest } from 'warp-contracts';
19
- import { RemoteContract, WarpContract } from '../common/index.js';
20
- import { SortKey } from '../types.js';
21
- export declare function isSortKey(sortKey: string): sortKey is SortKey;
22
- export declare class SmartWeaveSortKey {
23
- private _sortKey;
24
- constructor(sortKey: string);
25
- static validate(sortKey: string): boolean;
26
- toString(): string;
27
- parts(): string[];
28
- blockHeight(): number;
29
- timestamp(): number;
30
- hash(): string;
31
- }
32
- export declare function getContractManifest({ arweave, contractTxId, }: {
33
- arweave: Arweave;
34
- contractTxId: string;
35
- }): Promise<EvaluationManifest>;
36
- export declare function isContractConfiguration<T>(config: object): config is {
37
- contract: WarpContract<T> | RemoteContract<T>;
38
- };
39
- export declare function isContractTxIdConfiguration(config: object): config is {
40
- contractTxId: string;
41
- };