Skip to content

Commit cac53b6

Browse files
authored
Merge pull request #3420 from IntersectMBO/develop
Update @intersect.mbo/pdf-ui to 0.7.0-beta-16
2 parents c55b8b3 + d20a986 commit cac53b6

23 files changed

+2631
-38
lines changed

govtool/frontend/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

govtool/frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@hookform/resolvers": "^3.3.1",
3030
"@intersect.mbo/govtool-outcomes-pillar-ui": "1.3.0",
3131
"@intersect.mbo/intersectmbo.org-icons-set": "^1.0.8",
32-
"@intersect.mbo/pdf-ui": "0.7.0-beta-12",
32+
"@intersect.mbo/pdf-ui": "0.7.0-beta-16",
3333
"@mui/icons-material": "^5.14.3",
3434
"@mui/material": "^5.14.4",
3535
"@rollup/plugin-babel": "^6.0.4",

govtool/frontend/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,10 +1512,10 @@
15121512
resolved "https://registry.npmjs.org/@intersect.mbo/intersectmbo.org-icons-set/-/intersectmbo.org-icons-set-1.1.0.tgz"
15131513
integrity sha512-sjKEtnK9eLYH/8kCD0YRQCms3byFA/tnSsei9NHTZbBYX9sBpeX6ErfR0sKYjOSxQOxl4FumX9D0X+vHIqxo8g==
15141514

1515-
"@intersect.mbo/[email protected]12":
1516-
version "0.7.0-beta-12"
1517-
resolved "https://registry.npmjs.org/@intersect.mbo/pdf-ui/-/pdf-ui-0.7.0-beta-12.tgz"
1518-
integrity sha512-f6G9AOi2k7Fbz+DUHtkfSzGsbfCi0e2inNw7Ft6hiTxVU7CGn9kY3bzMPcdBlV25xPnpBA3+ObLGX81H7cC5aA==
1515+
"@intersect.mbo/[email protected]16":
1516+
version "0.7.0-beta-16"
1517+
resolved "https://registry.npmjs.org/@intersect.mbo/pdf-ui/-/pdf-ui-0.7.0-beta-16.tgz"
1518+
integrity sha512-2I7BSg+5FDGhlvwLdZk0teVhtPMRQ1uDWKQiwobIF41cM0b+iT2CJMDL5MJk6tsM2/2JBbOEev9VrsHSanrCVA==
15191519
dependencies:
15201520
"@emurgo/cardano-serialization-lib-asmjs" "^12.0.0-beta.2"
15211521
"@fontsource/poppins" "^5.0.14"
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
{
2+
"data": {
3+
"id": 49,
4+
"attributes": {
5+
"privacy_policy": true,
6+
"intersect_named_administrator": true,
7+
"prop_comments_number": 2,
8+
"is_active": true,
9+
"createdAt": "2025-03-31T12:08:38.908Z",
10+
"updatedAt": "2025-04-01T08:09:46.924Z",
11+
"intersect_admin_further_text": null,
12+
"creator": {
13+
"data": {
14+
"id": 1300,
15+
"attributes": {
16+
"username": "e0d7ccd5f411be1bb732a3770fd4c79b74bd5fc75ac76bdfe73f2d8893",
17+
"email": "e0d7ccd5f411be1bb732a3770fd4c79b74bd5fc75ac76bdfe73f2d8893@example.com",
18+
"provider": "local",
19+
"confirmed": true,
20+
"blocked": false,
21+
"govtool_username": "intersectadmin",
22+
"createdAt": "2025-03-31T09:43:04.102Z",
23+
"updatedAt": "2025-03-31T09:43:17.516Z"
24+
}
25+
}
26+
},
27+
"bd_costing": {
28+
"data": {
29+
"id": 49,
30+
"attributes": {
31+
"ada_amount": "0",
32+
"amount_in_preferred_currency": "300000",
33+
"usd_to_ada_conversion_rate": "0",
34+
"cost_breakdown": "25% up front, 75% on delivery.\n\nUp front: $75,000\nOn delivery: $225,000",
35+
"createdAt": "2025-03-31T12:08:38.879Z",
36+
"updatedAt": "2025-03-31T12:08:38.879Z",
37+
"preferred_currency": {
38+
"data": {
39+
"id": 1,
40+
"attributes": {
41+
"currency_name": "United States Dollar",
42+
"currency_letter_code": "USD",
43+
"currency_number_code": "840",
44+
"createdAt": "2025-03-31T08:49:25.530Z",
45+
"updatedAt": "2025-03-31T08:49:25.530Z",
46+
"publishedAt": "2025-03-31T08:49:25.529Z"
47+
}
48+
}
49+
}
50+
}
51+
}
52+
},
53+
"bd_proposal_detail": {
54+
"data": {
55+
"id": 49,
56+
"attributes": {
57+
"experience": "Wanchain has already deployed cross-chain value bridges to Cardano. Wanchain has also already deployed XPort on other networks.",
58+
"proposal_name": "Deploy XPort, Wanchain's cross-chain data transfer protocol, to Cardano",
59+
"key_dependencies": "No dependencies",
60+
"maintain_and_support": "Wanchain will provide ongoing maintenance.",
61+
"proposal_description": "Blockchain interoperability is essential for the growth and adoption of decentralized technologies. As a leading blockchain network, Cardano has established itself as a secure, scalable, and research-driven ecosystem. However, interoperability with other blockchains remains limited. Wanchain’s XPort protocol offers a decentralized, secure, and efficient cross-chain data transfer solution, making it an ideal candidate to bridge Cardano with external blockchain ecosystems. This proposal is for the deployment of XPort to Cardano, enabling seamless cross-chain data transfers between Cardano and other blockchain networks.\n\nAbout Cross-Chain Data Transfer Protocols\n\nCross-Chain Data Transfer Protocols enable data to be passed from one blockchain to another. Rather than only moving fungible and non-fungible tokens, which are a specific type of data structure, Cross-Chain Data Transfer Protocols can move any type of data. Importantly, Cross-Chain Data Transfer Protocols can feed data into 3rd party smart contracts to seamlessly execute on-chain logic and create novel cross-chain applications.\n\nThe basic flow of all Cross-Chain Data Transfers Protocols is as follows:\n\n- A user or smart contract records arbitrary data on the source chain\n- The off-chain component detects these data\n- The off-chain component records these data on the destination chain\n- A smart contract executes on-chain logic on the destination chain using these data\n\nAbout XPort\n\nTrue to its legacy, XPort is deceptively simple. It essentially just detects data on a source blockchain then exports it to the destination chain in the correct format.\n\nXPort is composed of two basic elements: one robust off-chain relayer and a set of rudimentary on-chain smart contracts called Cross-Chain Gateways.\n\n1. The off-chain relayer is the same Bridge Node Group that secures all cross-chain transactions executed using the Wanchain Bridge. These permissionless Bridge Nodes are rotated and re-elected monthly. They use Multiparty Computation and Shamir’s Secret Sharing cryptography to transfer messages and arbitrary data across chains.\n\n2. A smart contract, called a Cross-Chain Gateway, is deployed on each supported blockchain. These Cross-Chain Gateways have limited functionality — they can essentially only send and receive data. They serve as the point of contact for all 3rd party developers.\n\nImportantly, XPort is designed to be compliant with the Enterprise Ethereum Alliance’s Distributed Ledger Technology Interoperability Specification, co-authored by Wanchain’s VP on Engineering Dr. Weijia Zhang.\n\nMore technical information about XPort: https://docs.wanchain.org/latest-major-updates/xport-wanchains-cross-chain-data-transfer-protocol-development-handbook",
62+
"key_proposal_deliverables": "- XPort interface definition adjustment to support Cardano\n\n- XPort deployed on Cardano Pre-Production\n\n- XPort deployed on Cardano Mainnet: developers will be able to build applications that seamlessly span multiple networks using XPort",
63+
"resourcing_duration_estimates": "Budget: 400,000 USD\nTeam size: ~30\nDuration: 9 months",
64+
"other_contract_type": "",
65+
"createdAt": "2025-03-31T12:08:38.864Z",
66+
"updatedAt": "2025-03-31T12:08:38.864Z",
67+
"contract_type_name": {
68+
"data": {
69+
"id": 3,
70+
"attributes": {
71+
"contract_type_name": "Service Level Agreement",
72+
"createdAt": "2025-03-31T08:49:37.711Z",
73+
"updatedAt": "2025-03-31T08:49:37.711Z",
74+
"publishedAt": "2025-03-31T08:49:37.710Z"
75+
}
76+
}
77+
}
78+
}
79+
}
80+
},
81+
"bd_further_information": {
82+
"data": {
83+
"id": 49,
84+
"attributes": {
85+
"createdAt": "2025-03-31T12:08:38.891Z",
86+
"updatedAt": "2025-03-31T12:08:38.891Z",
87+
"proposal_links": []
88+
}
89+
}
90+
},
91+
"bd_psapb": {
92+
"data": {
93+
"id": 49,
94+
"attributes": {
95+
"problem_statement": "Seamless cross-chain communication is a challenge for permissionless blockchains due to their inherent lack of interoperability. This limitation is rooted in their trustless nature, as blockchains need a mechanism to verify the authenticity of data before processing it. When dealing with heterogeneous blockchain networks, each with their own distinct ruleset and security guarantees, cross-chain communication is currently impossible without the intervention of an off-chain component.\n\nIn many ways, this problem is just the oracle problem. The oracle problem, for those who are unfamiliar, refers to a blockchain’s inability to access external data, rendering it isolated. An additional piece of infrastructure — whether you want to call it a bridge, an oracle or a relayer — is needed to connect the blockchain and the off-chain data. With cross-chain communication, the problem is the same. The data that needs to be accessed just happens to be on another blockchain!\n\nCross-Chain Data Transfer Protocols enable data to be passed from one blockchain to another. Rather than only moving fungible and non-fungible tokens, which are a specific type of data structure, Cross-Chain Data Transfer Protocols can move any type of data. Importantly, Cross-Chain Data Transfer Protocols can feed data into 3rd party smart contracts to seamlessly execute on-chain logic and create novel cross-chain applications.\n\nThis proposal is to deploy XPort, Wanchain's cross-chain data transfer protocol, to Cardano.",
96+
"proposal_benefit": "Once deployed, XPort will allow arbitrary data to flow between Cardano, any EVM, and select non-EVM networks. This will enable developers to develop applications that span multiple blockchains. It will also empower developers to shift their focus from extracting value out of a blockchain to importing execution logic into one. \n\nOther potential benefits include but are not limited to:\n\n- Improved interoperability between Cardano and the of the industry\n- Expanded access to liquidity and assets on other chains\n- Greater abstraction to improve UX\n- Reduced bridge risk\n- Improved developer experience\n- More modular application design/New types of applications",
97+
"supplementary_endorsement": "Wanchain is the longest running cross-chain bridge in the blockchain industry and is the primary cross-chain value bridge currently servicing the Cardano mainnet. It has received good support from the Cardano community (multiple approved Catalyst proposals) and Cardano Dapps (like Liqwid).",
98+
"explain_proposal_roadmap": "",
99+
"createdAt": "2025-03-31T12:08:38.846Z",
100+
"updatedAt": "2025-03-31T12:08:38.846Z",
101+
"committee_name": {
102+
"data": {
103+
"id": 2,
104+
"attributes": {
105+
"committee_name": "Product Committee",
106+
"createdAt": "2025-03-31T08:50:27.431Z",
107+
"updatedAt": "2025-03-31T08:50:27.431Z",
108+
"publishedAt": "2025-03-31T08:50:27.429Z"
109+
}
110+
}
111+
},
112+
"roadmap_name": {
113+
"data": {
114+
"id": 2,
115+
"attributes": {
116+
"roadmap_name": "Architectural Excellence",
117+
"createdAt": "2025-03-31T08:49:40.879Z",
118+
"updatedAt": "2025-03-31T08:49:40.879Z",
119+
"publishedAt": "2025-03-31T08:49:40.877Z"
120+
}
121+
}
122+
},
123+
"type_name": {
124+
"data": {
125+
"id": 6,
126+
"attributes": {
127+
"type_name": "Core",
128+
"createdAt": "2025-03-31T10:40:44.559Z",
129+
"updatedAt": "2025-03-31T10:40:45.976Z",
130+
"publishedAt": "2025-03-31T10:40:45.971Z"
131+
}
132+
}
133+
}
134+
}
135+
}
136+
},
137+
"bd_proposal_ownership": {
138+
"data": {
139+
"id": 50,
140+
"attributes": {
141+
"agreed": true,
142+
"group_name": "",
143+
"company_name": "Wanchain",
144+
"type_of_group": "",
145+
"social_handles": "https://x.com/wanchain_org, https://x.com/TemujinLouie",
146+
"submited_on_behalf": "Company",
147+
"company_domain_name": "wanchain.org",
148+
"proposal_public_champion": "Submission lead listed above",
149+
"key_info_to_identify_group": "",
150+
"createdAt": "2025-03-31T12:08:38.826Z",
151+
"updatedAt": "2025-03-31T12:08:38.826Z",
152+
"be_country": {
153+
"data": {
154+
"id": 32,
155+
"attributes": {
156+
"country_name": "British Virgin Islands",
157+
"alfa_2_code": "VG",
158+
"alfa_3_code": "VGB",
159+
"createdAt": "2025-03-31T08:49:04.220Z",
160+
"updatedAt": "2025-03-31T08:49:04.220Z",
161+
"publishedAt": "2025-03-31T08:49:04.219Z"
162+
}
163+
}
164+
}
165+
}
166+
}
167+
}
168+
}
169+
},
170+
"meta": {}
171+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"data": [
3+
{
4+
"id": 427,
5+
"attributes": {
6+
"proposal_id": null,
7+
"comment_parent_id": null,
8+
"user_id": "1187",
9+
"comment_text": "test comment 2",
10+
"createdAt": "2025-04-03T06:04:32.388Z",
11+
"updatedAt": "2025-04-03T06:04:32.388Z",
12+
"bd_proposal_id": "49",
13+
"drep_id": "34b1eb01917db5d3f39757c94e85004c5e3d41462fd1d82da01264a9",
14+
"comments_reports": {
15+
"data": []
16+
},
17+
"user_govtool_username": "testeternl1",
18+
"subcommens_number": 0
19+
}
20+
},
21+
{
22+
"id": 426,
23+
"attributes": {
24+
"proposal_id": null,
25+
"comment_parent_id": null,
26+
"user_id": "1187",
27+
"comment_text": "test comment 1",
28+
"createdAt": "2025-04-03T06:04:23.380Z",
29+
"updatedAt": "2025-04-03T06:04:23.380Z",
30+
"bd_proposal_id": "49",
31+
"drep_id": "34b1eb01917db5d3f39757c94e85004c5e3d41462fd1d82da01264a9",
32+
"comments_reports": {
33+
"data": []
34+
},
35+
"user_govtool_username": "testeternl1",
36+
"subcommens_number": 0
37+
}
38+
},
39+
{
40+
"id": 384,
41+
"attributes": {
42+
"proposal_id": null,
43+
"comment_parent_id": null,
44+
"user_id": "38",
45+
"comment_text": "test comment",
46+
"createdAt": "2025-04-01T08:09:39.135Z",
47+
"updatedAt": "2025-04-01T08:09:39.135Z",
48+
"bd_proposal_id": "49",
49+
"drep_id": null,
50+
"comments_reports": {
51+
"data": []
52+
},
53+
"user_govtool_username": "testlace",
54+
"subcommens_number": 1
55+
}
56+
}
57+
],
58+
"meta": {
59+
"pagination": {
60+
"page": 1,
61+
"pageSize": 25,
62+
"pageCount": 1,
63+
"total": 3
64+
}
65+
}
66+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"data": [
3+
{
4+
"id": 48,
5+
"attributes": {
6+
"bd_proposal_id": "49",
7+
"poll_yes": 0,
8+
"poll_no": 0,
9+
"is_poll_active": true,
10+
"createdAt": "2025-03-31T12:08:38.928Z",
11+
"updatedAt": "2025-03-31T12:08:38.928Z"
12+
}
13+
}
14+
],
15+
"meta": {
16+
"pagination": {
17+
"page": 1,
18+
"pageSize": 1,
19+
"pageCount": 1,
20+
"total": 1
21+
}
22+
}
23+
}

tests/govtool-frontend/playwright/lib/_mock/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,11 @@ export const valid = {
149149
return `ipfs://${randomCID}`;
150150
},
151151

152-
metadata: (paymentAddress: string, imageObject: imageObject) => ({
152+
metadata: (
153+
paymentAddress: string,
154+
imageObject: imageObject,
155+
givenName: string
156+
) => ({
153157
"@context": {
154158
"@language": "en-us",
155159
CIP100:
@@ -212,7 +216,7 @@ export const valid = {
212216
authors: [],
213217
hashAlgorithm: "blake2b-256",
214218
body: {
215-
givenName: faker.person.firstName(),
219+
givenName: givenName,
216220
image: imageObject,
217221
motivations: faker.lorem.paragraph(2),
218222
objectives: faker.lorem.paragraph(2),

tests/govtool-frontend/playwright/lib/constants/staticWallets.ts

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,33 @@ export const faucetWallet = staticWallets[0];
55

66
export const dRep01Wallet = staticWallets[1];
77
export const dRep02Wallet = staticWallets[2];
8+
export const dRep03Wallet = staticWallets[3];
89

9-
export const adaHolder01Wallet = staticWallets[3];
10-
export const adaHolder02Wallet = staticWallets[4];
10+
export const adaHolder01Wallet = staticWallets[4];
11+
export const adaHolder02Wallet = staticWallets[5];
1112
export const adaHolder03Wallet = staticWallets[6];
1213
export const adaHolder04Wallet = staticWallets[7];
1314
export const adaHolder05Wallet = staticWallets[8];
1415
export const adaHolder06Wallet = staticWallets[9];
1516

1617
// Does not takes part in transaction
17-
export const user01Wallet: StaticWallet = staticWallets[5];
18+
export const user01Wallet: StaticWallet = staticWallets[10];
1819

1920
// Username is already set
20-
export const proposal01Wallet: StaticWallet = staticWallets[10];
21-
export const proposal02Wallet: StaticWallet = staticWallets[11];
22-
export const proposal03Wallet: StaticWallet = staticWallets[12];
23-
export const proposal04Wallet: StaticWallet = staticWallets[13];
24-
export const proposal05Wallet: StaticWallet = staticWallets[14];
25-
export const proposal06Wallet: StaticWallet = staticWallets[15];
26-
export const proposal07Wallet: StaticWallet = staticWallets[16];
27-
export const proposal08Wallet: StaticWallet = staticWallets[17];
28-
export const proposal09Wallet: StaticWallet = staticWallets[18];
21+
export const proposal01Wallet: StaticWallet = staticWallets[11];
22+
export const proposal02Wallet: StaticWallet = staticWallets[12];
23+
export const proposal03Wallet: StaticWallet = staticWallets[13];
24+
export const proposal04Wallet: StaticWallet = staticWallets[14];
25+
export const proposal05Wallet: StaticWallet = staticWallets[15];
26+
export const proposal06Wallet: StaticWallet = staticWallets[16];
27+
export const proposal07Wallet: StaticWallet = staticWallets[17];
28+
export const proposal08Wallet: StaticWallet = staticWallets[18];
29+
export const proposal09Wallet: StaticWallet = staticWallets[19];
30+
31+
export const budgetProposal01Wallet: StaticWallet = staticWallets[20];
32+
export const budgetProposal02Wallet: StaticWallet = staticWallets[21];
33+
export const budgetProposal03Wallet: StaticWallet = staticWallets[22];
34+
export const budgetProposal04Wallet: StaticWallet = staticWallets[23];
2935

3036
export const adaHolderWallets = [
3137
adaHolder01Wallet,
@@ -38,7 +44,7 @@ export const adaHolderWallets = [
3844

3945
export const userWallets = [user01Wallet];
4046

41-
export const dRepWallets = [dRep01Wallet, dRep02Wallet];
47+
export const dRepWallets = [dRep01Wallet, dRep02Wallet, dRep03Wallet];
4248

4349
export const proposalWallets = [
4450
proposal01Wallet,

0 commit comments

Comments
 (0)