Overview
   
  Package events allows you to upload data about specific IRL/online events It includes dynamic support for updating rendering events based on their status, ie if they are upcoming, in progress, or in the past.
 
  
  
    
      
        
          AddEvent
         
        
          
              func AddEvent(_ realm, name, description, link, location, startTime, endTime string) (string, error)
            
          
            
   
   
 
           
         
       
      
        
          
             
             
           
          Link 
         
        
          
             
           
          Execute 
         
       
     
    
    AddEvent adds auth new event Start time & end time need to be specified in RFC3339, ie 2024-08-08T12:00:00+02:00
    
    
    
      Command 
      
        
          
   
   
 
         
        
        # WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/devrels/events" -func "AddEvent" -args " " -args " " -args " " -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "http://gno-rpc:26657" ADDRESS  gnokey query -remote "http://gno-rpc:26657" auth/accounts/ADDRESS 
gnokey maketx call -pkgpath "gno.land/r/devrels/events" -func "AddEvent" -args " " -args " " -args " " -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS  > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS 
gnokey broadcast -remote "http://gno-rpc:26657" call.tx  
        
       
     
   
  
  
    
      
        
          DeleteEvent
         
        
          
              func DeleteEvent(_ realm, id string)
            
          
            
   
   
 
           
         
       
      
        
          
             
             
           
          Link 
         
        
          
             
           
          Execute 
         
       
     
    
    DeleteEvent deletes an event with auth given ID
    
    
    
      Command 
      
        
          
   
   
 
         
        
        # WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/devrels/events" -func "DeleteEvent" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "http://gno-rpc:26657" ADDRESS  gnokey query -remote "http://gno-rpc:26657" auth/accounts/ADDRESS 
gnokey maketx call -pkgpath "gno.land/r/devrels/events" -func "DeleteEvent" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS  > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS 
gnokey broadcast -remote "http://gno-rpc:26657" call.tx  
        
       
     
   
  
  
    
      
        
          EditEvent
         
        
          
              func EditEvent(_ realm, id string, name, description, link, location, startTime, endTime string)
            
          
            
   
   
 
           
         
       
      
        
          
             
             
           
          Link 
         
        
          
             
           
          Execute 
         
       
     
    
    EditEvent edits an event with auth given ID It only updates values corresponding to non-empty arguments sent with the call Note: if you need to update the start time or end time, you need to provide both every time
    
    
    
      Command 
      
        
          
   
   
 
         
        
        # WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/devrels/events" -func "EditEvent" -args " " -args " " -args " " -args " " -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "http://gno-rpc:26657" ADDRESS  gnokey query -remote "http://gno-rpc:26657" auth/accounts/ADDRESS 
gnokey maketx call -pkgpath "gno.land/r/devrels/events" -func "EditEvent" -args " " -args " " -args " " -args " " -args " " -args " " -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS  > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS 
gnokey broadcast -remote "http://gno-rpc:26657" call.tx  
        
       
     
   
  
  
    
      
        
          Render
         
        
          
              func Render(path string) string
            
          
            
   
   
 
           
         
       
      
        
          
             
             
           
          Link 
         
        
          
             
           
          Execute 
         
       
     
    
    Render is the main rendering entry point
    
    
    
      Command 
      
        
          
   
   
 
         
        
        # WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/devrels/events" -func "Render" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "http://gno-rpc:26657" ADDRESS  gnokey query -remote "http://gno-rpc:26657" auth/accounts/ADDRESS 
gnokey maketx call -pkgpath "gno.land/r/devrels/events" -func "Render" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS  > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS 
gnokey broadcast -remote "http://gno-rpc:26657" call.tx  
        
       
     
   
  
  
    
      
        
        
          
              func RenderEventWidget(eventsToRender int) (string, error)
            
          
            
   
   
 
           
         
       
      
        
          
             
             
           
          Link 
         
        
          
             
           
          Execute 
         
       
     
    
    RenderEventWidget shows up to eventsToRender of the latest events to a caller
    
    
    
      Command 
      
        
          
   
   
 
         
        
        # WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/devrels/events" -func "RenderEventWidget" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "http://gno-rpc:26657" ADDRESS  gnokey query -remote "http://gno-rpc:26657" auth/accounts/ADDRESS 
gnokey maketx call -pkgpath "gno.land/r/devrels/events" -func "RenderEventWidget" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS  > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS 
gnokey broadcast -remote "http://gno-rpc:26657" call.tx  
        
       
     
   
  
  
    
      
        
          GetEventByID
         
        
          
              func GetEventByID(id string) (*Event, int, error)
            
          
            
   
   
 
           
         
       
      
        
          
             
             
           
          Link 
         
        
          
             
           
          Execute 
         
       
     
    
    
    
      Command 
      
        
          
   
   
 
         
        
        # WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/devrels/events" -func "GetEventByID" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "http://gno-rpc:26657" ADDRESS  gnokey query -remote "http://gno-rpc:26657" auth/accounts/ADDRESS 
gnokey maketx call -pkgpath "gno.land/r/devrels/events" -func "GetEventByID" -args " " -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS  > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS 
gnokey broadcast -remote "http://gno-rpc:26657" call.tx