polus-arcticus / lilypad-kamu-filecoin

A prototype to use Kamu in Lilypad
2 stars 1 forks source link

Working on Lilypad? #2

Open DeveloperAlly opened 1 year ago

DeveloperAlly commented 1 year ago

Hello folks!!

This looks like an awesome idea! Just wondering, did you manage to get this working on Lilypad Aurora?

polus-arcticus commented 1 year ago

Hey @DeveloperAlly , thanks for stopping by! :leaves:

Glad to hear it resonates with you! the Kamu team also seems pretty optimistic about lilypad integration as well. I accidentally left a syntax error in v0.0.4, but the v0.0.5 i just pushed hits

lilypad run github.com/polus-arcticus/lilypad-module-kamu:v0.0.5


⠀⠀⠀⠀⠀⠀⣀⣤⣤⢠⣤⣀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⢴⣿⣿⣿⣿⢸⣿⡟⠀⠀⠀⠀⠀    ██╗     ██╗██╗  ██╗   ██╗██████╗  █████╗ ██████╗ 
⠀⠀⣰⣿⣦⡙⢿⣿⣿⢸⡿⠀⠀⠀⠀⢀⠀    ██║     ██║██║  ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
⠀⢰⣿⣿⣿⣿⣦⡙⣿⢸⠁⢀⣠⣴⣾⣿⡆    ██║     ██║██║   ╚████╔╝ ██████╔╝███████║██║  ██║
⠀⣛⣛⣛⣛⣛⣛⣛⠈⠀⣚⣛⣛⣛⣛⣛⣛    ██║     ██║██║    ╚██╔╝  ██╔═══╝ ██╔══██║██║  ██║
⠀⢹⣿⣿⣿⣿⠟⣡⣿⢸⣮⡻⣿⣿⣿⣿⡏    ███████╗██║███████╗██║   ██║     ██║  ██║██████╔╝
⠀⠀⢻⣿⡟⣩⣾⣿⣿⢸⣿⣿⣌⠻⣿⡟⠀    ╚══════╝╚═╝╚══════╝╚═╝   ╚═╝     ╚═╝  ╚═╝╚═════╝ v2
⠀⠀⠀⠉⢾⣿⣿⣿⣿⢸⣿⣿⣿⡷⠈⠀⠀                                                  
⠀⠀⠀⠀⠀⠈⠙⠛⠛⠘⠛⠋⠁⠀ ⠀⠀⠀   Decentralized Compute Network  https://lilypad.tech

🌟  Lilypad submitting job
Error: error loading module: reference not found opts={Module:{Name: Repo:https://github.com/polus-arcticus/lilypad-module-kamu Hash:v0.0.5 Path:/lilypad_module.json.tmpl} Spec:{GPU:0 CPU:0 RAM:0} Mode:MarketPrice Pricing:{InstructionPrice:1 PaymentCollateral:2 ResultsCollateralMultiple:2 MediationFee:1} Timeouts:{Agree:{Timeout:3600 Collateral:1} SubmitResults:{Timeout:3600 Collateral:1} JudgeResults:{Timeout:3600 Collateral:1} MediateResults:{Timeout:3600 Collateral:1}} Inputs:map[] Services:{Solver:0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC Mediator:[0x90F79bf6EB2c4f870365E785982E1f101E93b906]}}Error: error loading module: reference not found opts={Module:{Name: Repo:https://github.com/polus-arcticus/lilypad-module-kamu Hash:v0.0.5 Path:/lilypad_module.json.tmpl} Spec:{GPU:0 CPU:0 RAM:0} Mode:MarketPrice Pricing:{InstructionPrice:1 PaymentCollateral:2 ResultsCollateralMultiple:2 MediationFee:1} Timeouts:{Agree:{Timeout:3600 Collateral:1} SubmitResults:{Timeout:3600 Collateral:1} JudgeResults:{Timeout:3600 Collateral:1} MediateResults:{Timeout:3600 Collateral:1}} Inputs:map[] Services:{Solver:0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC Mediator:[0x90F79bf6EB2c4f870365E785982E1f101E93b906]}}
Usage:
  lilypad run [flags]

Examples:
run cowsay:v0.0.1 -i Message=moo

Flags:
  -h, --help                                       help for run
  -i, --input stringToString                       Input key-value pairs (default [])
      --mediation-chance int                       The percentage chance we will check results
      --module-hash string                         The hash of the repo we can checkout (MODULE_HASH)
      --module-name string                         The name of the shortcut module (MODULE_NAME)
      --module-path string                         The path in the repo to the go template (MODULE_PATH)
      --module-repo string                         The (http) git repo we can close (MODULE_REPO)
      --pricing-instruction-price uint             The price per instruction to offer (PRICING_INSTRUCTION_PRICE) (default 1)
      --pricing-mediation-fee uint                 The mediation fee (PRICING_MEDIATION_FEE) (default 1)
      --pricing-mode string                        set pricing mode (MarketPrice/FixedPrice) (default "MarketPrice")
      --pricing-payment-collateral uint            The payment collateral (PRICING_PAYMENT_COLLATERAL) (default 2)
      --pricing-results-collateral-multiple uint   The results collateral multiple (PRICING_RESULTS_COLLATERAL_MULTIPLE) (default 2)
      --service-mediators strings                  The mediators we trust (SERVICE_MEDIATORS) (default [0x90F79bf6EB2c4f870365E785982E1f101E93b906])
      --service-solver string                      The solver to connect to (SERVICE_SOLVER) (default "0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC")
      --timeout-agree-collateral uint              The collateral to timeout a deal when agreeing (TIMEOUT_AGREE_COLLATERAL) (default 1)
      --timeout-agree-time uint                    The number of seconds to timeout a deal when agreeing (TIMEOUT_AGREE_TIME) (default 3600)
      --timeout-judge-results-collateral uint      The collateral to timeout a deal when judging results (TIMEOUT_JUDGE_RESULTS_COLLATERAL) (default 1)
      --timeout-judge-results-time uint            The number of seconds to timeout a deal when judging results (TIMEOUT_JUDGE_RESULTS_TIME) (default 3600)
      --timeout-mediate-results-collateral uint    The collateral to timeout a deal when mediating results (TIMEOUT_MEDIATE_RESULTS_COLLATERAL) (default 1)
      --timeout-mediate-results-time uint          The number of seconds to timeout a deal when mediating results (TIMEOUT_MEDIATE_RESULTS_TIME) (default 3600)
      --timeout-submit-results-collateral uint     The collateral to timeout a deal when submitting results (TIMEOUT_SUBMIT_RESULTS_COLLATERAL) (default 1)
      --timeout-submit-results-time uint           The number of seconds to timeout a deal when submitting results (TIMEOUT_SUBMIT_RESULTS_TIME) (default 3600)
      --web3-chain-id int                          The chain id for the web3 RPC server (WEB3_CHAIN_ID). (default 1337)
      --web3-controller-address string             The address of the controller contract (WEB3_CONTROLLER_ADDRESS). (default "0x959922bE3CAee4b8Cd9a407cc3ac1C251C2007B1")
      --web3-payments-address string               The address of the payments contract (WEB3_PAYMENTS_ADDRESS).
      --web3-private-key string                    The private key to use for signing web3 transactions (WEB3_PRIVATE_KEY).
      --web3-rpc-url string                        The URL of the web3 RPC server (WEB3_RPC_URL). (default "ws://testnetv2.arewehotshityet.com:8546")
      --web3-storage-address string                The address of the storage contract (WEB3_STORAGE_ADDRESS).
      --web3-token-address string                  The address of the token contract (WEB3_TOKEN_ADDRESS).
      --web3-users-address string                  The address of the users contract (WEB3_USERS_ADDRESS).

error loading module: reference not found opts={Module:{Name: Repo:https://github.com/polus-arcticus/lilypad-module-kamu Hash:v0.0.5 Path:/lilypad_module.json.tmpl} Spec:{GPU:0 CPU:0 RAM:0} Mode:MarketPrice Pricing:{InstructionPrice:1 PaymentCollateral:2 ResultsCollateralMultiple:2 MediationFee:1} Timeouts:{Agree:{Timeout:3600 Collateral:1} SubmitResults:{Timeout:3600 Collateral:1} JudgeResults:{Timeout:3600 Collateral:1} MediateResults:{Timeout:3600 Collateral:1}} Inputs:map[] Services:{Solver:0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC Mediator:[0x90F79bf6EB2c4f870365E785982E1f101E93b906]}}

which seems to be the same error as mentioned in the slack channel https://bacalhauproject.slack.com/archives/C055K39J9QW/p1697735898638629