Skip to content

Commit

Permalink
update FlowEVMBridgeConfig comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed Apr 23, 2024
1 parent adc4e54 commit 5cb0a4d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 270 deletions.
24 changes: 18 additions & 6 deletions cadence/contracts/bridge/FlowEVMBridgeConfig.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ import "FlowEVMBridgeHandlerInterfaces"
access(all)
contract FlowEVMBridgeConfig {

/******************
Entitlements
*******************/

access(all) entitlement Fee

/* --- Contract values --- */
//
/*************
Fields
**************/

/// Amount of FLOW paid to onboard a Type or EVMAddress to the bridge
access(all)
var onboardFee: UFix64
Expand All @@ -34,8 +40,10 @@ contract FlowEVMBridgeConfig {
access(self)
let typeToTokenHandlers: @{Type: {FlowEVMBridgeHandlerInterfaces.TokenHandler}}

/* --- Path Constants --- */
//
/********************
Path Constants
*********************/

/// StoragePath where bridge Cadence Owned Account is stored
access(all)
let coaStoragePath: StoragePath
Expand All @@ -46,8 +54,10 @@ contract FlowEVMBridgeConfig {
access(all)
let providerCapabilityStoragePath: StoragePath

/* --- Events --- */
//
/*************
Events
**************/

/// Emitted whenever the onboarding fee is updated
///
access(all)
Expand Down Expand Up @@ -137,6 +147,7 @@ contract FlowEVMBridgeConfig {
}

/// Returns an unentitled reference to the TokenHandler associated with the given Type
///
access(account)
view fun borrowTokenHandler(
_ type: Type
Expand All @@ -145,6 +156,7 @@ contract FlowEVMBridgeConfig {
}

/// Returns an entitled reference to the TokenHandler associated with the given Type
///
access(self)
view fun borrowTokenHandlerAdmin(
_ type: Type
Expand Down
264 changes: 0 additions & 264 deletions cadence/contracts/handled-assets/FiatToken.cdc

This file was deleted.

0 comments on commit 5cb0a4d

Please sign in to comment.