-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
1,312 additions
and
891 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: "SDK Code Generation" | ||
on: | ||
schedule: | ||
- cron: '20 23 * * *' | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
jobs: | ||
generate_and_pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
- name: Generate and PR | ||
uses: algorand/generator/.github/actions/sdk-codegen/@master | ||
with: | ||
args: "-k JAVA" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/main/java/com/algorand/algosdk/builder/transaction/ApplicationCallReferencesSetter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.algorand.algosdk.builder.transaction; | ||
|
||
import java.util.List; | ||
|
||
import com.algorand.algosdk.crypto.Address; | ||
|
||
public interface ApplicationCallReferencesSetter<T extends ApplicationCallReferencesSetter<T>> { | ||
|
||
/** | ||
* ApplicationID is the application being interacted with, or 0 if creating a new application. | ||
*/ | ||
public T applicationId(Long applicationId); | ||
|
||
/** | ||
* Accounts lists the accounts (in addition to the sender) that may be accessed from the application logic. | ||
*/ | ||
public T accounts(List<Address> accounts); | ||
|
||
/** | ||
* ForeignApps lists the applications (in addition to txn.ApplicationID) whose global states may be accessed by this | ||
* application. The access is read-only. | ||
*/ | ||
public T foreignApps(List<Long> foreignApps); | ||
|
||
/** | ||
* ForeignAssets lists the assets whose global states may be accessed by this | ||
* application. The access is read-only. | ||
*/ | ||
public T foreignAssets(List<Long> foreignAssets); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.