@argonprotocol/mainchain 1.4.3-dev.b97b3c4f → 1.4.3-dev.caca6309

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 (41) hide show
  1. package/browser/index.d.ts +1463 -1797
  2. package/browser/index.js +1209 -118
  3. package/browser/index.js.map +1 -1
  4. package/lib/chunk-3KFMHNNJ.cjs +706 -0
  5. package/lib/chunk-3KFMHNNJ.cjs.map +1 -0
  6. package/lib/chunk-D3FCDADJ.cjs +175 -0
  7. package/lib/chunk-D3FCDADJ.cjs.map +1 -0
  8. package/lib/chunk-RF6NOJOR.js +706 -0
  9. package/lib/chunk-RF6NOJOR.js.map +1 -0
  10. package/lib/chunk-YPXWOFUS.js +175 -0
  11. package/lib/chunk-YPXWOFUS.js.map +1 -0
  12. package/lib/index.cjs +1238 -118
  13. package/lib/index.cjs.map +1 -1
  14. package/lib/index.d.cts +1463 -1797
  15. package/lib/index.d.ts +1463 -1797
  16. package/lib/index.js +1238 -118
  17. package/lib/index.js.map +1 -1
  18. package/lib/lib-CU2JUZW6.cjs +403 -0
  19. package/lib/lib-CU2JUZW6.cjs.map +1 -0
  20. package/lib/lib-P3PEMYOB.js +403 -0
  21. package/lib/lib-P3PEMYOB.js.map +1 -0
  22. package/lib/setPreset-NCTHSXWD.js +15 -0
  23. package/lib/setPreset-NCTHSXWD.js.map +1 -0
  24. package/lib/setPreset-XHOPATBO.cjs +15 -0
  25. package/lib/setPreset-XHOPATBO.cjs.map +1 -0
  26. package/package.json +31 -25
  27. package/src/interfaces/augment-api-consts.ts +603 -0
  28. package/src/interfaces/augment-api-errors.ts +1175 -0
  29. package/src/interfaces/augment-api-events.ts +1816 -0
  30. package/src/interfaces/augment-api-query.ts +1545 -0
  31. package/src/interfaces/augment-api-rpc.ts +1133 -0
  32. package/src/interfaces/augment-api-runtime.ts +332 -0
  33. package/src/interfaces/augment-api-tx.ts +2184 -0
  34. package/src/interfaces/augment-api.ts +10 -0
  35. package/src/interfaces/augment-types.ts +2688 -0
  36. package/src/interfaces/definitions.ts +57 -0
  37. package/src/interfaces/ethereum/index.ts +4 -0
  38. package/src/interfaces/ethereum/types.ts +54 -0
  39. package/src/interfaces/lookup.ts +3768 -0
  40. package/src/interfaces/registry.ts +558 -0
  41. package/src/interfaces/types-lookup.ts +4345 -0
@@ -0,0 +1,57 @@
1
+ export const ethereum = {
2
+ runtime: {
3
+ EthereumApis: [
4
+ {
5
+ methods: {
6
+ verify_event_log: {
7
+ description: 'Preflight verify an Ethereum event log proof.',
8
+ params: [
9
+ {
10
+ name: 'eventLog',
11
+ type: 'ArgonPrimitivesEthereumEthereumLog',
12
+ },
13
+ {
14
+ name: 'proof',
15
+ type: 'ArgonPrimitivesEthereumEthereumProof',
16
+ },
17
+ ],
18
+ type: 'Result<Null, ArgonPrimitivesEthereumEthereumVerifyError>',
19
+ },
20
+ },
21
+ version: 1,
22
+ },
23
+ ],
24
+ },
25
+ types: {
26
+ ArgonPrimitivesEthereumEthereumExecutionHeader: {
27
+ rlp: 'Bytes',
28
+ },
29
+ ArgonPrimitivesEthereumEthereumExecutionBlockProof: {
30
+ anchorBlockHash: 'H256',
31
+ targetToAnchorHeaderChain: 'Vec<ArgonPrimitivesEthereumEthereumExecutionHeader>',
32
+ },
33
+ ArgonPrimitivesEthereumEthereumLog: {
34
+ address: 'H160',
35
+ topics: 'Vec<H256>',
36
+ data: 'Bytes',
37
+ },
38
+ ArgonPrimitivesEthereumEthereumProof: {
39
+ executionBlockProof: 'ArgonPrimitivesEthereumEthereumExecutionBlockProof',
40
+ receiptProof: 'ArgonPrimitivesEthereumEthereumReceiptProof',
41
+ },
42
+ ArgonPrimitivesEthereumEthereumReceiptProof: {
43
+ transactionIndex: 'Compact<u64>',
44
+ nodes: 'Vec<Bytes>',
45
+ },
46
+ ArgonPrimitivesEthereumEthereumVerifyError: {
47
+ _enum: [
48
+ 'VerifierUnavailable',
49
+ 'AnchorNotFound',
50
+ 'InvalidHeader',
51
+ 'InvalidHeaderChain',
52
+ 'LogNotFound',
53
+ 'InvalidProof',
54
+ ],
55
+ },
56
+ },
57
+ };
@@ -0,0 +1,4 @@
1
+ // Auto-generated via `yarn polkadot-types-from-defs`, do not edit
2
+ /* eslint-disable */
3
+
4
+ export * from './types.js';
@@ -0,0 +1,54 @@
1
+ // Auto-generated via `yarn polkadot-types-from-defs`, do not edit
2
+ /* eslint-disable */
3
+
4
+ import type { Bytes, Compact, Enum, Struct, Vec, u64 } from '@polkadot/types-codec';
5
+ import type { H160, H256 } from '@polkadot/types/interfaces/runtime';
6
+
7
+ /** @name ArgonPrimitivesEthereumEthereumExecutionBlockProof */
8
+ export interface ArgonPrimitivesEthereumEthereumExecutionBlockProof extends Struct {
9
+ readonly anchorBlockHash: H256;
10
+ readonly targetToAnchorHeaderChain: Vec<ArgonPrimitivesEthereumEthereumExecutionHeader>;
11
+ }
12
+
13
+ /** @name ArgonPrimitivesEthereumEthereumExecutionHeader */
14
+ export interface ArgonPrimitivesEthereumEthereumExecutionHeader extends Struct {
15
+ readonly rlp: Bytes;
16
+ }
17
+
18
+ /** @name ArgonPrimitivesEthereumEthereumLog */
19
+ export interface ArgonPrimitivesEthereumEthereumLog extends Struct {
20
+ readonly address: H160;
21
+ readonly topics: Vec<H256>;
22
+ readonly data: Bytes;
23
+ }
24
+
25
+ /** @name ArgonPrimitivesEthereumEthereumProof */
26
+ export interface ArgonPrimitivesEthereumEthereumProof extends Struct {
27
+ readonly executionBlockProof: ArgonPrimitivesEthereumEthereumExecutionBlockProof;
28
+ readonly receiptProof: ArgonPrimitivesEthereumEthereumReceiptProof;
29
+ }
30
+
31
+ /** @name ArgonPrimitivesEthereumEthereumReceiptProof */
32
+ export interface ArgonPrimitivesEthereumEthereumReceiptProof extends Struct {
33
+ readonly transactionIndex: Compact<u64>;
34
+ readonly nodes: Vec<Bytes>;
35
+ }
36
+
37
+ /** @name ArgonPrimitivesEthereumEthereumVerifyError */
38
+ export interface ArgonPrimitivesEthereumEthereumVerifyError extends Enum {
39
+ readonly isVerifierUnavailable: boolean;
40
+ readonly isAnchorNotFound: boolean;
41
+ readonly isInvalidHeader: boolean;
42
+ readonly isInvalidHeaderChain: boolean;
43
+ readonly isLogNotFound: boolean;
44
+ readonly isInvalidProof: boolean;
45
+ readonly type:
46
+ | 'VerifierUnavailable'
47
+ | 'AnchorNotFound'
48
+ | 'InvalidHeader'
49
+ | 'InvalidHeaderChain'
50
+ | 'LogNotFound'
51
+ | 'InvalidProof';
52
+ }
53
+
54
+ export type PHANTOM_ETHEREUM = 'ethereum';