Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: f90ab2335477f8bd7f8fbacbf8fa8e5847fd94a2
  • Loading branch information
Copybara authored and actions-user committed Sep 14, 2023
1 parent c955d0a commit 161d971
Show file tree
Hide file tree
Showing 18 changed files with 2,034 additions and 49 deletions.
2 changes: 1 addition & 1 deletion examples/functions/01_basic_oracle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ cpi = ["no-entrypoint"]
default = []

[dependencies]
switchboard-solana = "=0.28.6"
switchboard-solana = { version = "=0.28.15", features = [ ] }
# switchboard-solana = { version = "0.28.4", path = "../../../rust/switchboard-solana" }
bytemuck = "^1"
4 changes: 2 additions & 2 deletions examples/functions/01_basic_oracle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@coral-xyz/anchor": "^0.28.0",
"@solana/spl-token": "^0.3.6",
"@solana/web3.js": "^1.78.0",
"@switchboard-xyz/solana.js": "workspace:^"
"@switchboard-xyz/solana.js": "^"
},
"devDependencies": {
"@types/bn.js": "^5.1.0",
Expand All @@ -26,4 +26,4 @@
"mocha": "^9.0.3",
"ts-mocha": "^10.0.0"
}
}
}
2 changes: 1 addition & 1 deletion examples/functions/01_basic_oracle/sgx-function/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ futures = "0.3"
serde = "^1"
serde_json = "^1"
switchboard-utils = "0.8.0"
switchboard-solana = "=0.28.6"
switchboard-solana = { version = "=0.28.15", features = [ "client" ] }
# switchboard-solana = { version = "0.28.4", path = "../../../../rust/switchboard-solana" }
# switchboard-utils = { version = "0.8.0", path = "../../../../../../rust/switchboard-utils" }
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ impl TriggerFunction<'_> {
_params: &TriggerFunctionParams,
) -> anchor_lang::Result<()> {
FunctionTrigger {
function: ctx.accounts.function.clone(),
authority: ctx.accounts.authority.clone(),
attestation_queue: ctx.accounts.attestation_queue.clone(),
function: ctx.accounts.function.to_account_info(),
authority: ctx.accounts.authority.to_account_info(),
attestation_queue: ctx.accounts.attestation_queue.to_account_info(),
}
.invoke(ctx.accounts.attestation_program.clone())?;
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion javascript/solana.js/idl/attestation-devnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -3794,4 +3794,4 @@
"msg": "The FunctionRequestAccount is not ready to be verified"
}
]
}
}
Loading

0 comments on commit 161d971

Please sign in to comment.