- 5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY
+ vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz
- 5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY
+ vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz
- 5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY
+ vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz
- 5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY
+ vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz
+ >
+ vQx5kESPn8dWyX4KxMCKqUyCaWUwtui1isX6PVNcZh2Ghjitr
+
}
placement="top"
trigger={
@@ -27,6 +30,7 @@ exports[`RequesterOrLegalOfficer renders LO in charge for User 1`] = `
+ vQx5kESPn8dWyX4KxMCKqUyCaWUwtui1isX6PVNcZh2Ghjitr
@@ -77,10 +81,10 @@ exports[`RequesterOrLegalOfficer renders polkadot requester for LO 1`] = `
delay={500}
overlay={
- 5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY
+ vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz
}
placement="top"
@@ -95,7 +99,7 @@ exports[`RequesterOrLegalOfficer renders polkadot requester for LO 1`] = `
- 5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY
+ vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz
diff --git a/src/loc/__snapshots__/TemplateItemActions.test.tsx.snap b/src/loc/__snapshots__/TemplateItemActions.test.tsx.snap
index 94fad7b1..c0f98826 100644
--- a/src/loc/__snapshots__/TemplateItemActions.test.tsx.snap
+++ b/src/loc/__snapshots__/TemplateItemActions.test.tsx.snap
@@ -63,11 +63,11 @@ exports[`TemplateItemActions Links are read-only for issuer when acknowledged 1`
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "ACKNOWLEDGED",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -136,11 +136,11 @@ exports[`TemplateItemActions Links are read-only for issuer when acknowledged 1`
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "ACKNOWLEDGED",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -225,11 +225,11 @@ exports[`TemplateItemActions Links are read-only for owner when acknowledged 1`]
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "ACKNOWLEDGED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -298,11 +298,11 @@ exports[`TemplateItemActions Links are read-only for owner when acknowledged 1`]
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "ACKNOWLEDGED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -387,11 +387,11 @@ exports[`TemplateItemActions Links are read-only for requester when published 1`
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "PUBLISHED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -460,11 +460,11 @@ exports[`TemplateItemActions Links are read-only for requester when published 1`
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "PUBLISHED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -551,11 +551,11 @@ exports[`TemplateItemActions Links can be acknowledged by issuer when published
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "PUBLISHED",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -624,11 +624,11 @@ exports[`TemplateItemActions Links can be acknowledged by issuer when published
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "PUBLISHED",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -704,11 +704,11 @@ exports[`TemplateItemActions Links can be acknowledged by owner when published 1
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "PUBLISHED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -777,11 +777,11 @@ exports[`TemplateItemActions Links can be acknowledged by owner when published 1
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "PUBLISHED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -857,11 +857,11 @@ exports[`TemplateItemActions Links can be published by requester when approved 1
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_ACCEPTED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -930,11 +930,11 @@ exports[`TemplateItemActions Links can be published by requester when approved 1
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_ACCEPTED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -1010,11 +1010,11 @@ exports[`TemplateItemActions Links can be published by requester when approved a
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_ACCEPTED",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -1083,11 +1083,11 @@ exports[`TemplateItemActions Links can be published by requester when approved a
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_ACCEPTED",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -1160,11 +1160,11 @@ exports[`TemplateItemActions Links can be reviewed by owner when submitted 1`] =
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_PENDING",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -1232,11 +1232,11 @@ exports[`TemplateItemActions Links can be reviewed by owner when submitted 1`] =
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_PENDING",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -1305,11 +1305,11 @@ exports[`TemplateItemActions Links can be reviewed by owner when submitted 1`] =
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_PENDING",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -1471,11 +1471,11 @@ exports[`TemplateItemActions Links can be submitted for review or cleared by iss
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "DRAFT",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -1541,11 +1541,11 @@ exports[`TemplateItemActions Links can be submitted for review or cleared by iss
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "DRAFT",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -1613,11 +1613,11 @@ exports[`TemplateItemActions Links can be submitted for review or cleared by iss
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "DRAFT",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -1698,11 +1698,11 @@ exports[`TemplateItemActions Links can be submitted for review or cleared by req
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "DRAFT",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -1768,11 +1768,11 @@ exports[`TemplateItemActions Links can be submitted for review or cleared by req
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "DRAFT",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -1840,11 +1840,11 @@ exports[`TemplateItemActions Links can be submitted for review or cleared by req
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "DRAFT",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -1957,11 +1957,11 @@ exports[`TemplateItemActions Private files are read-only for issuer when acknowl
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "ACKNOWLEDGED",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -2067,11 +2067,11 @@ exports[`TemplateItemActions Private files are read-only for issuer when acknowl
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "ACKNOWLEDGED",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -2193,11 +2193,11 @@ exports[`TemplateItemActions Private files are read-only for owner when acknowle
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "ACKNOWLEDGED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -2303,11 +2303,11 @@ exports[`TemplateItemActions Private files are read-only for owner when acknowle
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "ACKNOWLEDGED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -2429,11 +2429,11 @@ exports[`TemplateItemActions Private files are read-only for requester when publ
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "PUBLISHED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -2539,11 +2539,11 @@ exports[`TemplateItemActions Private files are read-only for requester when publ
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "PUBLISHED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -2667,11 +2667,11 @@ exports[`TemplateItemActions Private files can be acknowledged by issuer when pu
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "PUBLISHED",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -2777,11 +2777,11 @@ exports[`TemplateItemActions Private files can be acknowledged by issuer when pu
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "PUBLISHED",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -2894,11 +2894,11 @@ exports[`TemplateItemActions Private files can be acknowledged by owner when pub
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "PUBLISHED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -3004,11 +3004,11 @@ exports[`TemplateItemActions Private files can be acknowledged by owner when pub
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "PUBLISHED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -3121,11 +3121,11 @@ exports[`TemplateItemActions Private files can be published by requester when ap
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_ACCEPTED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -3231,11 +3231,11 @@ exports[`TemplateItemActions Private files can be published by requester when ap
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_ACCEPTED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -3348,11 +3348,11 @@ exports[`TemplateItemActions Private files can be published by requester when ap
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_ACCEPTED",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -3458,11 +3458,11 @@ exports[`TemplateItemActions Private files can be published by requester when ap
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_ACCEPTED",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -3572,11 +3572,11 @@ exports[`TemplateItemActions Private files can be reviewed by owner when submitt
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_PENDING",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -3681,11 +3681,11 @@ exports[`TemplateItemActions Private files can be reviewed by owner when submitt
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_PENDING",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -3791,11 +3791,11 @@ exports[`TemplateItemActions Private files can be reviewed by owner when submitt
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_PENDING",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -3994,11 +3994,11 @@ exports[`TemplateItemActions Private files can be submitted for review or cleare
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "DRAFT",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -4101,11 +4101,11 @@ exports[`TemplateItemActions Private files can be submitted for review or cleare
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "DRAFT",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -4210,11 +4210,11 @@ exports[`TemplateItemActions Private files can be submitted for review or cleare
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "DRAFT",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -4332,11 +4332,11 @@ exports[`TemplateItemActions Private files can be submitted for review or cleare
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "DRAFT",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -4439,11 +4439,11 @@ exports[`TemplateItemActions Private files can be submitted for review or cleare
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "DRAFT",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -4548,11 +4548,11 @@ exports[`TemplateItemActions Private files can be submitted for review or cleare
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "DRAFT",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -4665,11 +4665,11 @@ exports[`TemplateItemActions Public data are read-only for issuer when acknowled
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "ACKNOWLEDGED",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -4775,11 +4775,11 @@ exports[`TemplateItemActions Public data are read-only for issuer when acknowled
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "ACKNOWLEDGED",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -4901,11 +4901,11 @@ exports[`TemplateItemActions Public data are read-only for owner when acknowledg
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "ACKNOWLEDGED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -5011,11 +5011,11 @@ exports[`TemplateItemActions Public data are read-only for owner when acknowledg
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "ACKNOWLEDGED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -5137,11 +5137,11 @@ exports[`TemplateItemActions Public data are read-only for requester when publis
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "PUBLISHED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -5247,11 +5247,11 @@ exports[`TemplateItemActions Public data are read-only for requester when publis
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "PUBLISHED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -5375,11 +5375,11 @@ exports[`TemplateItemActions Public data can be acknowledged by issuer when publ
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "PUBLISHED",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -5485,11 +5485,11 @@ exports[`TemplateItemActions Public data can be acknowledged by issuer when publ
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "PUBLISHED",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -5602,11 +5602,11 @@ exports[`TemplateItemActions Public data can be acknowledged by owner when publi
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "PUBLISHED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -5712,11 +5712,11 @@ exports[`TemplateItemActions Public data can be acknowledged by owner when publi
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "PUBLISHED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -5829,11 +5829,11 @@ exports[`TemplateItemActions Public data can be published by requester when appr
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_ACCEPTED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -5939,11 +5939,11 @@ exports[`TemplateItemActions Public data can be published by requester when appr
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_ACCEPTED",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -6056,11 +6056,11 @@ exports[`TemplateItemActions Public data can be published by requester when appr
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_ACCEPTED",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -6166,11 +6166,11 @@ exports[`TemplateItemActions Public data can be published by requester when appr
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_ACCEPTED",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -6280,11 +6280,11 @@ exports[`TemplateItemActions Public data can be reviewed by owner when submitted
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_PENDING",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -6389,11 +6389,11 @@ exports[`TemplateItemActions Public data can be reviewed by owner when submitted
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_PENDING",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -6499,11 +6499,11 @@ exports[`TemplateItemActions Public data can be reviewed by owner when submitted
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "REVIEW_PENDING",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -6702,11 +6702,11 @@ exports[`TemplateItemActions Public data can be submitted for review or cleared
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "DRAFT",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -6809,11 +6809,11 @@ exports[`TemplateItemActions Public data can be submitted for review or cleared
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "DRAFT",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -6918,11 +6918,11 @@ exports[`TemplateItemActions Public data can be submitted for review or cleared
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "DRAFT",
- "submitter": Object {
- "address": "5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQuQm7K3Qt1nQYDzqQzCPQj6b4AQFPZgD5FLnEpBTvCx1rVix",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -7040,11 +7040,11 @@ exports[`TemplateItemActions Public data can be submitted for review or cleared
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "DRAFT",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -7147,11 +7147,11 @@ exports[`TemplateItemActions Public data can be submitted for review or cleared
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "DRAFT",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
@@ -7256,11 +7256,11 @@ exports[`TemplateItemActions Public data can be submitted for review or cleared
"rejectReason": undefined,
"reviewedOn": undefined,
"status": "DRAFT",
- "submitter": Object {
- "address": "5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "submitter": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQxHAE33LeJYV69GCB4o4YcCgnDu8y99u5hy2751fRdxjX9kz",
+ "type": "Polkadot",
+ },
},
"template": true,
"timestamp": null,
diff --git a/src/loc/__snapshots__/UserContextualizedLocDetails.test.tsx.snap b/src/loc/__snapshots__/UserContextualizedLocDetails.test.tsx.snap
index bce9a1b9..60016edd 100644
--- a/src/loc/__snapshots__/UserContextualizedLocDetails.test.tsx.snap
+++ b/src/loc/__snapshots__/UserContextualizedLocDetails.test.tsx.snap
@@ -48,12 +48,17 @@ exports[`UserContextualizedLocDetails renders for requester 1`] = `
"links": Array [],
"locType": "Identity",
"metadata": Array [],
- "ownerAddress": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
- "requesterAddress": Object {
- "address": "5Ew3MyB15VprZrjQVkpQFj8okmc9xLDSEdNhqMMS5cXsqxoW",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "ownerAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQx5kESPn8dWyX4KxMCKqUyCaWUwtui1isX6PVNcZh2Ghjitr",
+ "type": "Polkadot",
+ },
+ },
+ "requesterAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQv9qfqLY88pF4poNh6XpvUpxC9MAdcwLjVma8LMcyMYFff5h",
+ "type": "Polkadot",
+ },
},
"requesterLocId": undefined,
"status": "OPEN",
@@ -70,8 +75,13 @@ exports[`UserContextualizedLocDetails renders for requester 1`] = `
contributionMode="Requester"
legalOfficer={
Object {
+ "account": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQx5kESPn8dWyX4KxMCKqUyCaWUwtui1isX6PVNcZh2Ghjitr",
+ "type": "Polkadot",
+ },
+ },
"additionalDetails": "",
- "address": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
"name": "Patrick Gielen",
"node": "http://logion.patrick.com",
"nodeId": "",
@@ -137,12 +147,17 @@ exports[`UserContextualizedLocDetails renders for requester 1`] = `
"links": Array [],
"locType": "Identity",
"metadata": Array [],
- "ownerAddress": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
- "requesterAddress": Object {
- "address": "5Ew3MyB15VprZrjQVkpQFj8okmc9xLDSEdNhqMMS5cXsqxoW",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "ownerAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQx5kESPn8dWyX4KxMCKqUyCaWUwtui1isX6PVNcZh2Ghjitr",
+ "type": "Polkadot",
+ },
+ },
+ "requesterAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQv9qfqLY88pF4poNh6XpvUpxC9MAdcwLjVma8LMcyMYFff5h",
+ "type": "Polkadot",
+ },
},
"requesterLocId": undefined,
"status": "OPEN",
@@ -199,12 +214,17 @@ exports[`UserContextualizedLocDetails renders for requester 1`] = `
"links": Array [],
"locType": "Identity",
"metadata": Array [],
- "ownerAddress": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
- "requesterAddress": Object {
- "address": "5Ew3MyB15VprZrjQVkpQFj8okmc9xLDSEdNhqMMS5cXsqxoW",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "ownerAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQx5kESPn8dWyX4KxMCKqUyCaWUwtui1isX6PVNcZh2Ghjitr",
+ "type": "Polkadot",
+ },
+ },
+ "requesterAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQv9qfqLY88pF4poNh6XpvUpxC9MAdcwLjVma8LMcyMYFff5h",
+ "type": "Polkadot",
+ },
},
"requesterLocId": undefined,
"status": "OPEN",
@@ -260,12 +280,17 @@ exports[`UserContextualizedLocDetails renders for requester 1`] = `
"links": Array [],
"locType": "Identity",
"metadata": Array [],
- "ownerAddress": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
- "requesterAddress": Object {
- "address": "5Ew3MyB15VprZrjQVkpQFj8okmc9xLDSEdNhqMMS5cXsqxoW",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "ownerAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQx5kESPn8dWyX4KxMCKqUyCaWUwtui1isX6PVNcZh2Ghjitr",
+ "type": "Polkadot",
+ },
+ },
+ "requesterAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQv9qfqLY88pF4poNh6XpvUpxC9MAdcwLjVma8LMcyMYFff5h",
+ "type": "Polkadot",
+ },
},
"requesterLocId": undefined,
"status": "OPEN",
@@ -320,12 +345,17 @@ exports[`UserContextualizedLocDetails renders for requester 1`] = `
"links": Array [],
"locType": "Identity",
"metadata": Array [],
- "ownerAddress": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
- "requesterAddress": Object {
- "address": "5Ew3MyB15VprZrjQVkpQFj8okmc9xLDSEdNhqMMS5cXsqxoW",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "ownerAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQx5kESPn8dWyX4KxMCKqUyCaWUwtui1isX6PVNcZh2Ghjitr",
+ "type": "Polkadot",
+ },
+ },
+ "requesterAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQv9qfqLY88pF4poNh6XpvUpxC9MAdcwLjVma8LMcyMYFff5h",
+ "type": "Polkadot",
+ },
},
"requesterLocId": undefined,
"status": "OPEN",
@@ -390,12 +420,17 @@ exports[`UserContextualizedLocDetails renders for verified issuer 1`] = `
"links": Array [],
"locType": "Identity",
"metadata": Array [],
- "ownerAddress": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
- "requesterAddress": Object {
- "address": "5Ew3MyB15VprZrjQVkpQFj8okmc9xLDSEdNhqMMS5cXsqxoW",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "ownerAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQx5kESPn8dWyX4KxMCKqUyCaWUwtui1isX6PVNcZh2Ghjitr",
+ "type": "Polkadot",
+ },
+ },
+ "requesterAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQv9qfqLY88pF4poNh6XpvUpxC9MAdcwLjVma8LMcyMYFff5h",
+ "type": "Polkadot",
+ },
},
"requesterLocId": undefined,
"status": "OPEN",
@@ -413,8 +448,13 @@ exports[`UserContextualizedLocDetails renders for verified issuer 1`] = `
contributionMode="VerifiedIssuer"
legalOfficer={
Object {
+ "account": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQx5kESPn8dWyX4KxMCKqUyCaWUwtui1isX6PVNcZh2Ghjitr",
+ "type": "Polkadot",
+ },
+ },
"additionalDetails": "",
- "address": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
"name": "Patrick Gielen",
"node": "http://logion.patrick.com",
"nodeId": "",
@@ -480,12 +520,17 @@ exports[`UserContextualizedLocDetails renders for verified issuer 1`] = `
"links": Array [],
"locType": "Identity",
"metadata": Array [],
- "ownerAddress": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
- "requesterAddress": Object {
- "address": "5Ew3MyB15VprZrjQVkpQFj8okmc9xLDSEdNhqMMS5cXsqxoW",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "ownerAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQx5kESPn8dWyX4KxMCKqUyCaWUwtui1isX6PVNcZh2Ghjitr",
+ "type": "Polkadot",
+ },
+ },
+ "requesterAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQv9qfqLY88pF4poNh6XpvUpxC9MAdcwLjVma8LMcyMYFff5h",
+ "type": "Polkadot",
+ },
},
"requesterLocId": undefined,
"status": "OPEN",
@@ -542,12 +587,17 @@ exports[`UserContextualizedLocDetails renders for verified issuer 1`] = `
"links": Array [],
"locType": "Identity",
"metadata": Array [],
- "ownerAddress": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
- "requesterAddress": Object {
- "address": "5Ew3MyB15VprZrjQVkpQFj8okmc9xLDSEdNhqMMS5cXsqxoW",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "ownerAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQx5kESPn8dWyX4KxMCKqUyCaWUwtui1isX6PVNcZh2Ghjitr",
+ "type": "Polkadot",
+ },
+ },
+ "requesterAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQv9qfqLY88pF4poNh6XpvUpxC9MAdcwLjVma8LMcyMYFff5h",
+ "type": "Polkadot",
+ },
},
"requesterLocId": undefined,
"status": "OPEN",
@@ -603,12 +653,17 @@ exports[`UserContextualizedLocDetails renders for verified issuer 1`] = `
"links": Array [],
"locType": "Identity",
"metadata": Array [],
- "ownerAddress": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
- "requesterAddress": Object {
- "address": "5Ew3MyB15VprZrjQVkpQFj8okmc9xLDSEdNhqMMS5cXsqxoW",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "ownerAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQx5kESPn8dWyX4KxMCKqUyCaWUwtui1isX6PVNcZh2Ghjitr",
+ "type": "Polkadot",
+ },
+ },
+ "requesterAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQv9qfqLY88pF4poNh6XpvUpxC9MAdcwLjVma8LMcyMYFff5h",
+ "type": "Polkadot",
+ },
},
"requesterLocId": undefined,
"status": "OPEN",
@@ -663,12 +718,17 @@ exports[`UserContextualizedLocDetails renders for verified issuer 1`] = `
"links": Array [],
"locType": "Identity",
"metadata": Array [],
- "ownerAddress": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
- "requesterAddress": Object {
- "address": "5Ew3MyB15VprZrjQVkpQFj8okmc9xLDSEdNhqMMS5cXsqxoW",
- "equals": [Function],
- "toKey": [Function],
- "type": "Polkadot",
+ "ownerAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQx5kESPn8dWyX4KxMCKqUyCaWUwtui1isX6PVNcZh2Ghjitr",
+ "type": "Polkadot",
+ },
+ },
+ "requesterAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQv9qfqLY88pF4poNh6XpvUpxC9MAdcwLjVma8LMcyMYFff5h",
+ "type": "Polkadot",
+ },
},
"requesterLocId": undefined,
"status": "OPEN",
diff --git a/src/loc/archive/ArchiveButton.tsx b/src/loc/archive/ArchiveButton.tsx
index 9b40c1ca..10f48eef 100644
--- a/src/loc/archive/ArchiveButton.tsx
+++ b/src/loc/archive/ArchiveButton.tsx
@@ -69,7 +69,7 @@ export default function ArchiveButton() {
id: "submit",
callback: () => openFiles({
files,
- nodeOwner: locData.ownerAddress,
+ nodeOwner: locData.ownerAccountId,
axiosFactory
}),
buttonText: 'Download',
diff --git a/src/loc/dashboard/CompletedLocs.test.tsx b/src/loc/dashboard/CompletedLocs.test.tsx
index 213bffbf..833e6cf8 100644
--- a/src/loc/dashboard/CompletedLocs.test.tsx
+++ b/src/loc/dashboard/CompletedLocs.test.tsx
@@ -1,3 +1,4 @@
+import { ValidAccountId } from "@logion/node-api";
import { shallowRender } from "src/tests";
import CompletedLocs from "./CompletedLocs";
import { LocRequestState, LocRequestStatus } from "@logion/client";
@@ -13,12 +14,12 @@ describe("CompletedLocs", () => {
setViewer("User");
const locs = [
mockLoc({
- ownerAddress: PATRICK.address,
+ ownerAccountId: PATRICK.account,
closedOn: DateTime.fromISO("2024-03-19T16:00:00Z", {zone: 'utc'}),
status: "CLOSED",
}),
mockLoc({
- ownerAddress: PATRICK.address,
+ ownerAccountId: PATRICK.account,
closedOn: DateTime.fromISO("2024-03-19T16:00:00Z", {zone: 'utc'}),
status: "OPEN",
voidInfo: {},
@@ -49,7 +50,7 @@ describe("CompletedLocs", () => {
});
function mockLoc(args: {
- ownerAddress?: string,
+ ownerAccountId?: ValidAccountId,
userIdentity?: object,
status: LocRequestStatus,
closedOn: DateTime,
diff --git a/src/loc/dashboard/CompletedLocs.tsx b/src/loc/dashboard/CompletedLocs.tsx
index 7930955a..793b27e2 100644
--- a/src/loc/dashboard/CompletedLocs.tsx
+++ b/src/loc/dashboard/CompletedLocs.tsx
@@ -24,7 +24,7 @@ export default function CompletedLocs(props: Props) {
if(viewer === "User") {
result.push({
header: "Legal officer",
- render: locData =>
,
+ render: locData =>
,
align: 'left',
});
} else {
diff --git a/src/loc/dashboard/WaitingLocs.test.tsx b/src/loc/dashboard/WaitingLocs.test.tsx
index 575776e1..f3fca4dd 100644
--- a/src/loc/dashboard/WaitingLocs.test.tsx
+++ b/src/loc/dashboard/WaitingLocs.test.tsx
@@ -1,6 +1,7 @@
import { shallowRender } from "src/tests";
import WaitingLocs from "./WaitingLocs";
import { LocRequestState, LocRequestStatus } from "@logion/client";
+import { ValidAccountId } from "@logion/node-api";
import { DateTime } from "luxon";
import { PATRICK } from "src/common/TestData";
import { setViewer } from "src/common/__mocks__/CommonContextMock";
@@ -13,7 +14,7 @@ describe("WaitingLocs", () => {
setViewer("User");
const locs = [
mockLoc({
- ownerAddress: PATRICK.address,
+ ownerAccountId: PATRICK.account,
createdOn: DateTime.fromISO("2024-03-19T16:00:00Z", {zone: 'utc'}),
status: "REVIEW_PENDING",
}),
@@ -37,7 +38,7 @@ describe("WaitingLocs", () => {
});
function mockLoc(args: {
- ownerAddress?: string,
+ ownerAccountId?: ValidAccountId,
userIdentity?: object,
status: LocRequestStatus,
createdOn: DateTime,
diff --git a/src/loc/dashboard/WaitingLocs.tsx b/src/loc/dashboard/WaitingLocs.tsx
index 3a207a42..4a6ba585 100644
--- a/src/loc/dashboard/WaitingLocs.tsx
+++ b/src/loc/dashboard/WaitingLocs.tsx
@@ -24,7 +24,7 @@ export default function WaitingLocs(props: Props) {
if(viewer === "User") {
result.push({
header: "Legal officer",
- render: locData =>
,
+ render: locData =>
,
align: 'left',
});
} else {
diff --git a/src/loc/dashboard/WorkInProgress.test.tsx b/src/loc/dashboard/WorkInProgress.test.tsx
index 16de44e7..5c09cebe 100644
--- a/src/loc/dashboard/WorkInProgress.test.tsx
+++ b/src/loc/dashboard/WorkInProgress.test.tsx
@@ -1,6 +1,7 @@
import { shallowRender } from "src/tests";
import WorkInProgressLocs from "./WorkInProgressLocs";
import { LocRequestState, LocRequestStatus } from "@logion/client";
+import { ValidAccountId } from "@logion/node-api";
import { DateTime } from "luxon";
import { PATRICK } from "src/common/TestData";
import { setViewer } from "src/common/__mocks__/CommonContextMock";
@@ -13,7 +14,7 @@ describe("WorkInProgressLocs", () => {
setViewer("User");
const locs = [
mockLoc({
- ownerAddress: PATRICK.address,
+ ownerAccountId: PATRICK.account,
createdOn: DateTime.fromISO("2024-03-19T16:00:00Z", {zone: 'utc'}),
status: "REVIEW_PENDING",
}),
@@ -37,7 +38,7 @@ describe("WorkInProgressLocs", () => {
});
function mockLoc(args: {
- ownerAddress?: string,
+ ownerAccountId?: ValidAccountId,
userIdentity?: object,
status: LocRequestStatus,
createdOn: DateTime,
diff --git a/src/loc/dashboard/WorkInProgressLocs.tsx b/src/loc/dashboard/WorkInProgressLocs.tsx
index a9190135..98efb45a 100644
--- a/src/loc/dashboard/WorkInProgressLocs.tsx
+++ b/src/loc/dashboard/WorkInProgressLocs.tsx
@@ -25,7 +25,7 @@ export default function WorkInProgressLocs(props: Props) {
if(viewer === "User") {
result.push({
header: "Legal officer",
- render: locData =>
,
+ render: locData =>
,
renderDetails: locData =>
,
align: 'left',
});
diff --git a/src/loc/dashboard/__snapshots__/CompletedLocs.test.tsx.snap b/src/loc/dashboard/__snapshots__/CompletedLocs.test.tsx.snap
index 47acc2e6..a4ae870b 100644
--- a/src/loc/dashboard/__snapshots__/CompletedLocs.test.tsx.snap
+++ b/src/loc/dashboard/__snapshots__/CompletedLocs.test.tsx.snap
@@ -85,12 +85,22 @@ exports[`CompletedLocs renders for user 1`] = `
Array [
Object {
"closedOn": "2024-03-19T16:00:00.000Z",
- "ownerAddress": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
+ "ownerAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQx5kESPn8dWyX4KxMCKqUyCaWUwtui1isX6PVNcZh2Ghjitr",
+ "type": "Polkadot",
+ },
+ },
"status": "CLOSED",
},
Object {
"closedOn": "2024-03-19T16:00:00.000Z",
- "ownerAddress": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
+ "ownerAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQx5kESPn8dWyX4KxMCKqUyCaWUwtui1isX6PVNcZh2Ghjitr",
+ "type": "Polkadot",
+ },
+ },
"status": "OPEN",
"voidInfo": Object {},
},
diff --git a/src/loc/dashboard/__snapshots__/WaitingLocs.test.tsx.snap b/src/loc/dashboard/__snapshots__/WaitingLocs.test.tsx.snap
index c9017ee9..51ad4a3c 100644
--- a/src/loc/dashboard/__snapshots__/WaitingLocs.test.tsx.snap
+++ b/src/loc/dashboard/__snapshots__/WaitingLocs.test.tsx.snap
@@ -79,7 +79,12 @@ exports[`WaitingLocs renders for user 1`] = `
Array [
Object {
"createdOn": "2024-03-19T16:00:00.000Z",
- "ownerAddress": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
+ "ownerAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQx5kESPn8dWyX4KxMCKqUyCaWUwtui1isX6PVNcZh2Ghjitr",
+ "type": "Polkadot",
+ },
+ },
"status": "REVIEW_PENDING",
},
]
diff --git a/src/loc/dashboard/__snapshots__/WorkInProgress.test.tsx.snap b/src/loc/dashboard/__snapshots__/WorkInProgress.test.tsx.snap
index fc1221e4..065d99f6 100644
--- a/src/loc/dashboard/__snapshots__/WorkInProgress.test.tsx.snap
+++ b/src/loc/dashboard/__snapshots__/WorkInProgress.test.tsx.snap
@@ -80,7 +80,12 @@ exports[`WorkInProgressLocs renders for user 1`] = `
Array [
Object {
"createdOn": "2024-03-19T16:00:00.000Z",
- "ownerAddress": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
+ "ownerAccountId": ValidAccountId {
+ "anyAccountId": AnyAccountId {
+ "address": "vQx5kESPn8dWyX4KxMCKqUyCaWUwtui1isX6PVNcZh2Ghjitr",
+ "type": "Polkadot",
+ },
+ },
"status": "REVIEW_PENDING",
},
]
diff --git a/src/loc/fees/EstimatedFees.tsx b/src/loc/fees/EstimatedFees.tsx
index 2b0504f7..4bbf6dc8 100644
--- a/src/loc/fees/EstimatedFees.tsx
+++ b/src/loc/fees/EstimatedFees.tsx
@@ -151,7 +151,7 @@ export const PAID_BY_SPONSOR = "paid by sponsor";
export const PAID_BY_LEGAL_OFFICER = "paid by legal officer";
export function geInclusionFeePaidBy(loc: LocData, item: LocItem) {
- return item.submitter?.type === "Polkadot" && item.submitter?.address === loc.ownerAddress ? PAID_BY_LEGAL_OFFICER : PAID_BY_SUBMITTER;
+ return item.submitter?.type === "Polkadot" && item.submitter?.equals(loc.ownerAccountId) ? PAID_BY_LEGAL_OFFICER : PAID_BY_SUBMITTER;
}
export const PAID_BY_SUBMITTER = "paid by submitter";
diff --git a/src/loc/invited-contributor/InvitedContributorsFrame.test.tsx b/src/loc/invited-contributor/InvitedContributorsFrame.test.tsx
index 6ce952a3..77b0f553 100644
--- a/src/loc/invited-contributor/InvitedContributorsFrame.test.tsx
+++ b/src/loc/invited-contributor/InvitedContributorsFrame.test.tsx
@@ -2,7 +2,6 @@ import { setLocState } from "../__mocks__/LocContextMock";
import { waitFor, screen, render } from "@testing-library/react";
import { OpenLoc } from "../../__mocks__/LogionClientMock";
import InvitedContributorsFrame from "./InvitedContributorsFrame";
-import { mockValidAccountId } from "../../__mocks__/LogionMock";
import { ValidAccountId } from "@logion/node-api";
jest.mock("../LocContext");
@@ -25,8 +24,8 @@ describe("InvitedContributorsFrame", () => {
it("renders 2 rows", async () => {
const invitedContributors = [
- mockValidAccountId("5EnzoqHHGgQ9CEsZtWGYEAf6fdhW9tctgkGctbDEcKN8JCbV", "Polkadot"),
- mockValidAccountId("5FEiK5Kwu3cCiTuy4sv4k3rEdPc7dt1KHyLbGAHNnYgXkqps", "Polkadot")
+ ValidAccountId.polkadot("5EnzoqHHGgQ9CEsZtWGYEAf6fdhW9tctgkGctbDEcKN8JCbV"),
+ ValidAccountId.polkadot("5FEiK5Kwu3cCiTuy4sv4k3rEdPc7dt1KHyLbGAHNnYgXkqps"),
];
setupInvitedContributors(invitedContributors);
render(
);
diff --git a/src/loc/issuer/IssuerSelectionCheckbox.test.tsx b/src/loc/issuer/IssuerSelectionCheckbox.test.tsx
index eb45e3f0..6e5e9e3a 100644
--- a/src/loc/issuer/IssuerSelectionCheckbox.test.tsx
+++ b/src/loc/issuer/IssuerSelectionCheckbox.test.tsx
@@ -3,6 +3,7 @@ import IssuerSelectionCheckbox from "./IssuerSelectionCheckbox";
import { clickByName, expectNoDialogVisible } from "../../tests";
import userEvent from "@testing-library/user-event";
import { VerifiedIssuerWithSelect } from "@logion/client";
+import { TEST_WALLET_USER } from "src/wallet-user/TestData";
jest.mock("../LocContext");
jest.mock("../../logion-chain");
@@ -14,7 +15,7 @@ describe("IssuerSelectionCheckbox", () => {
firstName: "Scott",
lastName: "Tiger",
identityLocId: "123",
- address: "address-123",
+ account: TEST_WALLET_USER,
selected,
}
}
diff --git a/src/loc/issuer/IssuerSelectionCheckbox.tsx b/src/loc/issuer/IssuerSelectionCheckbox.tsx
index 9e06b7db..67b360f5 100644
--- a/src/loc/issuer/IssuerSelectionCheckbox.tsx
+++ b/src/loc/issuer/IssuerSelectionCheckbox.tsx
@@ -29,7 +29,7 @@ export default function IssuerSelectionCheckbox(props: Props) {
const call = async (callback: CallCallback) => mutateLocState(async current => {
if(signer && (current instanceof OpenLoc || current instanceof ClosedCollectionLoc)) {
const params = {
- issuer: issuerSelection.address,
+ issuer: issuerSelection.account,
signer,
callback,
};
diff --git a/src/loc/issuer/IssuerSelectionFrame.test.tsx b/src/loc/issuer/IssuerSelectionFrame.test.tsx
index d2369181..f3a85e35 100644
--- a/src/loc/issuer/IssuerSelectionFrame.test.tsx
+++ b/src/loc/issuer/IssuerSelectionFrame.test.tsx
@@ -2,6 +2,7 @@ import IssuerSelectionFrame from "./IssuerSelectionFrame";
import { setLocState } from "../__mocks__/LocContextMock";
import { waitFor, screen, render } from "@testing-library/react";
import { OpenLoc, setVerifiedIssuers } from "../../__mocks__/LogionClientMock";
+import { TEST_WALLET_USER, TEST_WALLET_USER2 } from "src/wallet-user/TestData";
jest.mock("../LocContext");
@@ -19,14 +20,14 @@ describe("IssuerSelectionFrame", () => {
firstName: "John",
lastName: "Doe",
identityLocId: "123",
- address: "address-123",
+ account: TEST_WALLET_USER,
selected: false,
},
{
firstName: "Scott",
lastName: "Tiger",
identityLocId: "456",
- address: "address-456",
+ account: TEST_WALLET_USER2,
selected: true,
},
]);
diff --git a/src/loc/record/TokensRecordFiles.tsx b/src/loc/record/TokensRecordFiles.tsx
index 83a6dfb8..e13f9d70 100644
--- a/src/loc/record/TokensRecordFiles.tsx
+++ b/src/loc/record/TokensRecordFiles.tsx
@@ -54,7 +54,7 @@ function TokensRecordFileCell(props: Props & { loc: LocData, file: UploadableIte
getTokensRecordFileSource(axios, {
locId: loc.id.toString(),
diff --git a/src/loc/record/TokensRecordFrame.test.tsx b/src/loc/record/TokensRecordFrame.test.tsx
index b5ecbae9..71d51b59 100644
--- a/src/loc/record/TokensRecordFrame.test.tsx
+++ b/src/loc/record/TokensRecordFrame.test.tsx
@@ -11,6 +11,7 @@ import { Hash, UUID } from "@logion/node-api";
import { TokensRecord } from "@logion/client/dist/TokensRecord";
import { setLocState } from "../__mocks__/LocContextMock";
import { ClosedCollectionLoc } from "../../__mocks__/LogionClientMock";
+import { TEST_WALLET_USER2 } from "src/wallet-user/TestData";
describe("TokensRecordFrame", () => {
@@ -64,7 +65,7 @@ function mockTokensRecord(idSeed: string): TokensRecord {
id: Hash.of(idSeed),
description: HashString.fromValue("Record Description"),
addedOn: "2022-08-23T07:27:46.128Z",
- issuer: "record-issuer",
+ issuer: TEST_WALLET_USER2,
files: [ {
name: HashString.fromValue("record-file-name.txt"),
hash: Hash.of("record-file-content"),
diff --git a/src/loc/statement/StatementOfFactsButton.tsx b/src/loc/statement/StatementOfFactsButton.tsx
index 21e43aeb..f198158f 100644
--- a/src/loc/statement/StatementOfFactsButton.tsx
+++ b/src/loc/statement/StatementOfFactsButton.tsx
@@ -114,9 +114,8 @@ export default function StatementOfFactsButton(props: { item?: CollectionItem })
useEffect(() => {
if (getOfficer !== undefined
&& accounts?.current?.accountId !== undefined
- && (!legalOfficer || accounts.current.accountId.address !== legalOfficer.address)) {
- const polkadotAddress = accounts.current.accountId.address;
- const legalOfficer = getOfficer(polkadotAddress);
+ && (!legalOfficer || !accounts.current.accountId.equals(legalOfficer.account))) {
+ const legalOfficer = getOfficer(accounts.current.accountId);
setLegalOfficer(legalOfficer);
}
}, [ getOfficer, accounts, legalOfficer ]);
@@ -125,7 +124,7 @@ export default function StatementOfFactsButton(props: { item?: CollectionItem })
if (props.item && locData && deliveries === undefined) {
setDeliveries(null);
(async function() {
- const deliveries = await getAllDeliveries(axiosFactory!(locData.ownerAddress), {
+ const deliveries = await getAllDeliveries(axiosFactory!(locData.ownerAccountId), {
locId: locData.id.toString(),
collectionItemId: props.item!.id
});
@@ -138,7 +137,7 @@ export default function StatementOfFactsButton(props: { item?: CollectionItem })
if(props.item && locData && collectionDeliveries === undefined) {
setCollectionDeliveries(null);
(async function() {
- const deliveries = await getAllCollectionDeliveries(axiosFactory!(locData.ownerAddress), {
+ const deliveries = await getAllCollectionDeliveries(axiosFactory!(locData.ownerAccountId), {
locId: locData.id.toString(),
});
setCollectionDeliveries(deliveries);
@@ -154,7 +153,7 @@ export default function StatementOfFactsButton(props: { item?: CollectionItem })
setTokensRecords(records);
const deliveries: Record = {};
for (const record of records) {
- deliveries[record.id.toHex()] = await getTokensRecordDeliveries(axiosFactory!(locData.ownerAddress), {
+ deliveries[record.id.toHex()] = await getTokensRecordDeliveries(axiosFactory!(locData.ownerAccountId), {
locId: locData.id.toString(),
recordId: record.id,
})
@@ -174,7 +173,7 @@ export default function StatementOfFactsButton(props: { item?: CollectionItem })
&& sofParams.locId !== locData.id.toDecimalString()
&& (tokensRecords !== undefined && tokensRecords !== null)
&& tokensRecordFileDeliveries) {
- const requester = locData.requesterAddress ? locData.requesterAddress.address : locData.requesterLocId?.toDecimalString() || "";
+ const requester = locData.requesterAccountId ? locData.requesterAccountId.address : locData.requesterLocId?.toDecimalString() || "";
setSofParams({
...PLACEHOLDERS,
locId: locData.id.toDecimalString(),
@@ -221,7 +220,7 @@ export default function StatementOfFactsButton(props: { item?: CollectionItem })
badgeUrl: creativeCommonsBadges[props.item.creativeCommons.parameters],
} : undefined,
} : undefined),
- polkadotAddress: legalOfficer.address,
+ polkadotAddress: legalOfficer.account.address,
postalAddressLine1: legalOfficer.postalAddress.company || "",
postalAddressLine2: legalOfficer.postalAddress.line1 || "",
postalAddressLine3: legalOfficer.postalAddress.line2 || "",
@@ -240,7 +239,7 @@ export default function StatementOfFactsButton(props: { item?: CollectionItem })
tokensRecords: tokensRecords.map(record => ({
id: record.id.toHex(),
description: record.description.validValue(),
- issuer: record.issuer,
+ issuer: record.issuer.address,
addedOn: record.addedOn,
files: record.files.map(file => ({
hash: file.hash.toHex(),
@@ -347,7 +346,6 @@ export default function StatementOfFactsButton(props: { item?: CollectionItem })
previewPath={ STATEMENT_OF_FACTS_PATH }
relatedLocPath={ containingLoc ? locDetailsPath(containingLoc!.id, containingLoc!.locType) : "" }
locId={ locData!.id }
- nodeOwner={ locData.ownerAddress }
/>
>
diff --git a/src/loc/statement/StatementOfFactsSummary.tsx b/src/loc/statement/StatementOfFactsSummary.tsx
index 115f4310..854bceda 100644
--- a/src/loc/statement/StatementOfFactsSummary.tsx
+++ b/src/loc/statement/StatementOfFactsSummary.tsx
@@ -9,7 +9,6 @@ import './StatementOfFactsSummary.css';
export interface Props {
locId: UUID,
- nodeOwner: string,
previewPath: string;
relatedLocPath: string;
}
diff --git a/src/logion-chain/LogionChainContext.test.tsx b/src/logion-chain/LogionChainContext.test.tsx
index 152d62e5..d0479215 100644
--- a/src/logion-chain/LogionChainContext.test.tsx
+++ b/src/logion-chain/LogionChainContext.test.tsx
@@ -36,7 +36,7 @@ function expectConnectedAndReadyState(result: RenderResult) {
}
const INJECTED_ACCOUNT = {
- address: DEFAULT_USER_ACCOUNT.accountId,
+ address: DEFAULT_USER_ACCOUNT.accountId.address,
meta: {
name: DEFAULT_USER_ACCOUNT.name
}
diff --git a/src/logion-chain/LogionChainContext.tsx b/src/logion-chain/LogionChainContext.tsx
index 66a0705b..9f5e4e0c 100644
--- a/src/logion-chain/LogionChainContext.tsx
+++ b/src/logion-chain/LogionChainContext.tsx
@@ -43,7 +43,7 @@ export function isSuccessful(result: ISubmittableResult): boolean {
return !result.dispatchError && SIGN_AND_SEND_STRATEGY.canUnsub(result);
}
-export type AxiosFactory = (legalOfficerAddress: string | undefined, token?: Token) => AxiosInstance;
+export type AxiosFactory = (legalOfficerAddress: ValidAccountId | undefined, token?: Token) => AxiosInstance;
export type CallCallback = (result: ISubmittableResult) => void;
@@ -249,7 +249,7 @@ export interface LogionChainContextType {
isCurrentAuthenticated: () => boolean,
authenticate: (address: ValidAccountId[]) => Promise,
authenticateAddress: (address: ValidAccountId, signer?: RawSigner) => Promise,
- getOfficer?: (address: string | undefined) => LegalOfficerClass | undefined,
+ getOfficer?: (address: ValidAccountId | undefined) => LegalOfficerClass | undefined,
saveOfficer?: (legalOfficer: LegalOfficer) => Promise,
reconnect: () => void,
tryEnableMetaMask: () => Promise,
@@ -364,9 +364,9 @@ function buildAxiosFactory(authenticatedClient?: LogionClient): AxiosFactory {
if(authenticatedClient === undefined) {
return () => axios.create();
} else {
- return (owner?: string, token?: Token): AxiosInstance => {
- const legalOfficer = authenticatedClient.legalOfficers.find(legalOfficer => legalOfficer.address === owner)!;
- const axios = authenticatedClient.buildAxios(legalOfficer);
+ return (owner?: ValidAccountId, token?: Token): AxiosInstance => {
+ const legalOfficer = authenticatedClient.legalOfficers.find(legalOfficer => legalOfficer.account.equals(owner))!;
+ const axios = legalOfficer.buildAxiosToNode();
if (token) {
axios.interceptors.request.use((config) => {
if (!config.headers) {
@@ -389,7 +389,7 @@ const reducer: Reducer = (state: FullLogionC
case 'CONNECT_SUCCESS': {
const partialState = buildClientHelpers(action.client!, state.allAccounts || [], action.registeredLegalOfficers!);
if(state.client && partialState.accounts.current) {
- storeCurrentAddress(state.client.logionApi, partialState.accounts.current.accountId);
+ storeCurrentAddress(partialState.accounts.current.accountId);
}
return {
...state,
@@ -415,7 +415,7 @@ const reducer: Reducer = (state: FullLogionC
if(state.client) {
const partialState = buildClientHelpers(state.client, allAccounts || [], registeredLegalOfficers || new Set());
if(partialState.accounts.current) {
- storeCurrentAddress(state.client.logionApi, partialState.accounts.current.accountId);
+ storeCurrentAddress(partialState.accounts.current.accountId);
}
partialStateOrEmpty = partialState;
}
@@ -438,8 +438,8 @@ const reducer: Reducer = (state: FullLogionC
};
case 'SELECT_ADDRESS': {
- storeCurrentAddress(state.client!.logionApi, action.newAddress!);
- const client = state.client!.withCurrentAddress(action.newAddress!);
+ storeCurrentAddress(action.newAddress!);
+ const client = state.client!.withCurrentAccount(action.newAddress!);
return {
...state,
...buildClientHelpers(client, state.allAccounts || [], state.registeredLegalOfficers!),
@@ -456,7 +456,7 @@ const reducer: Reducer = (state: FullLogionC
clearAll();
const client = state.client!.logout();
clearInterval(state.timer!);
- clearCurrentAddress(client.logionApi);
+ clearCurrentAddress();
return {
...state,
timer: undefined,
@@ -507,7 +507,7 @@ const reducer: Reducer = (state: FullLogionC
storeTokens(client.tokens);
const partialState = buildClientHelpers(client, state.allAccounts || [], action.registeredLegalOfficers!);
if(state.client && partialState.accounts.current) {
- storeCurrentAddress(state.client.logionApi, partialState.accounts.current.accountId);
+ storeCurrentAddress(partialState.accounts.current.accountId);
}
return {
...state,
@@ -604,20 +604,20 @@ function buildClientHelpers(
): {
axiosFactory: AxiosFactory,
isCurrentAuthenticated: () => boolean,
- getOfficer: (owner: string | undefined) => LegalOfficerClass | undefined,
+ getOfficer: (owner: ValidAccountId | undefined) => LegalOfficerClass | undefined,
saveOfficer: (legalOfficer: LegalOfficer) => Promise,
accounts: Accounts,
client: LogionClient,
} {
- const accounts = buildAccounts(allAccounts, client.currentAddress, client, legalOfficers);
+ const accounts = buildAccounts(allAccounts, client.currentAccount, client, legalOfficers);
let updatedClient = client;
- if(accounts.current && (!client.currentAddress || !accounts.current?.accountId.equals(client.currentAddress))) {
- updatedClient = client.withCurrentAddress(accounts.current.accountId);
+ if(accounts.current && (!client.currentAccount || !accounts.current?.accountId.equals(client.currentAccount))) {
+ updatedClient = client.withCurrentAccount(accounts.current.accountId);
}
return {
axiosFactory: buildAxiosFactory(client),
isCurrentAuthenticated: () => client.isTokenValid(DateTime.now()),
- getOfficer: address => client.allLegalOfficers.find(legalOfficer => legalOfficer.address === address),
+ getOfficer: accountId => client.allLegalOfficers.find(legalOfficer => legalOfficer.account.equals(accountId)),
saveOfficer: legalOfficer => client.directoryClient.createOrUpdate(legalOfficer),
accounts,
client: updatedClient,
@@ -709,11 +709,11 @@ const LogionChainContextProvider = (props: LogionChainContextProviderProps): JSX
let client = logionClient.useTokens(startupTokens);
if(startupTokens.length > 0 && accounts.length > 0) {
- let candidates = [ loadCurrentAddress(api) || undefined, toValidAccountId(api, accounts[0]) ];
+ let candidates = [ loadCurrentAddress() || undefined, toValidAccountId(api, accounts[0]) ];
const now = DateTime.now();
let currentAddress = candidates.find(address => startupTokens.isAuthenticated(now, address));
if(currentAddress) {
- client = client.withCurrentAddress(currentAddress);
+ client = client.withCurrentAccount(currentAddress);
}
}
@@ -800,8 +800,8 @@ const LogionChainContextProvider = (props: LogionChainContextProviderProps): JSX
}
let client = await state.client.authenticate(addresses, state.signer);
- if(!client.currentAddress) {
- client = client.withCurrentAddress(addresses[0]);
+ if(!client.currentAccount) {
+ client = client.withCurrentAccount(addresses[0]);
}
dispatch({
type: 'RESET_CLIENT',
@@ -815,7 +815,7 @@ const LogionChainContextProvider = (props: LogionChainContextProviderProps): JSX
return undefined;
}
let client = await state.client.authenticate([ address ], signer ? signer : state.signer);
- client = client.withCurrentAddress(address);
+ client = client.withCurrentAccount(address);
dispatch({
type: 'RESET_CLIENT',
client,
@@ -1018,7 +1018,7 @@ const LogionChainContextProvider = (props: LogionChainContextProviderProps): JSX
async function buildLegalOfficersSet(client: LogionClient, accounts: InjectedAccount[]): Promise> {
const legalOfficersSet = new Set();
for(const account of accounts) {
- if(account.type !== "ethereum" && account.type !== "ecdsa" && await client.isRegisteredLegalOfficer(account.address)) {
+ if(account.type !== "ethereum" && account.type !== "ecdsa" && await client.isRegisteredLegalOfficer(ValidAccountId.polkadot(account.address))) {
legalOfficersSet.add(account.address);
}
}
diff --git a/src/logion-chain/Signature.tsx b/src/logion-chain/Signature.tsx
index 0a84563a..332a6313 100644
--- a/src/logion-chain/Signature.tsx
+++ b/src/logion-chain/Signature.tsx
@@ -1,4 +1,5 @@
import { ExtensionSigner } from '@logion/extension';
+import { ValidAccountId } from "@logion/node-api";
import { ISubmittableResult } from '@polkadot/types/types';
import type { SubmittableExtrinsic } from '@polkadot/api/promise/types';
@@ -9,7 +10,7 @@ export type SignAndSendCallback = (result: SignedTransaction) => void;
export type ErrorCallback = (error: any) => void;
export interface ExtrinsicSignatureParameters {
- signerId: string,
+ signerId: ValidAccountId,
callback: SignAndSendCallback,
errorCallback: ErrorCallback
submittable: SubmittableExtrinsic,
diff --git a/src/logion-chain/__mocks__/LogionChainMock.ts b/src/logion-chain/__mocks__/LogionChainMock.ts
index e2437247..5ff0e105 100644
--- a/src/logion-chain/__mocks__/LogionChainMock.ts
+++ b/src/logion-chain/__mocks__/LogionChainMock.ts
@@ -1,5 +1,6 @@
import { DateTime } from "luxon";
import { LegalOfficer } from '@logion/client';
+import { ValidAccountId } from "@logion/node-api";
import { DEFAULT_LEGAL_OFFICER, legalOfficers } from 'src/common/TestData';
import { TEST_WALLET_USER } from 'src/wallet-user/TestData';
import { AxiosInstance } from 'axios';
@@ -18,8 +19,8 @@ export let authenticate = jest.fn();
export let saveOfficer = jest.fn();
-function getOfficer(address: string | undefined): LegalOfficer | undefined {
- return legalOfficers.find(legalOfficer => legalOfficer.address === address);
+function getOfficer(account: ValidAccountId | undefined): LegalOfficer | undefined {
+ return legalOfficers.find(legalOfficer => legalOfficer.account.equals(account));
}
export let selectAddress = jest.fn();
diff --git a/src/settings/ChainData.tsx b/src/settings/ChainData.tsx
index ae358946..ec4859b5 100644
--- a/src/settings/ChainData.tsx
+++ b/src/settings/ChainData.tsx
@@ -1,4 +1,4 @@
-import { Region } from "@logion/node-api";
+import { Region, ValidAccountId } from "@logion/node-api";
import { useCallback, useEffect, useMemo, useState } from "react";
import { Col, Form, Row } from "react-bootstrap";
import { flushSync } from "react-dom";
@@ -38,11 +38,11 @@ export default function ChainData() {
setDone(undefined);
flushSync(() => setSignAndSubmit(null)); // Reset
- const legalOfficerAddress = accounts.current.accountId.address;
+ const legalOfficerAddress = accounts.current.accountId;
const legalOfficerData = api.adapters.toPalletLoAuthorityListLegalOfficerDataHost({ nodeId, baseUrl, region });
const signAndSubmit: SignAndSubmit = (setResult, setError) => signAndSend({
signerId: legalOfficerAddress,
- submittable: api.polkadot.tx.loAuthorityList.updateLegalOfficer(legalOfficerAddress, legalOfficerData),
+ submittable: api.polkadot.tx.loAuthorityList.updateLegalOfficer(legalOfficerAddress.address, legalOfficerData),
callback: setResult,
errorCallback: setError,
});
@@ -126,7 +126,7 @@ export default function ChainData() {
@@ -160,7 +160,7 @@ export default function ChainData() {
},
{
header: "Name",
- render: guest => |
+ render: guest => |
},
]}
data={ onchainSettings.guests || [] }
diff --git a/src/settings/DirectoryData.tsx b/src/settings/DirectoryData.tsx
index 0cce4139..b10a53f2 100644
--- a/src/settings/DirectoryData.tsx
+++ b/src/settings/DirectoryData.tsx
@@ -2,6 +2,7 @@ import { useCallback, useEffect, useState } from "react";
import { Col, Form, Row } from "react-bootstrap";
import { Controller, useForm } from "react-hook-form";
import { LegalOfficer } from "@logion/client";
+import { ValidAccountId } from "@logion/node-api";
import Button from "../common/Button";
import { GREEN, ORANGE, RED } from "../common/ColorTheme";
@@ -35,8 +36,8 @@ export default function DirectoryData() {
const { legalOfficer, refreshLegalOfficer, missingSettings } = useLegalOfficerContext();
useEffect(() => {
- if(legalOfficer?.address !== getValues().address && (legalOfficer || missingSettings?.directory)) {
- setValue("address", legalOfficer?.address || "");
+ if(legalOfficer?.account.address !== getValues().address && (legalOfficer || missingSettings?.directory)) {
+ setValue("address", legalOfficer?.account.address || "");
setValue("additionalDetails", legalOfficer?.additionalDetails || "");
setValue("firstName", legalOfficer?.userIdentity.firstName || "");
@@ -371,7 +372,7 @@ export default function DirectoryData() {
function toLegalOfficer(formValues: FormValues): LegalOfficer {
return {
- address: formValues.address,
+ account: ValidAccountId.polkadot(formValues.address),
additionalDetails: formValues.additionalDetails,
name: "",
node: "",
diff --git a/src/settings/SettingsPane.tsx b/src/settings/SettingsPane.tsx
index b2114e99..db68e11d 100644
--- a/src/settings/SettingsPane.tsx
+++ b/src/settings/SettingsPane.tsx
@@ -1,3 +1,4 @@
+import { ValidAccountId } from "@logion/node-api";
import { Col, Row } from 'react-bootstrap';
import { FullWidthPane } from '../common/Dashboard';
import Frame from '../common/Frame';
@@ -101,8 +102,8 @@ export default function SettingsPane(props: Props) {
The following logion nodes are temporarily unavailable:
{
- nodesDown.map(endpoint => getOfficer(endpoint.url)).filter(legalOfficer => legalOfficer !== null).map(legalOfficer =>
- - { legalOfficer!.name }
+ nodesDown.map(endpoint => getOfficer(ValidAccountId.polkadot(endpoint.legalOfficer))).filter(legalOfficer => legalOfficer !== null).map(legalOfficer =>
+ - { legalOfficer!.name }
)
}
diff --git a/src/settings/ValuesFiles.tsx b/src/settings/ValuesFiles.tsx
index eee7cc2f..0f4f31ce 100644
--- a/src/settings/ValuesFiles.tsx
+++ b/src/settings/ValuesFiles.tsx
@@ -21,7 +21,7 @@ export function ValuesFiles() {
const [ newSettings, setNewSettings ] = useState>({});
const [ uploading, setUploading ] = useState>({});
- const legalOfficer = accounts?.current?.accountId.address;
+ const legalOfficer = accounts?.current?.accountId;
const fileSelectedCallback = useCallback(async (file: File, fileId: LoFileId) => {
setUploading({
...uploading,
@@ -30,7 +30,7 @@ export function ValuesFiles() {
try {
await addLoFile({
axios: axiosFactory!(legalOfficer),
- legalOfficer: legalOfficer!,
+ legalOfficer: legalOfficer!.address,
file: HashOrContent.fromContent(new BrowserFile(file, file.name)),
fileId
});
diff --git a/src/vault/VaultApi.ts b/src/vault/VaultApi.ts
index 4c55821b..67b34802 100644
--- a/src/vault/VaultApi.ts
+++ b/src/vault/VaultApi.ts
@@ -1,23 +1,24 @@
-import { FetchVaultTransferRequest, VaultTransferRequest } from "@logion/client/dist/VaultClient.js";
+import { FetchVaultTransferRequest, VaultTransferRequest } from "@logion/client";
import { AxiosInstance } from "axios";
+import { ValidAccountId } from "@logion/node-api";
export class VaultApi {
- constructor(axios: AxiosInstance, legalOfficerAddress: string) {
+ constructor(axios: AxiosInstance, legalOfficerAccountId: ValidAccountId) {
this.axios = axios;
- this.legalOfficerAddress = legalOfficerAddress;
+ this.legalOfficerAccountId = legalOfficerAccountId;
}
private axios: AxiosInstance;
- private readonly legalOfficerAddress: string;
+ private readonly legalOfficerAccountId: ValidAccountId;
async getVaultTransferRequests(fetch: FetchVaultTransferRequest & { legalOfficerAddress: string }): Promise {
const requests = (await this.axios.put("/api/vault-transfer-request", fetch)
.then(response => response.data.requests)) as VaultTransferRequest[];
return requests.map(request => ({
...request,
- legalOfficerAddress: this.legalOfficerAddress
+ legalOfficerAddress: this.legalOfficerAccountId.address
}));
}
diff --git a/src/vault/VaultOutRequest.tsx b/src/vault/VaultOutRequest.tsx
index 7e2803eb..529b25a8 100644
--- a/src/vault/VaultOutRequest.tsx
+++ b/src/vault/VaultOutRequest.tsx
@@ -1,7 +1,7 @@
import { useCallback, useEffect, useState } from "react";
import { Form } from "react-bootstrap";
import { Controller, useForm } from "react-hook-form";
-import { Numbers, Lgnt } from "@logion/node-api";
+import { Numbers, Lgnt, ValidAccountId } from "@logion/node-api";
import { VaultState } from "@logion/client";
import AmountControl, { Amount, validateAmount } from "../common/AmountControl";
@@ -18,7 +18,7 @@ import { useUserContext } from "../wallet-user/UserContext";
import ExtrinsicSubmissionStateView from "src/ExtrinsicSubmissionStateView";
interface FormValues {
- legalOfficer: string;
+ legalOfficer: ValidAccountId | null;
amount: Amount;
destination: string;
}
@@ -29,12 +29,12 @@ export default function VaultOutRequest() {
const { protectionState, mutateVaultState } = useUserContext();
const [ showDialog, setShowDialog ] = useState(false);
- const [ legalOfficersOptions, setLegalOfficersOptions ] = useState[]>([]);
+ const [ legalOfficersOptions, setLegalOfficersOptions ] = useState[]>([]);
useEffect(() => {
if (legalOfficersOptions.length === 0 && protectionState && availableLegalOfficers) {
- const protectingLegalOfficers = protectionState.protectionParameters.legalOfficers.map(legalOfficer => legalOfficer.address);
- const candidates = availableLegalOfficers.filter(legalOfficer => protectingLegalOfficers.includes(legalOfficer.address));
+ const protectingLegalOfficers = protectionState.protectionParameters.legalOfficers.map(legalOfficer => legalOfficer.account.address);
+ const candidates = availableLegalOfficers.filter(legalOfficer => protectingLegalOfficers.includes(legalOfficer.account.address));
buildOptions(candidates)
.then(options => setLegalOfficersOptions(options));
}
@@ -42,7 +42,7 @@ export default function VaultOutRequest() {
const { control, handleSubmit, formState: { errors }, reset } = useForm({
defaultValues: {
- legalOfficer: "",
+ legalOfficer: null,
amount: {
value: "",
unit: Numbers.NONE
@@ -60,9 +60,9 @@ export default function VaultOutRequest() {
const call = async (callback: CallCallback) => {
await mutateVaultState(async (state: VaultState) => {
return await state.createVaultTransferRequest({
- legalOfficer: getOfficer!(formValues!.legalOfficer)!,
+ legalOfficer: getOfficer!(formValues!.legalOfficer!)!,
amount: Lgnt.fromPrefixedNumber(new Numbers.PrefixedNumber(formValues.amount.value, formValues.amount.unit)),
- destination: formValues.destination,
+ destination: ValidAccountId.polkadot(formValues.destination),
signer: signer!,
callback,
});
@@ -154,7 +154,6 @@ export default function VaultOutRequest() {
}}
render={ ({ field }) => (
}
- //@ts-ignore
feedback={ errors.amount?.message }
colors={ colorTheme.dialog }
/>
diff --git a/src/wallet-user/TestData.ts b/src/wallet-user/TestData.ts
index 992c8621..5ec9a12f 100644
--- a/src/wallet-user/TestData.ts
+++ b/src/wallet-user/TestData.ts
@@ -1,4 +1,4 @@
-import { mockValidPolkadotAccountId } from "src/__mocks__/LogionMock";
+import { ValidAccountId } from "@logion/node-api";
-export const TEST_WALLET_USER = mockValidPolkadotAccountId("5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY");
-export const TEST_WALLET_USER2 = mockValidPolkadotAccountId("5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX");
+export const TEST_WALLET_USER = ValidAccountId.polkadot("5H4MvAsobfZ6bBCDyj5dsrWYLrA8HrRzaqa9p61UXtxMhSCY");
+export const TEST_WALLET_USER2 = ValidAccountId.polkadot("5EBxoSssqNo23FvsDeUxjyQScnfEiGxJaNwuwqBH2Twe35BX");
diff --git a/src/wallet-user/UserContext.tsx b/src/wallet-user/UserContext.tsx
index 8b07b76d..a2354d28 100644
--- a/src/wallet-user/UserContext.tsx
+++ b/src/wallet-user/UserContext.tsx
@@ -22,12 +22,12 @@ import { useCommonContext } from '../common/CommonContext';
import { DARK_MODE } from './Types';
import { BalanceState } from "@logion/client/dist/Balance.js";
import { LocsState } from "@logion/client";
-import { UUID, LocType } from "@logion/node-api";
+import { UUID, LocType, ValidAccountId } from "@logion/node-api";
import { Locs, getLocsMap } from "src/loc/Locs";
export interface CreateProtectionRequestParams {
legalOfficers: LegalOfficerClass[],
- addressToRecover?: string,
+ addressToRecover?: ValidAccountId,
callback: SignCallback,
requesterIdentityLoc1: UUID,
requesterIdentityLoc2: UUID,
@@ -358,7 +358,7 @@ export function UserContextProvider(props: Props) {
payload: {
legalOfficer1: params.legalOfficers[0],
legalOfficer2: params.legalOfficers[1],
- recoveredAddress: params.addressToRecover,
+ recoveredAccount: params.addressToRecover,
requesterIdentityLoc1: params.requesterIdentityLoc1,
requesterIdentityLoc2: params.requesterIdentityLoc2,
},
diff --git a/src/wallet-user/UserDashboard.test.tsx b/src/wallet-user/UserDashboard.test.tsx
index e9e76053..93a90158 100644
--- a/src/wallet-user/UserDashboard.test.tsx
+++ b/src/wallet-user/UserDashboard.test.tsx
@@ -8,13 +8,14 @@ import UserDashboard from './UserDashboard';
import { setContextMock } from '../logion-chain/__mocks__/LogionChainMock';
import { shallowRender } from '../tests';
import { LocsState } from "@logion/client";
-import { mockValidPolkadotAccountId, api } from 'src/__mocks__/LogionMock';
+import { api } from 'src/__mocks__/LogionMock';
+import { TEST_WALLET_USER } from "./TestData";
describe("UserDashboard", () => {
setLocsState({} as LocsState)
- const accountId = mockValidPolkadotAccountId("address");
+ const accountId = TEST_WALLET_USER;
test('Given disconnected and accounts then empty', () => {
setContextMock({
diff --git a/src/wallet-user/UserRouter.tsx b/src/wallet-user/UserRouter.tsx
index 45980439..74638883 100644
--- a/src/wallet-user/UserRouter.tsx
+++ b/src/wallet-user/UserRouter.tsx
@@ -63,19 +63,19 @@ export default function UserRouter() {
} />
} />
} />
} />
null;
@@ -45,7 +44,7 @@ export const DEFAULT_SHARED_STATE: SharedState = {
networkState: {} as NetworkState,
nodeApi: api.object(),
tokens: {} as AccountTokens,
- currentAddress: {
+ currentAccount: {
address: TEST_WALLET_USER,
type: "Polkadot"
} as unknown as ValidAccountId,
diff --git a/src/wallet-user/__snapshots__/UserRouter.test.tsx.snap b/src/wallet-user/__snapshots__/UserRouter.test.tsx.snap
index 34c221ea..e0928ca4 100644
--- a/src/wallet-user/__snapshots__/UserRouter.test.tsx.snap
+++ b/src/wallet-user/__snapshots__/UserRouter.test.tsx.snap
@@ -21,7 +21,14 @@ exports[`renders 1`] = `
,
+ render: transaction => ,
},
{
header: "Amount",
render: transaction => ,
+ amount={ transferBalance(accounts!.current!.accountId, transaction) } />,
align: 'right',
width: "120px",
},
diff --git a/src/wallet-user/issuer/IssuerClosedLocs.test.tsx b/src/wallet-user/issuer/IssuerClosedLocs.test.tsx
index c038c6b6..bf2f2f99 100644
--- a/src/wallet-user/issuer/IssuerClosedLocs.test.tsx
+++ b/src/wallet-user/issuer/IssuerClosedLocs.test.tsx
@@ -1,6 +1,7 @@
import { setClosedVerifiedIssuerLocs } from "../__mocks__/UserContextMock";
import { render } from "../../tests";
import IssuerClosedLocs from "./IssuerClosedLocs";
+import { ValidAccountId } from "@logion/node-api";
jest.mock('../../common/CommonContext');
jest.mock('../../wallet-user/UserContext');
@@ -14,8 +15,8 @@ describe("IssuerClosedLocs", () => {
data: () => {
return {
id: "6378b339-8f4a-486a-bf5e-6f34b951456a",
- ownerAddress: "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
- requesterAddress: "5Ew3MyB15VprZrjQVkpQFj8okmc9xLDSEdNhqMMS5cXsqxoW",
+ ownerAccountId: ValidAccountId.polkadot("5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"),
+ requesterAccountId: ValidAccountId.polkadot("5Ew3MyB15VprZrjQVkpQFj8okmc9xLDSEdNhqMMS5cXsqxoW"),
description: "TRANSACTION description",
status: "CLOSED",
locType: "Transaction",
@@ -29,8 +30,8 @@ describe("IssuerClosedLocs", () => {
data: () => {
return {
id: "6378b339-8f4a-486a-bf5e-6f34b951456a",
- ownerAddress: "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
- requesterAddress: "5Ew3MyB15VprZrjQVkpQFj8okmc9xLDSEdNhqMMS5cXsqxoW",
+ ownerAccountId: ValidAccountId.polkadot("5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"),
+ requesterAccountId: ValidAccountId.polkadot("5Ew3MyB15VprZrjQVkpQFj8okmc9xLDSEdNhqMMS5cXsqxoW"),
description: "COLLECTION description",
status: "CLOSED",
locType: "Collection",
diff --git a/src/wallet-user/issuer/IssuerClosedLocs.tsx b/src/wallet-user/issuer/IssuerClosedLocs.tsx
index 691e6005..1a063ab3 100644
--- a/src/wallet-user/issuer/IssuerClosedLocs.tsx
+++ b/src/wallet-user/issuer/IssuerClosedLocs.tsx
@@ -38,7 +38,7 @@ export default function IssuerClosedLocs() {
columns={ [
{
"header": "Legal Officer",
- render: locData => ,
+ render: locData => ,
align: 'left',
},
{
diff --git a/src/wallet-user/issuer/IssuerOpenedLocs.test.tsx b/src/wallet-user/issuer/IssuerOpenedLocs.test.tsx
index 59f347aa..cb03ed7a 100644
--- a/src/wallet-user/issuer/IssuerOpenedLocs.test.tsx
+++ b/src/wallet-user/issuer/IssuerOpenedLocs.test.tsx
@@ -1,6 +1,7 @@
import { setOpenVerifiedIssuerLocs } from "../__mocks__/UserContextMock";
import { render } from "../../tests";
import IssuerOpenedLocs from "./IssuerOpenedLocs";
+import { ValidAccountId } from "@logion/node-api";
jest.mock('../../common/CommonContext');
jest.mock('../../wallet-user/UserContext');
@@ -14,8 +15,8 @@ describe("IssuerOpenedLocs", () => {
data: () => {
return {
id: "6378b339-8f4a-486a-bf5e-6f34b951456a",
- ownerAddress: "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
- requesterAddress: "5Ew3MyB15VprZrjQVkpQFj8okmc9xLDSEdNhqMMS5cXsqxoW",
+ ownerAccountId: ValidAccountId.polkadot("5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"),
+ requesterAccountId: ValidAccountId.polkadot("5Ew3MyB15VprZrjQVkpQFj8okmc9xLDSEdNhqMMS5cXsqxoW"),
description: "TRANSACTION description",
status: "OPEN",
locType: "Transaction",
@@ -29,8 +30,8 @@ describe("IssuerOpenedLocs", () => {
data: () => {
return {
id: "6378b339-8f4a-486a-bf5e-6f34b951456a",
- ownerAddress: "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
- requesterAddress: "5Ew3MyB15VprZrjQVkpQFj8okmc9xLDSEdNhqMMS5cXsqxoW",
+ ownerAccountId: ValidAccountId.polkadot("5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"),
+ requesterAccountId: ValidAccountId.polkadot("5Ew3MyB15VprZrjQVkpQFj8okmc9xLDSEdNhqMMS5cXsqxoW"),
description: "COLLECTION description",
status: "OPEN",
locType: "Collection",
diff --git a/src/wallet-user/issuer/IssuerOpenedLocs.tsx b/src/wallet-user/issuer/IssuerOpenedLocs.tsx
index 18491ca0..0f55afca 100644
--- a/src/wallet-user/issuer/IssuerOpenedLocs.tsx
+++ b/src/wallet-user/issuer/IssuerOpenedLocs.tsx
@@ -33,7 +33,7 @@ export default function IssuerOpenedLocs() {
columns={ [
{
"header": "Legal Officer",
- render: locData => ,
+ render: locData => ,
align: 'left',
},
{
diff --git a/src/wallet-user/protection/CreateProtectionRequestForm.test.tsx b/src/wallet-user/protection/CreateProtectionRequestForm.test.tsx
index a13f03ed..551f27f2 100644
--- a/src/wallet-user/protection/CreateProtectionRequestForm.test.tsx
+++ b/src/wallet-user/protection/CreateProtectionRequestForm.test.tsx
@@ -37,7 +37,7 @@ describe("CreateProtectionRequestForm", () => {
await clickByName("Proceed");
- await waitFor(() => expect(createProtectionRequest).toBeCalledWith(
+ await waitFor(() => expect(createProtectionRequest).toHaveBeenCalledWith(
expect.objectContaining({
legalOfficers: twoLegalOfficers,
})
@@ -48,13 +48,13 @@ describe("CreateProtectionRequestForm", () => {
setLocsState(LOCS_STATE);
render();
- await userEvent.type(screen.getByLabelText("Address to Recover"), 'toRecover');
+ await userEvent.type(screen.getByLabelText("Address to Recover"), TEST_WALLET_USER2.address);
await selectLegalOfficers();
await clickByName("Proceed");
- await waitFor(() => expect(createProtectionRequest).toBeCalledWith(
+ await waitFor(() => expect(createProtectionRequest).toHaveBeenCalledWith(
expect.objectContaining({
legalOfficers: twoLegalOfficers,
})
@@ -73,7 +73,7 @@ describe("CreateProtectionRequestForm", () => {
await clickByName("Proceed");
- await waitFor(() => expect(createProtectionRequest).toBeCalledWith(
+ await waitFor(() => expect(createProtectionRequest).toHaveBeenCalledWith(
expect.objectContaining({
legalOfficers: twoLegalOfficers,
})
@@ -96,11 +96,11 @@ const LOCS_STATE = {
"Identity": [
{
locId: "fda29870-3ac3-4448-9b34-7bb01a7fe2a4",
- data: () => ({ ownerAddress: PATRICK.address }),
+ data: () => ({ ownerAccountId: PATRICK.account }),
},
{
locId: "210f0bbc-fd3f-41da-8154-543f591c06eb",
- data: () => ({ ownerAddress: GUILLAUME.address }),
+ data: () => ({ ownerAccountId: GUILLAUME.account }),
}
]
}
diff --git a/src/wallet-user/protection/CreateProtectionRequestForm.tsx b/src/wallet-user/protection/CreateProtectionRequestForm.tsx
index 365cf118..7fe1c59f 100644
--- a/src/wallet-user/protection/CreateProtectionRequestForm.tsx
+++ b/src/wallet-user/protection/CreateProtectionRequestForm.tsx
@@ -1,4 +1,5 @@
import { LocsState, LogionClient } from "@logion/client";
+import { ValidAccountId, AnyAccountId } from "@logion/node-api";
import { useState, useEffect, useMemo, useCallback } from 'react';
import { Row, Col } from "react-bootstrap";
import Form from "react-bootstrap/Form";
@@ -28,7 +29,7 @@ export function getLegalOfficerAndLocs(locsState: LocsState | undefined, client:
for(const loc of closedIdentityLocs) {
list.push({
loc: loc.locId,
- legalOfficer: client.getLegalOfficer(loc.data().ownerAddress),
+ legalOfficer: client.getLegalOfficer(loc.data().ownerAccountId),
});
}
return list;
@@ -69,7 +70,7 @@ export default function CreateProtectionRequestForm(props: Props) {
legalOfficer1!.legalOfficer,
legalOfficer2!.legalOfficer,
],
- addressToRecover: props.isRecovery ? addressToRecover : undefined,
+ addressToRecover: props.isRecovery ? ValidAccountId.polkadot(addressToRecover) : undefined,
callback,
requesterIdentityLoc1: legalOfficer1!.loc,
requesterIdentityLoc2: legalOfficer2!.loc,
@@ -101,10 +102,11 @@ export default function CreateProtectionRequestForm(props: Props) {
if(!props.isRecovery) {
setAddressToRecoverError("");
} else {
- if(client !== null && client.isValidAddress(addressToRecover)) {
+ const account = new AnyAccountId(addressToRecover, "Polkadot");
+ if(client !== null && account.isValid()) {
setAddressToRecoverError("Checking recovery config...");
(async function() {
- if(await client.isProtected(addressToRecover)) {
+ if(await client.isProtected(account.toValidAccountId())) {
setAddressToRecoverError("");
} else {
setAddressToRecoverError("This SS58 address is not set up for recovery");
diff --git a/src/wallet-user/protection/Officer.tsx b/src/wallet-user/protection/Officer.tsx
index 7891b233..37e4c575 100644
--- a/src/wallet-user/protection/Officer.tsx
+++ b/src/wallet-user/protection/Officer.tsx
@@ -38,7 +38,7 @@ export default function Officer(props: Props) {
border = `1px solid ${props.borderColor}`;
}
- const polkadotAddress = props.officer?.address ? props.officer?.address : "";
+ const polkadotAddress = props.officer?.account.address ? props.officer?.account.address : "";
return (
);
} else {
diff --git a/src/wallet-user/protection/SelectLegalOfficer.tsx b/src/wallet-user/protection/SelectLegalOfficer.tsx
index 3ee6f065..42e23364 100644
--- a/src/wallet-user/protection/SelectLegalOfficer.tsx
+++ b/src/wallet-user/protection/SelectLegalOfficer.tsx
@@ -1,6 +1,7 @@
import Row from "react-bootstrap/Row";
import Col from "react-bootstrap/Col";
import { LegalOfficerClass } from "@logion/client";
+import { ValidAccountId } from "@logion/node-api";
import { ProtectionRequestStatus } from "@logion/client/dist/RecoveryClient.js";
import { ORANGE, GREEN, RED, YELLOW, BackgroundAndForegroundColors } from "../../common/ColorTheme";
@@ -16,19 +17,19 @@ import { useState, useEffect } from "react";
export type Mode = 'select' | 'view';
-export async function buildOptions(legalOfficers: LegalOfficerClass[]): Promise[]> {
- const options: Promise>[] = [];
+export async function buildOptions(legalOfficers: LegalOfficerClass[]): Promise[]> {
+ const options: Promise>[] = [];
for (const legalOfficer of legalOfficers) {
options.push(buildOption(legalOfficer));
}
return await Promise.all(options);
}
-async function buildOption(legalOfficer: LegalOfficerClass): Promise> {
+async function buildOption(legalOfficer: LegalOfficerClass): Promise> {
const promisedWorkload = legalOfficer.getWorkload();
return promisedWorkload.then(workload => ({
label: legalOfficer.name + (workload !== undefined ? ` (workload: ${ workload })` : ""),
- value: legalOfficer.address,
+ value: legalOfficer.account,
}))
}
@@ -51,11 +52,11 @@ export default function SelectLegalOfficer(props: Props) {
const colors = props.colors !== undefined ? props.colors : colorTheme.frame;
const feedback = props.feedback ? props.feedback : "Required and different from other legal officer";
const { label } = props;
- const [ legalOfficersOptions, setLegalOfficersOptions ] = useState[]>([]);
+ const [ legalOfficersOptions, setLegalOfficersOptions ] = useState[]>([]);
const legalOfficersByAddress: Record = {};
props.legalOfficers.forEach(legalOfficer => {
- legalOfficersByAddress[legalOfficer.address] = legalOfficer;
+ legalOfficersByAddress[legalOfficer.account.address] = legalOfficer;
});
useEffect(() => {
@@ -106,10 +107,10 @@ export default function SelectLegalOfficer(props: Props) {
label={ label }
control={