Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to the new account storage format #314

Closed
sideninja opened this issue Sep 5, 2022 · 0 comments · Fixed by #328
Closed

Adapt to the new account storage format #314

sideninja opened this issue Sep 5, 2022 · 0 comments · Fixed by #328
Assignees

Comments

@sideninja
Copy link
Member

There's a new account storage format and the Playground FE needs to implement the changes. The new format contains three new top-level items called: Storage, Public, Private representing different storage locations. The storage inspection must adapt to these new values.

An example of new storage JSON response format is:

{
   "Private":null,
   "Public":{
      "flowTokenBalance":{
         "TargetPath":{
            "Domain":"storage",
            "Identifier":"flowTokenVault"
         },
         "BorrowType":"\\u0026A.0000000000000003.FlowToken.Vault{A.0000000000000002.FungibleToken.Balance}"
      },
      "flowTokenReceiver":{
         "TargetPath":{
            "Domain":"storage",
            "Identifier":"flowTokenVault"
         },
         "BorrowType":"\\u0026A.0000000000000003.FlowToken.Vault{A.0000000000000002.FungibleToken.Receiver}"
      }
   },
   "Storage":{
      "flowTokenVault":{
         "ResourceType":{
            "Location":{
               "Type":"AddressLocation",
               "Address":"0x0000000000000003",
               "Name":"FlowToken"
            },
            "QualifiedIdentifier":"FlowToken.Vault",
            "Fields":[
               {
                  "Identifier":"uuid",
                  "Type":{
                     
                  }
               },
               {
                  "Identifier":"balance",
                  "Type":{
                     
                  }
               }
            ],
            "Initializers":null
         },
         "Fields":[
            25,
            0
         ]
      }
   }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants