#0
nonstandard
0.00004000 BSV
Q!Rz*(åº^KKÁkL;èûÐmÌD3{H<¤BhFD²qQ®M{"__cls":"class ProviderList {\n constructor(owners, editors, title, country) {\n this.contractTypeID = \"7b0e3257-43c5-48cb-a830-e9b66fed9188\";\n this.contractTypeName = \"ProvidersList\";\n this.contractTypeVersion = \"0.0.1\";\n this._owners = owners;\n this.editors = editors;\n this.country = country;\n this.title = title;\n this.providers = [];\n }\n\n addProviders(callerPk, _providers) {\n if (!this._owners.includes(callerPk) && !this.editors.includes(callerPk)) {\n throw new Error(\"You do not have permission to add this provider.\");\n }\n _providers.forEach(p => {\n this.providers.push(p);\n });\n return \"Add Providers Executed Successfully.\";\n }\n\n addEditor(editorPk) {\n let response = \"\";\n if (!this.editors.includes(editorPk)) {\n this.editors.push(editorPk);\n response = \"success\";\n } else {\n throw new Error(\"The Public Key was already in the list. \");\n }\n return response;\n }\n\n removeEditor(editorPk) {\n let response = \"\";\n if (this.editors.includes(editorPk)) {\n let index = this.editors.indexOf(editorPk);\n this.editors.splice(index, 1);\n response = \"success\";\n } else {\n throw new Error(\"The Public Key was not lin the list.\");\n }\n return response;\n }\n}","__index":{"obj":0},"__args":[["02527a2a28e5ba5e1d4b4bc16b4c3be8fbd06dcc44337b483ca44268074644b271"],["02527a2a28e5ba5e1d4b4bc16b4c3be8fbd06dcc44337b483ca44268074644b271"],"Pfizer Nov 2020","USA"],"__func":"constructor"}u
https://whatsonchain.com/tx/e1e5fcc0552a2e670568b4d7fe2d2cedba5be6922527cce62cde3149df04c08b