@ottochain/sdk 1.0.1 → 1.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.
@@ -2,7 +2,13 @@
2
2
  "metadata": {
3
3
  "name": "Contract",
4
4
  "description": "Agreement between two agents with completion attestation and dispute resolution",
5
- "version": "1.0.0"
5
+ "version": "1.0.0",
6
+ "crossReferences": {
7
+ "proposerIdentityId": "Links to proposer's AgentIdentity fiber",
8
+ "counterpartyIdentityId": "Links to counterparty's AgentIdentity fiber",
9
+ "escrowId": "Links to Escrow if payment is escrowed",
10
+ "arbitrationPoolId": "Links to ArbitrationPool for dispute resolution"
11
+ }
6
12
  },
7
13
  "states": {
8
14
  "PROPOSED": {
@@ -51,12 +57,6 @@
51
57
  "initialState": {
52
58
  "value": "PROPOSED"
53
59
  },
54
- "crossReferences": {
55
- "proposerIdentityId": "Links to proposer's AgentIdentity fiber",
56
- "counterpartyIdentityId": "Links to counterparty's AgentIdentity fiber",
57
- "escrowId": "Links to Escrow if payment is escrowed",
58
- "arbitrationPoolId": "Links to ArbitrationPool for dispute resolution"
59
- },
60
60
  "transitions": [
61
61
  {
62
62
  "from": {
@@ -279,32 +279,6 @@
279
279
  }
280
280
  ]
281
281
  },
282
- "emits": [
283
- {
284
- "_comment": "Credit proposer's identity with completion",
285
- "target": {
286
- "var": "state.proposerIdentityId"
287
- },
288
- "event": "receive_completion",
289
- "payload": {
290
- "contractId": {
291
- "var": "fiberId"
292
- }
293
- }
294
- },
295
- {
296
- "_comment": "Credit counterparty's identity with completion",
297
- "target": {
298
- "var": "state.counterpartyIdentityId"
299
- },
300
- "event": "receive_completion",
301
- "payload": {
302
- "contractId": {
303
- "var": "fiberId"
304
- }
305
- }
306
- }
307
- ],
308
282
  "dependencies": []
309
283
  },
310
284
  {
@@ -2,7 +2,14 @@
2
2
  "metadata": {
3
3
  "name": "Escrow",
4
4
  "description": "Asset custody during multi-party transactions with conditional release",
5
- "version": "1.0.0"
5
+ "version": "1.0.0",
6
+ "crossReferences": {
7
+ "contractId": "Links to Contract SM that created this escrow",
8
+ "marketId": "Links to Market SM for market-based escrow",
9
+ "insuranceId": "Links to Insurance SM for protected escrow",
10
+ "arbitrationPoolId": "Links to ArbitrationPool for dispute resolution",
11
+ "treasuryId": "Links to Treasury for fee collection"
12
+ }
6
13
  },
7
14
  "states": {
8
15
  "CREATED": {
@@ -65,13 +72,6 @@
65
72
  "initialState": {
66
73
  "value": "CREATED"
67
74
  },
68
- "crossReferences": {
69
- "contractId": "Links to Contract SM that created this escrow",
70
- "marketId": "Links to Market SM for market-based escrow",
71
- "insuranceId": "Links to Insurance SM for protected escrow",
72
- "arbitrationPoolId": "Links to ArbitrationPool for dispute resolution",
73
- "treasuryId": "Links to Treasury for fee collection"
74
- },
75
75
  "transitions": [
76
76
  {
77
77
  "from": {
@@ -159,15 +159,6 @@
159
159
  }
160
160
  ]
161
161
  },
162
- "emits": {
163
- "target": "Contract",
164
- "event": "escrow_activated",
165
- "payload": {
166
- "escrowId": {
167
- "var": "fiberId"
168
- }
169
- }
170
- },
171
162
  "dependencies": []
172
163
  },
173
164
  {
@@ -270,23 +261,6 @@
270
261
  }
271
262
  ]
272
263
  },
273
- "emits": {
274
- "target": "Treasury",
275
- "event": "collect_fee",
276
- "payload": {
277
- "amount": {
278
- "*": [
279
- {
280
- "var": "state.balance"
281
- },
282
- {
283
- "var": "state.feePercent"
284
- }
285
- ]
286
- },
287
- "source": "escrow"
288
- }
289
- },
290
264
  "dependencies": []
291
265
  },
292
266
  {
@@ -2,7 +2,13 @@
2
2
  "metadata": {
3
3
  "name": "Contract",
4
4
  "description": "Agreement between two agents with completion attestation and dispute resolution",
5
- "version": "1.0.0"
5
+ "version": "1.0.0",
6
+ "crossReferences": {
7
+ "proposerIdentityId": "Links to proposer's AgentIdentity fiber",
8
+ "counterpartyIdentityId": "Links to counterparty's AgentIdentity fiber",
9
+ "escrowId": "Links to Escrow if payment is escrowed",
10
+ "arbitrationPoolId": "Links to ArbitrationPool for dispute resolution"
11
+ }
6
12
  },
7
13
  "states": {
8
14
  "PROPOSED": {
@@ -51,12 +57,6 @@
51
57
  "initialState": {
52
58
  "value": "PROPOSED"
53
59
  },
54
- "crossReferences": {
55
- "proposerIdentityId": "Links to proposer's AgentIdentity fiber",
56
- "counterpartyIdentityId": "Links to counterparty's AgentIdentity fiber",
57
- "escrowId": "Links to Escrow if payment is escrowed",
58
- "arbitrationPoolId": "Links to ArbitrationPool for dispute resolution"
59
- },
60
60
  "transitions": [
61
61
  {
62
62
  "from": {
@@ -279,32 +279,6 @@
279
279
  }
280
280
  ]
281
281
  },
282
- "emits": [
283
- {
284
- "_comment": "Credit proposer's identity with completion",
285
- "target": {
286
- "var": "state.proposerIdentityId"
287
- },
288
- "event": "receive_completion",
289
- "payload": {
290
- "contractId": {
291
- "var": "fiberId"
292
- }
293
- }
294
- },
295
- {
296
- "_comment": "Credit counterparty's identity with completion",
297
- "target": {
298
- "var": "state.counterpartyIdentityId"
299
- },
300
- "event": "receive_completion",
301
- "payload": {
302
- "contractId": {
303
- "var": "fiberId"
304
- }
305
- }
306
- }
307
- ],
308
282
  "dependencies": []
309
283
  },
310
284
  {
@@ -2,7 +2,14 @@
2
2
  "metadata": {
3
3
  "name": "Escrow",
4
4
  "description": "Asset custody during multi-party transactions with conditional release",
5
- "version": "1.0.0"
5
+ "version": "1.0.0",
6
+ "crossReferences": {
7
+ "contractId": "Links to Contract SM that created this escrow",
8
+ "marketId": "Links to Market SM for market-based escrow",
9
+ "insuranceId": "Links to Insurance SM for protected escrow",
10
+ "arbitrationPoolId": "Links to ArbitrationPool for dispute resolution",
11
+ "treasuryId": "Links to Treasury for fee collection"
12
+ }
6
13
  },
7
14
  "states": {
8
15
  "CREATED": {
@@ -65,13 +72,6 @@
65
72
  "initialState": {
66
73
  "value": "CREATED"
67
74
  },
68
- "crossReferences": {
69
- "contractId": "Links to Contract SM that created this escrow",
70
- "marketId": "Links to Market SM for market-based escrow",
71
- "insuranceId": "Links to Insurance SM for protected escrow",
72
- "arbitrationPoolId": "Links to ArbitrationPool for dispute resolution",
73
- "treasuryId": "Links to Treasury for fee collection"
74
- },
75
75
  "transitions": [
76
76
  {
77
77
  "from": {
@@ -159,15 +159,6 @@
159
159
  }
160
160
  ]
161
161
  },
162
- "emits": {
163
- "target": "Contract",
164
- "event": "escrow_activated",
165
- "payload": {
166
- "escrowId": {
167
- "var": "fiberId"
168
- }
169
- }
170
- },
171
162
  "dependencies": []
172
163
  },
173
164
  {
@@ -270,23 +261,6 @@
270
261
  }
271
262
  ]
272
263
  },
273
- "emits": {
274
- "target": "Treasury",
275
- "event": "collect_fee",
276
- "payload": {
277
- "amount": {
278
- "*": [
279
- {
280
- "var": "state.balance"
281
- },
282
- {
283
- "var": "state.feePercent"
284
- }
285
- ]
286
- },
287
- "source": "escrow"
288
- }
289
- },
290
264
  "dependencies": []
291
265
  },
292
266
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ottochain/sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "TypeScript SDK for ottochain metagraph operations - signing, encoding, and network interactions",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",