@cancore/contracts 0.1.0 → 0.2.0-rc.10

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 (62) hide show
  1. package/README.md +448 -10
  2. package/dist/abi.d.ts +6598 -1675
  3. package/dist/abi.js +1 -1
  4. package/dist/chunk-2ELHDMZ7.js +9911 -0
  5. package/dist/chunk-2ELHDMZ7.js.map +1 -0
  6. package/dist/{chunk-CIBYXHSX.js → chunk-IAPV7XWJ.js} +2 -2
  7. package/dist/chunk-IAPV7XWJ.js.map +1 -0
  8. package/dist/index.d.ts +1559 -29
  9. package/dist/index.js +2925 -17
  10. package/dist/index.js.map +1 -1
  11. package/dist/networks.d.ts +2 -2
  12. package/dist/networks.js +1 -1
  13. package/package.json +10 -8
  14. package/spec/abi/AttestorSet.json +476 -0
  15. package/spec/abi/CNRX.json +1294 -0
  16. package/spec/abi/CNRXStaking.json +510 -0
  17. package/spec/abi/CancoreRouter.json +2666 -0
  18. package/spec/abi/FeeVault.json +604 -0
  19. package/spec/abi/HTLC.json +717 -0
  20. package/spec/abi/IAttribute.json +110 -0
  21. package/spec/abi/IBurnMintERC20.json +252 -0
  22. package/spec/abi/ICancoreRouter.json +1361 -0
  23. package/spec/abi/IFormula.json +28 -0
  24. package/spec/abi/IHTLC.json +382 -0
  25. package/spec/abi/IPayment.json +40 -0
  26. package/spec/abi/IPermit2.json +150 -0
  27. package/spec/abi/IResolver.json +55 -0
  28. package/spec/abi/IStep.json +30 -0
  29. package/spec/abi/IVariableRole.json +141 -0
  30. package/spec/abi/MultiBalanceChecker.json +34 -0
  31. package/spec/abi/PointsClaim.json +791 -0
  32. package/spec/constants.json +66 -0
  33. package/spec/protocol/asyncapi.json +1265 -0
  34. package/spec/protocol/messages.schema.json +543 -0
  35. package/spec/protocol/records.schema.json +94 -0
  36. package/spec/protocol/rest.schema.json +134 -0
  37. package/spec/protocol/typed-data/CantonTicketReceipt.json +77 -0
  38. package/spec/protocol/typed-data/FillerAuth.json +58 -0
  39. package/spec/protocol/typed-data/FillerKeyRegistration.json +69 -0
  40. package/spec/protocol/typed-data/FillerMessage.json +115 -0
  41. package/spec/protocol/typed-data/FillerQuote.json +75 -0
  42. package/spec/protocol/typed-data/GatewayMessage.json +95 -0
  43. package/spec/protocol/typed-data/StakeBinding.json +75 -0
  44. package/spec/protocol/typed-data/TicketIntent.json +113 -0
  45. package/spec/protocol/typed-data/TicketReceipt.json +51 -0
  46. package/spec/protocol/vectors/draw.json +61 -0
  47. package/spec/protocol/vectors/jcs.json +59 -0
  48. package/spec/protocol/vectors/messages.json +550 -0
  49. package/spec/protocol/vectors/records.json +81 -0
  50. package/spec/protocol/vectors/settle-attestations.json +542 -0
  51. package/spec/typed-data/FillProof.json +227 -0
  52. package/spec/typed-data/FillTicket.json +116 -0
  53. package/spec/typed-data/Order.json +169 -0
  54. package/spec/typed-data/Quote.json +79 -0
  55. package/spec/vectors/canton-destination.json +60 -0
  56. package/spec/vectors/canton-order.json +70 -0
  57. package/spec/vectors/evm-order.json +50 -0
  58. package/spec/vectors/fee-split.json +179 -0
  59. package/spec/vectors/permit-witness.json +150 -0
  60. package/dist/chunk-CIBYXHSX.js.map +0 -1
  61. package/dist/chunk-ZSX67S72.js +0 -3423
  62. package/dist/chunk-ZSX67S72.js.map +0 -1
@@ -0,0 +1,141 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "string",
6
+ "name": "field",
7
+ "type": "string"
8
+ },
9
+ {
10
+ "internalType": "uint256",
11
+ "name": "stepIdx",
12
+ "type": "uint256"
13
+ }
14
+ ],
15
+ "name": "ExecutionOutput",
16
+ "outputs": [],
17
+ "stateMutability": "nonpayable",
18
+ "type": "function"
19
+ },
20
+ {
21
+ "inputs": [],
22
+ "name": "PaymentChain",
23
+ "outputs": [],
24
+ "stateMutability": "nonpayable",
25
+ "type": "function"
26
+ },
27
+ {
28
+ "inputs": [],
29
+ "name": "PaymentRecipient",
30
+ "outputs": [],
31
+ "stateMutability": "nonpayable",
32
+ "type": "function"
33
+ },
34
+ {
35
+ "inputs": [
36
+ {
37
+ "internalType": "bytes",
38
+ "name": "target",
39
+ "type": "bytes"
40
+ },
41
+ {
42
+ "internalType": "bytes4",
43
+ "name": "selector",
44
+ "type": "bytes4"
45
+ },
46
+ {
47
+ "internalType": "bytes[]",
48
+ "name": "arguments",
49
+ "type": "bytes[]"
50
+ },
51
+ {
52
+ "internalType": "uint256",
53
+ "name": "blockNumber",
54
+ "type": "uint256"
55
+ }
56
+ ],
57
+ "name": "Query",
58
+ "outputs": [],
59
+ "stateMutability": "nonpayable",
60
+ "type": "function"
61
+ },
62
+ {
63
+ "inputs": [
64
+ {
65
+ "internalType": "bytes",
66
+ "name": "emitter",
67
+ "type": "bytes"
68
+ },
69
+ {
70
+ "internalType": "bytes1",
71
+ "name": "topicMatch",
72
+ "type": "bytes1"
73
+ },
74
+ {
75
+ "internalType": "bytes32",
76
+ "name": "topic0",
77
+ "type": "bytes32"
78
+ },
79
+ {
80
+ "internalType": "bytes32",
81
+ "name": "topic1",
82
+ "type": "bytes32"
83
+ },
84
+ {
85
+ "internalType": "bytes32",
86
+ "name": "topic2",
87
+ "type": "bytes32"
88
+ },
89
+ {
90
+ "internalType": "bytes32",
91
+ "name": "topic3",
92
+ "type": "bytes32"
93
+ },
94
+ {
95
+ "internalType": "uint256",
96
+ "name": "blockNumber",
97
+ "type": "uint256"
98
+ }
99
+ ],
100
+ "name": "QueryEvents",
101
+ "outputs": [],
102
+ "stateMutability": "nonpayable",
103
+ "type": "function"
104
+ },
105
+ {
106
+ "inputs": [
107
+ {
108
+ "internalType": "uint256",
109
+ "name": "stepIdx",
110
+ "type": "uint256"
111
+ }
112
+ ],
113
+ "name": "StepCaller",
114
+ "outputs": [],
115
+ "stateMutability": "nonpayable",
116
+ "type": "function"
117
+ },
118
+ {
119
+ "inputs": [
120
+ {
121
+ "internalType": "string",
122
+ "name": "kind",
123
+ "type": "string"
124
+ },
125
+ {
126
+ "internalType": "bytes",
127
+ "name": "data",
128
+ "type": "bytes"
129
+ },
130
+ {
131
+ "internalType": "uint256[]",
132
+ "name": "variables",
133
+ "type": "uint256[]"
134
+ }
135
+ ],
136
+ "name": "Witness",
137
+ "outputs": [],
138
+ "stateMutability": "nonpayable",
139
+ "type": "function"
140
+ }
141
+ ]
@@ -0,0 +1,34 @@
1
+ [
2
+ {
3
+ "stateMutability": "payable",
4
+ "type": "fallback"
5
+ },
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address[]",
10
+ "name": "users",
11
+ "type": "address[]"
12
+ },
13
+ {
14
+ "internalType": "address[]",
15
+ "name": "tokens",
16
+ "type": "address[]"
17
+ }
18
+ ],
19
+ "name": "balances",
20
+ "outputs": [
21
+ {
22
+ "internalType": "uint256[]",
23
+ "name": "",
24
+ "type": "uint256[]"
25
+ }
26
+ ],
27
+ "stateMutability": "view",
28
+ "type": "function"
29
+ },
30
+ {
31
+ "stateMutability": "payable",
32
+ "type": "receive"
33
+ }
34
+ ]