dtr_core 0.2.3 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e15634e89ddfb8c1e44545a37c658e8f325ca63a4c20b25276012eef5b8031f5
4
- data.tar.gz: 216b926f76a91092c6738af46ad1466af3d62522ff7786b3125bbd96a97b07f6
3
+ metadata.gz: 71c160a63f67d1b82c407bbb6493f4f1df122157e36a65672a3f29849c48983c
4
+ data.tar.gz: 19628d6a63efa55634b589b1d11b3e5da0a6d654c7bb1ef56baf93b452e13046
5
5
  SHA512:
6
- metadata.gz: 0f2e0bb8f5c398d5c4f9508066de783ff36c8305453ff1f34fc77bd1754792820dd167e3d99fdaf891a29c25fbaa5da3adfc94702a9a307d579bcf7d1c82ac41
7
- data.tar.gz: f5ce52e4ba4759c4ed35026071449442a9fe1cb0bfac75ef7e736fdc3c0bb86203a7421c3c400bca611d51dc46cfb45c2006554a8f5e836f00d203907202c7f5
6
+ metadata.gz: 66aa5ede8dec5cd1300b7ab5f3786812ba3cf78fef363f47e4dcf49b81f7ab2cc12a0d16cc4913226ec8ee54da4007b315b1bff568c4dfc3d2972b5edf9e9a2b
7
+ data.tar.gz: 3a1e92adad72c46e14c2ca6027c2abe2e0c2b27bb926496ba7a68ddba16d6631a78908ba0930d73f87e85dd96ef6ad21a0798c619f6fa4eb850c0402cde8bce7
@@ -20,6 +20,7 @@ module DTRCore
20
20
  INSTRUCTIONS = [
21
21
  # basic operations
22
22
  { name: 'return', description: 'Return a value from a function.', category: INSTRUCTION_CATEGORY_BASIC },
23
+ { name: 'assign', description: 'Assign a value to a variable.', category: INSTRUCTION_CATEGORY_BASIC },
23
24
  # state operations
24
25
  { name: 'fetch_state', description: 'Fetch a value from the state.', category: INSTRUCTION_CATEGORY_STATE },
25
26
  { name: 'save_state', description: 'Save a value to the state.', category: INSTRUCTION_CATEGORY_STATE },
@@ -29,9 +30,9 @@ module DTRCore
29
30
  { name: 'multiply_numbers', description: 'Multiply two numbers.', category: INSTRUCTION_CATEGORY_NUMERIC },
30
31
  { name: 'divide_numbers', description: 'Divide two numbers.', category: INSTRUCTION_CATEGORY_NUMERIC },
31
32
  # string operations
32
- { name: 'add_strings', description: 'Concatenate two strings.', category: INSTRUCTION_CATEGORY_STRING }
33
+ { name: 'add_strings', description: 'Concatenate two strings.', category: INSTRUCTION_CATEGORY_STRING },
33
34
  # environment operations
34
- { name: 'contract_address', description: 'Get the contract address.', category: INSTRUCTION_CATEGORY_ENVIRONMENT}
35
+ { name: 'contract_address', description: 'Get the contract address.', category: INSTRUCTION_CATEGORY_ENVIRONMENT }
35
36
  ].freeze
36
37
 
37
38
  # Supported Types for DTR.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtr_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Durst
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-14 00:00:00.000000000 Z
11
+ date: 2024-05-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Core smart contract intermediate language (Digicus Textual Representation)
14
14
  parser.