Skip to content

Commit

Permalink
Merge pull request #2673 from m-Peter/temporarily-remove-existing-cap…
Browse files Browse the repository at this point in the history
…ability-api-deprecations
  • Loading branch information
turbolent authored Aug 2, 2023
2 parents c8833d2 + 5cf6009 commit 62d6ec8
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 28 deletions.
10 changes: 0 additions & 10 deletions runtime/sema/authaccount.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ pub struct AuthAccount {
/// The path must be a storage path, i.e., only the domain `storage` is allowed.
pub fun check<T: Any>(from: StoragePath): Bool

/// **DEPRECATED**: Instead, use `capabilities.storage.issue`, and `capabilities.publish` if the path is public.
///
/// Creates a capability at the given public or private path,
/// which targets the given public, private, or storage path.
///
Expand All @@ -139,26 +137,18 @@ pub struct AuthAccount {
/// and the target value might be moved out after the link has been created.
pub fun link<T: &Any>(_ newCapabilityPath: CapabilityPath, target: Path): Capability<T>?

/// **DEPRECATED**: Use `capabilities.account.issue` instead.
///
/// Creates a capability at the given public or private path which targets this account.
///
/// Returns nil if a link for the given capability path already exists, or the newly created capability if not.
pub fun linkAccount(_ newCapabilityPath: PrivatePath): Capability<&AuthAccount>?

/// **DEPRECATED**: Use `capabilities.get` instead.
///
/// Returns the capability at the given private or public path.
pub fun getCapability<T: &Any>(_ path: CapabilityPath): Capability<T>

/// **DEPRECATED**: Use `capabilities.storage.getController` and `StorageCapabilityController.target()`.
///
/// Returns the target path of the capability at the given public or private path,
/// or nil if there exists no capability at the given path.
pub fun getLinkTarget(_ path: CapabilityPath): Path?

/// **DEPRECATED**: Use `capabilities.unpublish` instead if the path is public.
///
/// Removes the capability at the given public or private path.
pub fun unlink(_ path: CapabilityPath)

Expand Down
10 changes: 0 additions & 10 deletions runtime/sema/authaccount.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions runtime/sema/publicaccount.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,9 @@ pub struct PublicAccount {
/// All public paths of this account.
pub let publicPaths: [PublicPath]

/// **DEPRECATED**: Use `capabilities.get` instead.
///
/// Returns the capability at the given public path.
pub fun getCapability<T: &Any>(_ path: PublicPath): Capability<T>

/// **DEPRECATED**
///
/// Returns the target path of the capability at the given public or private path,
/// or nil if there exists no capability at the given path.
pub fun getLinkTarget(_ path: CapabilityPath): Path?
Expand Down
4 changes: 0 additions & 4 deletions runtime/sema/publicaccount.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 62d6ec8

Please sign in to comment.