From bf24badf82f77bc406b63d560ee007fa22c65b53 Mon Sep 17 00:00:00 2001 From: K1-R1 <77465250+K1-R1@users.noreply.github.com> Date: Wed, 29 May 2024 18:09:55 +0100 Subject: [PATCH 1/3] Update src-14.md --- SRCs/src-14.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SRCs/src-14.md b/SRCs/src-14.md index 5918a8e..bdef55e 100644 --- a/SRCs/src-14.md +++ b/SRCs/src-14.md @@ -6,7 +6,7 @@ The following proposes a standard for simple upgradable proxies. ## Motivation -We seek to standardize proxy implementation to improve developer experience and enable tooling to automatically deploy or update proxies as needed. +We seek to standardize a proxy implementation to improve developer experience and enable tooling to automatically deploy or update proxies as needed. ## Prior Art @@ -71,10 +71,10 @@ abi SRC14 { ## Example Implementation -### [Minimal Proxy](../examples/examples/src14-simple-proxy/owned/src/minimal.sw) +### [Minimal Proxy](../examples/src14-simple-proxy/owned/src/minimal.sw) Example of a minimal SRC-14 implementation with no access control. -### [Owned Proxy](../examples/examples/src14-simple-proxy/owned/src/owned.sw) +### [Owned Proxy](../examples/src14-simple-proxy/owned/src/owned.sw) Example of a SRC-14 implementation that also implements [SRC-5](https://github.com/FuelLabs/sway-standards/blob/master/SRCs/src-5.md). From 307aef5b59da1ce913ffc4c368a311ef75cd1f77 Mon Sep 17 00:00:00 2001 From: K1-R1 <77465250+K1-R1@users.noreply.github.com> Date: Wed, 29 May 2024 18:17:57 +0100 Subject: [PATCH 2/3] Update src-14.md links --- SRCs/src-14.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SRCs/src-14.md b/SRCs/src-14.md index bdef55e..4ac73d5 100644 --- a/SRCs/src-14.md +++ b/SRCs/src-14.md @@ -71,7 +71,7 @@ abi SRC14 { ## Example Implementation -### [Minimal Proxy](../examples/src14-simple-proxy/owned/src/minimal.sw) +### [Minimal Proxy](../examples/src14-simple-proxy/minimal/src/minimal.sw) Example of a minimal SRC-14 implementation with no access control. From d9c30baf1cb6c2b58c9cb50c070cd3d1fd62f3e4 Mon Sep 17 00:00:00 2001 From: K1-R1 <77465250+K1-R1@users.noreply.github.com> Date: Thu, 30 May 2024 09:51:57 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index c6dc532..c89ae99 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ If you don't find what you're looking for, feel free to create an issue and prop ### Contracts - [SRC-12; Contract Factory](./SRCs/src-12.md) defines the implementation of a standard API for contract factories. +- [SRC-14; Simple Upgradable Proxies](./SRCs/src-14.md) defines the implementation of a standard API for simple upgradable proxies. ### Bridge @@ -149,6 +150,16 @@ Example of the SRC-12 implementation where contract deployments contain configur Example of the SRC-12 implementation where all contract deployments are identical and thus have the same bytecode and root. +#### SRC-14; Simple Upgradable Proxies Standard Examples + +##### [Minimal](./examples/src14-simple-proxy/minimal/src/minimal.sw) + +Example of a minimal SRC-14 implementation with no access control. + +##### [Owned Proxy](./examples/src14-simple-proxy/owned/src/owned.sw) + +Example of a SRC-14 implementation that also implements [SRC-5](https://github.com/FuelLabs/sway-standards/blob/master/SRCs/src-5.md). + > **Note** > All standards currently use `forc v0.59.0`.