Difference between revisions of "Sidekicks"

From RunWiki
Jump to: navigation, search
(Created page with "Sidekicks are your helpers. They are your classes or functions that don't extend from <code>Jig</code> which you use more for supporting roles. You might use sidekicks to crea...")
 
Line 1: Line 1:
Sidekicks are your helpers. They are your classes or functions that don't extend from <code>Jig</code> which you use more for supporting roles. You might use sidekicks to create a [https://run.network/docs/#advanced-usage-locks custom lock]
+
Sidekicks are your helpers. They are your classes or functions that don't extend from <code>Jig</code> which you use more for supporting roles. You might use sidekicks to create a [https://run.network/docs/#advanced-usage-locks custom lock], to define a [https://run.network/docs/#advanced-usage-berries berry], to make a shared helper like [https://run.network/docs/#api-reference-extras-expect expect], or even to store your server code on-chain. When you call a method on a sidekick, nothing gets recorded to Bitcoin. But you can call sidekicks from inside jigs and even from your own app. There are no restrictions on what kinds of parameters can be passed into or returned from sidekicks.
 
 
, to define a [https://run.network/docs/#advanced-usage-berries berry]
 
 
 
, to make a shared helper like [https://run.network/docs/#api-reference-extras-expect expect]
 
 
 
, or even to store your server code on-chain. When you call a method on a sidekick, nothing gets recorded to Bitcoin. But you can call sidekicks from inside jigs and even from your own app. There are no restrictions on what kinds of parameters can be passed into or returned from sidekicks.
 

Revision as of 21:16, 15 December 2022

Sidekicks are your helpers. They are your classes or functions that don't extend from Jig which you use more for supporting roles. You might use sidekicks to create a custom lock, to define a berry, to make a shared helper like expect, or even to store your server code on-chain. When you call a method on a sidekick, nothing gets recorded to Bitcoin. But you can call sidekicks from inside jigs and even from your own app. There are no restrictions on what kinds of parameters can be passed into or returned from sidekicks.