dtr_core 0.2.2 → 0.2.3

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: 71bccd1d29aa41c5c4dc2dde511c843ac74ff7916d93fb16322f6364c8350266
4
- data.tar.gz: aaf146e8016a71caa1d55613d60597ec6f699c8c880c5b329d6ea0d08651714e
3
+ metadata.gz: e15634e89ddfb8c1e44545a37c658e8f325ca63a4c20b25276012eef5b8031f5
4
+ data.tar.gz: 216b926f76a91092c6738af46ad1466af3d62522ff7786b3125bbd96a97b07f6
5
5
  SHA512:
6
- metadata.gz: 1cba2273b9d641fd20d4e37bca355114b72b0e4b0bd09994c93732907f78c7d14ef538d3beb890aad61786c8396b9c39c4d47c8f5e9096d2a578052637bbb635
7
- data.tar.gz: f64e6e165115dcd0f5dc3d583a27bb2d7c7e7567bb7955454f6493e4c1a12f233c599d0b5185e1089ddf9ac95919835091aa9aafa4c3df220fbff9fb5d4460c6
6
+ metadata.gz: 0f2e0bb8f5c398d5c4f9508066de783ff36c8305453ff1f34fc77bd1754792820dd167e3d99fdaf891a29c25fbaa5da3adfc94702a9a307d579bcf7d1c82ac41
7
+ data.tar.gz: f5ce52e4ba4759c4ed35026071449442a9fe1cb0bfac75ef7e736fdc3c0bb86203a7421c3c400bca611d51dc46cfb45c2006554a8f5e836f00d203907202c7f5
@@ -8,11 +8,13 @@ module DTRCore
8
8
  INSTRUCTION_CATEGORY_STATE = 'state'
9
9
  INSTRUCTION_CATEGORY_NUMERIC = 'numeric'
10
10
  INSTRUCTION_CATEGORY_STRING = 'string'
11
+ INSTRUCTION_CATEGORY_ENVIRONMENT = 'environment'
11
12
  INSTRUCTION_CATEGORIES = [
12
13
  INSTRUCTION_CATEGORY_BASIC,
13
14
  INSTRUCTION_CATEGORY_STATE,
14
15
  INSTRUCTION_CATEGORY_NUMERIC,
15
- INSTRUCTION_CATEGORY_STRING
16
+ INSTRUCTION_CATEGORY_STRING,
17
+ INSTRUCTION_CATEGORY_ENVIRONMENT
16
18
  ].freeze
17
19
  ## Instructions ##
18
20
  INSTRUCTIONS = [
@@ -28,6 +30,8 @@ module DTRCore
28
30
  { name: 'divide_numbers', description: 'Divide two numbers.', category: INSTRUCTION_CATEGORY_NUMERIC },
29
31
  # string operations
30
32
  { name: 'add_strings', description: 'Concatenate two strings.', category: INSTRUCTION_CATEGORY_STRING }
33
+ # environment operations
34
+ { name: 'contract_address', description: 'Get the contract address.', category: INSTRUCTION_CATEGORY_ENVIRONMENT}
31
35
  ].freeze
32
36
 
33
37
  # Supported Types for DTR.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtr_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Durst